]> 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.14.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         # Preserve -v and -x to the replacement shell.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         case $- in # ((((
224           *v*x* | *x*v* ) as_opts=-vx ;;
225           *v* ) as_opts=-v ;;
226           *x* ) as_opts=-x ;;
227           * ) as_opts= ;;
228         esac
229         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$1; test $as_status -eq 0 && as_status=1
375   if test "$4"; then
376     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378   fi
379   $as_echo "$as_me: error: $2" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$lt_ECHO in
542 X*--fallback-echo)
543   # Remove one level of quotation (which was required for Make).
544   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
545   ;;
546 esac
547
548 ECHO=${lt_ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550   # Discard the --no-reexec flag, and continue.
551   shift
552 elif test "X$1" = X--fallback-echo; then
553   # Avoid inline document here, it may be left over
554   :
555 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556   # Yippee, $ECHO works!
557   :
558 else
559   # Restart under the correct shell.
560   exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564   # used as fallback echo
565   shift
566   cat <<_LT_EOF
567 $*
568 _LT_EOF
569   exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$lt_ECHO"; then
577   if test "X${echo_test_string+set}" != Xset; then
578     # find a string as large as possible, as long as the shell can cope with it
579     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
583       then
584         break
585       fi
586     done
587   fi
588
589   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591      test "X$echo_testing_string" = "X$echo_test_string"; then
592     :
593   else
594     # The Solaris, AIX, and Digital Unix default echo programs unquote
595     # backslashes.  This makes it impossible to quote backslashes using
596     #   echo "$something" | sed 's/\\/\\\\/g'
597     #
598     # So, first we look for a working echo in the user's PATH.
599
600     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601     for dir in $PATH /usr/ucb; do
602       IFS="$lt_save_ifs"
603       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606          test "X$echo_testing_string" = "X$echo_test_string"; then
607         ECHO="$dir/echo"
608         break
609       fi
610     done
611     IFS="$lt_save_ifs"
612
613     if test "X$ECHO" = Xecho; then
614       # We didn't find a better echo, so look for alternatives.
615       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617          test "X$echo_testing_string" = "X$echo_test_string"; then
618         # This shell has a builtin print -r that does the trick.
619         ECHO='print -r'
620       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621            test "X$CONFIG_SHELL" != X/bin/ksh; then
622         # If we have ksh, try running configure again with it.
623         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624         export ORIGINAL_CONFIG_SHELL
625         CONFIG_SHELL=/bin/ksh
626         export CONFIG_SHELL
627         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628       else
629         # Try using printf.
630         ECHO='printf %s\n'
631         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633            test "X$echo_testing_string" = "X$echo_test_string"; then
634           # Cool, printf works
635           :
636         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637              test "X$echo_testing_string" = 'X\t' &&
638              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639              test "X$echo_testing_string" = "X$echo_test_string"; then
640           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641           export CONFIG_SHELL
642           SHELL="$CONFIG_SHELL"
643           export SHELL
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646              test "X$echo_testing_string" = 'X\t' &&
647              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648              test "X$echo_testing_string" = "X$echo_test_string"; then
649           ECHO="$CONFIG_SHELL $0 --fallback-echo"
650         else
651           # maybe with a smaller string...
652           prev=:
653
654           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
656             then
657               break
658             fi
659             prev="$cmd"
660           done
661
662           if test "$prev" != 'sed 50q "$0"'; then
663             echo_test_string=`eval $prev`
664             export echo_test_string
665             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666           else
667             # Oops.  We lost completely, so just stick with echo.
668             ECHO=echo
669           fi
670         fi
671       fi
672     fi
673   fi
674 fi
675
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
678 lt_ECHO=$ECHO
679 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 fi
682
683
684
685
686 test -n "$DJDIR" || exec 7<&0 </dev/null
687 exec 6>&1
688
689 # Name of the host.
690 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691 # so uname gets run too.
692 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693
694 #
695 # Initializations.
696 #
697 ac_default_prefix=/usr/local
698 ac_clean_files=
699 ac_config_libobj_dir=.
700 LIBOBJS=
701 cross_compiling=no
702 subdirs=
703 MFLAGS=
704 MAKEFLAGS=
705
706 # Identity of this package.
707 PACKAGE_NAME='bacula'
708 PACKAGE_TARNAME='bacula'
709 PACKAGE_VERSION='5.1.14'
710 PACKAGE_STRING='bacula 5.1.14'
711 PACKAGE_BUGREPORT=''
712 PACKAGE_URL=''
713
714 ac_unique_file="src/version.h"
715 # Factoring default headers for most tests.
716 ac_includes_default="\
717 #include <stdio.h>
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
720 #endif
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
723 #endif
724 #ifdef STDC_HEADERS
725 # include <stdlib.h>
726 # include <stddef.h>
727 #else
728 # ifdef HAVE_STDLIB_H
729 #  include <stdlib.h>
730 # endif
731 #endif
732 #ifdef HAVE_STRING_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734 #  include <memory.h>
735 # endif
736 # include <string.h>
737 #endif
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
740 #endif
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
743 #endif
744 #ifdef HAVE_STDINT_H
745 # include <stdint.h>
746 #endif
747 #ifdef HAVE_UNISTD_H
748 # include <unistd.h>
749 #endif"
750
751 ac_header_list=
752 ac_subst_vars='LTLIBOBJS
753 DISTVER
754 DISTNAME
755 MACOSX
756 WIN32
757 PSCMD
758 TAPEDRIVE
759 OBJLIST
760 WRAPLIBS
761 WLDFLAGS
762 WCFLAGS
763 DLIB
764 DINCLUDE
765 DEBUG
766 FDLIBS
767 CAP_LIBS
768 AFS_LIBS
769 AFS_CFLAGS
770 ZLIBS
771 LIBOBJS
772 X_EXTRA_LIBS
773 X_LIBS
774 X_PRE_LIBS
775 X_CFLAGS
776 XMKMF
777 GETCONF
778 SHARED_CATALOG_TARGETS
779 DEFAULT_DB_TYPE
780 DB_LIBS
781 DB_BACKENDS
782 DB_PROG_LIB
783 DB_PROG
784 uncomment_dbi
785 DBI_DBD_DRIVERDIR
786 DBI_BINDIR
787 DBI_INCLUDE
788 DBI_LIBS
789 INGRES_BINDIR
790 INGRES_INCLUDE
791 INGRES_LIBS
792 SQLITE_BINDIR
793 SQLITE_INCLUDE
794 SQLITE_LIBS
795 MYSQL_BINDIR
796 MYSQL_INCLUDE
797 MYSQL_LIBS
798 POSTGRESQL_BINDIR
799 POSTGRESQL_INCLUDE
800 POSTGRESQL_LIBS
801 SBINPERM
802 fd_group
803 fd_user
804 sd_group
805 sd_user
806 dir_group
807 dir_user
808 db_port
809 db_password
810 db_user
811 db_name
812 mon_sd_password
813 mon_fd_password
814 mon_dir_password
815 sd_password
816 fd_password
817 dir_password
818 sd_port
819 fd_port
820 dir_port
821 baseport
822 subsysdir
823 piddir
824 smtp_host
825 job_email
826 dump_email
827 plugindir
828 logdir
829 bsrdir
830 scriptdir
831 hostname
832 basename
833 archivedir
834 working_dir
835 OPENSSL_INC
836 OPENSSL_LIBS
837 PYTHON_INCDIR
838 PYTHON_LIBS
839 READLINE_SRC
840 CONS_LDFLAGS
841 CONS_LIBS
842 CONS_SRC
843 CONS_OBJ
844 CONS_INC
845 STORED_DIR
846 DIR_TOOLS
847 DIRD_DIR
848 ALL_DIRS
849 STATIC_WX_CONS
850 STATIC_GNOME_CONS
851 STATIC_CONS
852 STATIC_DIR
853 STATIC_SD
854 STATIC_FD
855 TTOOL_LDFLAGS
856 TRAY_MONITOR_DIR
857 TRAY_MONITOR_LDFLAGS
858 TRAY_MONITOR_CPPFLAGS
859 WX_DIR
860 WXCONS_LDFLAGS
861 WXCONS_CPPFLAGS
862 QWT
863 QWT_LIB
864 QWT_LDFLAGS
865 QWT_INC
866 BAT_DIR
867 INTL_LIBTOOL_SUFFIX_PREFIX
868 INTLOBJS
869 GENCAT
870 INSTOBJEXT
871 DATADIRNAME
872 CATOBJEXT
873 USE_INCLUDED_LIBINTL
874 BUILD_INCLUDED_LIBINTL
875 INTLBISON
876 HAVE_WPRINTF
877 HAVE_SNPRINTF
878 HAVE_ASPRINTF
879 HAVE_POSIX_PRINTF
880 GLIBC21
881 ALLOCA
882 GLIBC2
883 POSUB
884 LTLIBINTL
885 LIBINTL
886 INTLLIBS
887 LTLIBICONV
888 LIBICONV
889 INTL_MACOSX_LIBS
890 MSGMERGE
891 XGETTEXT
892 GMSGFMT
893 MSGFMT
894 USE_NLS
895 MKINSTALLDIRS
896 SET_MAKE
897 HAVE_DARWIN_OS_FALSE
898 HAVE_DARWIN_OS_TRUE
899 HAVE_IRIX_OS_FALSE
900 HAVE_IRIX_OS_TRUE
901 HAVE_SGI_OS_FALSE
902 HAVE_SGI_OS_TRUE
903 HAVE_BSDI_OS_FALSE
904 HAVE_BSDI_OS_TRUE
905 HAVE_OPENBSD_OS_FALSE
906 HAVE_OPENBSD_OS_TRUE
907 HAVE_NETBSD_OS_FALSE
908 HAVE_NETBSD_OS_TRUE
909 HAVE_FREEBSD_OS_FALSE
910 HAVE_FREEBSD_OS_TRUE
911 HAVE_LINUX_OS_FALSE
912 HAVE_LINUX_OS_TRUE
913 HAVE_HPUX_OS_FALSE
914 HAVE_HPUX_OS_TRUE
915 HAVE_AIX_OS_FALSE
916 HAVE_AIX_OS_TRUE
917 HAVE_OSF1_OS_FALSE
918 HAVE_OSF1_OS_TRUE
919 HAVE_SUN_OS_FALSE
920 HAVE_SUN_OS_TRUE
921 INCLUDE_UNINSTALL_TARGET
922 INCLUDE_INSTALL_TARGET
923 FD_PLUGIN_DIR
924 QMAKE_LIBTOOL
925 LIBTOOL_CLEAN_TARGET
926 LIBTOOL_UNINSTALL_TARGET
927 LIBTOOL_INSTALL_TARGET
928 DEFAULT_SHARED_OBJECT_TYPE
929 DEFAULT_ARCHIVE_TYPE
930 DEFAULT_OBJECT_TYPE
931 CXXCPP
932 OTOOL64
933 OTOOL
934 LIPO
935 NMEDIT
936 DSYMUTIL
937 lt_ECHO
938 RANLIB
939 STRIP
940 OBJDUMP
941 LN_S
942 NM
943 ac_ct_DUMPBIN
944 DUMPBIN
945 LD
946 FGREP
947 host_os
948 host_vendor
949 host_cpu
950 host
951 build_os
952 build_vendor
953 build_cpu
954 build
955 LIBTOOL
956 LOCAL_DEFS
957 LOCAL_LDFLAGS
958 LOCAL_CFLAGS
959 LOCAL_LIBS
960 MAKE_SHELL
961 ARFLAGS
962 AWK
963 PIDOF
964 CDRECORD
965 WXFLAGS
966 WXCONFIG
967 GMAKE
968 QMAKE
969 PKGCONFIG
970 DVDRWFORMAT
971 DVDRWMEDIAINFO
972 GROWISOFS
973 PYTHON
974 MKISOFS
975 DD
976 MTX
977 OPENSSL
978 AR
979 TBL
980 CMP
981 ECHO
982 SED
983 CP
984 REMOVE
985 MV
986 INSTALL_DATA
987 INSTALL_SCRIPT
988 INSTALL_PROGRAM
989 EGREP
990 GREP
991 CPP
992 ac_ct_CXX
993 CXXFLAGS
994 CXX
995 OBJEXT
996 EXEEXT
997 ac_ct_CC
998 CPPFLAGS
999 LDFLAGS
1000 CFLAGS
1001 CC
1002 LIBBACFIND_LT_RELEASE
1003 LIBBACCATS_LT_RELEASE
1004 LIBBACSQL_LT_RELEASE
1005 LIBBACPY_LT_RELEASE
1006 LIBBACCFG_LT_RELEASE
1007 LIBBAC_LT_RELEASE
1008 BDB_VERSION
1009 post_host
1010 BACULA
1011 LSMDATE
1012 DATE
1013 VERSION
1014 FALSEPRG
1015 TRUEPRG
1016 WIN32TOPDIR
1017 WIN32MAINDIR
1018 WIN32BUILDDIR
1019 TOP_DIR
1020 BUILD_DIR
1021 target_alias
1022 host_alias
1023 build_alias
1024 LIBS
1025 ECHO_T
1026 ECHO_N
1027 ECHO_C
1028 DEFS
1029 mandir
1030 localedir
1031 libdir
1032 psdir
1033 pdfdir
1034 dvidir
1035 htmldir
1036 infodir
1037 docdir
1038 oldincludedir
1039 includedir
1040 localstatedir
1041 sharedstatedir
1042 sysconfdir
1043 datadir
1044 datarootdir
1045 libexecdir
1046 sbindir
1047 bindir
1048 program_transform_name
1049 prefix
1050 exec_prefix
1051 PACKAGE_URL
1052 PACKAGE_BUGREPORT
1053 PACKAGE_STRING
1054 PACKAGE_VERSION
1055 PACKAGE_TARNAME
1056 PACKAGE_NAME
1057 PATH_SEPARATOR
1058 SHELL'
1059 ac_subst_files='MCOMMON'
1060 ac_user_opts='
1061 enable_option_checking
1062 enable_libtool
1063 enable_shared
1064 enable_static
1065 with_pic
1066 enable_fast_install
1067 with_gnu_ld
1068 enable_libtool_lock
1069 enable_includes
1070 enable_nls
1071 enable_rpath
1072 with_libiconv_prefix
1073 with_libintl_prefix
1074 with_included_gettext
1075 enable_gnome
1076 enable_bat
1077 enable_bwx_console
1078 enable_tray_monitor
1079 enable_smartalloc
1080 enable_lockmgr
1081 enable_static_tools
1082 enable_static_fd
1083 enable_static_sd
1084 enable_static_dir
1085 enable_static_cons
1086 enable_client_only
1087 enable_build_dird
1088 enable_build_stored
1089 enable_conio
1090 enable_ipv6
1091 enable_readline
1092 with_readline
1093 with_python
1094 with_tcp_wrappers
1095 with_openssl
1096 with_working_dir
1097 with_archivedir
1098 with_basename
1099 with_hostname
1100 with_scriptdir
1101 with_bsrdir
1102 with_logdir
1103 with_plugindir
1104 with_dump_email
1105 with_job_email
1106 with_smtp_host
1107 with_pid_dir
1108 with_subsys_dir
1109 with_baseport
1110 with_dir_password
1111 with_fd_password
1112 with_sd_password
1113 with_mon_dir_password
1114 with_mon_fd_password
1115 with_mon_sd_password
1116 with_db_name
1117 with_db_user
1118 with_db_password
1119 with_db_port
1120 with_dir_user
1121 with_dir_group
1122 with_sd_user
1123 with_sd_group
1124 with_fd_user
1125 with_fd_group
1126 with_sbin_perm
1127 with_postgresql
1128 with_mysql
1129 with_embedded_mysql
1130 with_sqlite3
1131 with_ingres
1132 with_dbi
1133 with_dbi_driver
1134 enable_batch_insert
1135 enable_largefile
1136 with_x
1137 enable_afs
1138 with_afsdir
1139 enable_acl
1140 enable_xattr
1141 '
1142       ac_precious_vars='build_alias
1143 host_alias
1144 target_alias
1145 CC
1146 CFLAGS
1147 LDFLAGS
1148 LIBS
1149 CPPFLAGS
1150 CXX
1151 CXXFLAGS
1152 CCC
1153 CPP
1154 WXCONFIG
1155 WXFLAGS
1156 CXXCPP
1157 XMKMF'
1158
1159
1160 # Initialize some variables set by options.
1161 ac_init_help=
1162 ac_init_version=false
1163 ac_unrecognized_opts=
1164 ac_unrecognized_sep=
1165 # The variables have the same names as the options, with
1166 # dashes changed to underlines.
1167 cache_file=/dev/null
1168 exec_prefix=NONE
1169 no_create=
1170 no_recursion=
1171 prefix=NONE
1172 program_prefix=NONE
1173 program_suffix=NONE
1174 program_transform_name=s,x,x,
1175 silent=
1176 site=
1177 srcdir=
1178 verbose=
1179 x_includes=NONE
1180 x_libraries=NONE
1181
1182 # Installation directory options.
1183 # These are left unexpanded so users can "make install exec_prefix=/foo"
1184 # and all the variables that are supposed to be based on exec_prefix
1185 # by default will actually change.
1186 # Use braces instead of parens because sh, perl, etc. also accept them.
1187 # (The list follows the same order as the GNU Coding Standards.)
1188 bindir='${exec_prefix}/bin'
1189 sbindir='${exec_prefix}/sbin'
1190 libexecdir='${exec_prefix}/libexec'
1191 datarootdir='${prefix}/share'
1192 datadir='${datarootdir}'
1193 sysconfdir='${prefix}/etc'
1194 sharedstatedir='${prefix}/com'
1195 localstatedir='${prefix}/var'
1196 includedir='${prefix}/include'
1197 oldincludedir='/usr/include'
1198 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1199 infodir='${datarootdir}/info'
1200 htmldir='${docdir}'
1201 dvidir='${docdir}'
1202 pdfdir='${docdir}'
1203 psdir='${docdir}'
1204 libdir='${exec_prefix}/lib'
1205 localedir='${datarootdir}/locale'
1206 mandir='${datarootdir}/man'
1207
1208 ac_prev=
1209 ac_dashdash=
1210 for ac_option
1211 do
1212   # If the previous option needs an argument, assign it.
1213   if test -n "$ac_prev"; then
1214     eval $ac_prev=\$ac_option
1215     ac_prev=
1216     continue
1217   fi
1218
1219   case $ac_option in
1220   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1221   *=)   ac_optarg= ;;
1222   *)    ac_optarg=yes ;;
1223   esac
1224
1225   # Accept the important Cygnus configure options, so we can diagnose typos.
1226
1227   case $ac_dashdash$ac_option in
1228   --)
1229     ac_dashdash=yes ;;
1230
1231   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1232     ac_prev=bindir ;;
1233   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1234     bindir=$ac_optarg ;;
1235
1236   -build | --build | --buil | --bui | --bu)
1237     ac_prev=build_alias ;;
1238   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1239     build_alias=$ac_optarg ;;
1240
1241   -cache-file | --cache-file | --cache-fil | --cache-fi \
1242   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1243     ac_prev=cache_file ;;
1244   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1245   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1246     cache_file=$ac_optarg ;;
1247
1248   --config-cache | -C)
1249     cache_file=config.cache ;;
1250
1251   -datadir | --datadir | --datadi | --datad)
1252     ac_prev=datadir ;;
1253   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1254     datadir=$ac_optarg ;;
1255
1256   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1257   | --dataroo | --dataro | --datar)
1258     ac_prev=datarootdir ;;
1259   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1260   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1261     datarootdir=$ac_optarg ;;
1262
1263   -disable-* | --disable-*)
1264     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1265     # Reject names that are not valid shell variable names.
1266     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267       as_fn_error $? "invalid feature name: $ac_useropt"
1268     ac_useropt_orig=$ac_useropt
1269     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270     case $ac_user_opts in
1271       *"
1272 "enable_$ac_useropt"
1273 "*) ;;
1274       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1275          ac_unrecognized_sep=', ';;
1276     esac
1277     eval enable_$ac_useropt=no ;;
1278
1279   -docdir | --docdir | --docdi | --doc | --do)
1280     ac_prev=docdir ;;
1281   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1282     docdir=$ac_optarg ;;
1283
1284   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1285     ac_prev=dvidir ;;
1286   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1287     dvidir=$ac_optarg ;;
1288
1289   -enable-* | --enable-*)
1290     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293       as_fn_error $? "invalid feature name: $ac_useropt"
1294     ac_useropt_orig=$ac_useropt
1295     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296     case $ac_user_opts in
1297       *"
1298 "enable_$ac_useropt"
1299 "*) ;;
1300       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1301          ac_unrecognized_sep=', ';;
1302     esac
1303     eval enable_$ac_useropt=\$ac_optarg ;;
1304
1305   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1306   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1307   | --exec | --exe | --ex)
1308     ac_prev=exec_prefix ;;
1309   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1310   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1311   | --exec=* | --exe=* | --ex=*)
1312     exec_prefix=$ac_optarg ;;
1313
1314   -gas | --gas | --ga | --g)
1315     # Obsolete; use --with-gas.
1316     with_gas=yes ;;
1317
1318   -help | --help | --hel | --he | -h)
1319     ac_init_help=long ;;
1320   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1321     ac_init_help=recursive ;;
1322   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1323     ac_init_help=short ;;
1324
1325   -host | --host | --hos | --ho)
1326     ac_prev=host_alias ;;
1327   -host=* | --host=* | --hos=* | --ho=*)
1328     host_alias=$ac_optarg ;;
1329
1330   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1331     ac_prev=htmldir ;;
1332   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1333   | --ht=*)
1334     htmldir=$ac_optarg ;;
1335
1336   -includedir | --includedir | --includedi | --included | --include \
1337   | --includ | --inclu | --incl | --inc)
1338     ac_prev=includedir ;;
1339   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1340   | --includ=* | --inclu=* | --incl=* | --inc=*)
1341     includedir=$ac_optarg ;;
1342
1343   -infodir | --infodir | --infodi | --infod | --info | --inf)
1344     ac_prev=infodir ;;
1345   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1346     infodir=$ac_optarg ;;
1347
1348   -libdir | --libdir | --libdi | --libd)
1349     ac_prev=libdir ;;
1350   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1351     libdir=$ac_optarg ;;
1352
1353   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1354   | --libexe | --libex | --libe)
1355     ac_prev=libexecdir ;;
1356   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1357   | --libexe=* | --libex=* | --libe=*)
1358     libexecdir=$ac_optarg ;;
1359
1360   -localedir | --localedir | --localedi | --localed | --locale)
1361     ac_prev=localedir ;;
1362   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1363     localedir=$ac_optarg ;;
1364
1365   -localstatedir | --localstatedir | --localstatedi | --localstated \
1366   | --localstate | --localstat | --localsta | --localst | --locals)
1367     ac_prev=localstatedir ;;
1368   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1369   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1370     localstatedir=$ac_optarg ;;
1371
1372   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1373     ac_prev=mandir ;;
1374   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1375     mandir=$ac_optarg ;;
1376
1377   -nfp | --nfp | --nf)
1378     # Obsolete; use --without-fp.
1379     with_fp=no ;;
1380
1381   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1382   | --no-cr | --no-c | -n)
1383     no_create=yes ;;
1384
1385   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1386   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1387     no_recursion=yes ;;
1388
1389   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1390   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1391   | --oldin | --oldi | --old | --ol | --o)
1392     ac_prev=oldincludedir ;;
1393   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1394   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1395   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1396     oldincludedir=$ac_optarg ;;
1397
1398   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1399     ac_prev=prefix ;;
1400   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1401     prefix=$ac_optarg ;;
1402
1403   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1404   | --program-pre | --program-pr | --program-p)
1405     ac_prev=program_prefix ;;
1406   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1407   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1408     program_prefix=$ac_optarg ;;
1409
1410   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1411   | --program-suf | --program-su | --program-s)
1412     ac_prev=program_suffix ;;
1413   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1414   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1415     program_suffix=$ac_optarg ;;
1416
1417   -program-transform-name | --program-transform-name \
1418   | --program-transform-nam | --program-transform-na \
1419   | --program-transform-n | --program-transform- \
1420   | --program-transform | --program-transfor \
1421   | --program-transfo | --program-transf \
1422   | --program-trans | --program-tran \
1423   | --progr-tra | --program-tr | --program-t)
1424     ac_prev=program_transform_name ;;
1425   -program-transform-name=* | --program-transform-name=* \
1426   | --program-transform-nam=* | --program-transform-na=* \
1427   | --program-transform-n=* | --program-transform-=* \
1428   | --program-transform=* | --program-transfor=* \
1429   | --program-transfo=* | --program-transf=* \
1430   | --program-trans=* | --program-tran=* \
1431   | --progr-tra=* | --program-tr=* | --program-t=*)
1432     program_transform_name=$ac_optarg ;;
1433
1434   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1435     ac_prev=pdfdir ;;
1436   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1437     pdfdir=$ac_optarg ;;
1438
1439   -psdir | --psdir | --psdi | --psd | --ps)
1440     ac_prev=psdir ;;
1441   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1442     psdir=$ac_optarg ;;
1443
1444   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1445   | -silent | --silent | --silen | --sile | --sil)
1446     silent=yes ;;
1447
1448   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1449     ac_prev=sbindir ;;
1450   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1451   | --sbi=* | --sb=*)
1452     sbindir=$ac_optarg ;;
1453
1454   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1455   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1456   | --sharedst | --shareds | --shared | --share | --shar \
1457   | --sha | --sh)
1458     ac_prev=sharedstatedir ;;
1459   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1460   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1461   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1462   | --sha=* | --sh=*)
1463     sharedstatedir=$ac_optarg ;;
1464
1465   -site | --site | --sit)
1466     ac_prev=site ;;
1467   -site=* | --site=* | --sit=*)
1468     site=$ac_optarg ;;
1469
1470   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1471     ac_prev=srcdir ;;
1472   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1473     srcdir=$ac_optarg ;;
1474
1475   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1476   | --syscon | --sysco | --sysc | --sys | --sy)
1477     ac_prev=sysconfdir ;;
1478   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1479   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1480     sysconfdir=$ac_optarg ;;
1481
1482   -target | --target | --targe | --targ | --tar | --ta | --t)
1483     ac_prev=target_alias ;;
1484   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1485     target_alias=$ac_optarg ;;
1486
1487   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1488     verbose=yes ;;
1489
1490   -version | --version | --versio | --versi | --vers | -V)
1491     ac_init_version=: ;;
1492
1493   -with-* | --with-*)
1494     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1495     # Reject names that are not valid shell variable names.
1496     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1497       as_fn_error $? "invalid package name: $ac_useropt"
1498     ac_useropt_orig=$ac_useropt
1499     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1500     case $ac_user_opts in
1501       *"
1502 "with_$ac_useropt"
1503 "*) ;;
1504       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1505          ac_unrecognized_sep=', ';;
1506     esac
1507     eval with_$ac_useropt=\$ac_optarg ;;
1508
1509   -without-* | --without-*)
1510     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1511     # Reject names that are not valid shell variable names.
1512     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1513       as_fn_error $? "invalid package name: $ac_useropt"
1514     ac_useropt_orig=$ac_useropt
1515     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1516     case $ac_user_opts in
1517       *"
1518 "with_$ac_useropt"
1519 "*) ;;
1520       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1521          ac_unrecognized_sep=', ';;
1522     esac
1523     eval with_$ac_useropt=no ;;
1524
1525   --x)
1526     # Obsolete; use --with-x.
1527     with_x=yes ;;
1528
1529   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1530   | --x-incl | --x-inc | --x-in | --x-i)
1531     ac_prev=x_includes ;;
1532   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1533   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1534     x_includes=$ac_optarg ;;
1535
1536   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1537   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1538     ac_prev=x_libraries ;;
1539   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1540   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1541     x_libraries=$ac_optarg ;;
1542
1543   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1544 Try \`$0 --help' for more information"
1545     ;;
1546
1547   *=*)
1548     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1549     # Reject names that are not valid shell variable names.
1550     case $ac_envvar in #(
1551       '' | [0-9]* | *[!_$as_cr_alnum]* )
1552       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1553     esac
1554     eval $ac_envvar=\$ac_optarg
1555     export $ac_envvar ;;
1556
1557   *)
1558     # FIXME: should be removed in autoconf 3.0.
1559     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1560     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1561       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1562     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1563     ;;
1564
1565   esac
1566 done
1567
1568 if test -n "$ac_prev"; then
1569   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1570   as_fn_error $? "missing argument to $ac_option"
1571 fi
1572
1573 if test -n "$ac_unrecognized_opts"; then
1574   case $enable_option_checking in
1575     no) ;;
1576     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1577     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1578   esac
1579 fi
1580
1581 # Check all directory arguments for consistency.
1582 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1583                 datadir sysconfdir sharedstatedir localstatedir includedir \
1584                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1585                 libdir localedir mandir
1586 do
1587   eval ac_val=\$$ac_var
1588   # Remove trailing slashes.
1589   case $ac_val in
1590     */ )
1591       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1592       eval $ac_var=\$ac_val;;
1593   esac
1594   # Be sure to have absolute directory names.
1595   case $ac_val in
1596     [\\/$]* | ?:[\\/]* )  continue;;
1597     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1598   esac
1599   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1600 done
1601
1602 # There might be people who depend on the old broken behavior: `$host'
1603 # used to hold the argument of --host etc.
1604 # FIXME: To remove some day.
1605 build=$build_alias
1606 host=$host_alias
1607 target=$target_alias
1608
1609 # FIXME: To remove some day.
1610 if test "x$host_alias" != x; then
1611   if test "x$build_alias" = x; then
1612     cross_compiling=maybe
1613     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1614     If a cross compiler is detected then cross compile mode will be used" >&2
1615   elif test "x$build_alias" != "x$host_alias"; then
1616     cross_compiling=yes
1617   fi
1618 fi
1619
1620 ac_tool_prefix=
1621 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1622
1623 test "$silent" = yes && exec 6>/dev/null
1624
1625
1626 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1627 ac_ls_di=`ls -di .` &&
1628 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1629   as_fn_error $? "working directory cannot be determined"
1630 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1631   as_fn_error $? "pwd does not report name of working directory"
1632
1633
1634 # Find the source files, if location was not specified.
1635 if test -z "$srcdir"; then
1636   ac_srcdir_defaulted=yes
1637   # Try the directory containing this script, then the parent directory.
1638   ac_confdir=`$as_dirname -- "$as_myself" ||
1639 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1640          X"$as_myself" : 'X\(//\)[^/]' \| \
1641          X"$as_myself" : 'X\(//\)$' \| \
1642          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1643 $as_echo X"$as_myself" |
1644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1645             s//\1/
1646             q
1647           }
1648           /^X\(\/\/\)[^/].*/{
1649             s//\1/
1650             q
1651           }
1652           /^X\(\/\/\)$/{
1653             s//\1/
1654             q
1655           }
1656           /^X\(\/\).*/{
1657             s//\1/
1658             q
1659           }
1660           s/.*/./; q'`
1661   srcdir=$ac_confdir
1662   if test ! -r "$srcdir/$ac_unique_file"; then
1663     srcdir=..
1664   fi
1665 else
1666   ac_srcdir_defaulted=no
1667 fi
1668 if test ! -r "$srcdir/$ac_unique_file"; then
1669   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1670   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1671 fi
1672 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1673 ac_abs_confdir=`(
1674         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1675         pwd)`
1676 # When building in place, set srcdir=.
1677 if test "$ac_abs_confdir" = "$ac_pwd"; then
1678   srcdir=.
1679 fi
1680 # Remove unnecessary trailing slashes from srcdir.
1681 # Double slashes in file names in object file debugging info
1682 # mess up M-x gdb in Emacs.
1683 case $srcdir in
1684 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1685 esac
1686 for ac_var in $ac_precious_vars; do
1687   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1688   eval ac_env_${ac_var}_value=\$${ac_var}
1689   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1690   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1691 done
1692
1693 #
1694 # Report the --help message.
1695 #
1696 if test "$ac_init_help" = "long"; then
1697   # Omit some internal or obsolete options to make the list less imposing.
1698   # This message is too long to be a string in the A/UX 3.1 sh.
1699   cat <<_ACEOF
1700 \`configure' configures bacula 5.1.14 to adapt to many kinds of systems.
1701
1702 Usage: $0 [OPTION]... [VAR=VALUE]...
1703
1704 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1705 VAR=VALUE.  See below for descriptions of some of the useful variables.
1706
1707 Defaults for the options are specified in brackets.
1708
1709 Configuration:
1710   -h, --help              display this help and exit
1711       --help=short        display options specific to this package
1712       --help=recursive    display the short help of all the included packages
1713   -V, --version           display version information and exit
1714   -q, --quiet, --silent   do not print \`checking ...' messages
1715       --cache-file=FILE   cache test results in FILE [disabled]
1716   -C, --config-cache      alias for \`--cache-file=config.cache'
1717   -n, --no-create         do not create output files
1718       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1719
1720 Installation directories:
1721   --prefix=PREFIX         install architecture-independent files in PREFIX
1722                           [$ac_default_prefix]
1723   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1724                           [PREFIX]
1725
1726 By default, \`make install' will install all the files in
1727 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1728 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1729 for instance \`--prefix=\$HOME'.
1730
1731 For better control, use the options below.
1732
1733 Fine tuning of the installation directories:
1734   --bindir=DIR            user executables [EPREFIX/bin]
1735   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1736   --libexecdir=DIR        program executables [EPREFIX/libexec]
1737   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1738   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1739   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1740   --libdir=DIR            object code libraries [EPREFIX/lib]
1741   --includedir=DIR        C header files [PREFIX/include]
1742   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1743   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1744   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1745   --infodir=DIR           info documentation [DATAROOTDIR/info]
1746   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1747   --mandir=DIR            man documentation [DATAROOTDIR/man]
1748   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1749   --htmldir=DIR           html documentation [DOCDIR]
1750   --dvidir=DIR            dvi documentation [DOCDIR]
1751   --pdfdir=DIR            pdf documentation [DOCDIR]
1752   --psdir=DIR             ps documentation [DOCDIR]
1753 _ACEOF
1754
1755   cat <<\_ACEOF
1756
1757 X features:
1758   --x-includes=DIR    X include files are in DIR
1759   --x-libraries=DIR   X library files are in DIR
1760
1761 System types:
1762   --build=BUILD     configure for building on BUILD [guessed]
1763   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1764 _ACEOF
1765 fi
1766
1767 if test -n "$ac_init_help"; then
1768   case $ac_init_help in
1769      short | recursive ) echo "Configuration of bacula 5.1.14:";;
1770    esac
1771   cat <<\_ACEOF
1772
1773 Optional Features:
1774   --disable-option-checking  ignore unrecognized --enable/--with options
1775   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1776   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1777   --enable-libtool        enable building using GNU libtool [default=yes]
1778   --enable-shared[=PKGS]  build shared libraries [default=yes]
1779   --enable-static[=PKGS]  build static libraries [default=no]
1780   --enable-fast-install[=PKGS]
1781                           optimize for fast installation [default=yes]
1782   --disable-libtool-lock  avoid locking (might break parallel builds)
1783   --enable-includes       enable installing of include files [default=no]
1784   --disable-nls           do not use Native Language Support
1785   --disable-rpath         do not hardcode runtime library paths
1786   --enable-gnome          enable build of bgnome-console GUI [default=no]
1787   --enable-bat            enable build of bat Qt4 GUI [default=no]
1788   --enable-bwx-console    enable build of wxWidgets console [default=no]
1789   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1790                           KDE [default=no]
1791   --enable-smartalloc     enable smartalloc debugging support [default=no]
1792   --enable-lockmgr        enable lock manager support [default=no]
1793   --enable-static-tools   enable static tape tools [default=no]
1794   --enable-static-fd      enable static File daemon [default=no]
1795   --enable-static-sd      enable static Storage daemon [default=no]
1796   --enable-static-dir     enable static Director [default=no]
1797   --enable-static-cons    enable static Console [default=no]
1798   --enable-client-only    build client (File daemon) only [default=no]
1799   --enable-build-dird     enable building of dird (Director) [default=yes]
1800   --enable-build-stored   enable building of stored (Storage daemon)
1801                           [default=yes]
1802   --disable-conio         disable conio support [default=no]
1803   --enable-ipv6           enable ipv6 support [default=yes]
1804   --disable-readline      disable readline support [default=yes]
1805   --enable-batch-insert   enable the DB batch insert code [default=yes]
1806   --disable-largefile     omit support for large files
1807   --disable-afs           disable afs support [default=auto]
1808   --disable-acl           disable acl support [default=auto]
1809   --disable-xattr         disable xattr support [default=auto]
1810
1811 Optional Packages:
1812   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1813   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1814   --with-pic              try to use only PIC/non-PIC objects [default=use
1815                           both]
1816   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1817   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1818   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1819   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1820   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1821   --without-libintl-prefix     don't search for libintl in includedir and libdir
1822   --with-included-gettext use the GNU gettext library included here
1823   --with-readline[=DIR]   specify readline library directory
1824   --with-python[=DIR]     Include Python support. DIR is the Python base
1825                           install directory, default is to search through a
1826                           number of common places for the Python files.
1827   --with-tcp-wrappers[=DIR]
1828                           enable tcpwrappers support
1829   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1830   --with-working-dir=PATH specify path of Bacula working directory
1831   --with-archivedir=PATH  specify path of SD archive directory
1832   --with-basename=RESNAME specify base resource name for daemons
1833   --with-hostname=RESNAME specify host name for daemons
1834   --with-scriptdir=PATH   specify path of Bacula scripts directory
1835   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1836   --with-logdir=PATH      specify path of Bacula logs directory
1837   --with-plugindir=PATH   specify path of Bacula plugins directory
1838   --with-dump-email=EMAIL dump email address
1839   --with-job-email=EMAIL  job output email address
1840   --with-smtp-host=HOST   SMTP mail host address
1841   --with-pid-dir=PATH     specify location of Bacula pid files
1842   --with-subsys-dir=PATH  specify location of Bacula subsys file
1843   --with-baseport=PORT    specify base port address for daemons
1844   --with-dir-password=PASSWORD
1845                           specify Director's password
1846   --with-fd-password=PASSWORD
1847                           specify Client's password
1848   --with-sd-password=PASSWORD
1849                           specify Storage daemon's password
1850   --with-mon-dir-password=PASSWORD
1851                           specify Director's password used by the monitor
1852   --with-mon-fd-password=PASSWORD
1853                           specify Client's password used by the monitor
1854   --with-mon-sd-password=PASSWORD
1855                           specify Storage daemon's password used by the
1856                           monitor
1857   --with-db-name=DBNAME   specify database name [default=bacula]
1858   --with-db-user=UNAME    specify database user [default=bacula]
1859   --with-db-password=PWD  specify database password [default=*none*]
1860   --with-db-port=DBPORT   specify a database port [default=null]
1861   --with-dir-user=USER    specify user for Director daemon
1862   --with-dir-group=GROUP  specify group for Director daemon
1863   --with-sd-user=USER     specify user for Storage daemon
1864   --with-sd-group=GROUP   specify group for Storage daemon
1865   --with-fd-user=USER     specify user for File daemon
1866   --with-fd-group=GROUP   specify group for File daemon
1867   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1868   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1869                           base install directory, [default=/usr/local/pgsql]
1870   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1871                           directory, default is to search through a number of
1872                           common places for the MySQL files.
1873   --with-embedded-mysql[=DIR]
1874                           Include MySQL support. DIR is the MySQL base install
1875                           directory, default is to search through a number of
1876                           common places for the MySQL files.
1877   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1878                           install directory, default is to search through a
1879                           number of common places for the SQLite3 files.
1880   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1881                           install directory, default is to search through a
1882                           number of common places for the Ingres files.
1883   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1884                           directory, default is to search through a number of
1885                           common places for the DBI files.
1886   --with-dbi-driver[=DRIVER]
1887                           Suport for DBI driver. DRIVER is the one DBI driver
1888                           like Mysql, Postgresql, others. Default is to not
1889                           configure any driver.
1890   --with-x                use the X Window System
1891   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1892
1893 Some influential environment variables:
1894   CC          C compiler command
1895   CFLAGS      C compiler flags
1896   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1897               nonstandard directory <lib dir>
1898   LIBS        libraries to pass to the linker, e.g. -l<library>
1899   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1900               you have headers in a nonstandard directory <include dir>
1901   CXX         C++ compiler command
1902   CXXFLAGS    C++ compiler flags
1903   CPP         C preprocessor
1904   WXCONFIG    wx-config command. On some systems, you must set it to
1905               wx-config-2.6 to use wxWidgets 2.6.
1906   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1907   CXXCPP      C++ preprocessor
1908   XMKMF       Path to xmkmf, Makefile generator for X Window System
1909
1910 Use these variables to override the choices made by `configure' or to help
1911 it to find libraries and programs with nonstandard names/locations.
1912
1913 Report bugs to the package provider.
1914 _ACEOF
1915 ac_status=$?
1916 fi
1917
1918 if test "$ac_init_help" = "recursive"; then
1919   # If there are subdirs, report their specific --help.
1920   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1921     test -d "$ac_dir" ||
1922       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1923       continue
1924     ac_builddir=.
1925
1926 case "$ac_dir" in
1927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1928 *)
1929   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1930   # A ".." for each directory in $ac_dir_suffix.
1931   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1932   case $ac_top_builddir_sub in
1933   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1934   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1935   esac ;;
1936 esac
1937 ac_abs_top_builddir=$ac_pwd
1938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1939 # for backward compatibility:
1940 ac_top_builddir=$ac_top_build_prefix
1941
1942 case $srcdir in
1943   .)  # We are building in place.
1944     ac_srcdir=.
1945     ac_top_srcdir=$ac_top_builddir_sub
1946     ac_abs_top_srcdir=$ac_pwd ;;
1947   [\\/]* | ?:[\\/]* )  # Absolute name.
1948     ac_srcdir=$srcdir$ac_dir_suffix;
1949     ac_top_srcdir=$srcdir
1950     ac_abs_top_srcdir=$srcdir ;;
1951   *) # Relative name.
1952     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1953     ac_top_srcdir=$ac_top_build_prefix$srcdir
1954     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1955 esac
1956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1957
1958     cd "$ac_dir" || { ac_status=$?; continue; }
1959     # Check for guested configure.
1960     if test -f "$ac_srcdir/configure.gnu"; then
1961       echo &&
1962       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1963     elif test -f "$ac_srcdir/configure"; then
1964       echo &&
1965       $SHELL "$ac_srcdir/configure" --help=recursive
1966     else
1967       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1968     fi || ac_status=$?
1969     cd "$ac_pwd" || { ac_status=$?; break; }
1970   done
1971 fi
1972
1973 test -n "$ac_init_help" && exit $ac_status
1974 if $ac_init_version; then
1975   cat <<\_ACEOF
1976 bacula configure 5.1.14
1977 generated by GNU Autoconf 2.68
1978
1979 Copyright (C) 2010 Free Software Foundation, Inc.
1980 This configure script is free software; the Free Software Foundation
1981 gives unlimited permission to copy, distribute and modify it.
1982 _ACEOF
1983   exit
1984 fi
1985
1986 ## ------------------------ ##
1987 ## Autoconf initialization. ##
1988 ## ------------------------ ##
1989
1990 # ac_fn_c_try_compile LINENO
1991 # --------------------------
1992 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1993 ac_fn_c_try_compile ()
1994 {
1995   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996   rm -f conftest.$ac_objext
1997   if { { ac_try="$ac_compile"
1998 case "(($ac_try" in
1999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000   *) ac_try_echo=$ac_try;;
2001 esac
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004   (eval "$ac_compile") 2>conftest.err
2005   ac_status=$?
2006   if test -s conftest.err; then
2007     grep -v '^ *+' conftest.err >conftest.er1
2008     cat conftest.er1 >&5
2009     mv -f conftest.er1 conftest.err
2010   fi
2011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012   test $ac_status = 0; } && {
2013          test -z "$ac_c_werror_flag" ||
2014          test ! -s conftest.err
2015        } && test -s conftest.$ac_objext; then :
2016   ac_retval=0
2017 else
2018   $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2020
2021         ac_retval=1
2022 fi
2023   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024   as_fn_set_status $ac_retval
2025
2026 } # ac_fn_c_try_compile
2027
2028 # ac_fn_cxx_try_compile LINENO
2029 # ----------------------------
2030 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2031 ac_fn_cxx_try_compile ()
2032 {
2033   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034   rm -f conftest.$ac_objext
2035   if { { ac_try="$ac_compile"
2036 case "(($ac_try" in
2037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2038   *) ac_try_echo=$ac_try;;
2039 esac
2040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2041 $as_echo "$ac_try_echo"; } >&5
2042   (eval "$ac_compile") 2>conftest.err
2043   ac_status=$?
2044   if test -s conftest.err; then
2045     grep -v '^ *+' conftest.err >conftest.er1
2046     cat conftest.er1 >&5
2047     mv -f conftest.er1 conftest.err
2048   fi
2049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050   test $ac_status = 0; } && {
2051          test -z "$ac_cxx_werror_flag" ||
2052          test ! -s conftest.err
2053        } && test -s conftest.$ac_objext; then :
2054   ac_retval=0
2055 else
2056   $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2058
2059         ac_retval=1
2060 fi
2061   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062   as_fn_set_status $ac_retval
2063
2064 } # ac_fn_cxx_try_compile
2065
2066 # ac_fn_c_try_cpp LINENO
2067 # ----------------------
2068 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2069 ac_fn_c_try_cpp ()
2070 {
2071   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072   if { { ac_try="$ac_cpp conftest.$ac_ext"
2073 case "(($ac_try" in
2074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075   *) ac_try_echo=$ac_try;;
2076 esac
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2080   ac_status=$?
2081   if test -s conftest.err; then
2082     grep -v '^ *+' conftest.err >conftest.er1
2083     cat conftest.er1 >&5
2084     mv -f conftest.er1 conftest.err
2085   fi
2086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087   test $ac_status = 0; } > conftest.i && {
2088          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2089          test ! -s conftest.err
2090        }; then :
2091   ac_retval=0
2092 else
2093   $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2095
2096     ac_retval=1
2097 fi
2098   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099   as_fn_set_status $ac_retval
2100
2101 } # ac_fn_c_try_cpp
2102
2103 # ac_fn_c_try_link LINENO
2104 # -----------------------
2105 # Try to link conftest.$ac_ext, and return whether this succeeded.
2106 ac_fn_c_try_link ()
2107 {
2108   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109   rm -f conftest.$ac_objext conftest$ac_exeext
2110   if { { ac_try="$ac_link"
2111 case "(($ac_try" in
2112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113   *) ac_try_echo=$ac_try;;
2114 esac
2115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116 $as_echo "$ac_try_echo"; } >&5
2117   (eval "$ac_link") 2>conftest.err
2118   ac_status=$?
2119   if test -s conftest.err; then
2120     grep -v '^ *+' conftest.err >conftest.er1
2121     cat conftest.er1 >&5
2122     mv -f conftest.er1 conftest.err
2123   fi
2124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125   test $ac_status = 0; } && {
2126          test -z "$ac_c_werror_flag" ||
2127          test ! -s conftest.err
2128        } && test -s conftest$ac_exeext && {
2129          test "$cross_compiling" = yes ||
2130          $as_test_x conftest$ac_exeext
2131        }; then :
2132   ac_retval=0
2133 else
2134   $as_echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.$ac_ext >&5
2136
2137         ac_retval=1
2138 fi
2139   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2140   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2141   # interfere with the next link command; also delete a directory that is
2142   # left behind by Apple's compiler.  We do this before executing the actions.
2143   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2144   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145   as_fn_set_status $ac_retval
2146
2147 } # ac_fn_c_try_link
2148
2149 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2150 # -------------------------------------------------------
2151 # Tests whether HEADER exists and can be compiled using the include files in
2152 # INCLUDES, setting the cache variable VAR accordingly.
2153 ac_fn_c_check_header_compile ()
2154 {
2155   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if eval \${$3+:} false; then :
2159   $as_echo_n "(cached) " >&6
2160 else
2161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 $4
2164 #include <$2>
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167   eval "$3=yes"
2168 else
2169   eval "$3=no"
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 fi
2173 eval ac_res=\$$3
2174                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177
2178 } # ac_fn_c_check_header_compile
2179
2180 # ac_fn_c_try_run LINENO
2181 # ----------------------
2182 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2183 # that executables *can* be run.
2184 ac_fn_c_try_run ()
2185 {
2186   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187   if { { ac_try="$ac_link"
2188 case "(($ac_try" in
2189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2190   *) ac_try_echo=$ac_try;;
2191 esac
2192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2193 $as_echo "$ac_try_echo"; } >&5
2194   (eval "$ac_link") 2>&5
2195   ac_status=$?
2196   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2198   { { case "(($ac_try" in
2199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200   *) ac_try_echo=$ac_try;;
2201 esac
2202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2203 $as_echo "$ac_try_echo"; } >&5
2204   (eval "$ac_try") 2>&5
2205   ac_status=$?
2206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2207   test $ac_status = 0; }; }; then :
2208   ac_retval=0
2209 else
2210   $as_echo "$as_me: program exited with status $ac_status" >&5
2211        $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213
2214        ac_retval=$ac_status
2215 fi
2216   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2217   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218   as_fn_set_status $ac_retval
2219
2220 } # ac_fn_c_try_run
2221
2222 # ac_fn_c_check_func LINENO FUNC VAR
2223 # ----------------------------------
2224 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2225 ac_fn_c_check_func ()
2226 {
2227   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229 $as_echo_n "checking for $2... " >&6; }
2230 if eval \${$3+:} false; then :
2231   $as_echo_n "(cached) " >&6
2232 else
2233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h.  */
2235 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2237 #define $2 innocuous_$2
2238
2239 /* System header to define __stub macros and hopefully few prototypes,
2240     which can conflict with char $2 (); below.
2241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2242     <limits.h> exists even on freestanding compilers.  */
2243
2244 #ifdef __STDC__
2245 # include <limits.h>
2246 #else
2247 # include <assert.h>
2248 #endif
2249
2250 #undef $2
2251
2252 /* Override any GCC internal prototype to avoid an error.
2253    Use char because int might match the return type of a GCC
2254    builtin and then its argument prototype would still apply.  */
2255 #ifdef __cplusplus
2256 extern "C"
2257 #endif
2258 char $2 ();
2259 /* The GNU C library defines this for functions which it implements
2260     to always fail with ENOSYS.  Some functions are actually named
2261     something starting with __ and the normal name is an alias.  */
2262 #if defined __stub_$2 || defined __stub___$2
2263 choke me
2264 #endif
2265
2266 int
2267 main ()
2268 {
2269 return $2 ();
2270   ;
2271   return 0;
2272 }
2273 _ACEOF
2274 if ac_fn_c_try_link "$LINENO"; then :
2275   eval "$3=yes"
2276 else
2277   eval "$3=no"
2278 fi
2279 rm -f core conftest.err conftest.$ac_objext \
2280     conftest$ac_exeext conftest.$ac_ext
2281 fi
2282 eval ac_res=\$$3
2283                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284 $as_echo "$ac_res" >&6; }
2285   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2286
2287 } # ac_fn_c_check_func
2288
2289 # ac_fn_cxx_try_cpp LINENO
2290 # ------------------------
2291 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2292 ac_fn_cxx_try_cpp ()
2293 {
2294   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295   if { { ac_try="$ac_cpp conftest.$ac_ext"
2296 case "(($ac_try" in
2297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298   *) ac_try_echo=$ac_try;;
2299 esac
2300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2301 $as_echo "$ac_try_echo"; } >&5
2302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2303   ac_status=$?
2304   if test -s conftest.err; then
2305     grep -v '^ *+' conftest.err >conftest.er1
2306     cat conftest.er1 >&5
2307     mv -f conftest.er1 conftest.err
2308   fi
2309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310   test $ac_status = 0; } > conftest.i && {
2311          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2312          test ! -s conftest.err
2313        }; then :
2314   ac_retval=0
2315 else
2316   $as_echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2318
2319     ac_retval=1
2320 fi
2321   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2322   as_fn_set_status $ac_retval
2323
2324 } # ac_fn_cxx_try_cpp
2325
2326 # ac_fn_cxx_try_link LINENO
2327 # -------------------------
2328 # Try to link conftest.$ac_ext, and return whether this succeeded.
2329 ac_fn_cxx_try_link ()
2330 {
2331   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332   rm -f conftest.$ac_objext conftest$ac_exeext
2333   if { { ac_try="$ac_link"
2334 case "(($ac_try" in
2335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336   *) ac_try_echo=$ac_try;;
2337 esac
2338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2339 $as_echo "$ac_try_echo"; } >&5
2340   (eval "$ac_link") 2>conftest.err
2341   ac_status=$?
2342   if test -s conftest.err; then
2343     grep -v '^ *+' conftest.err >conftest.er1
2344     cat conftest.er1 >&5
2345     mv -f conftest.er1 conftest.err
2346   fi
2347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2348   test $ac_status = 0; } && {
2349          test -z "$ac_cxx_werror_flag" ||
2350          test ! -s conftest.err
2351        } && test -s conftest$ac_exeext && {
2352          test "$cross_compiling" = yes ||
2353          $as_test_x conftest$ac_exeext
2354        }; then :
2355   ac_retval=0
2356 else
2357   $as_echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2359
2360         ac_retval=1
2361 fi
2362   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2363   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2364   # interfere with the next link command; also delete a directory that is
2365   # left behind by Apple's compiler.  We do this before executing the actions.
2366   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2367   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368   as_fn_set_status $ac_retval
2369
2370 } # ac_fn_cxx_try_link
2371
2372 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2373 # -------------------------------------------
2374 # Tests whether TYPE exists after having included INCLUDES, setting cache
2375 # variable VAR accordingly.
2376 ac_fn_c_check_type ()
2377 {
2378   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380 $as_echo_n "checking for $2... " >&6; }
2381 if eval \${$3+:} false; then :
2382   $as_echo_n "(cached) " >&6
2383 else
2384   eval "$3=no"
2385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h.  */
2387 $4
2388 int
2389 main ()
2390 {
2391 if (sizeof ($2))
2392          return 0;
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 if ac_fn_c_try_compile "$LINENO"; then :
2398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h.  */
2400 $4
2401 int
2402 main ()
2403 {
2404 if (sizeof (($2)))
2405             return 0;
2406   ;
2407   return 0;
2408 }
2409 _ACEOF
2410 if ac_fn_c_try_compile "$LINENO"; then :
2411
2412 else
2413   eval "$3=yes"
2414 fi
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 fi
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 fi
2419 eval ac_res=\$$3
2420                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2421 $as_echo "$ac_res" >&6; }
2422   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2423
2424 } # ac_fn_c_check_type
2425
2426 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2427 # -------------------------------------------------------
2428 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2429 # the include files in INCLUDES and setting the cache variable VAR
2430 # accordingly.
2431 ac_fn_c_check_header_mongrel ()
2432 {
2433   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434   if eval \${$3+:} false; then :
2435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2436 $as_echo_n "checking for $2... " >&6; }
2437 if eval \${$3+:} false; then :
2438   $as_echo_n "(cached) " >&6
2439 fi
2440 eval ac_res=\$$3
2441                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 else
2444   # Is the header compilable?
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2446 $as_echo_n "checking $2 usability... " >&6; }
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h.  */
2449 $4
2450 #include <$2>
2451 _ACEOF
2452 if ac_fn_c_try_compile "$LINENO"; then :
2453   ac_header_compiler=yes
2454 else
2455   ac_header_compiler=no
2456 fi
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2459 $as_echo "$ac_header_compiler" >&6; }
2460
2461 # Is the header present?
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2463 $as_echo_n "checking $2 presence... " >&6; }
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h.  */
2466 #include <$2>
2467 _ACEOF
2468 if ac_fn_c_try_cpp "$LINENO"; then :
2469   ac_header_preproc=yes
2470 else
2471   ac_header_preproc=no
2472 fi
2473 rm -f conftest.err conftest.i conftest.$ac_ext
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2475 $as_echo "$ac_header_preproc" >&6; }
2476
2477 # So?  What about this header?
2478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2479   yes:no: )
2480     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2481 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2482     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2483 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2484     ;;
2485   no:yes:* )
2486     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2487 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2488     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2489 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2490     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2491 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2492     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2493 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2494     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2495 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2496     ;;
2497 esac
2498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2499 $as_echo_n "checking for $2... " >&6; }
2500 if eval \${$3+:} false; then :
2501   $as_echo_n "(cached) " >&6
2502 else
2503   eval "$3=\$ac_header_compiler"
2504 fi
2505 eval ac_res=\$$3
2506                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2507 $as_echo "$ac_res" >&6; }
2508 fi
2509   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2510
2511 } # ac_fn_c_check_header_mongrel
2512
2513 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2514 # --------------------------------------------
2515 # Tries to find the compile-time value of EXPR in a program that includes
2516 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2517 # computed
2518 ac_fn_c_compute_int ()
2519 {
2520   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521   if test "$cross_compiling" = yes; then
2522     # Depending upon the size, compute the lo and hi bounds.
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h.  */
2525 $4
2526 int
2527 main ()
2528 {
2529 static int test_array [1 - 2 * !(($2) >= 0)];
2530 test_array [0] = 0
2531
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 if ac_fn_c_try_compile "$LINENO"; then :
2537   ac_lo=0 ac_mid=0
2538   while :; do
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) <= $ac_mid)];
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=$ac_mid; break
2554 else
2555   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2556                         if test $ac_lo -le $ac_mid; then
2557                           ac_lo= ac_hi=
2558                           break
2559                         fi
2560                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2561 fi
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563   done
2564 else
2565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h.  */
2567 $4
2568 int
2569 main ()
2570 {
2571 static int test_array [1 - 2 * !(($2) < 0)];
2572 test_array [0] = 0
2573
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 if ac_fn_c_try_compile "$LINENO"; then :
2579   ac_hi=-1 ac_mid=-1
2580   while :; do
2581     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h.  */
2583 $4
2584 int
2585 main ()
2586 {
2587 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2588 test_array [0] = 0
2589
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_compile "$LINENO"; then :
2595   ac_lo=$ac_mid; break
2596 else
2597   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2598                         if test $ac_mid -le $ac_hi; then
2599                           ac_lo= ac_hi=
2600                           break
2601                         fi
2602                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2603 fi
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605   done
2606 else
2607   ac_lo= ac_hi=
2608 fi
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 fi
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 # Binary search between lo and hi bounds.
2613 while test "x$ac_lo" != "x$ac_hi"; do
2614   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2616 /* end confdefs.h.  */
2617 $4
2618 int
2619 main ()
2620 {
2621 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2622 test_array [0] = 0
2623
2624   ;
2625   return 0;
2626 }
2627 _ACEOF
2628 if ac_fn_c_try_compile "$LINENO"; then :
2629   ac_hi=$ac_mid
2630 else
2631   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2632 fi
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 done
2635 case $ac_lo in #((
2636 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2637 '') ac_retval=1 ;;
2638 esac
2639   else
2640     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h.  */
2642 $4
2643 static long int longval () { return $2; }
2644 static unsigned long int ulongval () { return $2; }
2645 #include <stdio.h>
2646 #include <stdlib.h>
2647 int
2648 main ()
2649 {
2650
2651   FILE *f = fopen ("conftest.val", "w");
2652   if (! f)
2653     return 1;
2654   if (($2) < 0)
2655     {
2656       long int i = longval ();
2657       if (i != ($2))
2658         return 1;
2659       fprintf (f, "%ld", i);
2660     }
2661   else
2662     {
2663       unsigned long int i = ulongval ();
2664       if (i != ($2))
2665         return 1;
2666       fprintf (f, "%lu", i);
2667     }
2668   /* Do not output a trailing newline, as this causes \r\n confusion
2669      on some platforms.  */
2670   return ferror (f) || fclose (f) != 0;
2671
2672   ;
2673   return 0;
2674 }
2675 _ACEOF
2676 if ac_fn_c_try_run "$LINENO"; then :
2677   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2678 else
2679   ac_retval=1
2680 fi
2681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2682   conftest.$ac_objext conftest.beam conftest.$ac_ext
2683 rm -f conftest.val
2684
2685   fi
2686   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2687   as_fn_set_status $ac_retval
2688
2689 } # ac_fn_c_compute_int
2690
2691 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2692 # ----------------------------------------------------
2693 # Tries to find if the field MEMBER exists in type AGGR, after including
2694 # INCLUDES, setting cache variable VAR accordingly.
2695 ac_fn_c_check_member ()
2696 {
2697   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2699 $as_echo_n "checking for $2.$3... " >&6; }
2700 if eval \${$4+:} false; then :
2701   $as_echo_n "(cached) " >&6
2702 else
2703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h.  */
2705 $5
2706 int
2707 main ()
2708 {
2709 static $2 ac_aggr;
2710 if (ac_aggr.$3)
2711 return 0;
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 if ac_fn_c_try_compile "$LINENO"; then :
2717   eval "$4=yes"
2718 else
2719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h.  */
2721 $5
2722 int
2723 main ()
2724 {
2725 static $2 ac_aggr;
2726 if (sizeof ac_aggr.$3)
2727 return 0;
2728   ;
2729   return 0;
2730 }
2731 _ACEOF
2732 if ac_fn_c_try_compile "$LINENO"; then :
2733   eval "$4=yes"
2734 else
2735   eval "$4=no"
2736 fi
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 fi
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 fi
2741 eval ac_res=\$$4
2742                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2743 $as_echo "$ac_res" >&6; }
2744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2745
2746 } # ac_fn_c_check_member
2747
2748 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2749 # ---------------------------------------------
2750 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2751 # accordingly.
2752 ac_fn_c_check_decl ()
2753 {
2754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2755   as_decl_name=`echo $2|sed 's/ *(.*//'`
2756   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2758 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2759 if eval \${$3+:} false; then :
2760   $as_echo_n "(cached) " >&6
2761 else
2762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h.  */
2764 $4
2765 int
2766 main ()
2767 {
2768 #ifndef $as_decl_name
2769 #ifdef __cplusplus
2770   (void) $as_decl_use;
2771 #else
2772   (void) $as_decl_name;
2773 #endif
2774 #endif
2775
2776   ;
2777   return 0;
2778 }
2779 _ACEOF
2780 if ac_fn_c_try_compile "$LINENO"; then :
2781   eval "$3=yes"
2782 else
2783   eval "$3=no"
2784 fi
2785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 fi
2787 eval ac_res=\$$3
2788                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2789 $as_echo "$ac_res" >&6; }
2790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2791
2792 } # ac_fn_c_check_decl
2793
2794 # ac_fn_cxx_try_run LINENO
2795 # ------------------------
2796 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2797 # that executables *can* be run.
2798 ac_fn_cxx_try_run ()
2799 {
2800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2801   if { { ac_try="$ac_link"
2802 case "(($ac_try" in
2803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804   *) ac_try_echo=$ac_try;;
2805 esac
2806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2807 $as_echo "$ac_try_echo"; } >&5
2808   (eval "$ac_link") 2>&5
2809   ac_status=$?
2810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2811   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2812   { { case "(($ac_try" in
2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814   *) ac_try_echo=$ac_try;;
2815 esac
2816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2817 $as_echo "$ac_try_echo"; } >&5
2818   (eval "$ac_try") 2>&5
2819   ac_status=$?
2820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2821   test $ac_status = 0; }; }; then :
2822   ac_retval=0
2823 else
2824   $as_echo "$as_me: program exited with status $ac_status" >&5
2825        $as_echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2827
2828        ac_retval=$ac_status
2829 fi
2830   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2831   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2832   as_fn_set_status $ac_retval
2833
2834 } # ac_fn_cxx_try_run
2835
2836 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2837 # ---------------------------------------------------------
2838 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2839 # the include files in INCLUDES and setting the cache variable VAR
2840 # accordingly.
2841 ac_fn_cxx_check_header_mongrel ()
2842 {
2843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2844   if eval \${$3+:} false; then :
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2846 $as_echo_n "checking for $2... " >&6; }
2847 if eval \${$3+:} false; then :
2848   $as_echo_n "(cached) " >&6
2849 fi
2850 eval ac_res=\$$3
2851                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2852 $as_echo "$ac_res" >&6; }
2853 else
2854   # Is the header compilable?
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2856 $as_echo_n "checking $2 usability... " >&6; }
2857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2858 /* end confdefs.h.  */
2859 $4
2860 #include <$2>
2861 _ACEOF
2862 if ac_fn_cxx_try_compile "$LINENO"; then :
2863   ac_header_compiler=yes
2864 else
2865   ac_header_compiler=no
2866 fi
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2869 $as_echo "$ac_header_compiler" >&6; }
2870
2871 # Is the header present?
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2873 $as_echo_n "checking $2 presence... " >&6; }
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h.  */
2876 #include <$2>
2877 _ACEOF
2878 if ac_fn_cxx_try_cpp "$LINENO"; then :
2879   ac_header_preproc=yes
2880 else
2881   ac_header_preproc=no
2882 fi
2883 rm -f conftest.err conftest.i conftest.$ac_ext
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2885 $as_echo "$ac_header_preproc" >&6; }
2886
2887 # So?  What about this header?
2888 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2889   yes:no: )
2890     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2891 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2893 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2894     ;;
2895   no:yes:* )
2896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2897 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2898     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2899 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2901 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2903 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2905 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2906     ;;
2907 esac
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2909 $as_echo_n "checking for $2... " >&6; }
2910 if eval \${$3+:} false; then :
2911   $as_echo_n "(cached) " >&6
2912 else
2913   eval "$3=\$ac_header_compiler"
2914 fi
2915 eval ac_res=\$$3
2916                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2917 $as_echo "$ac_res" >&6; }
2918 fi
2919   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2920
2921 } # ac_fn_cxx_check_header_mongrel
2922 cat >config.log <<_ACEOF
2923 This file contains any messages produced by compilers while
2924 running configure, to aid debugging if configure makes a mistake.
2925
2926 It was created by bacula $as_me 5.1.14, which was
2927 generated by GNU Autoconf 2.68.  Invocation command line was
2928
2929   $ $0 $@
2930
2931 _ACEOF
2932 exec 5>>config.log
2933 {
2934 cat <<_ASUNAME
2935 ## --------- ##
2936 ## Platform. ##
2937 ## --------- ##
2938
2939 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2940 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2941 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2942 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2943 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2944
2945 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2946 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2947
2948 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2949 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2950 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2951 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2952 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2953 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2954 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2955
2956 _ASUNAME
2957
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961   IFS=$as_save_IFS
2962   test -z "$as_dir" && as_dir=.
2963     $as_echo "PATH: $as_dir"
2964   done
2965 IFS=$as_save_IFS
2966
2967 } >&5
2968
2969 cat >&5 <<_ACEOF
2970
2971
2972 ## ----------- ##
2973 ## Core tests. ##
2974 ## ----------- ##
2975
2976 _ACEOF
2977
2978
2979 # Keep a trace of the command line.
2980 # Strip out --no-create and --no-recursion so they do not pile up.
2981 # Strip out --silent because we don't want to record it for future runs.
2982 # Also quote any args containing shell meta-characters.
2983 # Make two passes to allow for proper duplicate-argument suppression.
2984 ac_configure_args=
2985 ac_configure_args0=
2986 ac_configure_args1=
2987 ac_must_keep_next=false
2988 for ac_pass in 1 2
2989 do
2990   for ac_arg
2991   do
2992     case $ac_arg in
2993     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2994     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2995     | -silent | --silent | --silen | --sile | --sil)
2996       continue ;;
2997     *\'*)
2998       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2999     esac
3000     case $ac_pass in
3001     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3002     2)
3003       as_fn_append ac_configure_args1 " '$ac_arg'"
3004       if test $ac_must_keep_next = true; then
3005         ac_must_keep_next=false # Got value, back to normal.
3006       else
3007         case $ac_arg in
3008           *=* | --config-cache | -C | -disable-* | --disable-* \
3009           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3010           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3011           | -with-* | --with-* | -without-* | --without-* | --x)
3012             case "$ac_configure_args0 " in
3013               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3014             esac
3015             ;;
3016           -* ) ac_must_keep_next=true ;;
3017         esac
3018       fi
3019       as_fn_append ac_configure_args " '$ac_arg'"
3020       ;;
3021     esac
3022   done
3023 done
3024 { ac_configure_args0=; unset ac_configure_args0;}
3025 { ac_configure_args1=; unset ac_configure_args1;}
3026
3027 # When interrupted or exit'd, cleanup temporary files, and complete
3028 # config.log.  We remove comments because anyway the quotes in there
3029 # would cause problems or look ugly.
3030 # WARNING: Use '\'' to represent an apostrophe within the trap.
3031 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3032 trap 'exit_status=$?
3033   # Save into config.log some information that might help in debugging.
3034   {
3035     echo
3036
3037     $as_echo "## ---------------- ##
3038 ## Cache variables. ##
3039 ## ---------------- ##"
3040     echo
3041     # The following way of writing the cache mishandles newlines in values,
3042 (
3043   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3044     eval ac_val=\$$ac_var
3045     case $ac_val in #(
3046     *${as_nl}*)
3047       case $ac_var in #(
3048       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3050       esac
3051       case $ac_var in #(
3052       _ | IFS | as_nl) ;; #(
3053       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3054       *) { eval $ac_var=; unset $ac_var;} ;;
3055       esac ;;
3056     esac
3057   done
3058   (set) 2>&1 |
3059     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3060     *${as_nl}ac_space=\ *)
3061       sed -n \
3062         "s/'\''/'\''\\\\'\'''\''/g;
3063           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3064       ;; #(
3065     *)
3066       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3067       ;;
3068     esac |
3069     sort
3070 )
3071     echo
3072
3073     $as_echo "## ----------------- ##
3074 ## Output variables. ##
3075 ## ----------------- ##"
3076     echo
3077     for ac_var in $ac_subst_vars
3078     do
3079       eval ac_val=\$$ac_var
3080       case $ac_val in
3081       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3082       esac
3083       $as_echo "$ac_var='\''$ac_val'\''"
3084     done | sort
3085     echo
3086
3087     if test -n "$ac_subst_files"; then
3088       $as_echo "## ------------------- ##
3089 ## File substitutions. ##
3090 ## ------------------- ##"
3091       echo
3092       for ac_var in $ac_subst_files
3093       do
3094         eval ac_val=\$$ac_var
3095         case $ac_val in
3096         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3097         esac
3098         $as_echo "$ac_var='\''$ac_val'\''"
3099       done | sort
3100       echo
3101     fi
3102
3103     if test -s confdefs.h; then
3104       $as_echo "## ----------- ##
3105 ## confdefs.h. ##
3106 ## ----------- ##"
3107       echo
3108       cat confdefs.h
3109       echo
3110     fi
3111     test "$ac_signal" != 0 &&
3112       $as_echo "$as_me: caught signal $ac_signal"
3113     $as_echo "$as_me: exit $exit_status"
3114   } >&5
3115   rm -f core *.core core.conftest.* &&
3116     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3117     exit $exit_status
3118 ' 0
3119 for ac_signal in 1 2 13 15; do
3120   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3121 done
3122 ac_signal=0
3123
3124 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3125 rm -f -r conftest* confdefs.h
3126
3127 $as_echo "/* confdefs.h */" > confdefs.h
3128
3129 # Predefined preprocessor variables.
3130
3131 cat >>confdefs.h <<_ACEOF
3132 #define PACKAGE_NAME "$PACKAGE_NAME"
3133 _ACEOF
3134
3135 cat >>confdefs.h <<_ACEOF
3136 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3137 _ACEOF
3138
3139 cat >>confdefs.h <<_ACEOF
3140 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3141 _ACEOF
3142
3143 cat >>confdefs.h <<_ACEOF
3144 #define PACKAGE_STRING "$PACKAGE_STRING"
3145 _ACEOF
3146
3147 cat >>confdefs.h <<_ACEOF
3148 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3149 _ACEOF
3150
3151 cat >>confdefs.h <<_ACEOF
3152 #define PACKAGE_URL "$PACKAGE_URL"
3153 _ACEOF
3154
3155
3156 # Let the site file select an alternate cache file if it wants to.
3157 # Prefer an explicitly selected file to automatically selected ones.
3158 ac_site_file1=NONE
3159 ac_site_file2=NONE
3160 if test -n "$CONFIG_SITE"; then
3161   # We do not want a PATH search for config.site.
3162   case $CONFIG_SITE in #((
3163     -*)  ac_site_file1=./$CONFIG_SITE;;
3164     */*) ac_site_file1=$CONFIG_SITE;;
3165     *)   ac_site_file1=./$CONFIG_SITE;;
3166   esac
3167 elif test "x$prefix" != xNONE; then
3168   ac_site_file1=$prefix/share/config.site
3169   ac_site_file2=$prefix/etc/config.site
3170 else
3171   ac_site_file1=$ac_default_prefix/share/config.site
3172   ac_site_file2=$ac_default_prefix/etc/config.site
3173 fi
3174 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3175 do
3176   test "x$ac_site_file" = xNONE && continue
3177   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3178     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3179 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3180     sed 's/^/| /' "$ac_site_file" >&5
3181     . "$ac_site_file" \
3182       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "failed to load site script $ac_site_file
3185 See \`config.log' for more details" "$LINENO" 5; }
3186   fi
3187 done
3188
3189 if test -r "$cache_file"; then
3190   # Some versions of bash will fail to source /dev/null (special files
3191   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3192   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3193     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3194 $as_echo "$as_me: loading cache $cache_file" >&6;}
3195     case $cache_file in
3196       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3197       *)                      . "./$cache_file";;
3198     esac
3199   fi
3200 else
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3202 $as_echo "$as_me: creating cache $cache_file" >&6;}
3203   >$cache_file
3204 fi
3205
3206 as_fn_append ac_header_list " stdlib.h"
3207 as_fn_append ac_header_list " unistd.h"
3208 as_fn_append ac_header_list " sys/param.h"
3209 # Check that the precious variables saved in the cache have kept the same
3210 # value.
3211 ac_cache_corrupted=false
3212 for ac_var in $ac_precious_vars; do
3213   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3214   eval ac_new_set=\$ac_env_${ac_var}_set
3215   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3216   eval ac_new_val=\$ac_env_${ac_var}_value
3217   case $ac_old_set,$ac_new_set in
3218     set,)
3219       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3220 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3221       ac_cache_corrupted=: ;;
3222     ,set)
3223       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3224 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3225       ac_cache_corrupted=: ;;
3226     ,);;
3227     *)
3228       if test "x$ac_old_val" != "x$ac_new_val"; then
3229         # differences in whitespace do not lead to failure.
3230         ac_old_val_w=`echo x $ac_old_val`
3231         ac_new_val_w=`echo x $ac_new_val`
3232         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3233           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3234 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3235           ac_cache_corrupted=:
3236         else
3237           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3238 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3239           eval $ac_var=\$ac_old_val
3240         fi
3241         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3242 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3243         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3244 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3245       fi;;
3246   esac
3247   # Pass precious variables to config.status.
3248   if test "$ac_new_set" = set; then
3249     case $ac_new_val in
3250     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3251     *) ac_arg=$ac_var=$ac_new_val ;;
3252     esac
3253     case " $ac_configure_args " in
3254       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3255       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3256     esac
3257   fi
3258 done
3259 if $ac_cache_corrupted; then
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3263 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3264   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3265 fi
3266 ## -------------------- ##
3267 ## Main body of script. ##
3268 ## -------------------- ##
3269
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275
3276
3277
3278
3279 BUILD_DIR=`pwd`
3280 cd ..
3281 TOP_DIR=`pwd`
3282 cd ${BUILD_DIR}
3283
3284
3285 ac_aux_dir=
3286 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3287   if test -f "$ac_dir/install-sh"; then
3288     ac_aux_dir=$ac_dir
3289     ac_install_sh="$ac_aux_dir/install-sh -c"
3290     break
3291   elif test -f "$ac_dir/install.sh"; then
3292     ac_aux_dir=$ac_dir
3293     ac_install_sh="$ac_aux_dir/install.sh -c"
3294     break
3295   elif test -f "$ac_dir/shtool"; then
3296     ac_aux_dir=$ac_dir
3297     ac_install_sh="$ac_aux_dir/shtool install -c"
3298     break
3299   fi
3300 done
3301 if test -z "$ac_aux_dir"; then
3302   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3303 fi
3304
3305 # These three variables are undocumented and unsupported,
3306 # and are intended to be withdrawn in a future Autoconf release.
3307 # They can cause serious problems if a builder's source tree is in a directory
3308 # whose full name contains unusual characters.
3309 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3310 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3311 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3312
3313
3314 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3315
3316
3317 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3318 WIN32MAINDIR=${BUILD_DIR}
3319 WIN32TOPDIR=${TOP_DIR}
3320
3321
3322
3323
3324 for ac_prog in true
3325 do
3326   # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy $ac_prog; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_path_TRUEPRG+:} false; then :
3331   $as_echo_n "(cached) " >&6
3332 else
3333   case $TRUEPRG in
3334   [\\/]* | ?:[\\/]*)
3335   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3336   ;;
3337   *)
3338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341   IFS=$as_save_IFS
3342   test -z "$as_dir" && as_dir=.
3343     for ac_exec_ext in '' $ac_executable_extensions; do
3344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347     break 2
3348   fi
3349 done
3350   done
3351 IFS=$as_save_IFS
3352
3353   ;;
3354 esac
3355 fi
3356 TRUEPRG=$ac_cv_path_TRUEPRG
3357 if test -n "$TRUEPRG"; then
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3359 $as_echo "$TRUEPRG" >&6; }
3360 else
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 fi
3364
3365
3366   test -n "$TRUEPRG" && break
3367 done
3368 test -n "$TRUEPRG" || TRUEPRG=":"
3369
3370 for ac_prog in false
3371 do
3372   # Extract the first word of "$ac_prog", so it can be a program name with args.
3373 set dummy $ac_prog; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if ${ac_cv_path_FALSEPRG+:} false; then :
3377   $as_echo_n "(cached) " >&6
3378 else
3379   case $FALSEPRG in
3380   [\\/]* | ?:[\\/]*)
3381   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3382   ;;
3383   *)
3384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3386 do
3387   IFS=$as_save_IFS
3388   test -z "$as_dir" && as_dir=.
3389     for ac_exec_ext in '' $ac_executable_extensions; do
3390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393     break 2
3394   fi
3395 done
3396   done
3397 IFS=$as_save_IFS
3398
3399   ;;
3400 esac
3401 fi
3402 FALSEPRG=$ac_cv_path_FALSEPRG
3403 if test -n "$FALSEPRG"; then
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3405 $as_echo "$FALSEPRG" >&6; }
3406 else
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411
3412   test -n "$FALSEPRG" && break
3413 done
3414 test -n "$FALSEPRG" || FALSEPRG=":"
3415
3416
3417
3418 post_host=
3419 if test "x$BACULA" != x; then
3420    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3421 fi
3422 BACULA=${BACULA:-Bacula}
3423 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3424 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3425 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3426 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3427
3428 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3429 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3430 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3431
3432 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3433 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3434 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3435
3436
3437 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3438 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3439
3440 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3441 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3442
3443
3444 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3445
3446 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3447
3448
3449 echo "configuring for ${BACULA} $VERSION ($DATE)"
3450
3451
3452
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 if test -n "$ac_tool_prefix"; then
3459   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_CC+:} false; then :
3464   $as_echo_n "(cached) " >&6
3465 else
3466   if test -n "$CC"; then
3467   ac_cv_prog_CC="$CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472   IFS=$as_save_IFS
3473   test -z "$as_dir" && as_dir=.
3474     for ac_exec_ext in '' $ac_executable_extensions; do
3475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478     break 2
3479   fi
3480 done
3481   done
3482 IFS=$as_save_IFS
3483
3484 fi
3485 fi
3486 CC=$ac_cv_prog_CC
3487 if test -n "$CC"; then
3488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3490 else
3491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3493 fi
3494
3495
3496 fi
3497 if test -z "$ac_cv_prog_CC"; then
3498   ac_ct_CC=$CC
3499   # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   if test -n "$ac_ct_CC"; then
3507   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3511 do
3512   IFS=$as_save_IFS
3513   test -z "$as_dir" && as_dir=.
3514     for ac_exec_ext in '' $ac_executable_extensions; do
3515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516     ac_cv_prog_ac_ct_CC="gcc"
3517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518     break 2
3519   fi
3520 done
3521   done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3530 else
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3533 fi
3534
3535   if test "x$ac_ct_CC" = x; then
3536     CC=""
3537   else
3538     case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3543 esac
3544     CC=$ac_ct_CC
3545   fi
3546 else
3547   CC="$ac_cv_prog_CC"
3548 fi
3549
3550 if test -z "$CC"; then
3551           if test -n "$ac_tool_prefix"; then
3552     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}cc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_CC+:} false; then :
3557   $as_echo_n "(cached) " >&6
3558 else
3559   if test -n "$CC"; then
3560   ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565   IFS=$as_save_IFS
3566   test -z "$as_dir" && as_dir=.
3567     for ac_exec_ext in '' $ac_executable_extensions; do
3568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569     ac_cv_prog_CC="${ac_tool_prefix}cc"
3570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571     break 2
3572   fi
3573 done
3574   done
3575 IFS=$as_save_IFS
3576
3577 fi
3578 fi
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3583 else
3584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3586 fi
3587
3588
3589   fi
3590 fi
3591 if test -z "$CC"; then
3592   # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_CC+:} false; then :
3597   $as_echo_n "(cached) " >&6
3598 else
3599   if test -n "$CC"; then
3600   ac_cv_prog_CC="$CC" # Let the user override the test.
3601 else
3602   ac_prog_rejected=no
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3605 do
3606   IFS=$as_save_IFS
3607   test -z "$as_dir" && as_dir=.
3608     for ac_exec_ext in '' $ac_executable_extensions; do
3609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3610     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611        ac_prog_rejected=yes
3612        continue
3613      fi
3614     ac_cv_prog_CC="cc"
3615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616     break 2
3617   fi
3618 done
3619   done
3620 IFS=$as_save_IFS
3621
3622 if test $ac_prog_rejected = yes; then
3623   # We found a bogon in the path, so make sure we never use it.
3624   set dummy $ac_cv_prog_CC
3625   shift
3626   if test $# != 0; then
3627     # We chose a different compiler from the bogus one.
3628     # However, it has the same basename, so the bogon will be chosen
3629     # first if we set CC to just the basename; use the full file name.
3630     shift
3631     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3632   fi
3633 fi
3634 fi
3635 fi
3636 CC=$ac_cv_prog_CC
3637 if test -n "$CC"; then
3638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639 $as_echo "$CC" >&6; }
3640 else
3641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3643 fi
3644
3645
3646 fi
3647 if test -z "$CC"; then
3648   if test -n "$ac_tool_prefix"; then
3649   for ac_prog in cl.exe
3650   do
3651     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if ${ac_cv_prog_CC+:} false; then :
3656   $as_echo_n "(cached) " >&6
3657 else
3658   if test -n "$CC"; then
3659   ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666     for ac_exec_ext in '' $ac_executable_extensions; do
3667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673   done
3674 IFS=$as_save_IFS
3675
3676 fi
3677 fi
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3682 else
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3685 fi
3686
3687
3688     test -n "$CC" && break
3689   done
3690 fi
3691 if test -z "$CC"; then
3692   ac_ct_CC=$CC
3693   for ac_prog in cl.exe
3694 do
3695   # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3700   $as_echo_n "(cached) " >&6
3701 else
3702   if test -n "$ac_ct_CC"; then
3703   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708   IFS=$as_save_IFS
3709   test -z "$as_dir" && as_dir=.
3710     for ac_exec_ext in '' $ac_executable_extensions; do
3711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712     ac_cv_prog_ac_ct_CC="$ac_prog"
3713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714     break 2
3715   fi
3716 done
3717   done
3718 IFS=$as_save_IFS
3719
3720 fi
3721 fi
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3726 else
3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 fi
3730
3731
3732   test -n "$ac_ct_CC" && break
3733 done
3734
3735   if test "x$ac_ct_CC" = x; then
3736     CC=""
3737   else
3738     case $cross_compiling:$ac_tool_warned in
3739 yes:)
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned=yes ;;
3743 esac
3744     CC=$ac_ct_CC
3745   fi
3746 fi
3747
3748 fi
3749
3750
3751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $? "no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details" "$LINENO" 5; }
3755
3756 # Provide some information about the compiler.
3757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3758 set X $ac_compile
3759 ac_compiler=$2
3760 for ac_option in --version -v -V -qversion; do
3761   { { ac_try="$ac_compiler $ac_option >&5"
3762 case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769   ac_status=$?
3770   if test -s conftest.err; then
3771     sed '10a\
3772 ... rest of stderr output deleted ...
3773          10q' conftest.err >conftest.er1
3774     cat conftest.er1 >&5
3775   fi
3776   rm -f conftest.er1 conftest.err
3777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778   test $ac_status = 0; }
3779 done
3780
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h.  */
3783
3784 int
3785 main ()
3786 {
3787
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3796 # of exeext.
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 $as_echo_n "checking whether the C compiler works... " >&6; }
3799 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3800
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3803
3804 ac_rmfiles=
3805 for ac_file in $ac_files
3806 do
3807   case $ac_file in
3808     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3810   esac
3811 done
3812 rm -f $ac_rmfiles
3813
3814 if { { ac_try="$ac_link_default"
3815 case "(($ac_try" in
3816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817   *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821   (eval "$ac_link_default") 2>&5
3822   ac_status=$?
3823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824   test $ac_status = 0; }; then :
3825   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3827 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3828 # so that the user can short-circuit this test for compilers unknown to
3829 # Autoconf.
3830 for ac_file in $ac_files ''
3831 do
3832   test -f "$ac_file" || continue
3833   case $ac_file in
3834     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3835         ;;
3836     [ab].out )
3837         # We found the default executable, but exeext='' is most
3838         # certainly right.
3839         break;;
3840     *.* )
3841         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3842         then :; else
3843            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844         fi
3845         # We set ac_cv_exeext here because the later test for it is not
3846         # safe: cross compilers may not add the suffix if given an `-o'
3847         # argument, so we may need to know it at that point already.
3848         # Even if this section looks crufty: it has the advantage of
3849         # actually working.
3850         break;;
3851     * )
3852         break;;
3853   esac
3854 done
3855 test "$ac_cv_exeext" = no && ac_cv_exeext=
3856
3857 else
3858   ac_file=''
3859 fi
3860 if test -z "$ac_file"; then :
3861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error 77 "C compiler cannot create executables
3869 See \`config.log' for more details" "$LINENO" 5; }
3870 else
3871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3873 fi
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877 $as_echo "$ac_file" >&6; }
3878 ac_exeext=$ac_cv_exeext
3879
3880 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3881 ac_clean_files=$ac_clean_files_save
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try="$ac_link"
3885 case "(($ac_try" in
3886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887   *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891   (eval "$ac_link") 2>&5
3892   ac_status=$?
3893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894   test $ac_status = 0; }; then :
3895   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3896 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3898 # `rm'.
3899 for ac_file in conftest.exe conftest conftest.*; do
3900   test -f "$ac_file" || continue
3901   case $ac_file in
3902     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904           break;;
3905     * ) break;;
3906   esac
3907 done
3908 else
3909   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details" "$LINENO" 5; }
3913 fi
3914 rm -f conftest conftest$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3917
3918 rm -f conftest.$ac_ext
3919 EXEEXT=$ac_cv_exeext
3920 ac_exeext=$EXEEXT
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h.  */
3923 #include <stdio.h>
3924 int
3925 main ()
3926 {
3927 FILE *f = fopen ("conftest.out", "w");
3928  return ferror (f) || fclose (f) != 0;
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 ac_clean_files="$ac_clean_files conftest.out"
3935 # Check that the compiler produces executables we can run.  If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 if test "$cross_compiling" != yes; then
3940   { { ac_try="$ac_link"
3941 case "(($ac_try" in
3942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943   *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947   (eval "$ac_link") 2>&5
3948   ac_status=$?
3949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950   test $ac_status = 0; }
3951   if { ac_try='./conftest$ac_cv_exeext'
3952   { { case "(($ac_try" in
3953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954   *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958   (eval "$ac_try") 2>&5
3959   ac_status=$?
3960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961   test $ac_status = 0; }; }; then
3962     cross_compiling=no
3963   else
3964     if test "$cross_compiling" = maybe; then
3965         cross_compiling=yes
3966     else
3967         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $? "cannot run C compiled programs.
3970 If you meant to cross compile, use \`--host'.
3971 See \`config.log' for more details" "$LINENO" 5; }
3972     fi
3973   fi
3974 fi
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976 $as_echo "$cross_compiling" >&6; }
3977
3978 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3979 ac_clean_files=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981 $as_echo_n "checking for suffix of object files... " >&6; }
3982 if ${ac_cv_objext+:} false; then :
3983   $as_echo_n "(cached) " >&6
3984 else
3985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987
3988 int
3989 main ()
3990 {
3991
3992   ;
3993   return 0;
3994 }
3995 _ACEOF
3996 rm -f conftest.o conftest.obj
3997 if { { ac_try="$ac_compile"
3998 case "(($ac_try" in
3999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000   *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004   (eval "$ac_compile") 2>&5
4005   ac_status=$?
4006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007   test $ac_status = 0; }; then :
4008   for ac_file in conftest.o conftest.obj conftest.*; do
4009   test -f "$ac_file" || continue;
4010   case $ac_file in
4011     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4012     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4013        break;;
4014   esac
4015 done
4016 else
4017   $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4019
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot compute suffix of object files: cannot compile
4023 See \`config.log' for more details" "$LINENO" 5; }
4024 fi
4025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4026 fi
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028 $as_echo "$ac_cv_objext" >&6; }
4029 OBJEXT=$ac_cv_objext
4030 ac_objext=$OBJEXT
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033 if ${ac_cv_c_compiler_gnu+:} false; then :
4034   $as_echo_n "(cached) " >&6
4035 else
4036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h.  */
4038
4039 int
4040 main ()
4041 {
4042 #ifndef __GNUC__
4043        choke me
4044 #endif
4045
4046   ;
4047   return 0;
4048 }
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051   ac_compiler_gnu=yes
4052 else
4053   ac_compiler_gnu=no
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4057
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4062   GCC=yes
4063 else
4064   GCC=
4065 fi
4066 ac_test_CFLAGS=${CFLAGS+set}
4067 ac_save_CFLAGS=$CFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 if ${ac_cv_prog_cc_g+:} false; then :
4071   $as_echo_n "(cached) " >&6
4072 else
4073   ac_save_c_werror_flag=$ac_c_werror_flag
4074    ac_c_werror_flag=yes
4075    ac_cv_prog_cc_g=no
4076    CFLAGS="-g"
4077    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h.  */
4079
4080 int
4081 main ()
4082 {
4083
4084   ;
4085   return 0;
4086 }
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089   ac_cv_prog_cc_g=yes
4090 else
4091   CFLAGS=""
4092       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h.  */
4094
4095 int
4096 main ()
4097 {
4098
4099   ;
4100   return 0;
4101 }
4102 _ACEOF
4103 if ac_fn_c_try_compile "$LINENO"; then :
4104
4105 else
4106   ac_c_werror_flag=$ac_save_c_werror_flag
4107          CFLAGS="-g"
4108          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h.  */
4110
4111 int
4112 main ()
4113 {
4114
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120   ac_cv_prog_cc_g=yes
4121 fi
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 fi
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127    ac_c_werror_flag=$ac_save_c_werror_flag
4128 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 $as_echo "$ac_cv_prog_cc_g" >&6; }
4131 if test "$ac_test_CFLAGS" = set; then
4132   CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134   if test "$GCC" = yes; then
4135     CFLAGS="-g -O2"
4136   else
4137     CFLAGS="-g"
4138   fi
4139 else
4140   if test "$GCC" = yes; then
4141     CFLAGS="-O2"
4142   else
4143     CFLAGS=
4144   fi
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148 if ${ac_cv_prog_cc_c89+:} false; then :
4149   $as_echo_n "(cached) " >&6
4150 else
4151   ac_cv_prog_cc_c89=no
4152 ac_save_CC=$CC
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h.  */
4155 #include <stdarg.h>
4156 #include <stdio.h>
4157 #include <sys/types.h>
4158 #include <sys/stat.h>
4159 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4160 struct buf { int x; };
4161 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4162 static char *e (p, i)
4163      char **p;
4164      int i;
4165 {
4166   return p[i];
4167 }
4168 static char *f (char * (*g) (char **, int), char **p, ...)
4169 {
4170   char *s;
4171   va_list v;
4172   va_start (v,p);
4173   s = g (p, va_arg (v,int));
4174   va_end (v);
4175   return s;
4176 }
4177
4178 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4179    function prototypes and stuff, but not '\xHH' hex character constants.
4180    These don't provoke an error unfortunately, instead are silently treated
4181    as 'x'.  The following induces an error, until -std is added to get
4182    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4183    array size at least.  It's necessary to write '\x00'==0 to get something
4184    that's true only with -std.  */
4185 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4186
4187 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4188    inside strings and character constants.  */
4189 #define FOO(x) 'x'
4190 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4191
4192 int test (int i, double x);
4193 struct s1 {int (*f) (int a);};
4194 struct s2 {int (*f) (double a);};
4195 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4196 int argc;
4197 char **argv;
4198 int
4199 main ()
4200 {
4201 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4207         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4208 do
4209   CC="$ac_save_CC $ac_arg"
4210   if ac_fn_c_try_compile "$LINENO"; then :
4211   ac_cv_prog_cc_c89=$ac_arg
4212 fi
4213 rm -f core conftest.err conftest.$ac_objext
4214   test "x$ac_cv_prog_cc_c89" != "xno" && break
4215 done
4216 rm -f conftest.$ac_ext
4217 CC=$ac_save_CC
4218
4219 fi
4220 # AC_CACHE_VAL
4221 case "x$ac_cv_prog_cc_c89" in
4222   x)
4223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4224 $as_echo "none needed" >&6; } ;;
4225   xno)
4226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4227 $as_echo "unsupported" >&6; } ;;
4228   *)
4229     CC="$CC $ac_cv_prog_cc_c89"
4230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4231 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4232 esac
4233 if test "x$ac_cv_prog_cc_c89" != xno; then :
4234
4235 fi
4236
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242
4243 ac_ext=cpp
4244 ac_cpp='$CXXCPP $CPPFLAGS'
4245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4248 if test -z "$CXX"; then
4249   if test -n "$CCC"; then
4250     CXX=$CCC
4251   else
4252     if test -n "$ac_tool_prefix"; then
4253   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4254   do
4255     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if ${ac_cv_prog_CXX+:} false; then :
4260   $as_echo_n "(cached) " >&6
4261 else
4262   if test -n "$CXX"; then
4263   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270     for ac_exec_ext in '' $ac_executable_extensions; do
4271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277   done
4278 IFS=$as_save_IFS
4279
4280 fi
4281 fi
4282 CXX=$ac_cv_prog_CXX
4283 if test -n "$CXX"; then
4284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4285 $as_echo "$CXX" >&6; }
4286 else
4287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289 fi
4290
4291
4292     test -n "$CXX" && break
4293   done
4294 fi
4295 if test -z "$CXX"; then
4296   ac_ct_CXX=$CXX
4297   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4298 do
4299   # Extract the first word of "$ac_prog", so it can be a program name with args.
4300 set dummy $ac_prog; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4304   $as_echo_n "(cached) " >&6
4305 else
4306   if test -n "$ac_ct_CXX"; then
4307   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314     for ac_exec_ext in '' $ac_executable_extensions; do
4315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316     ac_cv_prog_ac_ct_CXX="$ac_prog"
4317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318     break 2
4319   fi
4320 done
4321   done
4322 IFS=$as_save_IFS
4323
4324 fi
4325 fi
4326 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4327 if test -n "$ac_ct_CXX"; then
4328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4329 $as_echo "$ac_ct_CXX" >&6; }
4330 else
4331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332 $as_echo "no" >&6; }
4333 fi
4334
4335
4336   test -n "$ac_ct_CXX" && break
4337 done
4338
4339   if test "x$ac_ct_CXX" = x; then
4340     CXX="g++"
4341   else
4342     case $cross_compiling:$ac_tool_warned in
4343 yes:)
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346 ac_tool_warned=yes ;;
4347 esac
4348     CXX=$ac_ct_CXX
4349   fi
4350 fi
4351
4352   fi
4353 fi
4354 # Provide some information about the compiler.
4355 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4356 set X $ac_compile
4357 ac_compiler=$2
4358 for ac_option in --version -v -V -qversion; do
4359   { { ac_try="$ac_compiler $ac_option >&5"
4360 case "(($ac_try" in
4361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362   *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 $as_echo "$ac_try_echo"; } >&5
4366   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4367   ac_status=$?
4368   if test -s conftest.err; then
4369     sed '10a\
4370 ... rest of stderr output deleted ...
4371          10q' conftest.err >conftest.er1
4372     cat conftest.er1 >&5
4373   fi
4374   rm -f conftest.er1 conftest.err
4375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376   test $ac_status = 0; }
4377 done
4378
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4380 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4381 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h.  */
4386
4387 int
4388 main ()
4389 {
4390 #ifndef __GNUC__
4391        choke me
4392 #endif
4393
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 if ac_fn_cxx_try_compile "$LINENO"; then :
4399   ac_compiler_gnu=yes
4400 else
4401   ac_compiler_gnu=no
4402 fi
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4405
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4408 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4409 if test $ac_compiler_gnu = yes; then
4410   GXX=yes
4411 else
4412   GXX=
4413 fi
4414 ac_test_CXXFLAGS=${CXXFLAGS+set}
4415 ac_save_CXXFLAGS=$CXXFLAGS
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4417 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4418 if ${ac_cv_prog_cxx_g+:} false; then :
4419   $as_echo_n "(cached) " >&6
4420 else
4421   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4422    ac_cxx_werror_flag=yes
4423    ac_cv_prog_cxx_g=no
4424    CXXFLAGS="-g"
4425    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h.  */
4427
4428 int
4429 main ()
4430 {
4431
4432   ;
4433   return 0;
4434 }
4435 _ACEOF
4436 if ac_fn_cxx_try_compile "$LINENO"; then :
4437   ac_cv_prog_cxx_g=yes
4438 else
4439   CXXFLAGS=""
4440       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h.  */
4442
4443 int
4444 main ()
4445 {
4446
4447   ;
4448   return 0;
4449 }
4450 _ACEOF
4451 if ac_fn_cxx_try_compile "$LINENO"; then :
4452
4453 else
4454   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4455          CXXFLAGS="-g"
4456          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h.  */
4458
4459 int
4460 main ()
4461 {
4462
4463   ;
4464   return 0;
4465 }
4466 _ACEOF
4467 if ac_fn_cxx_try_compile "$LINENO"; then :
4468   ac_cv_prog_cxx_g=yes
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 fi
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 fi
4474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4478 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4479 if test "$ac_test_CXXFLAGS" = set; then
4480   CXXFLAGS=$ac_save_CXXFLAGS
4481 elif test $ac_cv_prog_cxx_g = yes; then
4482   if test "$GXX" = yes; then
4483     CXXFLAGS="-g -O2"
4484   else
4485     CXXFLAGS="-g"
4486   fi
4487 else
4488   if test "$GXX" = yes; then
4489     CXXFLAGS="-O2"
4490   else
4491     CXXFLAGS=
4492   fi
4493 fi
4494 ac_ext=c
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4499
4500 if test "x$CC" != xcc; then
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4502 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4503 else
4504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4505 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4506 fi
4507 set dummy $CC; ac_cc=`$as_echo "$2" |
4508                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4509 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4510   $as_echo_n "(cached) " >&6
4511 else
4512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h.  */
4514
4515 int
4516 main ()
4517 {
4518
4519   ;
4520   return 0;
4521 }
4522 _ACEOF
4523 # Make sure it works both with $CC and with simple cc.
4524 # We do the test twice because some compilers refuse to overwrite an
4525 # existing .o file with -o, though they will create one.
4526 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4527 rm -f conftest2.*
4528 if { { case "(($ac_try" in
4529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530   *) ac_try_echo=$ac_try;;
4531 esac
4532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533 $as_echo "$ac_try_echo"; } >&5
4534   (eval "$ac_try") 2>&5
4535   ac_status=$?
4536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537   test $ac_status = 0; } &&
4538    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540   *) ac_try_echo=$ac_try;;
4541 esac
4542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4543 $as_echo "$ac_try_echo"; } >&5
4544   (eval "$ac_try") 2>&5
4545   ac_status=$?
4546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547   test $ac_status = 0; };
4548 then
4549   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4550   if test "x$CC" != xcc; then
4551     # Test first that cc exists at all.
4552     if { ac_try='cc -c conftest.$ac_ext >&5'
4553   { { case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 $as_echo "$ac_try_echo"; } >&5
4559   (eval "$ac_try") 2>&5
4560   ac_status=$?
4561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562   test $ac_status = 0; }; }; then
4563       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4564       rm -f conftest2.*
4565       if { { case "(($ac_try" in
4566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567   *) ac_try_echo=$ac_try;;
4568 esac
4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570 $as_echo "$ac_try_echo"; } >&5
4571   (eval "$ac_try") 2>&5
4572   ac_status=$?
4573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574   test $ac_status = 0; } &&
4575          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577   *) ac_try_echo=$ac_try;;
4578 esac
4579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4580 $as_echo "$ac_try_echo"; } >&5
4581   (eval "$ac_try") 2>&5
4582   ac_status=$?
4583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584   test $ac_status = 0; };
4585       then
4586         # cc works too.
4587         :
4588       else
4589         # cc exists but doesn't like -o.
4590         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4591       fi
4592     fi
4593   fi
4594 else
4595   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4596 fi
4597 rm -f core conftest*
4598
4599 fi
4600 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4602 $as_echo "yes" >&6; }
4603 else
4604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606
4607 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4608
4609 fi
4610
4611 ac_ext=c
4612 ac_cpp='$CPP $CPPFLAGS'
4613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4617 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4618 # On Suns, sometimes $CPP names a directory.
4619 if test -n "$CPP" && test -d "$CPP"; then
4620   CPP=
4621 fi
4622 if test -z "$CPP"; then
4623   if ${ac_cv_prog_CPP+:} false; then :
4624   $as_echo_n "(cached) " >&6
4625 else
4626       # Double quotes because CPP needs to be expanded
4627     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4628     do
4629       ac_preproc_ok=false
4630 for ac_c_preproc_warn_flag in '' yes
4631 do
4632   # Use a header file that comes with gcc, so configuring glibc
4633   # with a fresh cross-compiler works.
4634   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4635   # <limits.h> exists even on freestanding compilers.
4636   # On the NeXT, cc -E runs the code through the compiler's parser,
4637   # not just through cpp. "Syntax error" is here to catch this case.
4638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h.  */
4640 #ifdef __STDC__
4641 # include <limits.h>
4642 #else
4643 # include <assert.h>
4644 #endif
4645                      Syntax error
4646 _ACEOF
4647 if ac_fn_c_try_cpp "$LINENO"; then :
4648
4649 else
4650   # Broken: fails on valid input.
4651 continue
4652 fi
4653 rm -f conftest.err conftest.i conftest.$ac_ext
4654
4655   # OK, works on sane cases.  Now check whether nonexistent headers
4656   # can be detected and how.
4657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h.  */
4659 #include <ac_nonexistent.h>
4660 _ACEOF
4661 if ac_fn_c_try_cpp "$LINENO"; then :
4662   # Broken: success on invalid input.
4663 continue
4664 else
4665   # Passes both tests.
4666 ac_preproc_ok=:
4667 break
4668 fi
4669 rm -f conftest.err conftest.i conftest.$ac_ext
4670
4671 done
4672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4673 rm -f conftest.i conftest.err conftest.$ac_ext
4674 if $ac_preproc_ok; then :
4675   break
4676 fi
4677
4678     done
4679     ac_cv_prog_CPP=$CPP
4680
4681 fi
4682   CPP=$ac_cv_prog_CPP
4683 else
4684   ac_cv_prog_CPP=$CPP
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4687 $as_echo "$CPP" >&6; }
4688 ac_preproc_ok=false
4689 for ac_c_preproc_warn_flag in '' yes
4690 do
4691   # Use a header file that comes with gcc, so configuring glibc
4692   # with a fresh cross-compiler works.
4693   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4694   # <limits.h> exists even on freestanding compilers.
4695   # On the NeXT, cc -E runs the code through the compiler's parser,
4696   # not just through cpp. "Syntax error" is here to catch this case.
4697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h.  */
4699 #ifdef __STDC__
4700 # include <limits.h>
4701 #else
4702 # include <assert.h>
4703 #endif
4704                      Syntax error
4705 _ACEOF
4706 if ac_fn_c_try_cpp "$LINENO"; then :
4707
4708 else
4709   # Broken: fails on valid input.
4710 continue
4711 fi
4712 rm -f conftest.err conftest.i conftest.$ac_ext
4713
4714   # OK, works on sane cases.  Now check whether nonexistent headers
4715   # can be detected and how.
4716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h.  */
4718 #include <ac_nonexistent.h>
4719 _ACEOF
4720 if ac_fn_c_try_cpp "$LINENO"; then :
4721   # Broken: success on invalid input.
4722 continue
4723 else
4724   # Passes both tests.
4725 ac_preproc_ok=:
4726 break
4727 fi
4728 rm -f conftest.err conftest.i conftest.$ac_ext
4729
4730 done
4731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4732 rm -f conftest.i conftest.err conftest.$ac_ext
4733 if $ac_preproc_ok; then :
4734
4735 else
4736   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4738 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4739 See \`config.log' for more details" "$LINENO" 5; }
4740 fi
4741
4742 ac_ext=c
4743 ac_cpp='$CPP $CPPFLAGS'
4744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4747
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4750 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4751 if ${ac_cv_path_GREP+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   if test -z "$GREP"; then
4755   ac_path_GREP_found=false
4756   # Loop through the user's path and test for each of PROGNAME-LIST
4757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762     for ac_prog in grep ggrep; do
4763     for ac_exec_ext in '' $ac_executable_extensions; do
4764       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4765       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4766 # Check for GNU ac_path_GREP and select it if it is found.
4767   # Check for GNU $ac_path_GREP
4768 case `"$ac_path_GREP" --version 2>&1` in
4769 *GNU*)
4770   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4771 *)
4772   ac_count=0
4773   $as_echo_n 0123456789 >"conftest.in"
4774   while :
4775   do
4776     cat "conftest.in" "conftest.in" >"conftest.tmp"
4777     mv "conftest.tmp" "conftest.in"
4778     cp "conftest.in" "conftest.nl"
4779     $as_echo 'GREP' >> "conftest.nl"
4780     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782     as_fn_arith $ac_count + 1 && ac_count=$as_val
4783     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4784       # Best one so far, save it but keep looking for a better one
4785       ac_cv_path_GREP="$ac_path_GREP"
4786       ac_path_GREP_max=$ac_count
4787     fi
4788     # 10*(2^10) chars as input seems more than enough
4789     test $ac_count -gt 10 && break
4790   done
4791   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4792 esac
4793
4794       $ac_path_GREP_found && break 3
4795     done
4796   done
4797   done
4798 IFS=$as_save_IFS
4799   if test -z "$ac_cv_path_GREP"; then
4800     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4801   fi
4802 else
4803   ac_cv_path_GREP=$GREP
4804 fi
4805
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4808 $as_echo "$ac_cv_path_GREP" >&6; }
4809  GREP="$ac_cv_path_GREP"
4810
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4813 $as_echo_n "checking for egrep... " >&6; }
4814 if ${ac_cv_path_EGREP+:} false; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4818    then ac_cv_path_EGREP="$GREP -E"
4819    else
4820      if test -z "$EGREP"; then
4821   ac_path_EGREP_found=false
4822   # Loop through the user's path and test for each of PROGNAME-LIST
4823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828     for ac_prog in egrep; do
4829     for ac_exec_ext in '' $ac_executable_extensions; do
4830       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4831       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4832 # Check for GNU ac_path_EGREP and select it if it is found.
4833   # Check for GNU $ac_path_EGREP
4834 case `"$ac_path_EGREP" --version 2>&1` in
4835 *GNU*)
4836   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4837 *)
4838   ac_count=0
4839   $as_echo_n 0123456789 >"conftest.in"
4840   while :
4841   do
4842     cat "conftest.in" "conftest.in" >"conftest.tmp"
4843     mv "conftest.tmp" "conftest.in"
4844     cp "conftest.in" "conftest.nl"
4845     $as_echo 'EGREP' >> "conftest.nl"
4846     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4847     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4848     as_fn_arith $ac_count + 1 && ac_count=$as_val
4849     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4850       # Best one so far, save it but keep looking for a better one
4851       ac_cv_path_EGREP="$ac_path_EGREP"
4852       ac_path_EGREP_max=$ac_count
4853     fi
4854     # 10*(2^10) chars as input seems more than enough
4855     test $ac_count -gt 10 && break
4856   done
4857   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4858 esac
4859
4860       $ac_path_EGREP_found && break 3
4861     done
4862   done
4863   done
4864 IFS=$as_save_IFS
4865   if test -z "$ac_cv_path_EGREP"; then
4866     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4867   fi
4868 else
4869   ac_cv_path_EGREP=$EGREP
4870 fi
4871
4872    fi
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4875 $as_echo "$ac_cv_path_EGREP" >&6; }
4876  EGREP="$ac_cv_path_EGREP"
4877
4878
4879 if test $ac_cv_c_compiler_gnu = yes; then
4880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4881 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4882 if ${ac_cv_prog_gcc_traditional+:} false; then :
4883   $as_echo_n "(cached) " >&6
4884 else
4885     ac_pattern="Autoconf.*'x'"
4886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h.  */
4888 #include <sgtty.h>
4889 Autoconf TIOCGETP
4890 _ACEOF
4891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4893   ac_cv_prog_gcc_traditional=yes
4894 else
4895   ac_cv_prog_gcc_traditional=no
4896 fi
4897 rm -f conftest*
4898
4899
4900   if test $ac_cv_prog_gcc_traditional = no; then
4901     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h.  */
4903 #include <termio.h>
4904 Autoconf TCGETA
4905 _ACEOF
4906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4907   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4908   ac_cv_prog_gcc_traditional=yes
4909 fi
4910 rm -f conftest*
4911
4912   fi
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4915 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4916   if test $ac_cv_prog_gcc_traditional = yes; then
4917     CC="$CC -traditional"
4918   fi
4919 fi
4920
4921 BASECC=`basename $CC`
4922 have_gcc=no
4923 if test "x$BASECC" = xgcc; then
4924    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4925
4926    have_gcc=yes
4927 fi
4928 # Extract the first word of "$CXX", so it can be a program name with args.
4929 set dummy $CXX; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_path_CXX+:} false; then :
4933   $as_echo_n "(cached) " >&6
4934 else
4935   case $CXX in
4936   [\\/]* | ?:[\\/]*)
4937   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4938   ;;
4939   *)
4940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943   IFS=$as_save_IFS
4944   test -z "$as_dir" && as_dir=.
4945     for ac_exec_ext in '' $ac_executable_extensions; do
4946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4947     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949     break 2
4950   fi
4951 done
4952   done
4953 IFS=$as_save_IFS
4954
4955   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4956   ;;
4957 esac
4958 fi
4959 CXX=$ac_cv_path_CXX
4960 if test -n "$CXX"; then
4961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4962 $as_echo "$CXX" >&6; }
4963 else
4964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967
4968
4969 if test ! -e $CXX; then
4970    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4971 fi
4972
4973 # Find a good install program.  We prefer a C program (faster),
4974 # so one script is as good as another.  But avoid the broken or
4975 # incompatible versions:
4976 # SysV /etc/install, /usr/sbin/install
4977 # SunOS /usr/etc/install
4978 # IRIX /sbin/install
4979 # AIX /bin/install
4980 # AmigaOS /C/install, which installs bootblocks on floppy discs
4981 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4982 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4983 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4984 # OS/2's system install, which has a completely different semantic
4985 # ./install, which can be erroneously created by make from ./install.sh.
4986 # Reject install programs that cannot install multiple files.
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4988 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4989 if test -z "$INSTALL"; then
4990 if ${ac_cv_path_install+:} false; then :
4991   $as_echo_n "(cached) " >&6
4992 else
4993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996   IFS=$as_save_IFS
4997   test -z "$as_dir" && as_dir=.
4998     # Account for people who put trailing slashes in PATH elements.
4999 case $as_dir/ in #((
5000   ./ | .// | /[cC]/* | \
5001   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5002   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5003   /usr/ucb/* ) ;;
5004   *)
5005     # OSF1 and SCO ODT 3.0 have their own names for install.
5006     # Don't use installbsd from OSF since it installs stuff as root
5007     # by default.
5008     for ac_prog in ginstall scoinst install; do
5009       for ac_exec_ext in '' $ac_executable_extensions; do
5010         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5011           if test $ac_prog = install &&
5012             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5013             # AIX install.  It has an incompatible calling convention.
5014             :
5015           elif test $ac_prog = install &&
5016             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5017             # program-specific install script used by HP pwplus--don't use.
5018             :
5019           else
5020             rm -rf conftest.one conftest.two conftest.dir
5021             echo one > conftest.one
5022             echo two > conftest.two
5023             mkdir conftest.dir
5024             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5025               test -s conftest.one && test -s conftest.two &&
5026               test -s conftest.dir/conftest.one &&
5027               test -s conftest.dir/conftest.two
5028             then
5029               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5030               break 3
5031             fi
5032           fi
5033         fi
5034       done
5035     done
5036     ;;
5037 esac
5038
5039   done
5040 IFS=$as_save_IFS
5041
5042 rm -rf conftest.one conftest.two conftest.dir
5043
5044 fi
5045   if test "${ac_cv_path_install+set}" = set; then
5046     INSTALL=$ac_cv_path_install
5047   else
5048     # As a last resort, use the slow shell script.  Don't cache a
5049     # value for INSTALL within a source directory, because that will
5050     # break other packages using the cache if that directory is
5051     # removed, or if the value is a relative name.
5052     INSTALL=$ac_install_sh
5053   fi
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5056 $as_echo "$INSTALL" >&6; }
5057
5058 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5059 # It thinks the first close brace ends the variable substitution.
5060 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5061
5062 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5063
5064 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5065
5066 # Extract the first word of "mv", so it can be a program name with args.
5067 set dummy mv; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_path_MV+:} false; then :
5071   $as_echo_n "(cached) " >&6
5072 else
5073   case $MV in
5074   [\\/]* | ?:[\\/]*)
5075   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5076   ;;
5077   *)
5078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083     for ac_exec_ext in '' $ac_executable_extensions; do
5084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087     break 2
5088   fi
5089 done
5090   done
5091 IFS=$as_save_IFS
5092
5093   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5094   ;;
5095 esac
5096 fi
5097 MV=$ac_cv_path_MV
5098 if test -n "$MV"; then
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5100 $as_echo "$MV" >&6; }
5101 else
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104 fi
5105
5106
5107 # Extract the first word of "rm", so it can be a program name with args.
5108 set dummy rm; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_path_REMOVE+:} false; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   case $REMOVE in
5115   [\\/]* | ?:[\\/]*)
5116   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5117   ;;
5118   *)
5119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122   IFS=$as_save_IFS
5123   test -z "$as_dir" && as_dir=.
5124     for ac_exec_ext in '' $ac_executable_extensions; do
5125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128     break 2
5129   fi
5130 done
5131   done
5132 IFS=$as_save_IFS
5133
5134   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5135   ;;
5136 esac
5137 fi
5138 REMOVE=$ac_cv_path_REMOVE
5139 if test -n "$REMOVE"; then
5140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5141 $as_echo "$REMOVE" >&6; }
5142 else
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147
5148 # Extract the first word of "cp", so it can be a program name with args.
5149 set dummy cp; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_path_CP+:} false; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155   case $CP in
5156   [\\/]* | ?:[\\/]*)
5157   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5158   ;;
5159   *)
5160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165     for ac_exec_ext in '' $ac_executable_extensions; do
5166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169     break 2
5170   fi
5171 done
5172   done
5173 IFS=$as_save_IFS
5174
5175   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5176   ;;
5177 esac
5178 fi
5179 CP=$ac_cv_path_CP
5180 if test -n "$CP"; then
5181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5182 $as_echo "$CP" >&6; }
5183 else
5184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5186 fi
5187
5188
5189 # Extract the first word of "sed", so it can be a program name with args.
5190 set dummy sed; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_path_SED+:} false; then :
5194   $as_echo_n "(cached) " >&6
5195 else
5196   case $SED in
5197   [\\/]* | ?:[\\/]*)
5198   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5199   ;;
5200   *)
5201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204   IFS=$as_save_IFS
5205   test -z "$as_dir" && as_dir=.
5206     for ac_exec_ext in '' $ac_executable_extensions; do
5207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210     break 2
5211   fi
5212 done
5213   done
5214 IFS=$as_save_IFS
5215
5216   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5217   ;;
5218 esac
5219 fi
5220 SED=$ac_cv_path_SED
5221 if test -n "$SED"; then
5222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5223 $as_echo "$SED" >&6; }
5224 else
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5227 fi
5228
5229
5230 # Extract the first word of "echo", so it can be a program name with args.
5231 set dummy echo; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_path_ECHO+:} false; then :
5235   $as_echo_n "(cached) " >&6
5236 else
5237   case $ECHO in
5238   [\\/]* | ?:[\\/]*)
5239   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5240   ;;
5241   *)
5242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245   IFS=$as_save_IFS
5246   test -z "$as_dir" && as_dir=.
5247     for ac_exec_ext in '' $ac_executable_extensions; do
5248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251     break 2
5252   fi
5253 done
5254   done
5255 IFS=$as_save_IFS
5256
5257   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5258   ;;
5259 esac
5260 fi
5261 ECHO=$ac_cv_path_ECHO
5262 if test -n "$ECHO"; then
5263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5264 $as_echo "$ECHO" >&6; }
5265 else
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270
5271 # Extract the first word of "cmp", so it can be a program name with args.
5272 set dummy cmp; ac_word=$2
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if ${ac_cv_path_CMP+:} false; then :
5276   $as_echo_n "(cached) " >&6
5277 else
5278   case $CMP in
5279   [\\/]* | ?:[\\/]*)
5280   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5281   ;;
5282   *)
5283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH
5285 do
5286   IFS=$as_save_IFS
5287   test -z "$as_dir" && as_dir=.
5288     for ac_exec_ext in '' $ac_executable_extensions; do
5289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5292     break 2
5293   fi
5294 done
5295   done
5296 IFS=$as_save_IFS
5297
5298   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5299   ;;
5300 esac
5301 fi
5302 CMP=$ac_cv_path_CMP
5303 if test -n "$CMP"; then
5304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5305 $as_echo "$CMP" >&6; }
5306 else
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5308 $as_echo "no" >&6; }
5309 fi
5310
5311
5312 # Extract the first word of "tbl", so it can be a program name with args.
5313 set dummy tbl; ac_word=$2
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315 $as_echo_n "checking for $ac_word... " >&6; }
5316 if ${ac_cv_path_TBL+:} false; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319   case $TBL in
5320   [\\/]* | ?:[\\/]*)
5321   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5322   ;;
5323   *)
5324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5326 do
5327   IFS=$as_save_IFS
5328   test -z "$as_dir" && as_dir=.
5329     for ac_exec_ext in '' $ac_executable_extensions; do
5330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333     break 2
5334   fi
5335 done
5336   done
5337 IFS=$as_save_IFS
5338
5339   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5340   ;;
5341 esac
5342 fi
5343 TBL=$ac_cv_path_TBL
5344 if test -n "$TBL"; then
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5346 $as_echo "$TBL" >&6; }
5347 else
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5350 fi
5351
5352
5353 # Extract the first word of "ar", so it can be a program name with args.
5354 set dummy ar; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_path_AR+:} false; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   case $AR in
5361   [\\/]* | ?:[\\/]*)
5362   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5363   ;;
5364   *)
5365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368   IFS=$as_save_IFS
5369   test -z "$as_dir" && as_dir=.
5370     for ac_exec_ext in '' $ac_executable_extensions; do
5371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374     break 2
5375   fi
5376 done
5377   done
5378 IFS=$as_save_IFS
5379
5380   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5381   ;;
5382 esac
5383 fi
5384 AR=$ac_cv_path_AR
5385 if test -n "$AR"; then
5386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5387 $as_echo "$AR" >&6; }
5388 else
5389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5391 fi
5392
5393
5394 # Extract the first word of "openssl", so it can be a program name with args.
5395 set dummy openssl; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if ${ac_cv_path_OPENSSL+:} false; then :
5399   $as_echo_n "(cached) " >&6
5400 else
5401   case $OPENSSL in
5402   [\\/]* | ?:[\\/]*)
5403   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5404   ;;
5405   *)
5406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409   IFS=$as_save_IFS
5410   test -z "$as_dir" && as_dir=.
5411     for ac_exec_ext in '' $ac_executable_extensions; do
5412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415     break 2
5416   fi
5417 done
5418   done
5419 IFS=$as_save_IFS
5420
5421   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5422   ;;
5423 esac
5424 fi
5425 OPENSSL=$ac_cv_path_OPENSSL
5426 if test -n "$OPENSSL"; then
5427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5428 $as_echo "$OPENSSL" >&6; }
5429 else
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5432 fi
5433
5434
5435 # Extract the first word of "mtx", so it can be a program name with args.
5436 set dummy mtx; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_path_MTX+:} false; then :
5440   $as_echo_n "(cached) " >&6
5441 else
5442   case $MTX in
5443   [\\/]* | ?:[\\/]*)
5444   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5445   ;;
5446   *)
5447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450   IFS=$as_save_IFS
5451   test -z "$as_dir" && as_dir=.
5452     for ac_exec_ext in '' $ac_executable_extensions; do
5453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456     break 2
5457   fi
5458 done
5459   done
5460 IFS=$as_save_IFS
5461
5462   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5463   ;;
5464 esac
5465 fi
5466 MTX=$ac_cv_path_MTX
5467 if test -n "$MTX"; then
5468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5469 $as_echo "$MTX" >&6; }
5470 else
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472 $as_echo "no" >&6; }
5473 fi
5474
5475
5476 # Extract the first word of "dd", so it can be a program name with args.
5477 set dummy dd; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_path_DD+:} false; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   case $DD in
5484   [\\/]* | ?:[\\/]*)
5485   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5486   ;;
5487   *)
5488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491   IFS=$as_save_IFS
5492   test -z "$as_dir" && as_dir=.
5493     for ac_exec_ext in '' $ac_executable_extensions; do
5494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497     break 2
5498   fi
5499 done
5500   done
5501 IFS=$as_save_IFS
5502
5503   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5504   ;;
5505 esac
5506 fi
5507 DD=$ac_cv_path_DD
5508 if test -n "$DD"; then
5509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5510 $as_echo "$DD" >&6; }
5511 else
5512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5514 fi
5515
5516
5517 # Extract the first word of "mkisofs", so it can be a program name with args.
5518 set dummy mkisofs; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_path_MKISOFS+:} false; then :
5522   $as_echo_n "(cached) " >&6
5523 else
5524   case $MKISOFS in
5525   [\\/]* | ?:[\\/]*)
5526   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5527   ;;
5528   *)
5529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534     for ac_exec_ext in '' $ac_executable_extensions; do
5535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541   done
5542 IFS=$as_save_IFS
5543
5544   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5545   ;;
5546 esac
5547 fi
5548 MKISOFS=$ac_cv_path_MKISOFS
5549 if test -n "$MKISOFS"; then
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5551 $as_echo "$MKISOFS" >&6; }
5552 else
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556
5557
5558 # Extract the first word of "python", so it can be a program name with args.
5559 set dummy python; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_path_PYTHON+:} false; then :
5563   $as_echo_n "(cached) " >&6
5564 else
5565   case $PYTHON in
5566   [\\/]* | ?:[\\/]*)
5567   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5568   ;;
5569   *)
5570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573   IFS=$as_save_IFS
5574   test -z "$as_dir" && as_dir=.
5575     for ac_exec_ext in '' $ac_executable_extensions; do
5576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579     break 2
5580   fi
5581 done
5582   done
5583 IFS=$as_save_IFS
5584
5585   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5586   ;;
5587 esac
5588 fi
5589 PYTHON=$ac_cv_path_PYTHON
5590 if test -n "$PYTHON"; then
5591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5592 $as_echo "$PYTHON" >&6; }
5593 else
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596 fi
5597
5598
5599 # Extract the first word of "growisofs", so it can be a program name with args.
5600 set dummy growisofs; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_path_GROWISOFS+:} false; then :
5604   $as_echo_n "(cached) " >&6
5605 else
5606   case $GROWISOFS in
5607   [\\/]* | ?:[\\/]*)
5608   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5609   ;;
5610   *)
5611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH
5613 do
5614   IFS=$as_save_IFS
5615   test -z "$as_dir" && as_dir=.
5616     for ac_exec_ext in '' $ac_executable_extensions; do
5617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620     break 2
5621   fi
5622 done
5623   done
5624 IFS=$as_save_IFS
5625
5626   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5627   ;;
5628 esac
5629 fi
5630 GROWISOFS=$ac_cv_path_GROWISOFS
5631 if test -n "$GROWISOFS"; then
5632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5633 $as_echo "$GROWISOFS" >&6; }
5634 else
5635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5637 fi
5638
5639
5640 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5641 set dummy dvd+rw-mediainfo; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   case $DVDRWMEDIAINFO in
5648   [\\/]* | ?:[\\/]*)
5649   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5650   ;;
5651   *)
5652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655   IFS=$as_save_IFS
5656   test -z "$as_dir" && as_dir=.
5657     for ac_exec_ext in '' $ac_executable_extensions; do
5658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5659     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661     break 2
5662   fi
5663 done
5664   done
5665 IFS=$as_save_IFS
5666
5667   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5668   ;;
5669 esac
5670 fi
5671 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5672 if test -n "$DVDRWMEDIAINFO"; then
5673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5674 $as_echo "$DVDRWMEDIAINFO" >&6; }
5675 else
5676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5678 fi
5679
5680
5681 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5682 set dummy dvd+rw-format; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   case $DVDRWFORMAT in
5689   [\\/]* | ?:[\\/]*)
5690   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5691   ;;
5692   *)
5693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696   IFS=$as_save_IFS
5697   test -z "$as_dir" && as_dir=.
5698     for ac_exec_ext in '' $ac_executable_extensions; do
5699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5700     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702     break 2
5703   fi
5704 done
5705   done
5706 IFS=$as_save_IFS
5707
5708   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5709   ;;
5710 esac
5711 fi
5712 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5713 if test -n "$DVDRWFORMAT"; then
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5715 $as_echo "$DVDRWFORMAT" >&6; }
5716 else
5717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5719 fi
5720
5721
5722 # Extract the first word of "pkg-config", so it can be a program name with args.
5723 set dummy pkg-config; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if ${ac_cv_path_PKGCONFIG+:} false; then :
5727   $as_echo_n "(cached) " >&6
5728 else
5729   case $PKGCONFIG in
5730   [\\/]* | ?:[\\/]*)
5731   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5732   ;;
5733   *)
5734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737   IFS=$as_save_IFS
5738   test -z "$as_dir" && as_dir=.
5739     for ac_exec_ext in '' $ac_executable_extensions; do
5740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5741     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743     break 2
5744   fi
5745 done
5746   done
5747 IFS=$as_save_IFS
5748
5749   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5750   ;;
5751 esac
5752 fi
5753 PKGCONFIG=$ac_cv_path_PKGCONFIG
5754 if test -n "$PKGCONFIG"; then
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5756 $as_echo "$PKGCONFIG" >&6; }
5757 else
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5761
5762
5763 # Extract the first word of "qmake", so it can be a program name with args.
5764 set dummy qmake; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_path_QMAKE+:} false; then :
5768   $as_echo_n "(cached) " >&6
5769 else
5770   case $QMAKE in
5771   [\\/]* | ?:[\\/]*)
5772   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5773   ;;
5774   *)
5775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780     for ac_exec_ext in '' $ac_executable_extensions; do
5781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787   done
5788 IFS=$as_save_IFS
5789
5790   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5791   ;;
5792 esac
5793 fi
5794 QMAKE=$ac_cv_path_QMAKE
5795 if test -n "$QMAKE"; then
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5797 $as_echo "$QMAKE" >&6; }
5798 else
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802
5803
5804 # Extract the first word of "gmake", so it can be a program name with args.
5805 set dummy gmake; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if ${ac_cv_path_GMAKE+:} false; then :
5809   $as_echo_n "(cached) " >&6
5810 else
5811   case $GMAKE in
5812   [\\/]* | ?:[\\/]*)
5813   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5814   ;;
5815   *)
5816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819   IFS=$as_save_IFS
5820   test -z "$as_dir" && as_dir=.
5821     for ac_exec_ext in '' $ac_executable_extensions; do
5822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825     break 2
5826   fi
5827 done
5828   done
5829 IFS=$as_save_IFS
5830
5831   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5832   ;;
5833 esac
5834 fi
5835 GMAKE=$ac_cv_path_GMAKE
5836 if test -n "$GMAKE"; then
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5838 $as_echo "$GMAKE" >&6; }
5839 else
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 fi
5843
5844
5845
5846 if test "x$WXCONFIG" = x; then
5847    WXCONFIG=wx-config
5848 fi
5849 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5850 set dummy ${WXCONFIG}; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if ${ac_cv_path_WXCONFIG+:} false; then :
5854   $as_echo_n "(cached) " >&6
5855 else
5856   case $WXCONFIG in
5857   [\\/]* | ?:[\\/]*)
5858   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5859   ;;
5860   *)
5861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864   IFS=$as_save_IFS
5865   test -z "$as_dir" && as_dir=.
5866     for ac_exec_ext in '' $ac_executable_extensions; do
5867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870     break 2
5871   fi
5872 done
5873   done
5874 IFS=$as_save_IFS
5875
5876   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5877   ;;
5878 esac
5879 fi
5880 WXCONFIG=$ac_cv_path_WXCONFIG
5881 if test -n "$WXCONFIG"; then
5882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5883 $as_echo "$WXCONFIG" >&6; }
5884 else
5885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5887 fi
5888
5889
5890
5891 # Extract the first word of "cdrecord", so it can be a program name with args.
5892 set dummy cdrecord; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_path_CDRECORD+:} false; then :
5896   $as_echo_n "(cached) " >&6
5897 else
5898   case $CDRECORD in
5899   [\\/]* | ?:[\\/]*)
5900   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5901   ;;
5902   *)
5903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906   IFS=$as_save_IFS
5907   test -z "$as_dir" && as_dir=.
5908     for ac_exec_ext in '' $ac_executable_extensions; do
5909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912     break 2
5913   fi
5914 done
5915   done
5916 IFS=$as_save_IFS
5917
5918   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5919   ;;
5920 esac
5921 fi
5922 CDRECORD=$ac_cv_path_CDRECORD
5923 if test -n "$CDRECORD"; then
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5925 $as_echo "$CDRECORD" >&6; }
5926 else
5927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5929 fi
5930
5931
5932 # Extract the first word of "pidof", so it can be a program name with args.
5933 set dummy pidof; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_path_PIDOF+:} false; then :
5937   $as_echo_n "(cached) " >&6
5938 else
5939   case $PIDOF in
5940   [\\/]* | ?:[\\/]*)
5941   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5942   ;;
5943   *)
5944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947   IFS=$as_save_IFS
5948   test -z "$as_dir" && as_dir=.
5949     for ac_exec_ext in '' $ac_executable_extensions; do
5950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953     break 2
5954   fi
5955 done
5956   done
5957 IFS=$as_save_IFS
5958
5959   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5960   ;;
5961 esac
5962 fi
5963 PIDOF=$ac_cv_path_PIDOF
5964 if test -n "$PIDOF"; then
5965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5966 $as_echo "$PIDOF" >&6; }
5967 else
5968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 $as_echo "no" >&6; }
5970 fi
5971
5972
5973 for ac_prog in gawk mawk nawk awk
5974 do
5975   # Extract the first word of "$ac_prog", so it can be a program name with args.
5976 set dummy $ac_prog; ac_word=$2
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978 $as_echo_n "checking for $ac_word... " >&6; }
5979 if ${ac_cv_prog_AWK+:} false; then :
5980   $as_echo_n "(cached) " >&6
5981 else
5982   if test -n "$AWK"; then
5983   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5987 do
5988   IFS=$as_save_IFS
5989   test -z "$as_dir" && as_dir=.
5990     for ac_exec_ext in '' $ac_executable_extensions; do
5991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5992     ac_cv_prog_AWK="$ac_prog"
5993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994     break 2
5995   fi
5996 done
5997   done
5998 IFS=$as_save_IFS
5999
6000 fi
6001 fi
6002 AWK=$ac_cv_prog_AWK
6003 if test -n "$AWK"; then
6004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6005 $as_echo "$AWK" >&6; }
6006 else
6007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 $as_echo "no" >&6; }
6009 fi
6010
6011
6012   test -n "$AWK" && break
6013 done
6014
6015 # Some AWK programs fail, so test it and warn the user
6016 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
6017       { if ((prog == $2) || (("(" prog ")") == $2) ||
6018       (("" prog "") == $2) ||
6019       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
6020 else
6021   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
6022    The regex engine of $AWK is too broken to be used you
6023    might want to install GNU AWK.
6024    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
6025 fi
6026 THE_AWK=$AWK
6027 # Extract the first word of "$THE_AWK", so it can be a program name with args.
6028 set dummy $THE_AWK; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_path_AWK+:} false; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034   case $AWK in
6035   [\\/]* | ?:[\\/]*)
6036   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6037   ;;
6038   *)
6039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042   IFS=$as_save_IFS
6043   test -z "$as_dir" && as_dir=.
6044     for ac_exec_ext in '' $ac_executable_extensions; do
6045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
6047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048     break 2
6049   fi
6050 done
6051   done
6052 IFS=$as_save_IFS
6053
6054   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
6055   ;;
6056 esac
6057 fi
6058 AWK=$ac_cv_path_AWK
6059 if test -n "$AWK"; then
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6061 $as_echo "$AWK" >&6; }
6062 else
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067
6068
6069
6070 test -n "$ARFLAG" || ARFLAGS="cr"
6071
6072
6073 MAKE_SHELL=/bin/sh
6074
6075
6076
6077
6078
6079
6080
6081 use_libtool=yes
6082 # Check whether --enable-libtool was given.
6083 if test "${enable_libtool+set}" = set; then :
6084   enableval=$enable_libtool;
6085        if test x$enableval = xno; then
6086           use_libtool=no
6087        fi
6088
6089
6090 fi
6091
6092 case `pwd` in
6093   *\ * | *\     *)
6094     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6095 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6096 esac
6097
6098
6099
6100 macro_version='2.2.6'
6101 macro_revision='1.3012'
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115 ltmain="$ac_aux_dir/ltmain.sh"
6116
6117 # Make sure we can run config.sub.
6118 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6119   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6120
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6122 $as_echo_n "checking build system type... " >&6; }
6123 if ${ac_cv_build+:} false; then :
6124   $as_echo_n "(cached) " >&6
6125 else
6126   ac_build_alias=$build_alias
6127 test "x$ac_build_alias" = x &&
6128   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6129 test "x$ac_build_alias" = x &&
6130   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6131 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6132   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6133
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6136 $as_echo "$ac_cv_build" >&6; }
6137 case $ac_cv_build in
6138 *-*-*) ;;
6139 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6140 esac
6141 build=$ac_cv_build
6142 ac_save_IFS=$IFS; IFS='-'
6143 set x $ac_cv_build
6144 shift
6145 build_cpu=$1
6146 build_vendor=$2
6147 shift; shift
6148 # Remember, the first character of IFS is used to create $*,
6149 # except with old shells:
6150 build_os=$*
6151 IFS=$ac_save_IFS
6152 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6153
6154
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6156 $as_echo_n "checking host system type... " >&6; }
6157 if ${ac_cv_host+:} false; then :
6158   $as_echo_n "(cached) " >&6
6159 else
6160   if test "x$host_alias" = x; then
6161   ac_cv_host=$ac_cv_build
6162 else
6163   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6164     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6165 fi
6166
6167 fi
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6169 $as_echo "$ac_cv_host" >&6; }
6170 case $ac_cv_host in
6171 *-*-*) ;;
6172 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6173 esac
6174 host=$ac_cv_host
6175 ac_save_IFS=$IFS; IFS='-'
6176 set x $ac_cv_host
6177 shift
6178 host_cpu=$1
6179 host_vendor=$2
6180 shift; shift
6181 # Remember, the first character of IFS is used to create $*,
6182 # except with old shells:
6183 host_os=$*
6184 IFS=$ac_save_IFS
6185 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6186
6187
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6189 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6190 if ${ac_cv_path_SED+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6194      for ac_i in 1 2 3 4 5 6 7; do
6195        ac_script="$ac_script$as_nl$ac_script"
6196      done
6197      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6198      { ac_script=; unset ac_script;}
6199      if test -z "$SED"; then
6200   ac_path_SED_found=false
6201   # Loop through the user's path and test for each of PROGNAME-LIST
6202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207     for ac_prog in sed gsed; do
6208     for ac_exec_ext in '' $ac_executable_extensions; do
6209       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6210       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6211 # Check for GNU ac_path_SED and select it if it is found.
6212   # Check for GNU $ac_path_SED
6213 case `"$ac_path_SED" --version 2>&1` in
6214 *GNU*)
6215   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6216 *)
6217   ac_count=0
6218   $as_echo_n 0123456789 >"conftest.in"
6219   while :
6220   do
6221     cat "conftest.in" "conftest.in" >"conftest.tmp"
6222     mv "conftest.tmp" "conftest.in"
6223     cp "conftest.in" "conftest.nl"
6224     $as_echo '' >> "conftest.nl"
6225     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6226     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6227     as_fn_arith $ac_count + 1 && ac_count=$as_val
6228     if test $ac_count -gt ${ac_path_SED_max-0}; then
6229       # Best one so far, save it but keep looking for a better one
6230       ac_cv_path_SED="$ac_path_SED"
6231       ac_path_SED_max=$ac_count
6232     fi
6233     # 10*(2^10) chars as input seems more than enough
6234     test $ac_count -gt 10 && break
6235   done
6236   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6237 esac
6238
6239       $ac_path_SED_found && break 3
6240     done
6241   done
6242   done
6243 IFS=$as_save_IFS
6244   if test -z "$ac_cv_path_SED"; then
6245     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6246   fi
6247 else
6248   ac_cv_path_SED=$SED
6249 fi
6250
6251 fi
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6253 $as_echo "$ac_cv_path_SED" >&6; }
6254  SED="$ac_cv_path_SED"
6255   rm -f conftest.sed
6256
6257 test -z "$SED" && SED=sed
6258 Xsed="$SED -e 1s/^X//"
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6271 $as_echo_n "checking for fgrep... " >&6; }
6272 if ${ac_cv_path_FGREP+:} false; then :
6273   $as_echo_n "(cached) " >&6
6274 else
6275   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6276    then ac_cv_path_FGREP="$GREP -F"
6277    else
6278      if test -z "$FGREP"; then
6279   ac_path_FGREP_found=false
6280   # Loop through the user's path and test for each of PROGNAME-LIST
6281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6283 do
6284   IFS=$as_save_IFS
6285   test -z "$as_dir" && as_dir=.
6286     for ac_prog in fgrep; do
6287     for ac_exec_ext in '' $ac_executable_extensions; do
6288       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6289       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6290 # Check for GNU ac_path_FGREP and select it if it is found.
6291   # Check for GNU $ac_path_FGREP
6292 case `"$ac_path_FGREP" --version 2>&1` in
6293 *GNU*)
6294   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6295 *)
6296   ac_count=0
6297   $as_echo_n 0123456789 >"conftest.in"
6298   while :
6299   do
6300     cat "conftest.in" "conftest.in" >"conftest.tmp"
6301     mv "conftest.tmp" "conftest.in"
6302     cp "conftest.in" "conftest.nl"
6303     $as_echo 'FGREP' >> "conftest.nl"
6304     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6305     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6306     as_fn_arith $ac_count + 1 && ac_count=$as_val
6307     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6308       # Best one so far, save it but keep looking for a better one
6309       ac_cv_path_FGREP="$ac_path_FGREP"
6310       ac_path_FGREP_max=$ac_count
6311     fi
6312     # 10*(2^10) chars as input seems more than enough
6313     test $ac_count -gt 10 && break
6314   done
6315   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6316 esac
6317
6318       $ac_path_FGREP_found && break 3
6319     done
6320   done
6321   done
6322 IFS=$as_save_IFS
6323   if test -z "$ac_cv_path_FGREP"; then
6324     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6325   fi
6326 else
6327   ac_cv_path_FGREP=$FGREP
6328 fi
6329
6330    fi
6331 fi
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6333 $as_echo "$ac_cv_path_FGREP" >&6; }
6334  FGREP="$ac_cv_path_FGREP"
6335
6336
6337 test -z "$GREP" && GREP=grep
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357 # Check whether --with-gnu-ld was given.
6358 if test "${with_gnu_ld+set}" = set; then :
6359   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6360 else
6361   with_gnu_ld=no
6362 fi
6363
6364 ac_prog=ld
6365 if test "$GCC" = yes; then
6366   # Check if gcc -print-prog-name=ld gives a path.
6367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6368 $as_echo_n "checking for ld used by $CC... " >&6; }
6369   case $host in
6370   *-*-mingw*)
6371     # gcc leaves a trailing carriage return which upsets mingw
6372     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6373   *)
6374     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6375   esac
6376   case $ac_prog in
6377     # Accept absolute paths.
6378     [\\/]* | ?:[\\/]*)
6379       re_direlt='/[^/][^/]*/\.\./'
6380       # Canonicalize the pathname of ld
6381       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6382       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6383         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6384       done
6385       test -z "$LD" && LD="$ac_prog"
6386       ;;
6387   "")
6388     # If it fails, then pretend we aren't using GCC.
6389     ac_prog=ld
6390     ;;
6391   *)
6392     # If it is relative, then search for the first ld in PATH.
6393     with_gnu_ld=unknown
6394     ;;
6395   esac
6396 elif test "$with_gnu_ld" = yes; then
6397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6398 $as_echo_n "checking for GNU ld... " >&6; }
6399 else
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6401 $as_echo_n "checking for non-GNU ld... " >&6; }
6402 fi
6403 if ${lt_cv_path_LD+:} false; then :
6404   $as_echo_n "(cached) " >&6
6405 else
6406   if test -z "$LD"; then
6407   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6408   for ac_dir in $PATH; do
6409     IFS="$lt_save_ifs"
6410     test -z "$ac_dir" && ac_dir=.
6411     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6412       lt_cv_path_LD="$ac_dir/$ac_prog"
6413       # Check to see if the program is GNU ld.  I'd rather use --version,
6414       # but apparently some variants of GNU ld only accept -v.
6415       # Break only if it was the GNU/non-GNU ld that we prefer.
6416       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6417       *GNU* | *'with BFD'*)
6418         test "$with_gnu_ld" != no && break
6419         ;;
6420       *)
6421         test "$with_gnu_ld" != yes && break
6422         ;;
6423       esac
6424     fi
6425   done
6426   IFS="$lt_save_ifs"
6427 else
6428   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6429 fi
6430 fi
6431
6432 LD="$lt_cv_path_LD"
6433 if test -n "$LD"; then
6434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6435 $as_echo "$LD" >&6; }
6436 else
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6439 fi
6440 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6442 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6443 if ${lt_cv_prog_gnu_ld+:} false; then :
6444   $as_echo_n "(cached) " >&6
6445 else
6446   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6447 case `$LD -v 2>&1 </dev/null` in
6448 *GNU* | *'with BFD'*)
6449   lt_cv_prog_gnu_ld=yes
6450   ;;
6451 *)
6452   lt_cv_prog_gnu_ld=no
6453   ;;
6454 esac
6455 fi
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6457 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6458 with_gnu_ld=$lt_cv_prog_gnu_ld
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6469 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6470 if ${lt_cv_path_NM+:} false; then :
6471   $as_echo_n "(cached) " >&6
6472 else
6473   if test -n "$NM"; then
6474   # Let the user override the test.
6475   lt_cv_path_NM="$NM"
6476 else
6477   lt_nm_to_check="${ac_tool_prefix}nm"
6478   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6479     lt_nm_to_check="$lt_nm_to_check nm"
6480   fi
6481   for lt_tmp_nm in $lt_nm_to_check; do
6482     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6483     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6484       IFS="$lt_save_ifs"
6485       test -z "$ac_dir" && ac_dir=.
6486       tmp_nm="$ac_dir/$lt_tmp_nm"
6487       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6488         # Check to see if the nm accepts a BSD-compat flag.
6489         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6490         #   nm: unknown option "B" ignored
6491         # Tru64's nm complains that /dev/null is an invalid object file
6492         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6493         */dev/null* | *'Invalid file or object type'*)
6494           lt_cv_path_NM="$tmp_nm -B"
6495           break
6496           ;;
6497         *)
6498           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6499           */dev/null*)
6500             lt_cv_path_NM="$tmp_nm -p"
6501             break
6502             ;;
6503           *)
6504             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6505             continue # so that we can try to find one that supports BSD flags
6506             ;;
6507           esac
6508           ;;
6509         esac
6510       fi
6511     done
6512     IFS="$lt_save_ifs"
6513   done
6514   : ${lt_cv_path_NM=no}
6515 fi
6516 fi
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6518 $as_echo "$lt_cv_path_NM" >&6; }
6519 if test "$lt_cv_path_NM" != "no"; then
6520   NM="$lt_cv_path_NM"
6521 else
6522   # Didn't find any BSD compatible name lister, look for dumpbin.
6523   if test -n "$ac_tool_prefix"; then
6524   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6525   do
6526     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_DUMPBIN+:} false; then :
6531   $as_echo_n "(cached) " >&6
6532 else
6533   if test -n "$DUMPBIN"; then
6534   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541     for ac_exec_ext in '' $ac_executable_extensions; do
6542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548   done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 DUMPBIN=$ac_cv_prog_DUMPBIN
6554 if test -n "$DUMPBIN"; then
6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6556 $as_echo "$DUMPBIN" >&6; }
6557 else
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561
6562
6563     test -n "$DUMPBIN" && break
6564   done
6565 fi
6566 if test -z "$DUMPBIN"; then
6567   ac_ct_DUMPBIN=$DUMPBIN
6568   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6569 do
6570   # Extract the first word of "$ac_prog", so it can be a program name with args.
6571 set dummy $ac_prog; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6575   $as_echo_n "(cached) " >&6
6576 else
6577   if test -n "$ac_ct_DUMPBIN"; then
6578   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585     for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592   done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6598 if test -n "$ac_ct_DUMPBIN"; then
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6600 $as_echo "$ac_ct_DUMPBIN" >&6; }
6601 else
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606
6607   test -n "$ac_ct_DUMPBIN" && break
6608 done
6609
6610   if test "x$ac_ct_DUMPBIN" = x; then
6611     DUMPBIN=":"
6612   else
6613     case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619     DUMPBIN=$ac_ct_DUMPBIN
6620   fi
6621 fi
6622
6623
6624   if test "$DUMPBIN" != ":"; then
6625     NM="$DUMPBIN"
6626   fi
6627 fi
6628 test -z "$NM" && NM=nm
6629
6630
6631
6632
6633
6634
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6636 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6637 if ${lt_cv_nm_interface+:} false; then :
6638   $as_echo_n "(cached) " >&6
6639 else
6640   lt_cv_nm_interface="BSD nm"
6641   echo "int some_variable = 0;" > conftest.$ac_ext
6642   (eval echo "\"\$as_me:6642: $ac_compile\"" >&5)
6643   (eval "$ac_compile" 2>conftest.err)
6644   cat conftest.err >&5
6645   (eval echo "\"\$as_me:6645: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6646   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6647   cat conftest.err >&5
6648   (eval echo "\"\$as_me:6648: output\"" >&5)
6649   cat conftest.out >&5
6650   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6651     lt_cv_nm_interface="MS dumpbin"
6652   fi
6653   rm -f conftest*
6654 fi
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6656 $as_echo "$lt_cv_nm_interface" >&6; }
6657
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6659 $as_echo_n "checking whether ln -s works... " >&6; }
6660 LN_S=$as_ln_s
6661 if test "$LN_S" = "ln -s"; then
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6663 $as_echo "yes" >&6; }
6664 else
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6666 $as_echo "no, using $LN_S" >&6; }
6667 fi
6668
6669 # find the maximum length of command line arguments
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6671 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6672 if ${lt_cv_sys_max_cmd_len+:} false; then :
6673   $as_echo_n "(cached) " >&6
6674 else
6675     i=0
6676   teststring="ABCD"
6677
6678   case $build_os in
6679   msdosdjgpp*)
6680     # On DJGPP, this test can blow up pretty badly due to problems in libc
6681     # (any single argument exceeding 2000 bytes causes a buffer overrun
6682     # during glob expansion).  Even if it were fixed, the result of this
6683     # check would be larger than it should be.
6684     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6685     ;;
6686
6687   gnu*)
6688     # Under GNU Hurd, this test is not required because there is
6689     # no limit to the length of command line arguments.
6690     # Libtool will interpret -1 as no limit whatsoever
6691     lt_cv_sys_max_cmd_len=-1;
6692     ;;
6693
6694   cygwin* | mingw* | cegcc*)
6695     # On Win9x/ME, this test blows up -- it succeeds, but takes
6696     # about 5 minutes as the teststring grows exponentially.
6697     # Worse, since 9x/ME are not pre-emptively multitasking,
6698     # you end up with a "frozen" computer, even though with patience
6699     # the test eventually succeeds (with a max line length of 256k).
6700     # Instead, let's just punt: use the minimum linelength reported by
6701     # all of the supported platforms: 8192 (on NT/2K/XP).
6702     lt_cv_sys_max_cmd_len=8192;
6703     ;;
6704
6705   amigaos*)
6706     # On AmigaOS with pdksh, this test takes hours, literally.
6707     # So we just punt and use a minimum line length of 8192.
6708     lt_cv_sys_max_cmd_len=8192;
6709     ;;
6710
6711   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6712     # This has been around since 386BSD, at least.  Likely further.
6713     if test -x /sbin/sysctl; then
6714       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6715     elif test -x /usr/sbin/sysctl; then
6716       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6717     else
6718       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6719     fi
6720     # And add a safety zone
6721     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6722     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6723     ;;
6724
6725   interix*)
6726     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6727     lt_cv_sys_max_cmd_len=196608
6728     ;;
6729
6730   osf*)
6731     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6732     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6733     # nice to cause kernel panics so lets avoid the loop below.
6734     # First set a reasonable default.
6735     lt_cv_sys_max_cmd_len=16384
6736     #
6737     if test -x /sbin/sysconfig; then
6738       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6739         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6740       esac
6741     fi
6742     ;;
6743   sco3.2v5*)
6744     lt_cv_sys_max_cmd_len=102400
6745     ;;
6746   sysv5* | sco5v6* | sysv4.2uw2*)
6747     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6748     if test -n "$kargmax"; then
6749       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6750     else
6751       lt_cv_sys_max_cmd_len=32768
6752     fi
6753     ;;
6754   *)
6755     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6756     if test -n "$lt_cv_sys_max_cmd_len"; then
6757       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6758       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6759     else
6760       # Make teststring a little bigger before we do anything with it.
6761       # a 1K string should be a reasonable start.
6762       for i in 1 2 3 4 5 6 7 8 ; do
6763         teststring=$teststring$teststring
6764       done
6765       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6766       # If test is not a shell built-in, we'll probably end up computing a
6767       # maximum length that is only half of the actual maximum length, but
6768       # we can't tell.
6769       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6770                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6771               test $i != 17 # 1/2 MB should be enough
6772       do
6773         i=`expr $i + 1`
6774         teststring=$teststring$teststring
6775       done
6776       # Only check the string length outside the loop.
6777       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6778       teststring=
6779       # Add a significant safety factor because C++ compilers can tack on
6780       # massive amounts of additional arguments before passing them to the
6781       # linker.  It appears as though 1/2 is a usable value.
6782       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6783     fi
6784     ;;
6785   esac
6786
6787 fi
6788
6789 if test -n $lt_cv_sys_max_cmd_len ; then
6790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6791 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6792 else
6793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6794 $as_echo "none" >&6; }
6795 fi
6796 max_cmd_len=$lt_cv_sys_max_cmd_len
6797
6798
6799
6800
6801
6802
6803 : ${CP="cp -f"}
6804 : ${MV="mv -f"}
6805 : ${RM="rm -f"}
6806
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6808 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6809 # Try some XSI features
6810 xsi_shell=no
6811 ( _lt_dummy="a/b/c"
6812   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6813       = c,a/b,, \
6814     && eval 'test $(( 1 + 1 )) -eq 2 \
6815     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6816   && xsi_shell=yes
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6818 $as_echo "$xsi_shell" >&6; }
6819
6820
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6822 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6823 lt_shell_append=no
6824 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6825     >/dev/null 2>&1 \
6826   && lt_shell_append=yes
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6828 $as_echo "$lt_shell_append" >&6; }
6829
6830
6831 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6832   lt_unset=unset
6833 else
6834   lt_unset=false
6835 fi
6836
6837
6838
6839
6840
6841 # test EBCDIC or ASCII
6842 case `echo X|tr X '\101'` in
6843  A) # ASCII based system
6844     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6845   lt_SP2NL='tr \040 \012'
6846   lt_NL2SP='tr \015\012 \040\040'
6847   ;;
6848  *) # EBCDIC based system
6849   lt_SP2NL='tr \100 \n'
6850   lt_NL2SP='tr \r\n \100\100'
6851   ;;
6852 esac
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6863 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6864 if ${lt_cv_ld_reload_flag+:} false; then :
6865   $as_echo_n "(cached) " >&6
6866 else
6867   lt_cv_ld_reload_flag='-r'
6868 fi
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6870 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6871 reload_flag=$lt_cv_ld_reload_flag
6872 case $reload_flag in
6873 "" | " "*) ;;
6874 *) reload_flag=" $reload_flag" ;;
6875 esac
6876 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6877 case $host_os in
6878   darwin*)
6879     if test "$GCC" = yes; then
6880       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6881     else
6882       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6883     fi
6884     ;;
6885 esac
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895 if test -n "$ac_tool_prefix"; then
6896   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6897 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_OBJDUMP+:} false; then :
6901   $as_echo_n "(cached) " >&6
6902 else
6903   if test -n "$OBJDUMP"; then
6904   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909   IFS=$as_save_IFS
6910   test -z "$as_dir" && as_dir=.
6911     for ac_exec_ext in '' $ac_executable_extensions; do
6912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915     break 2
6916   fi
6917 done
6918   done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 OBJDUMP=$ac_cv_prog_OBJDUMP
6924 if test -n "$OBJDUMP"; then
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6926 $as_echo "$OBJDUMP" >&6; }
6927 else
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6931
6932
6933 fi
6934 if test -z "$ac_cv_prog_OBJDUMP"; then
6935   ac_ct_OBJDUMP=$OBJDUMP
6936   # Extract the first word of "objdump", so it can be a program name with args.
6937 set dummy objdump; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6941   $as_echo_n "(cached) " >&6
6942 else
6943   if test -n "$ac_ct_OBJDUMP"; then
6944   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949   IFS=$as_save_IFS
6950   test -z "$as_dir" && as_dir=.
6951     for ac_exec_ext in '' $ac_executable_extensions; do
6952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955     break 2
6956   fi
6957 done
6958   done
6959 IFS=$as_save_IFS
6960
6961 fi
6962 fi
6963 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6964 if test -n "$ac_ct_OBJDUMP"; then
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6966 $as_echo "$ac_ct_OBJDUMP" >&6; }
6967 else
6968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6970 fi
6971
6972   if test "x$ac_ct_OBJDUMP" = x; then
6973     OBJDUMP="false"
6974   else
6975     case $cross_compiling:$ac_tool_warned in
6976 yes:)
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979 ac_tool_warned=yes ;;
6980 esac
6981     OBJDUMP=$ac_ct_OBJDUMP
6982   fi
6983 else
6984   OBJDUMP="$ac_cv_prog_OBJDUMP"
6985 fi
6986
6987 test -z "$OBJDUMP" && OBJDUMP=objdump
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6998 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6999 if ${lt_cv_deplibs_check_method+:} false; then :
7000   $as_echo_n "(cached) " >&6
7001 else
7002   lt_cv_file_magic_cmd='$MAGIC_CMD'
7003 lt_cv_file_magic_test_file=
7004 lt_cv_deplibs_check_method='unknown'
7005 # Need to set the preceding variable on all platforms that support
7006 # interlibrary dependencies.
7007 # 'none' -- dependencies not supported.
7008 # `unknown' -- same as none, but documents that we really don't know.
7009 # 'pass_all' -- all dependencies passed with no checks.
7010 # 'test_compile' -- check by making test program.
7011 # 'file_magic [[regex]]' -- check by looking for files in library path
7012 # which responds to the $file_magic_cmd with a given extended regex.
7013 # If you have `file' or equivalent on your system and you're not sure
7014 # whether `pass_all' will *always* work, you probably want this one.
7015
7016 case $host_os in
7017 aix[4-9]*)
7018   lt_cv_deplibs_check_method=pass_all
7019   ;;
7020
7021 beos*)
7022   lt_cv_deplibs_check_method=pass_all
7023   ;;
7024
7025 bsdi[45]*)
7026   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7027   lt_cv_file_magic_cmd='/usr/bin/file -L'
7028   lt_cv_file_magic_test_file=/shlib/libc.so
7029   ;;
7030
7031 cygwin*)
7032   # func_win32_libid is a shell function defined in ltmain.sh
7033   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7034   lt_cv_file_magic_cmd='func_win32_libid'
7035   ;;
7036
7037 mingw* | pw32*)
7038   # Base MSYS/MinGW do not provide the 'file' command needed by
7039   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7040   # unless we find 'file', for example because we are cross-compiling.
7041   if ( file / ) >/dev/null 2>&1; then
7042     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7043     lt_cv_file_magic_cmd='func_win32_libid'
7044   else
7045     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7046     lt_cv_file_magic_cmd='$OBJDUMP -f'
7047   fi
7048   ;;
7049
7050 cegcc)
7051   # use the weaker test based on 'objdump'. See mingw*.
7052   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7053   lt_cv_file_magic_cmd='$OBJDUMP -f'
7054   ;;
7055
7056 darwin* | rhapsody*)
7057   lt_cv_deplibs_check_method=pass_all
7058   ;;
7059
7060 freebsd* | dragonfly*)
7061   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7062     case $host_cpu in
7063     i*86 )
7064       # Not sure whether the presence of OpenBSD here was a mistake.
7065       # Let's accept both of them until this is cleared up.
7066       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7067       lt_cv_file_magic_cmd=/usr/bin/file
7068       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7069       ;;
7070     esac
7071   else
7072     lt_cv_deplibs_check_method=pass_all
7073   fi
7074   ;;
7075
7076 gnu*)
7077   lt_cv_deplibs_check_method=pass_all
7078   ;;
7079
7080 hpux10.20* | hpux11*)
7081   lt_cv_file_magic_cmd=/usr/bin/file
7082   case $host_cpu in
7083   ia64*)
7084     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7085     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7086     ;;
7087   hppa*64*)
7088     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]'
7089     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7090     ;;
7091   *)
7092     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7093     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7094     ;;
7095   esac
7096   ;;
7097
7098 interix[3-9]*)
7099   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7100   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7101   ;;
7102
7103 irix5* | irix6* | nonstopux*)
7104   case $LD in
7105   *-32|*"-32 ") libmagic=32-bit;;
7106   *-n32|*"-n32 ") libmagic=N32;;
7107   *-64|*"-64 ") libmagic=64-bit;;
7108   *) libmagic=never-match;;
7109   esac
7110   lt_cv_deplibs_check_method=pass_all
7111   ;;
7112
7113 # This must be Linux ELF.
7114 linux* | k*bsd*-gnu)
7115   lt_cv_deplibs_check_method=pass_all
7116   ;;
7117
7118 netbsd*)
7119   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7120     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7121   else
7122     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7123   fi
7124   ;;
7125
7126 newos6*)
7127   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7128   lt_cv_file_magic_cmd=/usr/bin/file
7129   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7130   ;;
7131
7132 *nto* | *qnx*)
7133   lt_cv_deplibs_check_method=pass_all
7134   ;;
7135
7136 openbsd*)
7137   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7138     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7139   else
7140     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7141   fi
7142   ;;
7143
7144 osf3* | osf4* | osf5*)
7145   lt_cv_deplibs_check_method=pass_all
7146   ;;
7147
7148 rdos*)
7149   lt_cv_deplibs_check_method=pass_all
7150   ;;
7151
7152 solaris*)
7153   lt_cv_deplibs_check_method=pass_all
7154   ;;
7155
7156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7157   lt_cv_deplibs_check_method=pass_all
7158   ;;
7159
7160 sysv4 | sysv4.3*)
7161   case $host_vendor in
7162   motorola)
7163     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]'
7164     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7165     ;;
7166   ncr)
7167     lt_cv_deplibs_check_method=pass_all
7168     ;;
7169   sequent)
7170     lt_cv_file_magic_cmd='/bin/file'
7171     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7172     ;;
7173   sni)
7174     lt_cv_file_magic_cmd='/bin/file'
7175     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7176     lt_cv_file_magic_test_file=/lib/libc.so
7177     ;;
7178   siemens)
7179     lt_cv_deplibs_check_method=pass_all
7180     ;;
7181   pc)
7182     lt_cv_deplibs_check_method=pass_all
7183     ;;
7184   esac
7185   ;;
7186
7187 tpf*)
7188   lt_cv_deplibs_check_method=pass_all
7189   ;;
7190 esac
7191
7192 fi
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7194 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7195 file_magic_cmd=$lt_cv_file_magic_cmd
7196 deplibs_check_method=$lt_cv_deplibs_check_method
7197 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210 if test -n "$ac_tool_prefix"; then
7211   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7212 set dummy ${ac_tool_prefix}ar; ac_word=$2
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214 $as_echo_n "checking for $ac_word... " >&6; }
7215 if ${ac_cv_prog_AR+:} false; then :
7216   $as_echo_n "(cached) " >&6
7217 else
7218   if test -n "$AR"; then
7219   ac_cv_prog_AR="$AR" # Let the user override the test.
7220 else
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224   IFS=$as_save_IFS
7225   test -z "$as_dir" && as_dir=.
7226     for ac_exec_ext in '' $ac_executable_extensions; do
7227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7228     ac_cv_prog_AR="${ac_tool_prefix}ar"
7229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230     break 2
7231   fi
7232 done
7233   done
7234 IFS=$as_save_IFS
7235
7236 fi
7237 fi
7238 AR=$ac_cv_prog_AR
7239 if test -n "$AR"; then
7240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7241 $as_echo "$AR" >&6; }
7242 else
7243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7245 fi
7246
7247
7248 fi
7249 if test -z "$ac_cv_prog_AR"; then
7250   ac_ct_AR=$AR
7251   # Extract the first word of "ar", so it can be a program name with args.
7252 set dummy ar; ac_word=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7256   $as_echo_n "(cached) " >&6
7257 else
7258   if test -n "$ac_ct_AR"; then
7259   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264   IFS=$as_save_IFS
7265   test -z "$as_dir" && as_dir=.
7266     for ac_exec_ext in '' $ac_executable_extensions; do
7267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7268     ac_cv_prog_ac_ct_AR="ar"
7269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270     break 2
7271   fi
7272 done
7273   done
7274 IFS=$as_save_IFS
7275
7276 fi
7277 fi
7278 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7279 if test -n "$ac_ct_AR"; then
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7281 $as_echo "$ac_ct_AR" >&6; }
7282 else
7283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7285 fi
7286
7287   if test "x$ac_ct_AR" = x; then
7288     AR="false"
7289   else
7290     case $cross_compiling:$ac_tool_warned in
7291 yes:)
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7294 ac_tool_warned=yes ;;
7295 esac
7296     AR=$ac_ct_AR
7297   fi
7298 else
7299   AR="$ac_cv_prog_AR"
7300 fi
7301
7302 test -z "$AR" && AR=ar
7303 test -z "$AR_FLAGS" && AR_FLAGS=cru
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315 if test -n "$ac_tool_prefix"; then
7316   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7317 set dummy ${ac_tool_prefix}strip; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_STRIP+:} false; then :
7321   $as_echo_n "(cached) " >&6
7322 else
7323   if test -n "$STRIP"; then
7324   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7325 else
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 for as_dir in $PATH
7328 do
7329   IFS=$as_save_IFS
7330   test -z "$as_dir" && as_dir=.
7331     for ac_exec_ext in '' $ac_executable_extensions; do
7332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335     break 2
7336   fi
7337 done
7338   done
7339 IFS=$as_save_IFS
7340
7341 fi
7342 fi
7343 STRIP=$ac_cv_prog_STRIP
7344 if test -n "$STRIP"; then
7345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7346 $as_echo "$STRIP" >&6; }
7347 else
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7350 fi
7351
7352
7353 fi
7354 if test -z "$ac_cv_prog_STRIP"; then
7355   ac_ct_STRIP=$STRIP
7356   # Extract the first word of "strip", so it can be a program name with args.
7357 set dummy strip; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7361   $as_echo_n "(cached) " >&6
7362 else
7363   if test -n "$ac_ct_STRIP"; then
7364   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371     for ac_exec_ext in '' $ac_executable_extensions; do
7372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373     ac_cv_prog_ac_ct_STRIP="strip"
7374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378   done
7379 IFS=$as_save_IFS
7380
7381 fi
7382 fi
7383 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7384 if test -n "$ac_ct_STRIP"; then
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7386 $as_echo "$ac_ct_STRIP" >&6; }
7387 else
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7390 fi
7391
7392   if test "x$ac_ct_STRIP" = x; then
7393     STRIP=":"
7394   else
7395     case $cross_compiling:$ac_tool_warned in
7396 yes:)
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399 ac_tool_warned=yes ;;
7400 esac
7401     STRIP=$ac_ct_STRIP
7402   fi
7403 else
7404   STRIP="$ac_cv_prog_STRIP"
7405 fi
7406
7407 test -z "$STRIP" && STRIP=:
7408
7409
7410
7411
7412
7413
7414 if test -n "$ac_tool_prefix"; then
7415   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7416 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if ${ac_cv_prog_RANLIB+:} false; then :
7420   $as_echo_n "(cached) " >&6
7421 else
7422   if test -n "$RANLIB"; then
7423   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7424 else
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428   IFS=$as_save_IFS
7429   test -z "$as_dir" && as_dir=.
7430     for ac_exec_ext in '' $ac_executable_extensions; do
7431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434     break 2
7435   fi
7436 done
7437   done
7438 IFS=$as_save_IFS
7439
7440 fi
7441 fi
7442 RANLIB=$ac_cv_prog_RANLIB
7443 if test -n "$RANLIB"; then
7444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7445 $as_echo "$RANLIB" >&6; }
7446 else
7447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7449 fi
7450
7451
7452 fi
7453 if test -z "$ac_cv_prog_RANLIB"; then
7454   ac_ct_RANLIB=$RANLIB
7455   # Extract the first word of "ranlib", so it can be a program name with args.
7456 set dummy ranlib; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7460   $as_echo_n "(cached) " >&6
7461 else
7462   if test -n "$ac_ct_RANLIB"; then
7463   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468   IFS=$as_save_IFS
7469   test -z "$as_dir" && as_dir=.
7470     for ac_exec_ext in '' $ac_executable_extensions; do
7471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472     ac_cv_prog_ac_ct_RANLIB="ranlib"
7473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474     break 2
7475   fi
7476 done
7477   done
7478 IFS=$as_save_IFS
7479
7480 fi
7481 fi
7482 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7483 if test -n "$ac_ct_RANLIB"; then
7484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7485 $as_echo "$ac_ct_RANLIB" >&6; }
7486 else
7487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7489 fi
7490
7491   if test "x$ac_ct_RANLIB" = x; then
7492     RANLIB=":"
7493   else
7494     case $cross_compiling:$ac_tool_warned in
7495 yes:)
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498 ac_tool_warned=yes ;;
7499 esac
7500     RANLIB=$ac_ct_RANLIB
7501   fi
7502 else
7503   RANLIB="$ac_cv_prog_RANLIB"
7504 fi
7505
7506 test -z "$RANLIB" && RANLIB=:
7507
7508
7509
7510
7511
7512
7513 # Determine commands to create old-style static archives.
7514 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7515 old_postinstall_cmds='chmod 644 $oldlib'
7516 old_postuninstall_cmds=
7517
7518 if test -n "$RANLIB"; then
7519   case $host_os in
7520   openbsd*)
7521     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7522     ;;
7523   *)
7524     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7525     ;;
7526   esac
7527   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7528 fi
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563 # If no C compiler was specified, use CC.
7564 LTCC=${LTCC-"$CC"}
7565
7566 # If no C compiler flags were specified, use CFLAGS.
7567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7568
7569 # Allow CC to be a program name with arguments.
7570 compiler=$CC
7571
7572
7573 # Check for command to grab the raw symbol name followed by C symbol from nm.
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7575 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7576 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7577   $as_echo_n "(cached) " >&6
7578 else
7579
7580 # These are sane defaults that work on at least a few old systems.
7581 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7582
7583 # Character class describing NM global symbol codes.
7584 symcode='[BCDEGRST]'
7585
7586 # Regexp to match symbols that can be accessed directly from C.
7587 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7588
7589 # Define system-specific variables.
7590 case $host_os in
7591 aix*)
7592   symcode='[BCDT]'
7593   ;;
7594 cygwin* | mingw* | pw32* | cegcc*)
7595   symcode='[ABCDGISTW]'
7596   ;;
7597 hpux*)
7598   if test "$host_cpu" = ia64; then
7599     symcode='[ABCDEGRST]'
7600   fi
7601   ;;
7602 irix* | nonstopux*)
7603   symcode='[BCDEGRST]'
7604   ;;
7605 osf*)
7606   symcode='[BCDEGQRST]'
7607   ;;
7608 solaris*)
7609   symcode='[BDRT]'
7610   ;;
7611 sco3.2v5*)
7612   symcode='[DT]'
7613   ;;
7614 sysv4.2uw2*)
7615   symcode='[DT]'
7616   ;;
7617 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7618   symcode='[ABDT]'
7619   ;;
7620 sysv4)
7621   symcode='[DFNSTU]'
7622   ;;
7623 esac
7624
7625 # If we're using GNU nm, then use its standard symbol codes.
7626 case `$NM -V 2>&1` in
7627 *GNU* | *'with BFD'*)
7628   symcode='[ABCDGIRSTW]' ;;
7629 esac
7630
7631 # Transform an extracted symbol line into a proper C declaration.
7632 # Some systems (esp. on ia64) link data and code symbols differently,
7633 # so use this general approach.
7634 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7635
7636 # Transform an extracted symbol line into symbol name and symbol address
7637 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7638 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'"
7639
7640 # Handle CRLF in mingw tool chain
7641 opt_cr=
7642 case $build_os in
7643 mingw*)
7644   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7645   ;;
7646 esac
7647
7648 # Try without a prefix underscore, then with it.
7649 for ac_symprfx in "" "_"; do
7650
7651   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7652   symxfrm="\\1 $ac_symprfx\\2 \\2"
7653
7654   # Write the raw and C identifiers.
7655   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7656     # Fake it for dumpbin and say T for any non-static function
7657     # and D for any global variable.
7658     # Also find C++ and __fastcall symbols from MSVC++,
7659     # which start with @ or ?.
7660     lt_cv_sys_global_symbol_pipe="$AWK '"\
7661 "     {last_section=section; section=\$ 3};"\
7662 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7663 "     \$ 0!~/External *\|/{next};"\
7664 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7665 "     {if(hide[section]) next};"\
7666 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7667 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7668 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7669 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7670 "     ' prfx=^$ac_symprfx"
7671   else
7672     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7673   fi
7674
7675   # Check to see that the pipe works correctly.
7676   pipe_works=no
7677
7678   rm -f conftest*
7679   cat > conftest.$ac_ext <<_LT_EOF
7680 #ifdef __cplusplus
7681 extern "C" {
7682 #endif
7683 char nm_test_var;
7684 void nm_test_func(void);
7685 void nm_test_func(void){}
7686 #ifdef __cplusplus
7687 }
7688 #endif
7689 int main(){nm_test_var='a';nm_test_func();return(0);}
7690 _LT_EOF
7691
7692   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7693   (eval $ac_compile) 2>&5
7694   ac_status=$?
7695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7696   test $ac_status = 0; }; then
7697     # Now try to grab the symbols.
7698     nlist=conftest.nm
7699     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7700   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7701   ac_status=$?
7702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703   test $ac_status = 0; } && test -s "$nlist"; then
7704       # Try sorting and uniquifying the output.
7705       if sort "$nlist" | uniq > "$nlist"T; then
7706         mv -f "$nlist"T "$nlist"
7707       else
7708         rm -f "$nlist"T
7709       fi
7710
7711       # Make sure that we snagged all the symbols we need.
7712       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7713         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7714           cat <<_LT_EOF > conftest.$ac_ext
7715 #ifdef __cplusplus
7716 extern "C" {
7717 #endif
7718
7719 _LT_EOF
7720           # Now generate the symbol file.
7721           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7722
7723           cat <<_LT_EOF >> conftest.$ac_ext
7724
7725 /* The mapping between symbol names and symbols.  */
7726 const struct {
7727   const char *name;
7728   void       *address;
7729 }
7730 lt__PROGRAM__LTX_preloaded_symbols[] =
7731 {
7732   { "@PROGRAM@", (void *) 0 },
7733 _LT_EOF
7734           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7735           cat <<\_LT_EOF >> conftest.$ac_ext
7736   {0, (void *) 0}
7737 };
7738
7739 /* This works around a problem in FreeBSD linker */
7740 #ifdef FREEBSD_WORKAROUND
7741 static const void *lt_preloaded_setup() {
7742   return lt__PROGRAM__LTX_preloaded_symbols;
7743 }
7744 #endif
7745
7746 #ifdef __cplusplus
7747 }
7748 #endif
7749 _LT_EOF
7750           # Now try linking the two files.
7751           mv conftest.$ac_objext conftstm.$ac_objext
7752           lt_save_LIBS="$LIBS"
7753           lt_save_CFLAGS="$CFLAGS"
7754           LIBS="conftstm.$ac_objext"
7755           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7756           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7757   (eval $ac_link) 2>&5
7758   ac_status=$?
7759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7760   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7761             pipe_works=yes
7762           fi
7763           LIBS="$lt_save_LIBS"
7764           CFLAGS="$lt_save_CFLAGS"
7765         else
7766           echo "cannot find nm_test_func in $nlist" >&5
7767         fi
7768       else
7769         echo "cannot find nm_test_var in $nlist" >&5
7770       fi
7771     else
7772       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7773     fi
7774   else
7775     echo "$progname: failed program was:" >&5
7776     cat conftest.$ac_ext >&5
7777   fi
7778   rm -rf conftest* conftst*
7779
7780   # Do not use the global_symbol_pipe unless it works.
7781   if test "$pipe_works" = yes; then
7782     break
7783   else
7784     lt_cv_sys_global_symbol_pipe=
7785   fi
7786 done
7787
7788 fi
7789
7790 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7791   lt_cv_sys_global_symbol_to_cdecl=
7792 fi
7793 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7795 $as_echo "failed" >&6; }
7796 else
7797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7798 $as_echo "ok" >&6; }
7799 fi
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822 # Check whether --enable-libtool-lock was given.
7823 if test "${enable_libtool_lock+set}" = set; then :
7824   enableval=$enable_libtool_lock;
7825 fi
7826
7827 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7828
7829 # Some flags need to be propagated to the compiler or linker for good
7830 # libtool support.
7831 case $host in
7832 ia64-*-hpux*)
7833   # Find out which ABI we are using.
7834   echo 'int i;' > conftest.$ac_ext
7835   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7836   (eval $ac_compile) 2>&5
7837   ac_status=$?
7838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839   test $ac_status = 0; }; then
7840     case `/usr/bin/file conftest.$ac_objext` in
7841       *ELF-32*)
7842         HPUX_IA64_MODE="32"
7843         ;;
7844       *ELF-64*)
7845         HPUX_IA64_MODE="64"
7846         ;;
7847     esac
7848   fi
7849   rm -rf conftest*
7850   ;;
7851 *-*-irix6*)
7852   # Find out which ABI we are using.
7853   echo '#line 7853 "configure"' > conftest.$ac_ext
7854   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7855   (eval $ac_compile) 2>&5
7856   ac_status=$?
7857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7858   test $ac_status = 0; }; then
7859     if test "$lt_cv_prog_gnu_ld" = yes; then
7860       case `/usr/bin/file conftest.$ac_objext` in
7861         *32-bit*)
7862           LD="${LD-ld} -melf32bsmip"
7863           ;;
7864         *N32*)
7865           LD="${LD-ld} -melf32bmipn32"
7866           ;;
7867         *64-bit*)
7868           LD="${LD-ld} -melf64bmip"
7869         ;;
7870       esac
7871     else
7872       case `/usr/bin/file conftest.$ac_objext` in
7873         *32-bit*)
7874           LD="${LD-ld} -32"
7875           ;;
7876         *N32*)
7877           LD="${LD-ld} -n32"
7878           ;;
7879         *64-bit*)
7880           LD="${LD-ld} -64"
7881           ;;
7882       esac
7883     fi
7884   fi
7885   rm -rf conftest*
7886   ;;
7887
7888 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7889 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7890   # Find out which ABI we are using.
7891   echo 'int i;' > conftest.$ac_ext
7892   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7893   (eval $ac_compile) 2>&5
7894   ac_status=$?
7895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7896   test $ac_status = 0; }; then
7897     case `/usr/bin/file conftest.o` in
7898       *32-bit*)
7899         case $host in
7900           x86_64-*kfreebsd*-gnu)
7901             LD="${LD-ld} -m elf_i386_fbsd"
7902             ;;
7903           x86_64-*linux*)
7904             LD="${LD-ld} -m elf_i386"
7905             ;;
7906           ppc64-*linux*|powerpc64-*linux*)
7907             LD="${LD-ld} -m elf32ppclinux"
7908             ;;
7909           s390x-*linux*)
7910             LD="${LD-ld} -m elf_s390"
7911             ;;
7912           sparc64-*linux*)
7913             LD="${LD-ld} -m elf32_sparc"
7914             ;;
7915         esac
7916         ;;
7917       *64-bit*)
7918         case $host in
7919           x86_64-*kfreebsd*-gnu)
7920             LD="${LD-ld} -m elf_x86_64_fbsd"
7921             ;;
7922           x86_64-*linux*)
7923             LD="${LD-ld} -m elf_x86_64"
7924             ;;
7925           ppc*-*linux*|powerpc*-*linux*)
7926             LD="${LD-ld} -m elf64ppc"
7927             ;;
7928           s390*-*linux*|s390*-*tpf*)
7929             LD="${LD-ld} -m elf64_s390"
7930             ;;
7931           sparc*-*linux*)
7932             LD="${LD-ld} -m elf64_sparc"
7933             ;;
7934         esac
7935         ;;
7936     esac
7937   fi
7938   rm -rf conftest*
7939   ;;
7940
7941 *-*-sco3.2v5*)
7942   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7943   SAVE_CFLAGS="$CFLAGS"
7944   CFLAGS="$CFLAGS -belf"
7945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7946 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7947 if ${lt_cv_cc_needs_belf+:} false; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   ac_ext=c
7951 ac_cpp='$CPP $CPPFLAGS'
7952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7955
7956      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h.  */
7958
7959 int
7960 main ()
7961 {
7962
7963   ;
7964   return 0;
7965 }
7966 _ACEOF
7967 if ac_fn_c_try_link "$LINENO"; then :
7968   lt_cv_cc_needs_belf=yes
7969 else
7970   lt_cv_cc_needs_belf=no
7971 fi
7972 rm -f core conftest.err conftest.$ac_objext \
7973     conftest$ac_exeext conftest.$ac_ext
7974      ac_ext=c
7975 ac_cpp='$CPP $CPPFLAGS'
7976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7979
7980 fi
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7982 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7983   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7984     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7985     CFLAGS="$SAVE_CFLAGS"
7986   fi
7987   ;;
7988 sparc*-*solaris*)
7989   # Find out which ABI we are using.
7990   echo 'int i;' > conftest.$ac_ext
7991   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7992   (eval $ac_compile) 2>&5
7993   ac_status=$?
7994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7995   test $ac_status = 0; }; then
7996     case `/usr/bin/file conftest.o` in
7997     *64-bit*)
7998       case $lt_cv_prog_gnu_ld in
7999       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8000       *)
8001         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8002           LD="${LD-ld} -64"
8003         fi
8004         ;;
8005       esac
8006       ;;
8007     esac
8008   fi
8009   rm -rf conftest*
8010   ;;
8011 esac
8012
8013 need_locks="$enable_libtool_lock"
8014
8015
8016   case $host_os in
8017     rhapsody* | darwin*)
8018     if test -n "$ac_tool_prefix"; then
8019   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8020 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   if test -n "$DSYMUTIL"; then
8027   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032   IFS=$as_save_IFS
8033   test -z "$as_dir" && as_dir=.
8034     for ac_exec_ext in '' $ac_executable_extensions; do
8035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8036     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038     break 2
8039   fi
8040 done
8041   done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8047 if test -n "$DSYMUTIL"; then
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8049 $as_echo "$DSYMUTIL" >&6; }
8050 else
8051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8053 fi
8054
8055
8056 fi
8057 if test -z "$ac_cv_prog_DSYMUTIL"; then
8058   ac_ct_DSYMUTIL=$DSYMUTIL
8059   # Extract the first word of "dsymutil", so it can be a program name with args.
8060 set dummy dsymutil; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8064   $as_echo_n "(cached) " >&6
8065 else
8066   if test -n "$ac_ct_DSYMUTIL"; then
8067   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8071 do
8072   IFS=$as_save_IFS
8073   test -z "$as_dir" && as_dir=.
8074     for ac_exec_ext in '' $ac_executable_extensions; do
8075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8076     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078     break 2
8079   fi
8080 done
8081   done
8082 IFS=$as_save_IFS
8083
8084 fi
8085 fi
8086 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8087 if test -n "$ac_ct_DSYMUTIL"; then
8088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8089 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8090 else
8091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8093 fi
8094
8095   if test "x$ac_ct_DSYMUTIL" = x; then
8096     DSYMUTIL=":"
8097   else
8098     case $cross_compiling:$ac_tool_warned in
8099 yes:)
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8102 ac_tool_warned=yes ;;
8103 esac
8104     DSYMUTIL=$ac_ct_DSYMUTIL
8105   fi
8106 else
8107   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8108 fi
8109
8110     if test -n "$ac_tool_prefix"; then
8111   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if ${ac_cv_prog_NMEDIT+:} false; then :
8116   $as_echo_n "(cached) " >&6
8117 else
8118   if test -n "$NMEDIT"; then
8119   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124   IFS=$as_save_IFS
8125   test -z "$as_dir" && as_dir=.
8126     for ac_exec_ext in '' $ac_executable_extensions; do
8127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130     break 2
8131   fi
8132 done
8133   done
8134 IFS=$as_save_IFS
8135
8136 fi
8137 fi
8138 NMEDIT=$ac_cv_prog_NMEDIT
8139 if test -n "$NMEDIT"; then
8140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8141 $as_echo "$NMEDIT" >&6; }
8142 else
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145 fi
8146
8147
8148 fi
8149 if test -z "$ac_cv_prog_NMEDIT"; then
8150   ac_ct_NMEDIT=$NMEDIT
8151   # Extract the first word of "nmedit", so it can be a program name with args.
8152 set dummy nmedit; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8156   $as_echo_n "(cached) " >&6
8157 else
8158   if test -n "$ac_ct_NMEDIT"; then
8159   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8163 do
8164   IFS=$as_save_IFS
8165   test -z "$as_dir" && as_dir=.
8166     for ac_exec_ext in '' $ac_executable_extensions; do
8167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170     break 2
8171   fi
8172 done
8173   done
8174 IFS=$as_save_IFS
8175
8176 fi
8177 fi
8178 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8179 if test -n "$ac_ct_NMEDIT"; then
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8181 $as_echo "$ac_ct_NMEDIT" >&6; }
8182 else
8183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8185 fi
8186
8187   if test "x$ac_ct_NMEDIT" = x; then
8188     NMEDIT=":"
8189   else
8190     case $cross_compiling:$ac_tool_warned in
8191 yes:)
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8194 ac_tool_warned=yes ;;
8195 esac
8196     NMEDIT=$ac_ct_NMEDIT
8197   fi
8198 else
8199   NMEDIT="$ac_cv_prog_NMEDIT"
8200 fi
8201
8202     if test -n "$ac_tool_prefix"; then
8203   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8204 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 $as_echo_n "checking for $ac_word... " >&6; }
8207 if ${ac_cv_prog_LIPO+:} false; then :
8208   $as_echo_n "(cached) " >&6
8209 else
8210   if test -n "$LIPO"; then
8211   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8212 else
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8214 for as_dir in $PATH
8215 do
8216   IFS=$as_save_IFS
8217   test -z "$as_dir" && as_dir=.
8218     for ac_exec_ext in '' $ac_executable_extensions; do
8219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8220     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8222     break 2
8223   fi
8224 done
8225   done
8226 IFS=$as_save_IFS
8227
8228 fi
8229 fi
8230 LIPO=$ac_cv_prog_LIPO
8231 if test -n "$LIPO"; then
8232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8233 $as_echo "$LIPO" >&6; }
8234 else
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8237 fi
8238
8239
8240 fi
8241 if test -z "$ac_cv_prog_LIPO"; then
8242   ac_ct_LIPO=$LIPO
8243   # Extract the first word of "lipo", so it can be a program name with args.
8244 set dummy lipo; ac_word=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8248   $as_echo_n "(cached) " >&6
8249 else
8250   if test -n "$ac_ct_LIPO"; then
8251   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8252 else
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8255 do
8256   IFS=$as_save_IFS
8257   test -z "$as_dir" && as_dir=.
8258     for ac_exec_ext in '' $ac_executable_extensions; do
8259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8260     ac_cv_prog_ac_ct_LIPO="lipo"
8261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262     break 2
8263   fi
8264 done
8265   done
8266 IFS=$as_save_IFS
8267
8268 fi
8269 fi
8270 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8271 if test -n "$ac_ct_LIPO"; then
8272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8273 $as_echo "$ac_ct_LIPO" >&6; }
8274 else
8275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8277 fi
8278
8279   if test "x$ac_ct_LIPO" = x; then
8280     LIPO=":"
8281   else
8282     case $cross_compiling:$ac_tool_warned in
8283 yes:)
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8286 ac_tool_warned=yes ;;
8287 esac
8288     LIPO=$ac_ct_LIPO
8289   fi
8290 else
8291   LIPO="$ac_cv_prog_LIPO"
8292 fi
8293
8294     if test -n "$ac_tool_prefix"; then
8295   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8296 set dummy ${ac_tool_prefix}otool; ac_word=$2
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298 $as_echo_n "checking for $ac_word... " >&6; }
8299 if ${ac_cv_prog_OTOOL+:} false; then :
8300   $as_echo_n "(cached) " >&6
8301 else
8302   if test -n "$OTOOL"; then
8303   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8304 else
8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 for as_dir in $PATH
8307 do
8308   IFS=$as_save_IFS
8309   test -z "$as_dir" && as_dir=.
8310     for ac_exec_ext in '' $ac_executable_extensions; do
8311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8314     break 2
8315   fi
8316 done
8317   done
8318 IFS=$as_save_IFS
8319
8320 fi
8321 fi
8322 OTOOL=$ac_cv_prog_OTOOL
8323 if test -n "$OTOOL"; then
8324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8325 $as_echo "$OTOOL" >&6; }
8326 else
8327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8329 fi
8330
8331
8332 fi
8333 if test -z "$ac_cv_prog_OTOOL"; then
8334   ac_ct_OTOOL=$OTOOL
8335   # Extract the first word of "otool", so it can be a program name with args.
8336 set dummy otool; ac_word=$2
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8338 $as_echo_n "checking for $ac_word... " >&6; }
8339 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8340   $as_echo_n "(cached) " >&6
8341 else
8342   if test -n "$ac_ct_OTOOL"; then
8343   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8344 else
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8347 do
8348   IFS=$as_save_IFS
8349   test -z "$as_dir" && as_dir=.
8350     for ac_exec_ext in '' $ac_executable_extensions; do
8351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8352     ac_cv_prog_ac_ct_OTOOL="otool"
8353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8354     break 2
8355   fi
8356 done
8357   done
8358 IFS=$as_save_IFS
8359
8360 fi
8361 fi
8362 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8363 if test -n "$ac_ct_OTOOL"; then
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8365 $as_echo "$ac_ct_OTOOL" >&6; }
8366 else
8367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8369 fi
8370
8371   if test "x$ac_ct_OTOOL" = x; then
8372     OTOOL=":"
8373   else
8374     case $cross_compiling:$ac_tool_warned in
8375 yes:)
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8378 ac_tool_warned=yes ;;
8379 esac
8380     OTOOL=$ac_ct_OTOOL
8381   fi
8382 else
8383   OTOOL="$ac_cv_prog_OTOOL"
8384 fi
8385
8386     if test -n "$ac_tool_prefix"; then
8387   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8388 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 $as_echo_n "checking for $ac_word... " >&6; }
8391 if ${ac_cv_prog_OTOOL64+:} false; then :
8392   $as_echo_n "(cached) " >&6
8393 else
8394   if test -n "$OTOOL64"; then
8395   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8396 else
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 for as_dir in $PATH
8399 do
8400   IFS=$as_save_IFS
8401   test -z "$as_dir" && as_dir=.
8402     for ac_exec_ext in '' $ac_executable_extensions; do
8403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8404     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8406     break 2
8407   fi
8408 done
8409   done
8410 IFS=$as_save_IFS
8411
8412 fi
8413 fi
8414 OTOOL64=$ac_cv_prog_OTOOL64
8415 if test -n "$OTOOL64"; then
8416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8417 $as_echo "$OTOOL64" >&6; }
8418 else
8419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8421 fi
8422
8423
8424 fi
8425 if test -z "$ac_cv_prog_OTOOL64"; then
8426   ac_ct_OTOOL64=$OTOOL64
8427   # Extract the first word of "otool64", so it can be a program name with args.
8428 set dummy otool64; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8432   $as_echo_n "(cached) " >&6
8433 else
8434   if test -n "$ac_ct_OTOOL64"; then
8435   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8436 else
8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8439 do
8440   IFS=$as_save_IFS
8441   test -z "$as_dir" && as_dir=.
8442     for ac_exec_ext in '' $ac_executable_extensions; do
8443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444     ac_cv_prog_ac_ct_OTOOL64="otool64"
8445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446     break 2
8447   fi
8448 done
8449   done
8450 IFS=$as_save_IFS
8451
8452 fi
8453 fi
8454 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8455 if test -n "$ac_ct_OTOOL64"; then
8456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8457 $as_echo "$ac_ct_OTOOL64" >&6; }
8458 else
8459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8461 fi
8462
8463   if test "x$ac_ct_OTOOL64" = x; then
8464     OTOOL64=":"
8465   else
8466     case $cross_compiling:$ac_tool_warned in
8467 yes:)
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8470 ac_tool_warned=yes ;;
8471 esac
8472     OTOOL64=$ac_ct_OTOOL64
8473   fi
8474 else
8475   OTOOL64="$ac_cv_prog_OTOOL64"
8476 fi
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8505 $as_echo_n "checking for -single_module linker flag... " >&6; }
8506 if ${lt_cv_apple_cc_single_mod+:} false; then :
8507   $as_echo_n "(cached) " >&6
8508 else
8509   lt_cv_apple_cc_single_mod=no
8510       if test -z "${LT_MULTI_MODULE}"; then
8511         # By default we will add the -single_module flag. You can override
8512         # by either setting the environment variable LT_MULTI_MODULE
8513         # non-empty at configure time, or by adding -multi_module to the
8514         # link flags.
8515         rm -rf libconftest.dylib*
8516         echo "int foo(void){return 1;}" > conftest.c
8517         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8518 -dynamiclib -Wl,-single_module conftest.c" >&5
8519         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8520           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8521         _lt_result=$?
8522         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8523           lt_cv_apple_cc_single_mod=yes
8524         else
8525           cat conftest.err >&5
8526         fi
8527         rm -rf libconftest.dylib*
8528         rm -f conftest.*
8529       fi
8530 fi
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8532 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8534 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8535 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8536   $as_echo_n "(cached) " >&6
8537 else
8538   lt_cv_ld_exported_symbols_list=no
8539       save_LDFLAGS=$LDFLAGS
8540       echo "_main" > conftest.sym
8541       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8542       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h.  */
8544
8545 int
8546 main ()
8547 {
8548
8549   ;
8550   return 0;
8551 }
8552 _ACEOF
8553 if ac_fn_c_try_link "$LINENO"; then :
8554   lt_cv_ld_exported_symbols_list=yes
8555 else
8556   lt_cv_ld_exported_symbols_list=no
8557 fi
8558 rm -f core conftest.err conftest.$ac_objext \
8559     conftest$ac_exeext conftest.$ac_ext
8560         LDFLAGS="$save_LDFLAGS"
8561
8562 fi
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8564 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8565     case $host_os in
8566     rhapsody* | darwin1.[012])
8567       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8568     darwin1.*)
8569       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8570     darwin*) # darwin 5.x on
8571       # if running on 10.5 or later, the deployment target defaults
8572       # to the OS version, if on x86, and 10.4, the deployment
8573       # target defaults to 10.4. Don't you love it?
8574       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8575         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8576           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8577         10.[012]*)
8578           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8579         10.*)
8580           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8581       esac
8582     ;;
8583   esac
8584     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8585       _lt_dar_single_mod='$single_module'
8586     fi
8587     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8588       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8589     else
8590       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8591     fi
8592     if test "$DSYMUTIL" != ":"; then
8593       _lt_dsymutil='~$DSYMUTIL $lib || :'
8594     else
8595       _lt_dsymutil=
8596     fi
8597     ;;
8598   esac
8599
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8601 $as_echo_n "checking for ANSI C header files... " >&6; }
8602 if ${ac_cv_header_stdc+:} false; then :
8603   $as_echo_n "(cached) " >&6
8604 else
8605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h.  */
8607 #include <stdlib.h>
8608 #include <stdarg.h>
8609 #include <string.h>
8610 #include <float.h>
8611
8612 int
8613 main ()
8614 {
8615
8616   ;
8617   return 0;
8618 }
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621   ac_cv_header_stdc=yes
8622 else
8623   ac_cv_header_stdc=no
8624 fi
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626
8627 if test $ac_cv_header_stdc = yes; then
8628   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h.  */
8631 #include <string.h>
8632
8633 _ACEOF
8634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8635   $EGREP "memchr" >/dev/null 2>&1; then :
8636
8637 else
8638   ac_cv_header_stdc=no
8639 fi
8640 rm -f conftest*
8641
8642 fi
8643
8644 if test $ac_cv_header_stdc = yes; then
8645   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h.  */
8648 #include <stdlib.h>
8649
8650 _ACEOF
8651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8652   $EGREP "free" >/dev/null 2>&1; then :
8653
8654 else
8655   ac_cv_header_stdc=no
8656 fi
8657 rm -f conftest*
8658
8659 fi
8660
8661 if test $ac_cv_header_stdc = yes; then
8662   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8663   if test "$cross_compiling" = yes; then :
8664   :
8665 else
8666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h.  */
8668 #include <ctype.h>
8669 #include <stdlib.h>
8670 #if ((' ' & 0x0FF) == 0x020)
8671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8673 #else
8674 # define ISLOWER(c) \
8675                    (('a' <= (c) && (c) <= 'i') \
8676                      || ('j' <= (c) && (c) <= 'r') \
8677                      || ('s' <= (c) && (c) <= 'z'))
8678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8679 #endif
8680
8681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8682 int
8683 main ()
8684 {
8685   int i;
8686   for (i = 0; i < 256; i++)
8687     if (XOR (islower (i), ISLOWER (i))
8688         || toupper (i) != TOUPPER (i))
8689       return 2;
8690   return 0;
8691 }
8692 _ACEOF
8693 if ac_fn_c_try_run "$LINENO"; then :
8694
8695 else
8696   ac_cv_header_stdc=no
8697 fi
8698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8699   conftest.$ac_objext conftest.beam conftest.$ac_ext
8700 fi
8701
8702 fi
8703 fi
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8705 $as_echo "$ac_cv_header_stdc" >&6; }
8706 if test $ac_cv_header_stdc = yes; then
8707
8708 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8709
8710 fi
8711
8712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8714                   inttypes.h stdint.h unistd.h
8715 do :
8716   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8717 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8718 "
8719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8720   cat >>confdefs.h <<_ACEOF
8721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8722 _ACEOF
8723
8724 fi
8725
8726 done
8727
8728
8729 for ac_header in dlfcn.h
8730 do :
8731   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8732 "
8733 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8734   cat >>confdefs.h <<_ACEOF
8735 #define HAVE_DLFCN_H 1
8736 _ACEOF
8737
8738 fi
8739
8740 done
8741
8742
8743
8744 ac_ext=cpp
8745 ac_cpp='$CXXCPP $CPPFLAGS'
8746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8749 if test -z "$CXX"; then
8750   if test -n "$CCC"; then
8751     CXX=$CCC
8752   else
8753     if test -n "$ac_tool_prefix"; then
8754   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8755   do
8756     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if ${ac_cv_prog_CXX+:} false; then :
8761   $as_echo_n "(cached) " >&6
8762 else
8763   if test -n "$CXX"; then
8764   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8765 else
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8767 for as_dir in $PATH
8768 do
8769   IFS=$as_save_IFS
8770   test -z "$as_dir" && as_dir=.
8771     for ac_exec_ext in '' $ac_executable_extensions; do
8772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8773     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8775     break 2
8776   fi
8777 done
8778   done
8779 IFS=$as_save_IFS
8780
8781 fi
8782 fi
8783 CXX=$ac_cv_prog_CXX
8784 if test -n "$CXX"; then
8785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8786 $as_echo "$CXX" >&6; }
8787 else
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8790 fi
8791
8792
8793     test -n "$CXX" && break
8794   done
8795 fi
8796 if test -z "$CXX"; then
8797   ac_ct_CXX=$CXX
8798   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8799 do
8800   # Extract the first word of "$ac_prog", so it can be a program name with args.
8801 set dummy $ac_prog; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8805   $as_echo_n "(cached) " >&6
8806 else
8807   if test -n "$ac_ct_CXX"; then
8808   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8809 else
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811 for as_dir in $PATH
8812 do
8813   IFS=$as_save_IFS
8814   test -z "$as_dir" && as_dir=.
8815     for ac_exec_ext in '' $ac_executable_extensions; do
8816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8817     ac_cv_prog_ac_ct_CXX="$ac_prog"
8818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8819     break 2
8820   fi
8821 done
8822   done
8823 IFS=$as_save_IFS
8824
8825 fi
8826 fi
8827 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8828 if test -n "$ac_ct_CXX"; then
8829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8830 $as_echo "$ac_ct_CXX" >&6; }
8831 else
8832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8834 fi
8835
8836
8837   test -n "$ac_ct_CXX" && break
8838 done
8839
8840   if test "x$ac_ct_CXX" = x; then
8841     CXX="g++"
8842   else
8843     case $cross_compiling:$ac_tool_warned in
8844 yes:)
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8847 ac_tool_warned=yes ;;
8848 esac
8849     CXX=$ac_ct_CXX
8850   fi
8851 fi
8852
8853   fi
8854 fi
8855 # Provide some information about the compiler.
8856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8857 set X $ac_compile
8858 ac_compiler=$2
8859 for ac_option in --version -v -V -qversion; do
8860   { { ac_try="$ac_compiler $ac_option >&5"
8861 case "(($ac_try" in
8862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863   *) ac_try_echo=$ac_try;;
8864 esac
8865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8866 $as_echo "$ac_try_echo"; } >&5
8867   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8868   ac_status=$?
8869   if test -s conftest.err; then
8870     sed '10a\
8871 ... rest of stderr output deleted ...
8872          10q' conftest.err >conftest.er1
8873     cat conftest.er1 >&5
8874   fi
8875   rm -f conftest.er1 conftest.err
8876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8877   test $ac_status = 0; }
8878 done
8879
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8881 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8882 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8883   $as_echo_n "(cached) " >&6
8884 else
8885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886 /* end confdefs.h.  */
8887
8888 int
8889 main ()
8890 {
8891 #ifndef __GNUC__
8892        choke me
8893 #endif
8894
8895   ;
8896   return 0;
8897 }
8898 _ACEOF
8899 if ac_fn_cxx_try_compile "$LINENO"; then :
8900   ac_compiler_gnu=yes
8901 else
8902   ac_compiler_gnu=no
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8906
8907 fi
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8909 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8910 if test $ac_compiler_gnu = yes; then
8911   GXX=yes
8912 else
8913   GXX=
8914 fi
8915 ac_test_CXXFLAGS=${CXXFLAGS+set}
8916 ac_save_CXXFLAGS=$CXXFLAGS
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8918 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8919 if ${ac_cv_prog_cxx_g+:} false; then :
8920   $as_echo_n "(cached) " >&6
8921 else
8922   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8923    ac_cxx_werror_flag=yes
8924    ac_cv_prog_cxx_g=no
8925    CXXFLAGS="-g"
8926    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h.  */
8928
8929 int
8930 main ()
8931 {
8932
8933   ;
8934   return 0;
8935 }
8936 _ACEOF
8937 if ac_fn_cxx_try_compile "$LINENO"; then :
8938   ac_cv_prog_cxx_g=yes
8939 else
8940   CXXFLAGS=""
8941       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h.  */
8943
8944 int
8945 main ()
8946 {
8947
8948   ;
8949   return 0;
8950 }
8951 _ACEOF
8952 if ac_fn_cxx_try_compile "$LINENO"; then :
8953
8954 else
8955   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8956          CXXFLAGS="-g"
8957          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h.  */
8959
8960 int
8961 main ()
8962 {
8963
8964   ;
8965   return 0;
8966 }
8967 _ACEOF
8968 if ac_fn_cxx_try_compile "$LINENO"; then :
8969   ac_cv_prog_cxx_g=yes
8970 fi
8971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 fi
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 fi
8975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8976    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8977 fi
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8979 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8980 if test "$ac_test_CXXFLAGS" = set; then
8981   CXXFLAGS=$ac_save_CXXFLAGS
8982 elif test $ac_cv_prog_cxx_g = yes; then
8983   if test "$GXX" = yes; then
8984     CXXFLAGS="-g -O2"
8985   else
8986     CXXFLAGS="-g"
8987   fi
8988 else
8989   if test "$GXX" = yes; then
8990     CXXFLAGS="-O2"
8991   else
8992     CXXFLAGS=
8993   fi
8994 fi
8995 ac_ext=c
8996 ac_cpp='$CPP $CPPFLAGS'
8997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9000
9001 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9002     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9003     (test "X$CXX" != "Xg++"))) ; then
9004   ac_ext=cpp
9005 ac_cpp='$CXXCPP $CPPFLAGS'
9006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9010 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9011 if test -z "$CXXCPP"; then
9012   if ${ac_cv_prog_CXXCPP+:} false; then :
9013   $as_echo_n "(cached) " >&6
9014 else
9015       # Double quotes because CXXCPP needs to be expanded
9016     for CXXCPP in "$CXX -E" "/lib/cpp"
9017     do
9018       ac_preproc_ok=false
9019 for ac_cxx_preproc_warn_flag in '' yes
9020 do
9021   # Use a header file that comes with gcc, so configuring glibc
9022   # with a fresh cross-compiler works.
9023   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9024   # <limits.h> exists even on freestanding compilers.
9025   # On the NeXT, cc -E runs the code through the compiler's parser,
9026   # not just through cpp. "Syntax error" is here to catch this case.
9027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h.  */
9029 #ifdef __STDC__
9030 # include <limits.h>
9031 #else
9032 # include <assert.h>
9033 #endif
9034                      Syntax error
9035 _ACEOF
9036 if ac_fn_cxx_try_cpp "$LINENO"; then :
9037
9038 else
9039   # Broken: fails on valid input.
9040 continue
9041 fi
9042 rm -f conftest.err conftest.i conftest.$ac_ext
9043
9044   # OK, works on sane cases.  Now check whether nonexistent headers
9045   # can be detected and how.
9046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h.  */
9048 #include <ac_nonexistent.h>
9049 _ACEOF
9050 if ac_fn_cxx_try_cpp "$LINENO"; then :
9051   # Broken: success on invalid input.
9052 continue
9053 else
9054   # Passes both tests.
9055 ac_preproc_ok=:
9056 break
9057 fi
9058 rm -f conftest.err conftest.i conftest.$ac_ext
9059
9060 done
9061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9062 rm -f conftest.i conftest.err conftest.$ac_ext
9063 if $ac_preproc_ok; then :
9064   break
9065 fi
9066
9067     done
9068     ac_cv_prog_CXXCPP=$CXXCPP
9069
9070 fi
9071   CXXCPP=$ac_cv_prog_CXXCPP
9072 else
9073   ac_cv_prog_CXXCPP=$CXXCPP
9074 fi
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9076 $as_echo "$CXXCPP" >&6; }
9077 ac_preproc_ok=false
9078 for ac_cxx_preproc_warn_flag in '' yes
9079 do
9080   # Use a header file that comes with gcc, so configuring glibc
9081   # with a fresh cross-compiler works.
9082   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9083   # <limits.h> exists even on freestanding compilers.
9084   # On the NeXT, cc -E runs the code through the compiler's parser,
9085   # not just through cpp. "Syntax error" is here to catch this case.
9086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h.  */
9088 #ifdef __STDC__
9089 # include <limits.h>
9090 #else
9091 # include <assert.h>
9092 #endif
9093                      Syntax error
9094 _ACEOF
9095 if ac_fn_cxx_try_cpp "$LINENO"; then :
9096
9097 else
9098   # Broken: fails on valid input.
9099 continue
9100 fi
9101 rm -f conftest.err conftest.i conftest.$ac_ext
9102
9103   # OK, works on sane cases.  Now check whether nonexistent headers
9104   # can be detected and how.
9105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h.  */
9107 #include <ac_nonexistent.h>
9108 _ACEOF
9109 if ac_fn_cxx_try_cpp "$LINENO"; then :
9110   # Broken: success on invalid input.
9111 continue
9112 else
9113   # Passes both tests.
9114 ac_preproc_ok=:
9115 break
9116 fi
9117 rm -f conftest.err conftest.i conftest.$ac_ext
9118
9119 done
9120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9121 rm -f conftest.i conftest.err conftest.$ac_ext
9122 if $ac_preproc_ok; then :
9123
9124 else
9125   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9127 _lt_caught_CXX_error=yes; }
9128 fi
9129
9130 ac_ext=c
9131 ac_cpp='$CPP $CPPFLAGS'
9132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9135
9136 else
9137   _lt_caught_CXX_error=yes
9138 fi
9139
9140
9141
9142
9143
9144 # Set options
9145 # Check whether --enable-shared was given.
9146 if test "${enable_shared+set}" = set; then :
9147   enableval=$enable_shared; p=${PACKAGE-default}
9148     case $enableval in
9149     yes) enable_shared=yes ;;
9150     no) enable_shared=no ;;
9151     *)
9152       enable_shared=no
9153       # Look at the argument we got.  We use all the common list separators.
9154       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9155       for pkg in $enableval; do
9156         IFS="$lt_save_ifs"
9157         if test "X$pkg" = "X$p"; then
9158           enable_shared=yes
9159         fi
9160       done
9161       IFS="$lt_save_ifs"
9162       ;;
9163     esac
9164 else
9165   enable_shared=yes
9166 fi
9167
9168
9169
9170
9171
9172
9173
9174 # Check whether --enable-static was given.
9175 if test "${enable_static+set}" = set; then :
9176   enableval=$enable_static; p=${PACKAGE-default}
9177     case $enableval in
9178     yes) enable_static=yes ;;
9179     no) enable_static=no ;;
9180     *)
9181      enable_static=no
9182       # Look at the argument we got.  We use all the common list separators.
9183       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9184       for pkg in $enableval; do
9185         IFS="$lt_save_ifs"
9186         if test "X$pkg" = "X$p"; then
9187           enable_static=yes
9188         fi
9189       done
9190       IFS="$lt_save_ifs"
9191       ;;
9192     esac
9193 else
9194   enable_static=no
9195 fi
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206         enable_dlopen=no
9207
9208
9209   enable_win32_dll=no
9210
9211
9212
9213
9214
9215 # Check whether --with-pic was given.
9216 if test "${with_pic+set}" = set; then :
9217   withval=$with_pic; pic_mode="$withval"
9218 else
9219   pic_mode=default
9220 fi
9221
9222
9223 test -z "$pic_mode" && pic_mode=default
9224
9225
9226
9227
9228
9229
9230
9231   # Check whether --enable-fast-install was given.
9232 if test "${enable_fast_install+set}" = set; then :
9233   enableval=$enable_fast_install; p=${PACKAGE-default}
9234     case $enableval in
9235     yes) enable_fast_install=yes ;;
9236     no) enable_fast_install=no ;;
9237     *)
9238       enable_fast_install=no
9239       # Look at the argument we got.  We use all the common list separators.
9240       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9241       for pkg in $enableval; do
9242         IFS="$lt_save_ifs"
9243         if test "X$pkg" = "X$p"; then
9244           enable_fast_install=yes
9245         fi
9246       done
9247       IFS="$lt_save_ifs"
9248       ;;
9249     esac
9250 else
9251   enable_fast_install=yes
9252 fi
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264 # This can be used to rebuild libtool when needed
9265 LIBTOOL_DEPS="$ltmain"
9266
9267 # Always use our own libtool.
9268 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294 test -z "$LN_S" && LN_S="ln -s"
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309 if test -n "${ZSH_VERSION+set}" ; then
9310    setopt NO_GLOB_SUBST
9311 fi
9312
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9314 $as_echo_n "checking for objdir... " >&6; }
9315 if ${lt_cv_objdir+:} false; then :
9316   $as_echo_n "(cached) " >&6
9317 else
9318   rm -f .libs 2>/dev/null
9319 mkdir .libs 2>/dev/null
9320 if test -d .libs; then
9321   lt_cv_objdir=.libs
9322 else
9323   # MS-DOS does not allow filenames that begin with a dot.
9324   lt_cv_objdir=_libs
9325 fi
9326 rmdir .libs 2>/dev/null
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9329 $as_echo "$lt_cv_objdir" >&6; }
9330 objdir=$lt_cv_objdir
9331
9332
9333
9334
9335
9336 cat >>confdefs.h <<_ACEOF
9337 #define LT_OBJDIR "$lt_cv_objdir/"
9338 _ACEOF
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356 case $host_os in
9357 aix3*)
9358   # AIX sometimes has problems with the GCC collect2 program.  For some
9359   # reason, if we set the COLLECT_NAMES environment variable, the problems
9360   # vanish in a puff of smoke.
9361   if test "X${COLLECT_NAMES+set}" != Xset; then
9362     COLLECT_NAMES=
9363     export COLLECT_NAMES
9364   fi
9365   ;;
9366 esac
9367
9368 # Sed substitution that helps us do robust quoting.  It backslashifies
9369 # metacharacters that are still active within double-quoted strings.
9370 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9371
9372 # Same as above, but do not quote variable references.
9373 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9374
9375 # Sed substitution to delay expansion of an escaped shell variable in a
9376 # double_quote_subst'ed string.
9377 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9378
9379 # Sed substitution to delay expansion of an escaped single quote.
9380 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9381
9382 # Sed substitution to avoid accidental globbing in evaled expressions
9383 no_glob_subst='s/\*/\\\*/g'
9384
9385 # Global variables:
9386 ofile=libtool
9387 can_build_shared=yes
9388
9389 # All known linkers require a `.a' archive for static linking (except MSVC,
9390 # which needs '.lib').
9391 libext=a
9392
9393 with_gnu_ld="$lt_cv_prog_gnu_ld"
9394
9395 old_CC="$CC"
9396 old_CFLAGS="$CFLAGS"
9397
9398 # Set sane defaults for various variables
9399 test -z "$CC" && CC=cc
9400 test -z "$LTCC" && LTCC=$CC
9401 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9402 test -z "$LD" && LD=ld
9403 test -z "$ac_objext" && ac_objext=o
9404
9405 for cc_temp in $compiler""; do
9406   case $cc_temp in
9407     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9408     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9409     \-*) ;;
9410     *) break;;
9411   esac
9412 done
9413 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9414
9415
9416 # Only perform the check for file, if the check method requires it
9417 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9418 case $deplibs_check_method in
9419 file_magic*)
9420   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9422 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9423 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9424   $as_echo_n "(cached) " >&6
9425 else
9426   case $MAGIC_CMD in
9427 [\\/*] |  ?:[\\/]*)
9428   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9429   ;;
9430 *)
9431   lt_save_MAGIC_CMD="$MAGIC_CMD"
9432   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9433   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9434   for ac_dir in $ac_dummy; do
9435     IFS="$lt_save_ifs"
9436     test -z "$ac_dir" && ac_dir=.
9437     if test -f $ac_dir/${ac_tool_prefix}file; then
9438       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9439       if test -n "$file_magic_test_file"; then
9440         case $deplibs_check_method in
9441         "file_magic "*)
9442           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9443           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9444           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9445             $EGREP "$file_magic_regex" > /dev/null; then
9446             :
9447           else
9448             cat <<_LT_EOF 1>&2
9449
9450 *** Warning: the command libtool uses to detect shared libraries,
9451 *** $file_magic_cmd, produces output that libtool cannot recognize.
9452 *** The result is that libtool may fail to recognize shared libraries
9453 *** as such.  This will affect the creation of libtool libraries that
9454 *** depend on shared libraries, but programs linked with such libtool
9455 *** libraries will work regardless of this problem.  Nevertheless, you
9456 *** may want to report the problem to your system manager and/or to
9457 *** bug-libtool@gnu.org
9458
9459 _LT_EOF
9460           fi ;;
9461         esac
9462       fi
9463       break
9464     fi
9465   done
9466   IFS="$lt_save_ifs"
9467   MAGIC_CMD="$lt_save_MAGIC_CMD"
9468   ;;
9469 esac
9470 fi
9471
9472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9473 if test -n "$MAGIC_CMD"; then
9474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9475 $as_echo "$MAGIC_CMD" >&6; }
9476 else
9477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478 $as_echo "no" >&6; }
9479 fi
9480
9481
9482
9483
9484
9485 if test -z "$lt_cv_path_MAGIC_CMD"; then
9486   if test -n "$ac_tool_prefix"; then
9487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9488 $as_echo_n "checking for file... " >&6; }
9489 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9490   $as_echo_n "(cached) " >&6
9491 else
9492   case $MAGIC_CMD in
9493 [\\/*] |  ?:[\\/]*)
9494   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9495   ;;
9496 *)
9497   lt_save_MAGIC_CMD="$MAGIC_CMD"
9498   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9499   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9500   for ac_dir in $ac_dummy; do
9501     IFS="$lt_save_ifs"
9502     test -z "$ac_dir" && ac_dir=.
9503     if test -f $ac_dir/file; then
9504       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9505       if test -n "$file_magic_test_file"; then
9506         case $deplibs_check_method in
9507         "file_magic "*)
9508           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9509           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9510           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9511             $EGREP "$file_magic_regex" > /dev/null; then
9512             :
9513           else
9514             cat <<_LT_EOF 1>&2
9515
9516 *** Warning: the command libtool uses to detect shared libraries,
9517 *** $file_magic_cmd, produces output that libtool cannot recognize.
9518 *** The result is that libtool may fail to recognize shared libraries
9519 *** as such.  This will affect the creation of libtool libraries that
9520 *** depend on shared libraries, but programs linked with such libtool
9521 *** libraries will work regardless of this problem.  Nevertheless, you
9522 *** may want to report the problem to your system manager and/or to
9523 *** bug-libtool@gnu.org
9524
9525 _LT_EOF
9526           fi ;;
9527         esac
9528       fi
9529       break
9530     fi
9531   done
9532   IFS="$lt_save_ifs"
9533   MAGIC_CMD="$lt_save_MAGIC_CMD"
9534   ;;
9535 esac
9536 fi
9537
9538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9539 if test -n "$MAGIC_CMD"; then
9540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9541 $as_echo "$MAGIC_CMD" >&6; }
9542 else
9543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9545 fi
9546
9547
9548   else
9549     MAGIC_CMD=:
9550   fi
9551 fi
9552
9553   fi
9554   ;;
9555 esac
9556
9557 # Use C for the default configuration in the libtool script
9558
9559 lt_save_CC="$CC"
9560 ac_ext=c
9561 ac_cpp='$CPP $CPPFLAGS'
9562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9565
9566
9567 # Source file extension for C test sources.
9568 ac_ext=c
9569
9570 # Object file extension for compiled C test sources.
9571 objext=o
9572 objext=$objext
9573
9574 # Code to be used in simple compile tests
9575 lt_simple_compile_test_code="int some_variable = 0;"
9576
9577 # Code to be used in simple link tests
9578 lt_simple_link_test_code='int main(){return(0);}'
9579
9580
9581
9582
9583
9584
9585
9586 # If no C compiler was specified, use CC.
9587 LTCC=${LTCC-"$CC"}
9588
9589 # If no C compiler flags were specified, use CFLAGS.
9590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9591
9592 # Allow CC to be a program name with arguments.
9593 compiler=$CC
9594
9595 # Save the default compiler, since it gets overwritten when the other
9596 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9597 compiler_DEFAULT=$CC
9598
9599 # save warnings/boilerplate of simple test code
9600 ac_outfile=conftest.$ac_objext
9601 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9602 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9603 _lt_compiler_boilerplate=`cat conftest.err`
9604 $RM conftest*
9605
9606 ac_outfile=conftest.$ac_objext
9607 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9608 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9609 _lt_linker_boilerplate=`cat conftest.err`
9610 $RM -r conftest*
9611
9612
9613 ## CAVEAT EMPTOR:
9614 ## There is no encapsulation within the following macros, do not change
9615 ## the running order or otherwise move them around unless you know exactly
9616 ## what you are doing...
9617 if test -n "$compiler"; then
9618
9619 lt_prog_compiler_no_builtin_flag=
9620
9621 if test "$GCC" = yes; then
9622   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9623
9624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9625 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9626 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9627   $as_echo_n "(cached) " >&6
9628 else
9629   lt_cv_prog_compiler_rtti_exceptions=no
9630    ac_outfile=conftest.$ac_objext
9631    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9632    lt_compiler_flag="-fno-rtti -fno-exceptions"
9633    # Insert the option either (1) after the last *FLAGS variable, or
9634    # (2) before a word containing "conftest.", or (3) at the end.
9635    # Note that $ac_compile itself does not contain backslashes and begins
9636    # with a dollar sign (not a hyphen), so the echo should work correctly.
9637    # The option is referenced via a variable to avoid confusing sed.
9638    lt_compile=`echo "$ac_compile" | $SED \
9639    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9640    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9641    -e 's:$: $lt_compiler_flag:'`
9642    (eval echo "\"\$as_me:9642: $lt_compile\"" >&5)
9643    (eval "$lt_compile" 2>conftest.err)
9644    ac_status=$?
9645    cat conftest.err >&5
9646    echo "$as_me:9646: \$? = $ac_status" >&5
9647    if (exit $ac_status) && test -s "$ac_outfile"; then
9648      # The compiler can only warn and ignore the option if not recognized
9649      # So say no if there are warnings other than the usual output.
9650      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9651      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9652      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9653        lt_cv_prog_compiler_rtti_exceptions=yes
9654      fi
9655    fi
9656    $RM conftest*
9657
9658 fi
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9660 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9661
9662 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9663     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9664 else
9665     :
9666 fi
9667
9668 fi
9669
9670
9671
9672
9673
9674
9675   lt_prog_compiler_wl=
9676 lt_prog_compiler_pic=
9677 lt_prog_compiler_static=
9678
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9680 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9681
9682   if test "$GCC" = yes; then
9683     lt_prog_compiler_wl='-Wl,'
9684     lt_prog_compiler_static='-static'
9685
9686     case $host_os in
9687       aix*)
9688       # All AIX code is PIC.
9689       if test "$host_cpu" = ia64; then
9690         # AIX 5 now supports IA64 processor
9691         lt_prog_compiler_static='-Bstatic'
9692       fi
9693       ;;
9694
9695     amigaos*)
9696       case $host_cpu in
9697       powerpc)
9698             # see comment about AmigaOS4 .so support
9699             lt_prog_compiler_pic='-fPIC'
9700         ;;
9701       m68k)
9702             # FIXME: we need at least 68020 code to build shared libraries, but
9703             # adding the `-m68020' flag to GCC prevents building anything better,
9704             # like `-m68040'.
9705             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9706         ;;
9707       esac
9708       ;;
9709
9710     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9711       # PIC is the default for these OSes.
9712       ;;
9713
9714     mingw* | cygwin* | pw32* | os2* | cegcc*)
9715       # This hack is so that the source file can tell whether it is being
9716       # built for inclusion in a dll (and should export symbols for example).
9717       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9718       # (--disable-auto-import) libraries
9719       lt_prog_compiler_pic='-DDLL_EXPORT'
9720       ;;
9721
9722     darwin* | rhapsody*)
9723       # PIC is the default on this platform
9724       # Common symbols not allowed in MH_DYLIB files
9725       lt_prog_compiler_pic='-fno-common'
9726       ;;
9727
9728     hpux*)
9729       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9730       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9731       # sets the default TLS model and affects inlining.
9732       case $host_cpu in
9733       hppa*64*)
9734         # +Z the default
9735         ;;
9736       *)
9737         lt_prog_compiler_pic='-fPIC'
9738         ;;
9739       esac
9740       ;;
9741
9742     interix[3-9]*)
9743       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9744       # Instead, we relocate shared libraries at runtime.
9745       ;;
9746
9747     msdosdjgpp*)
9748       # Just because we use GCC doesn't mean we suddenly get shared libraries
9749       # on systems that don't support them.
9750       lt_prog_compiler_can_build_shared=no
9751       enable_shared=no
9752       ;;
9753
9754     *nto* | *qnx*)
9755       # QNX uses GNU C++, but need to define -shared option too, otherwise
9756       # it will coredump.
9757       lt_prog_compiler_pic='-fPIC -shared'
9758       ;;
9759
9760     sysv4*MP*)
9761       if test -d /usr/nec; then
9762         lt_prog_compiler_pic=-Kconform_pic
9763       fi
9764       ;;
9765
9766     *)
9767       lt_prog_compiler_pic='-fPIC'
9768       ;;
9769     esac
9770   else
9771     # PORTME Check for flag to pass linker flags through the system compiler.
9772     case $host_os in
9773     aix*)
9774       lt_prog_compiler_wl='-Wl,'
9775       if test "$host_cpu" = ia64; then
9776         # AIX 5 now supports IA64 processor
9777         lt_prog_compiler_static='-Bstatic'
9778       else
9779         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9780       fi
9781       ;;
9782
9783     mingw* | cygwin* | pw32* | os2* | cegcc*)
9784       # This hack is so that the source file can tell whether it is being
9785       # built for inclusion in a dll (and should export symbols for example).
9786       lt_prog_compiler_pic='-DDLL_EXPORT'
9787       ;;
9788
9789     hpux9* | hpux10* | hpux11*)
9790       lt_prog_compiler_wl='-Wl,'
9791       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9792       # not for PA HP-UX.
9793       case $host_cpu in
9794       hppa*64*|ia64*)
9795         # +Z the default
9796         ;;
9797       *)
9798         lt_prog_compiler_pic='+Z'
9799         ;;
9800       esac
9801       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9802       lt_prog_compiler_static='${wl}-a ${wl}archive'
9803       ;;
9804
9805     irix5* | irix6* | nonstopux*)
9806       lt_prog_compiler_wl='-Wl,'
9807       # PIC (with -KPIC) is the default.
9808       lt_prog_compiler_static='-non_shared'
9809       ;;
9810
9811     linux* | k*bsd*-gnu)
9812       case $cc_basename in
9813       # old Intel for x86_64 which still supported -KPIC.
9814       ecc*)
9815         lt_prog_compiler_wl='-Wl,'
9816         lt_prog_compiler_pic='-KPIC'
9817         lt_prog_compiler_static='-static'
9818         ;;
9819       # icc used to be incompatible with GCC.
9820       # ICC 10 doesn't accept -KPIC any more.
9821       icc* | ifort*)
9822         lt_prog_compiler_wl='-Wl,'
9823         lt_prog_compiler_pic='-fPIC'
9824         lt_prog_compiler_static='-static'
9825         ;;
9826       # Lahey Fortran 8.1.
9827       lf95*)
9828         lt_prog_compiler_wl='-Wl,'
9829         lt_prog_compiler_pic='--shared'
9830         lt_prog_compiler_static='--static'
9831         ;;
9832       pgcc* | pgf77* | pgf90* | pgf95*)
9833         # Portland Group compilers (*not* the Pentium gcc compiler,
9834         # which looks to be a dead project)
9835         lt_prog_compiler_wl='-Wl,'
9836         lt_prog_compiler_pic='-fpic'
9837         lt_prog_compiler_static='-Bstatic'
9838         ;;
9839       ccc*)
9840         lt_prog_compiler_wl='-Wl,'
9841         # All Alpha code is PIC.
9842         lt_prog_compiler_static='-non_shared'
9843         ;;
9844       xl*)
9845         # IBM XL C 8.0/Fortran 10.1 on PPC
9846         lt_prog_compiler_wl='-Wl,'
9847         lt_prog_compiler_pic='-qpic'
9848         lt_prog_compiler_static='-qstaticlink'
9849         ;;
9850       *)
9851         case `$CC -V 2>&1 | sed 5q` in
9852         *Sun\ C*)
9853           # Sun C 5.9
9854           lt_prog_compiler_pic='-KPIC'
9855           lt_prog_compiler_static='-Bstatic'
9856           lt_prog_compiler_wl='-Wl,'
9857           ;;
9858         *Sun\ F*)
9859           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9860           lt_prog_compiler_pic='-KPIC'
9861           lt_prog_compiler_static='-Bstatic'
9862           lt_prog_compiler_wl=''
9863           ;;
9864         esac
9865         ;;
9866       esac
9867       ;;
9868
9869     newsos6)
9870       lt_prog_compiler_pic='-KPIC'
9871       lt_prog_compiler_static='-Bstatic'
9872       ;;
9873
9874     *nto* | *qnx*)
9875       # QNX uses GNU C++, but need to define -shared option too, otherwise
9876       # it will coredump.
9877       lt_prog_compiler_pic='-fPIC -shared'
9878       ;;
9879
9880     osf3* | osf4* | osf5*)
9881       lt_prog_compiler_wl='-Wl,'
9882       # All OSF/1 code is PIC.
9883       lt_prog_compiler_static='-non_shared'
9884       ;;
9885
9886     rdos*)
9887       lt_prog_compiler_static='-non_shared'
9888       ;;
9889
9890     solaris*)
9891       lt_prog_compiler_pic='-KPIC'
9892       lt_prog_compiler_static='-Bstatic'
9893       case $cc_basename in
9894       f77* | f90* | f95*)
9895         lt_prog_compiler_wl='-Qoption ld ';;
9896       *)
9897         lt_prog_compiler_wl='-Wl,';;
9898       esac
9899       ;;
9900
9901     sunos4*)
9902       lt_prog_compiler_wl='-Qoption ld '
9903       lt_prog_compiler_pic='-PIC'
9904       lt_prog_compiler_static='-Bstatic'
9905       ;;
9906
9907     sysv4 | sysv4.2uw2* | sysv4.3*)
9908       lt_prog_compiler_wl='-Wl,'
9909       lt_prog_compiler_pic='-KPIC'
9910       lt_prog_compiler_static='-Bstatic'
9911       ;;
9912
9913     sysv4*MP*)
9914       if test -d /usr/nec ;then
9915         lt_prog_compiler_pic='-Kconform_pic'
9916         lt_prog_compiler_static='-Bstatic'
9917       fi
9918       ;;
9919
9920     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9921       lt_prog_compiler_wl='-Wl,'
9922       lt_prog_compiler_pic='-KPIC'
9923       lt_prog_compiler_static='-Bstatic'
9924       ;;
9925
9926     unicos*)
9927       lt_prog_compiler_wl='-Wl,'
9928       lt_prog_compiler_can_build_shared=no
9929       ;;
9930
9931     uts4*)
9932       lt_prog_compiler_pic='-pic'
9933       lt_prog_compiler_static='-Bstatic'
9934       ;;
9935
9936     *)
9937       lt_prog_compiler_can_build_shared=no
9938       ;;
9939     esac
9940   fi
9941
9942 case $host_os in
9943   # For platforms which do not support PIC, -DPIC is meaningless:
9944   *djgpp*)
9945     lt_prog_compiler_pic=
9946     ;;
9947   *)
9948     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9949     ;;
9950 esac
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9952 $as_echo "$lt_prog_compiler_pic" >&6; }
9953
9954
9955
9956
9957
9958
9959 #
9960 # Check to make sure the PIC flag actually works.
9961 #
9962 if test -n "$lt_prog_compiler_pic"; then
9963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9965 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9966   $as_echo_n "(cached) " >&6
9967 else
9968   lt_cv_prog_compiler_pic_works=no
9969    ac_outfile=conftest.$ac_objext
9970    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9971    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9972    # Insert the option either (1) after the last *FLAGS variable, or
9973    # (2) before a word containing "conftest.", or (3) at the end.
9974    # Note that $ac_compile itself does not contain backslashes and begins
9975    # with a dollar sign (not a hyphen), so the echo should work correctly.
9976    # The option is referenced via a variable to avoid confusing sed.
9977    lt_compile=`echo "$ac_compile" | $SED \
9978    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9979    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9980    -e 's:$: $lt_compiler_flag:'`
9981    (eval echo "\"\$as_me:9981: $lt_compile\"" >&5)
9982    (eval "$lt_compile" 2>conftest.err)
9983    ac_status=$?
9984    cat conftest.err >&5
9985    echo "$as_me:9985: \$? = $ac_status" >&5
9986    if (exit $ac_status) && test -s "$ac_outfile"; then
9987      # The compiler can only warn and ignore the option if not recognized
9988      # So say no if there are warnings other than the usual output.
9989      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9990      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9991      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9992        lt_cv_prog_compiler_pic_works=yes
9993      fi
9994    fi
9995    $RM conftest*
9996
9997 fi
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9999 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10000
10001 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10002     case $lt_prog_compiler_pic in
10003      "" | " "*) ;;
10004      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10005      esac
10006 else
10007     lt_prog_compiler_pic=
10008      lt_prog_compiler_can_build_shared=no
10009 fi
10010
10011 fi
10012
10013
10014
10015
10016
10017
10018 #
10019 # Check to make sure the static flag actually works.
10020 #
10021 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10023 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10024 if ${lt_cv_prog_compiler_static_works+:} false; then :
10025   $as_echo_n "(cached) " >&6
10026 else
10027   lt_cv_prog_compiler_static_works=no
10028    save_LDFLAGS="$LDFLAGS"
10029    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10030    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10031    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10032      # The linker can only warn and ignore the option if not recognized
10033      # So say no if there are warnings
10034      if test -s conftest.err; then
10035        # Append any errors to the config.log.
10036        cat conftest.err 1>&5
10037        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10038        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10039        if diff conftest.exp conftest.er2 >/dev/null; then
10040          lt_cv_prog_compiler_static_works=yes
10041        fi
10042      else
10043        lt_cv_prog_compiler_static_works=yes
10044      fi
10045    fi
10046    $RM -r conftest*
10047    LDFLAGS="$save_LDFLAGS"
10048
10049 fi
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10051 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10052
10053 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10054     :
10055 else
10056     lt_prog_compiler_static=
10057 fi
10058
10059
10060
10061
10062
10063
10064
10065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10067 if ${lt_cv_prog_compiler_c_o+:} false; then :
10068   $as_echo_n "(cached) " >&6
10069 else
10070   lt_cv_prog_compiler_c_o=no
10071    $RM -r conftest 2>/dev/null
10072    mkdir conftest
10073    cd conftest
10074    mkdir out
10075    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10076
10077    lt_compiler_flag="-o out/conftest2.$ac_objext"
10078    # Insert the option either (1) after the last *FLAGS variable, or
10079    # (2) before a word containing "conftest.", or (3) at the end.
10080    # Note that $ac_compile itself does not contain backslashes and begins
10081    # with a dollar sign (not a hyphen), so the echo should work correctly.
10082    lt_compile=`echo "$ac_compile" | $SED \
10083    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10084    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10085    -e 's:$: $lt_compiler_flag:'`
10086    (eval echo "\"\$as_me:10086: $lt_compile\"" >&5)
10087    (eval "$lt_compile" 2>out/conftest.err)
10088    ac_status=$?
10089    cat out/conftest.err >&5
10090    echo "$as_me:10090: \$? = $ac_status" >&5
10091    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10092    then
10093      # The compiler can only warn and ignore the option if not recognized
10094      # So say no if there are warnings
10095      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10096      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10097      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10098        lt_cv_prog_compiler_c_o=yes
10099      fi
10100    fi
10101    chmod u+w . 2>&5
10102    $RM conftest*
10103    # SGI C++ compiler will create directory out/ii_files/ for
10104    # template instantiation
10105    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10106    $RM out/* && rmdir out
10107    cd ..
10108    $RM -r conftest
10109    $RM conftest*
10110
10111 fi
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10113 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10114
10115
10116
10117
10118
10119
10120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10121 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10122 if ${lt_cv_prog_compiler_c_o+:} false; then :
10123   $as_echo_n "(cached) " >&6
10124 else
10125   lt_cv_prog_compiler_c_o=no
10126    $RM -r conftest 2>/dev/null
10127    mkdir conftest
10128    cd conftest
10129    mkdir out
10130    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10131
10132    lt_compiler_flag="-o out/conftest2.$ac_objext"
10133    # Insert the option either (1) after the last *FLAGS variable, or
10134    # (2) before a word containing "conftest.", or (3) at the end.
10135    # Note that $ac_compile itself does not contain backslashes and begins
10136    # with a dollar sign (not a hyphen), so the echo should work correctly.
10137    lt_compile=`echo "$ac_compile" | $SED \
10138    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10139    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10140    -e 's:$: $lt_compiler_flag:'`
10141    (eval echo "\"\$as_me:10141: $lt_compile\"" >&5)
10142    (eval "$lt_compile" 2>out/conftest.err)
10143    ac_status=$?
10144    cat out/conftest.err >&5
10145    echo "$as_me:10145: \$? = $ac_status" >&5
10146    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10147    then
10148      # The compiler can only warn and ignore the option if not recognized
10149      # So say no if there are warnings
10150      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10151      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10152      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10153        lt_cv_prog_compiler_c_o=yes
10154      fi
10155    fi
10156    chmod u+w . 2>&5
10157    $RM conftest*
10158    # SGI C++ compiler will create directory out/ii_files/ for
10159    # template instantiation
10160    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10161    $RM out/* && rmdir out
10162    cd ..
10163    $RM -r conftest
10164    $RM conftest*
10165
10166 fi
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10168 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10169
10170
10171
10172
10173 hard_links="nottested"
10174 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10175   # do not overwrite the value of need_locks provided by the user
10176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10177 $as_echo_n "checking if we can lock with hard links... " >&6; }
10178   hard_links=yes
10179   $RM conftest*
10180   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10181   touch conftest.a
10182   ln conftest.a conftest.b 2>&5 || hard_links=no
10183   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10185 $as_echo "$hard_links" >&6; }
10186   if test "$hard_links" = no; then
10187     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10188 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10189     need_locks=warn
10190   fi
10191 else
10192   need_locks=no
10193 fi
10194
10195
10196
10197
10198
10199
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10201 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10202
10203   runpath_var=
10204   allow_undefined_flag=
10205   always_export_symbols=no
10206   archive_cmds=
10207   archive_expsym_cmds=
10208   compiler_needs_object=no
10209   enable_shared_with_static_runtimes=no
10210   export_dynamic_flag_spec=
10211   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10212   hardcode_automatic=no
10213   hardcode_direct=no
10214   hardcode_direct_absolute=no
10215   hardcode_libdir_flag_spec=
10216   hardcode_libdir_flag_spec_ld=
10217   hardcode_libdir_separator=
10218   hardcode_minus_L=no
10219   hardcode_shlibpath_var=unsupported
10220   inherit_rpath=no
10221   link_all_deplibs=unknown
10222   module_cmds=
10223   module_expsym_cmds=
10224   old_archive_from_new_cmds=
10225   old_archive_from_expsyms_cmds=
10226   thread_safe_flag_spec=
10227   whole_archive_flag_spec=
10228   # include_expsyms should be a list of space-separated symbols to be *always*
10229   # included in the symbol list
10230   include_expsyms=
10231   # exclude_expsyms can be an extended regexp of symbols to exclude
10232   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10233   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10234   # as well as any symbol that contains `d'.
10235   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10236   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10237   # platforms (ab)use it in PIC code, but their linkers get confused if
10238   # the symbol is explicitly referenced.  Since portable code cannot
10239   # rely on this symbol name, it's probably fine to never include it in
10240   # preloaded symbol tables.
10241   # Exclude shared library initialization/finalization symbols.
10242   extract_expsyms_cmds=
10243
10244   case $host_os in
10245   cygwin* | mingw* | pw32* | cegcc*)
10246     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10247     # When not using gcc, we currently assume that we are using
10248     # Microsoft Visual C++.
10249     if test "$GCC" != yes; then
10250       with_gnu_ld=no
10251     fi
10252     ;;
10253   interix*)
10254     # we just hope/assume this is gcc and not c89 (= MSVC++)
10255     with_gnu_ld=yes
10256     ;;
10257   openbsd*)
10258     with_gnu_ld=no
10259     ;;
10260   esac
10261
10262   ld_shlibs=yes
10263   if test "$with_gnu_ld" = yes; then
10264     # If archive_cmds runs LD, not CC, wlarc should be empty
10265     wlarc='${wl}'
10266
10267     # Set some defaults for GNU ld with shared library support. These
10268     # are reset later if shared libraries are not supported. Putting them
10269     # here allows them to be overridden if necessary.
10270     runpath_var=LD_RUN_PATH
10271     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10272     export_dynamic_flag_spec='${wl}--export-dynamic'
10273     # ancient GNU ld didn't support --whole-archive et. al.
10274     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10275       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10276     else
10277       whole_archive_flag_spec=
10278     fi
10279     supports_anon_versioning=no
10280     case `$LD -v 2>&1` in
10281       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10282       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10283       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10284       *\ 2.11.*) ;; # other 2.11 versions
10285       *) supports_anon_versioning=yes ;;
10286     esac
10287
10288     # See if GNU ld supports shared libraries.
10289     case $host_os in
10290     aix[3-9]*)
10291       # On AIX/PPC, the GNU linker is very broken
10292       if test "$host_cpu" != ia64; then
10293         ld_shlibs=no
10294         cat <<_LT_EOF 1>&2
10295
10296 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10297 *** to be unable to reliably create shared libraries on AIX.
10298 *** Therefore, libtool is disabling shared libraries support.  If you
10299 *** really care for shared libraries, you may want to modify your PATH
10300 *** so that a non-GNU linker is found, and then restart.
10301
10302 _LT_EOF
10303       fi
10304       ;;
10305
10306     amigaos*)
10307       case $host_cpu in
10308       powerpc)
10309             # see comment about AmigaOS4 .so support
10310             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10311             archive_expsym_cmds=''
10312         ;;
10313       m68k)
10314             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)'
10315             hardcode_libdir_flag_spec='-L$libdir'
10316             hardcode_minus_L=yes
10317         ;;
10318       esac
10319       ;;
10320
10321     beos*)
10322       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10323         allow_undefined_flag=unsupported
10324         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10325         # support --undefined.  This deserves some investigation.  FIXME
10326         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10327       else
10328         ld_shlibs=no
10329       fi
10330       ;;
10331
10332     cygwin* | mingw* | pw32* | cegcc*)
10333       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10334       # as there is no search path for DLLs.
10335       hardcode_libdir_flag_spec='-L$libdir'
10336       allow_undefined_flag=unsupported
10337       always_export_symbols=no
10338       enable_shared_with_static_runtimes=yes
10339       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10340
10341       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10342         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10343         # If the export-symbols file already is a .def file (1st line
10344         # is EXPORTS), use it as is; otherwise, prepend...
10345         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10346           cp $export_symbols $output_objdir/$soname.def;
10347         else
10348           echo EXPORTS > $output_objdir/$soname.def;
10349           cat $export_symbols >> $output_objdir/$soname.def;
10350         fi~
10351         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10352       else
10353         ld_shlibs=no
10354       fi
10355       ;;
10356
10357     interix[3-9]*)
10358       hardcode_direct=no
10359       hardcode_shlibpath_var=no
10360       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10361       export_dynamic_flag_spec='${wl}-E'
10362       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10363       # Instead, shared libraries are loaded at an image base (0x10000000 by
10364       # default) and relocated if they conflict, which is a slow very memory
10365       # consuming and fragmenting process.  To avoid this, we pick a random,
10366       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10367       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10368       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10369       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'
10370       ;;
10371
10372     gnu* | linux* | tpf* | k*bsd*-gnu)
10373       tmp_diet=no
10374       if test "$host_os" = linux-dietlibc; then
10375         case $cc_basename in
10376           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10377         esac
10378       fi
10379       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10380          && test "$tmp_diet" = no
10381       then
10382         tmp_addflag=
10383         tmp_sharedflag='-shared'
10384         case $cc_basename,$host_cpu in
10385         pgcc*)                          # Portland Group C compiler
10386           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'
10387           tmp_addflag=' $pic_flag'
10388           ;;
10389         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10390           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'
10391           tmp_addflag=' $pic_flag -Mnomain' ;;
10392         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10393           tmp_addflag=' -i_dynamic' ;;
10394         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10395           tmp_addflag=' -i_dynamic -nofor_main' ;;
10396         ifc* | ifort*)                  # Intel Fortran compiler
10397           tmp_addflag=' -nofor_main' ;;
10398         lf95*)                          # Lahey Fortran 8.1
10399           whole_archive_flag_spec=
10400           tmp_sharedflag='--shared' ;;
10401         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10402           tmp_sharedflag='-qmkshrobj'
10403           tmp_addflag= ;;
10404         esac
10405         case `$CC -V 2>&1 | sed 5q` in
10406         *Sun\ C*)                       # Sun C 5.9
10407           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'
10408           compiler_needs_object=yes
10409           tmp_sharedflag='-G' ;;
10410         *Sun\ F*)                       # Sun Fortran 8.3
10411           tmp_sharedflag='-G' ;;
10412         esac
10413         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10414
10415         if test "x$supports_anon_versioning" = xyes; then
10416           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10417             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10418             echo "local: *; };" >> $output_objdir/$libname.ver~
10419             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10420         fi
10421
10422         case $cc_basename in
10423         xlf*)
10424           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10425           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10426           hardcode_libdir_flag_spec=
10427           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10428           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10429           if test "x$supports_anon_versioning" = xyes; then
10430             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10431               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10432               echo "local: *; };" >> $output_objdir/$libname.ver~
10433               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10434           fi
10435           ;;
10436         esac
10437       else
10438         ld_shlibs=no
10439       fi
10440       ;;
10441
10442     netbsd*)
10443       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10444         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10445         wlarc=
10446       else
10447         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10448         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10449       fi
10450       ;;
10451
10452     solaris*)
10453       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10454         ld_shlibs=no
10455         cat <<_LT_EOF 1>&2
10456
10457 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10458 *** create shared libraries on Solaris systems.  Therefore, libtool
10459 *** is disabling shared libraries support.  We urge you to upgrade GNU
10460 *** binutils to release 2.9.1 or newer.  Another option is to modify
10461 *** your PATH or compiler configuration so that the native linker is
10462 *** used, and then restart.
10463
10464 _LT_EOF
10465       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10466         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10467         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10468       else
10469         ld_shlibs=no
10470       fi
10471       ;;
10472
10473     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10474       case `$LD -v 2>&1` in
10475         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10476         ld_shlibs=no
10477         cat <<_LT_EOF 1>&2
10478
10479 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10480 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10481 *** is disabling shared libraries support.  We urge you to upgrade GNU
10482 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10483 *** your PATH or compiler configuration so that the native linker is
10484 *** used, and then restart.
10485
10486 _LT_EOF
10487         ;;
10488         *)
10489           # For security reasons, it is highly recommended that you always
10490           # use absolute paths for naming shared libraries, and exclude the
10491           # DT_RUNPATH tag from executables and libraries.  But doing so
10492           # requires that you compile everything twice, which is a pain.
10493           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10494             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10495             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10496             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10497           else
10498             ld_shlibs=no
10499           fi
10500         ;;
10501       esac
10502       ;;
10503
10504     sunos4*)
10505       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10506       wlarc=
10507       hardcode_direct=yes
10508       hardcode_shlibpath_var=no
10509       ;;
10510
10511     *)
10512       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10513         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10514         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10515       else
10516         ld_shlibs=no
10517       fi
10518       ;;
10519     esac
10520
10521     if test "$ld_shlibs" = no; then
10522       runpath_var=
10523       hardcode_libdir_flag_spec=
10524       export_dynamic_flag_spec=
10525       whole_archive_flag_spec=
10526     fi
10527   else
10528     # PORTME fill in a description of your system's linker (not GNU ld)
10529     case $host_os in
10530     aix3*)
10531       allow_undefined_flag=unsupported
10532       always_export_symbols=yes
10533       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'
10534       # Note: this linker hardcodes the directories in LIBPATH if there
10535       # are no directories specified by -L.
10536       hardcode_minus_L=yes
10537       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10538         # Neither direct hardcoding nor static linking is supported with a
10539         # broken collect2.
10540         hardcode_direct=unsupported
10541       fi
10542       ;;
10543
10544     aix[4-9]*)
10545       if test "$host_cpu" = ia64; then
10546         # On IA64, the linker does run time linking by default, so we don't
10547         # have to do anything special.
10548         aix_use_runtimelinking=no
10549         exp_sym_flag='-Bexport'
10550         no_entry_flag=""
10551       else
10552         # If we're using GNU nm, then we don't want the "-C" option.
10553         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10554         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10555           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'
10556         else
10557           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'
10558         fi
10559         aix_use_runtimelinking=no
10560
10561         # Test if we are trying to use run time linking or normal
10562         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10563         # need to do runtime linking.
10564         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10565           for ld_flag in $LDFLAGS; do
10566           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10567             aix_use_runtimelinking=yes
10568             break
10569           fi
10570           done
10571           ;;
10572         esac
10573
10574         exp_sym_flag='-bexport'
10575         no_entry_flag='-bnoentry'
10576       fi
10577
10578       # When large executables or shared objects are built, AIX ld can
10579       # have problems creating the table of contents.  If linking a library
10580       # or program results in "error TOC overflow" add -mminimal-toc to
10581       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10582       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10583
10584       archive_cmds=''
10585       hardcode_direct=yes
10586       hardcode_direct_absolute=yes
10587       hardcode_libdir_separator=':'
10588       link_all_deplibs=yes
10589       file_list_spec='${wl}-f,'
10590
10591       if test "$GCC" = yes; then
10592         case $host_os in aix4.[012]|aix4.[012].*)
10593         # We only want to do this on AIX 4.2 and lower, the check
10594         # below for broken collect2 doesn't work under 4.3+
10595           collect2name=`${CC} -print-prog-name=collect2`
10596           if test -f "$collect2name" &&
10597            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10598           then
10599           # We have reworked collect2
10600           :
10601           else
10602           # We have old collect2
10603           hardcode_direct=unsupported
10604           # It fails to find uninstalled libraries when the uninstalled
10605           # path is not listed in the libpath.  Setting hardcode_minus_L
10606           # to unsupported forces relinking
10607           hardcode_minus_L=yes
10608           hardcode_libdir_flag_spec='-L$libdir'
10609           hardcode_libdir_separator=
10610           fi
10611           ;;
10612         esac
10613         shared_flag='-shared'
10614         if test "$aix_use_runtimelinking" = yes; then
10615           shared_flag="$shared_flag "'${wl}-G'
10616         fi
10617       else
10618         # not using gcc
10619         if test "$host_cpu" = ia64; then
10620         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10621         # chokes on -Wl,-G. The following line is correct:
10622           shared_flag='-G'
10623         else
10624           if test "$aix_use_runtimelinking" = yes; then
10625             shared_flag='${wl}-G'
10626           else
10627             shared_flag='${wl}-bM:SRE'
10628           fi
10629         fi
10630       fi
10631
10632       export_dynamic_flag_spec='${wl}-bexpall'
10633       # It seems that -bexpall does not export symbols beginning with
10634       # underscore (_), so it is better to generate a list of symbols to export.
10635       always_export_symbols=yes
10636       if test "$aix_use_runtimelinking" = yes; then
10637         # Warning - without using the other runtime loading flags (-brtl),
10638         # -berok will link without error, but may produce a broken library.
10639         allow_undefined_flag='-berok'
10640         # Determine the default libpath from the value encoded in an
10641         # empty executable.
10642         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h.  */
10644
10645 int
10646 main ()
10647 {
10648
10649   ;
10650   return 0;
10651 }
10652 _ACEOF
10653 if ac_fn_c_try_link "$LINENO"; then :
10654
10655 lt_aix_libpath_sed='
10656     /Import File Strings/,/^$/ {
10657         /^0/ {
10658             s/^0  *\(.*\)$/\1/
10659             p
10660         }
10661     }'
10662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10663 # Check for a 64-bit object if we didn't find anything.
10664 if test -z "$aix_libpath"; then
10665   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10666 fi
10667 fi
10668 rm -f core conftest.err conftest.$ac_objext \
10669     conftest$ac_exeext conftest.$ac_ext
10670 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10671
10672         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10673         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"
10674       else
10675         if test "$host_cpu" = ia64; then
10676           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10677           allow_undefined_flag="-z nodefs"
10678           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"
10679         else
10680          # Determine the default libpath from the value encoded in an
10681          # empty executable.
10682          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h.  */
10684
10685 int
10686 main ()
10687 {
10688
10689   ;
10690   return 0;
10691 }
10692 _ACEOF
10693 if ac_fn_c_try_link "$LINENO"; then :
10694
10695 lt_aix_libpath_sed='
10696     /Import File Strings/,/^$/ {
10697         /^0/ {
10698             s/^0  *\(.*\)$/\1/
10699             p
10700         }
10701     }'
10702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10703 # Check for a 64-bit object if we didn't find anything.
10704 if test -z "$aix_libpath"; then
10705   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10706 fi
10707 fi
10708 rm -f core conftest.err conftest.$ac_objext \
10709     conftest$ac_exeext conftest.$ac_ext
10710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10711
10712          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10713           # Warning - without using the other run time loading flags,
10714           # -berok will link without error, but may produce a broken library.
10715           no_undefined_flag=' ${wl}-bernotok'
10716           allow_undefined_flag=' ${wl}-berok'
10717           # Exported symbols can be pulled into shared objects from archives
10718           whole_archive_flag_spec='$convenience'
10719           archive_cmds_need_lc=yes
10720           # This is similar to how AIX traditionally builds its shared libraries.
10721           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'
10722         fi
10723       fi
10724       ;;
10725
10726     amigaos*)
10727       case $host_cpu in
10728       powerpc)
10729             # see comment about AmigaOS4 .so support
10730             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10731             archive_expsym_cmds=''
10732         ;;
10733       m68k)
10734             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)'
10735             hardcode_libdir_flag_spec='-L$libdir'
10736             hardcode_minus_L=yes
10737         ;;
10738       esac
10739       ;;
10740
10741     bsdi[45]*)
10742       export_dynamic_flag_spec=-rdynamic
10743       ;;
10744
10745     cygwin* | mingw* | pw32* | cegcc*)
10746       # When not using gcc, we currently assume that we are using
10747       # Microsoft Visual C++.
10748       # hardcode_libdir_flag_spec is actually meaningless, as there is
10749       # no search path for DLLs.
10750       hardcode_libdir_flag_spec=' '
10751       allow_undefined_flag=unsupported
10752       # Tell ltmain to make .lib files, not .a files.
10753       libext=lib
10754       # Tell ltmain to make .dll files, not .so files.
10755       shrext_cmds=".dll"
10756       # FIXME: Setting linknames here is a bad hack.
10757       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10758       # The linker will automatically build a .lib file if we build a DLL.
10759       old_archive_from_new_cmds='true'
10760       # FIXME: Should let the user specify the lib program.
10761       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10762       fix_srcfile_path='`cygpath -w "$srcfile"`'
10763       enable_shared_with_static_runtimes=yes
10764       ;;
10765
10766     darwin* | rhapsody*)
10767
10768
10769   archive_cmds_need_lc=no
10770   hardcode_direct=no
10771   hardcode_automatic=yes
10772   hardcode_shlibpath_var=unsupported
10773   whole_archive_flag_spec=''
10774   link_all_deplibs=yes
10775   allow_undefined_flag="$_lt_dar_allow_undefined"
10776   case $cc_basename in
10777      ifort*) _lt_dar_can_shared=yes ;;
10778      *) _lt_dar_can_shared=$GCC ;;
10779   esac
10780   if test "$_lt_dar_can_shared" = "yes"; then
10781     output_verbose_link_cmd=echo
10782     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10783     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10784     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}"
10785     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}"
10786
10787   else
10788   ld_shlibs=no
10789   fi
10790
10791       ;;
10792
10793     dgux*)
10794       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10795       hardcode_libdir_flag_spec='-L$libdir'
10796       hardcode_shlibpath_var=no
10797       ;;
10798
10799     freebsd1*)
10800       ld_shlibs=no
10801       ;;
10802
10803     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10804     # support.  Future versions do this automatically, but an explicit c++rt0.o
10805     # does not break anything, and helps significantly (at the cost of a little
10806     # extra space).
10807     freebsd2.2*)
10808       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10809       hardcode_libdir_flag_spec='-R$libdir'
10810       hardcode_direct=yes
10811       hardcode_shlibpath_var=no
10812       ;;
10813
10814     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10815     freebsd2*)
10816       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10817       hardcode_direct=yes
10818       hardcode_minus_L=yes
10819       hardcode_shlibpath_var=no
10820       ;;
10821
10822     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10823     freebsd* | dragonfly*)
10824       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10825       hardcode_libdir_flag_spec='-R$libdir'
10826       hardcode_direct=yes
10827       hardcode_shlibpath_var=no
10828       ;;
10829
10830     hpux9*)
10831       if test "$GCC" = yes; then
10832         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'
10833       else
10834         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'
10835       fi
10836       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10837       hardcode_libdir_separator=:
10838       hardcode_direct=yes
10839
10840       # hardcode_minus_L: Not really in the search PATH,
10841       # but as the default location of the library.
10842       hardcode_minus_L=yes
10843       export_dynamic_flag_spec='${wl}-E'
10844       ;;
10845
10846     hpux10*)
10847       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10848         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10849       else
10850         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10851       fi
10852       if test "$with_gnu_ld" = no; then
10853         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10854         hardcode_libdir_flag_spec_ld='+b $libdir'
10855         hardcode_libdir_separator=:
10856         hardcode_direct=yes
10857         hardcode_direct_absolute=yes
10858         export_dynamic_flag_spec='${wl}-E'
10859         # hardcode_minus_L: Not really in the search PATH,
10860         # but as the default location of the library.
10861         hardcode_minus_L=yes
10862       fi
10863       ;;
10864
10865     hpux11*)
10866       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10867         case $host_cpu in
10868         hppa*64*)
10869           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10870           ;;
10871         ia64*)
10872           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10873           ;;
10874         *)
10875           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10876           ;;
10877         esac
10878       else
10879         case $host_cpu in
10880         hppa*64*)
10881           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10882           ;;
10883         ia64*)
10884           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10885           ;;
10886         *)
10887           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10888           ;;
10889         esac
10890       fi
10891       if test "$with_gnu_ld" = no; then
10892         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10893         hardcode_libdir_separator=:
10894
10895         case $host_cpu in
10896         hppa*64*|ia64*)
10897           hardcode_direct=no
10898           hardcode_shlibpath_var=no
10899           ;;
10900         *)
10901           hardcode_direct=yes
10902           hardcode_direct_absolute=yes
10903           export_dynamic_flag_spec='${wl}-E'
10904
10905           # hardcode_minus_L: Not really in the search PATH,
10906           # but as the default location of the library.
10907           hardcode_minus_L=yes
10908           ;;
10909         esac
10910       fi
10911       ;;
10912
10913     irix5* | irix6* | nonstopux*)
10914       if test "$GCC" = yes; then
10915         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'
10916         # Try to use the -exported_symbol ld option, if it does not
10917         # work, assume that -exports_file does not work either and
10918         # implicitly export all symbols.
10919         save_LDFLAGS="$LDFLAGS"
10920         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10921         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h.  */
10923 int foo(void) {}
10924 _ACEOF
10925 if ac_fn_c_try_link "$LINENO"; then :
10926   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'
10927
10928 fi
10929 rm -f core conftest.err conftest.$ac_objext \
10930     conftest$ac_exeext conftest.$ac_ext
10931         LDFLAGS="$save_LDFLAGS"
10932       else
10933         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'
10934         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'
10935       fi
10936       archive_cmds_need_lc='no'
10937       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10938       hardcode_libdir_separator=:
10939       inherit_rpath=yes
10940       link_all_deplibs=yes
10941       ;;
10942
10943     netbsd*)
10944       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10945         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10946       else
10947         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10948       fi
10949       hardcode_libdir_flag_spec='-R$libdir'
10950       hardcode_direct=yes
10951       hardcode_shlibpath_var=no
10952       ;;
10953
10954     newsos6)
10955       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956       hardcode_direct=yes
10957       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10958       hardcode_libdir_separator=:
10959       hardcode_shlibpath_var=no
10960       ;;
10961
10962     *nto* | *qnx*)
10963       ;;
10964
10965     openbsd*)
10966       if test -f /usr/libexec/ld.so; then
10967         hardcode_direct=yes
10968         hardcode_shlibpath_var=no
10969         hardcode_direct_absolute=yes
10970         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10971           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10972           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10973           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10974           export_dynamic_flag_spec='${wl}-E'
10975         else
10976           case $host_os in
10977            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10978              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10979              hardcode_libdir_flag_spec='-R$libdir'
10980              ;;
10981            *)
10982              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10983              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10984              ;;
10985           esac
10986         fi
10987       else
10988         ld_shlibs=no
10989       fi
10990       ;;
10991
10992     os2*)
10993       hardcode_libdir_flag_spec='-L$libdir'
10994       hardcode_minus_L=yes
10995       allow_undefined_flag=unsupported
10996       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'
10997       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10998       ;;
10999
11000     osf3*)
11001       if test "$GCC" = yes; then
11002         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11003         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'
11004       else
11005         allow_undefined_flag=' -expect_unresolved \*'
11006         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'
11007       fi
11008       archive_cmds_need_lc='no'
11009       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11010       hardcode_libdir_separator=:
11011       ;;
11012
11013     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11014       if test "$GCC" = yes; then
11015         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11016         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'
11017         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11018       else
11019         allow_undefined_flag=' -expect_unresolved \*'
11020         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'
11021         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~
11022         $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'
11023
11024         # Both c and cxx compiler support -rpath directly
11025         hardcode_libdir_flag_spec='-rpath $libdir'
11026       fi
11027       archive_cmds_need_lc='no'
11028       hardcode_libdir_separator=:
11029       ;;
11030
11031     solaris*)
11032       no_undefined_flag=' -z defs'
11033       if test "$GCC" = yes; then
11034         wlarc='${wl}'
11035         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11036         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11037           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11038       else
11039         case `$CC -V 2>&1` in
11040         *"Compilers 5.0"*)
11041           wlarc=''
11042           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11043           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11044           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11045           ;;
11046         *)
11047           wlarc='${wl}'
11048           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11049           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11050           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11051           ;;
11052         esac
11053       fi
11054       hardcode_libdir_flag_spec='-R$libdir'
11055       hardcode_shlibpath_var=no
11056       case $host_os in
11057       solaris2.[0-5] | solaris2.[0-5].*) ;;
11058       *)
11059         # The compiler driver will combine and reorder linker options,
11060         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11061         # but is careful enough not to reorder.
11062         # Supported since Solaris 2.6 (maybe 2.5.1?)
11063         if test "$GCC" = yes; then
11064           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11065         else
11066           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11067         fi
11068         ;;
11069       esac
11070       link_all_deplibs=yes
11071       ;;
11072
11073     sunos4*)
11074       if test "x$host_vendor" = xsequent; then
11075         # Use $CC to link under sequent, because it throws in some extra .o
11076         # files that make .init and .fini sections work.
11077         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11078       else
11079         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11080       fi
11081       hardcode_libdir_flag_spec='-L$libdir'
11082       hardcode_direct=yes
11083       hardcode_minus_L=yes
11084       hardcode_shlibpath_var=no
11085       ;;
11086
11087     sysv4)
11088       case $host_vendor in
11089         sni)
11090           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11091           hardcode_direct=yes # is this really true???
11092         ;;
11093         siemens)
11094           ## LD is ld it makes a PLAMLIB
11095           ## CC just makes a GrossModule.
11096           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11097           reload_cmds='$CC -r -o $output$reload_objs'
11098           hardcode_direct=no
11099         ;;
11100         motorola)
11101           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11102           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11103         ;;
11104       esac
11105       runpath_var='LD_RUN_PATH'
11106       hardcode_shlibpath_var=no
11107       ;;
11108
11109     sysv4.3*)
11110       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11111       hardcode_shlibpath_var=no
11112       export_dynamic_flag_spec='-Bexport'
11113       ;;
11114
11115     sysv4*MP*)
11116       if test -d /usr/nec; then
11117         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11118         hardcode_shlibpath_var=no
11119         runpath_var=LD_RUN_PATH
11120         hardcode_runpath_var=yes
11121         ld_shlibs=yes
11122       fi
11123       ;;
11124
11125     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11126       no_undefined_flag='${wl}-z,text'
11127       archive_cmds_need_lc=no
11128       hardcode_shlibpath_var=no
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     sysv5* | sco3.2v5* | sco5v6*)
11141       # Note: We can NOT use -z defs as we might desire, because we do not
11142       # link with -lc, and that would cause any symbols used from libc to
11143       # always be unresolved, which means just about no library would
11144       # ever link correctly.  If we're not using GNU ld we use -z text
11145       # though, which does catch some bad symbols but isn't as heavy-handed
11146       # as -z defs.
11147       no_undefined_flag='${wl}-z,text'
11148       allow_undefined_flag='${wl}-z,nodefs'
11149       archive_cmds_need_lc=no
11150       hardcode_shlibpath_var=no
11151       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11152       hardcode_libdir_separator=':'
11153       link_all_deplibs=yes
11154       export_dynamic_flag_spec='${wl}-Bexport'
11155       runpath_var='LD_RUN_PATH'
11156
11157       if test "$GCC" = yes; then
11158         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11159         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11160       else
11161         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11162         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11163       fi
11164       ;;
11165
11166     uts4*)
11167       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11168       hardcode_libdir_flag_spec='-L$libdir'
11169       hardcode_shlibpath_var=no
11170       ;;
11171
11172     *)
11173       ld_shlibs=no
11174       ;;
11175     esac
11176
11177     if test x$host_vendor = xsni; then
11178       case $host in
11179       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11180         export_dynamic_flag_spec='${wl}-Blargedynsym'
11181         ;;
11182       esac
11183     fi
11184   fi
11185
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11187 $as_echo "$ld_shlibs" >&6; }
11188 test "$ld_shlibs" = no && can_build_shared=no
11189
11190 with_gnu_ld=$with_gnu_ld
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206 #
11207 # Do we need to explicitly link libc?
11208 #
11209 case "x$archive_cmds_need_lc" in
11210 x|xyes)
11211   # Assume -lc should be added
11212   archive_cmds_need_lc=yes
11213
11214   if test "$enable_shared" = yes && test "$GCC" = yes; then
11215     case $archive_cmds in
11216     *'~'*)
11217       # FIXME: we may have to deal with multi-command sequences.
11218       ;;
11219     '$CC '*)
11220       # Test whether the compiler implicitly links with -lc since on some
11221       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11222       # to ld, don't add -lc before -lgcc.
11223       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11224 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11225       $RM conftest*
11226       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11227
11228       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11229   (eval $ac_compile) 2>&5
11230   ac_status=$?
11231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11232   test $ac_status = 0; } 2>conftest.err; then
11233         soname=conftest
11234         lib=conftest
11235         libobjs=conftest.$ac_objext
11236         deplibs=
11237         wl=$lt_prog_compiler_wl
11238         pic_flag=$lt_prog_compiler_pic
11239         compiler_flags=-v
11240         linker_flags=-v
11241         verstring=
11242         output_objdir=.
11243         libname=conftest
11244         lt_save_allow_undefined_flag=$allow_undefined_flag
11245         allow_undefined_flag=
11246         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11247   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11248   ac_status=$?
11249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11250   test $ac_status = 0; }
11251         then
11252           archive_cmds_need_lc=no
11253         else
11254           archive_cmds_need_lc=yes
11255         fi
11256         allow_undefined_flag=$lt_save_allow_undefined_flag
11257       else
11258         cat conftest.err 1>&5
11259       fi
11260       $RM conftest*
11261       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11262 $as_echo "$archive_cmds_need_lc" >&6; }
11263       ;;
11264     esac
11265   fi
11266   ;;
11267 esac
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
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11426 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11427
11428 if test "$GCC" = yes; then
11429   case $host_os in
11430     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11431     *) lt_awk_arg="/^libraries:/" ;;
11432   esac
11433   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11434   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11435     # if the path contains ";" then we assume it to be the separator
11436     # otherwise default to the standard path separator (i.e. ":") - it is
11437     # assumed that no part of a normal pathname contains ";" but that should
11438     # okay in the real world where ";" in dirpaths is itself problematic.
11439     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11440   else
11441     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11442   fi
11443   # Ok, now we have the path, separated by spaces, we can step through it
11444   # and add multilib dir if necessary.
11445   lt_tmp_lt_search_path_spec=
11446   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11447   for lt_sys_path in $lt_search_path_spec; do
11448     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11449       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11450     else
11451       test -d "$lt_sys_path" && \
11452         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11453     fi
11454   done
11455   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11456 BEGIN {RS=" "; FS="/|\n";} {
11457   lt_foo="";
11458   lt_count=0;
11459   for (lt_i = NF; lt_i > 0; lt_i--) {
11460     if ($lt_i != "" && $lt_i != ".") {
11461       if ($lt_i == "..") {
11462         lt_count++;
11463       } else {
11464         if (lt_count == 0) {
11465           lt_foo="/" $lt_i lt_foo;
11466         } else {
11467           lt_count--;
11468         }
11469       }
11470     }
11471   }
11472   if (lt_foo != "") { lt_freq[lt_foo]++; }
11473   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11474 }'`
11475   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11476 else
11477   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11478 fi
11479 library_names_spec=
11480 libname_spec='lib$name'
11481 soname_spec=
11482 shrext_cmds=".so"
11483 postinstall_cmds=
11484 postuninstall_cmds=
11485 finish_cmds=
11486 finish_eval=
11487 shlibpath_var=
11488 shlibpath_overrides_runpath=unknown
11489 version_type=none
11490 dynamic_linker="$host_os ld.so"
11491 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11492 need_lib_prefix=unknown
11493 hardcode_into_libs=no
11494
11495 # when you set need_version to no, make sure it does not cause -set_version
11496 # flags to be left without arguments
11497 need_version=unknown
11498
11499 case $host_os in
11500 aix3*)
11501   version_type=linux
11502   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11503   shlibpath_var=LIBPATH
11504
11505   # AIX 3 has no versioning support, so we append a major version to the name.
11506   soname_spec='${libname}${release}${shared_ext}$major'
11507   ;;
11508
11509 aix[4-9]*)
11510   version_type=linux
11511   need_lib_prefix=no
11512   need_version=no
11513   hardcode_into_libs=yes
11514   if test "$host_cpu" = ia64; then
11515     # AIX 5 supports IA64
11516     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11517     shlibpath_var=LD_LIBRARY_PATH
11518   else
11519     # With GCC up to 2.95.x, collect2 would create an import file
11520     # for dependence libraries.  The import file would start with
11521     # the line `#! .'.  This would cause the generated library to
11522     # depend on `.', always an invalid library.  This was fixed in
11523     # development snapshots of GCC prior to 3.0.
11524     case $host_os in
11525       aix4 | aix4.[01] | aix4.[01].*)
11526       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11527            echo ' yes '
11528            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11529         :
11530       else
11531         can_build_shared=no
11532       fi
11533       ;;
11534     esac
11535     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11536     # soname into executable. Probably we can add versioning support to
11537     # collect2, so additional links can be useful in future.
11538     if test "$aix_use_runtimelinking" = yes; then
11539       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11540       # instead of lib<name>.a to let people know that these are not
11541       # typical AIX shared libraries.
11542       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11543     else
11544       # We preserve .a as extension for shared libraries through AIX4.2
11545       # and later when we are not doing run time linking.
11546       library_names_spec='${libname}${release}.a $libname.a'
11547       soname_spec='${libname}${release}${shared_ext}$major'
11548     fi
11549     shlibpath_var=LIBPATH
11550   fi
11551   ;;
11552
11553 amigaos*)
11554   case $host_cpu in
11555   powerpc)
11556     # Since July 2007 AmigaOS4 officially supports .so libraries.
11557     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11558     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559     ;;
11560   m68k)
11561     library_names_spec='$libname.ixlibrary $libname.a'
11562     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11563     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'
11564     ;;
11565   esac
11566   ;;
11567
11568 beos*)
11569   library_names_spec='${libname}${shared_ext}'
11570   dynamic_linker="$host_os ld.so"
11571   shlibpath_var=LIBRARY_PATH
11572   ;;
11573
11574 bsdi[45]*)
11575   version_type=linux
11576   need_version=no
11577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578   soname_spec='${libname}${release}${shared_ext}$major'
11579   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11580   shlibpath_var=LD_LIBRARY_PATH
11581   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11582   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11583   # the default ld.so.conf also contains /usr/contrib/lib and
11584   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11585   # libtool to hard-code these into programs
11586   ;;
11587
11588 cygwin* | mingw* | pw32* | cegcc*)
11589   version_type=windows
11590   shrext_cmds=".dll"
11591   need_version=no
11592   need_lib_prefix=no
11593
11594   case $GCC,$host_os in
11595   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11596     library_names_spec='$libname.dll.a'
11597     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11598     postinstall_cmds='base_file=`basename \${file}`~
11599       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11600       dldir=$destdir/`dirname \$dlpath`~
11601       test -d \$dldir || mkdir -p \$dldir~
11602       $install_prog $dir/$dlname \$dldir/$dlname~
11603       chmod a+x \$dldir/$dlname~
11604       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11605         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11606       fi'
11607     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11608       dlpath=$dir/\$dldll~
11609        $RM \$dlpath'
11610     shlibpath_overrides_runpath=yes
11611
11612     case $host_os in
11613     cygwin*)
11614       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11615       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11616       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11617       ;;
11618     mingw* | cegcc*)
11619       # MinGW DLLs use traditional 'lib' prefix
11620       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11621       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11622       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11623         # It is most probably a Windows format PATH printed by
11624         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11625         # path with ; separators, and with drive letters. We can handle the
11626         # drive letters (cygwin fileutils understands them), so leave them,
11627         # especially as we might pass files found there to a mingw objdump,
11628         # which wouldn't understand a cygwinified path. Ahh.
11629         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11630       else
11631         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11632       fi
11633       ;;
11634     pw32*)
11635       # pw32 DLLs use 'pw' prefix rather than 'lib'
11636       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11637       ;;
11638     esac
11639     ;;
11640
11641   *)
11642     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11643     ;;
11644   esac
11645   dynamic_linker='Win32 ld.exe'
11646   # FIXME: first we should search . and the directory the executable is in
11647   shlibpath_var=PATH
11648   ;;
11649
11650 darwin* | rhapsody*)
11651   dynamic_linker="$host_os dyld"
11652   version_type=darwin
11653   need_lib_prefix=no
11654   need_version=no
11655   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11656   soname_spec='${libname}${release}${major}$shared_ext'
11657   shlibpath_overrides_runpath=yes
11658   shlibpath_var=DYLD_LIBRARY_PATH
11659   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11660
11661   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11662   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11663   ;;
11664
11665 dgux*)
11666   version_type=linux
11667   need_lib_prefix=no
11668   need_version=no
11669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11670   soname_spec='${libname}${release}${shared_ext}$major'
11671   shlibpath_var=LD_LIBRARY_PATH
11672   ;;
11673
11674 freebsd1*)
11675   dynamic_linker=no
11676   ;;
11677
11678 freebsd* | dragonfly*)
11679   # DragonFly does not have aout.  When/if they implement a new
11680   # versioning mechanism, adjust this.
11681   if test -x /usr/bin/objformat; then
11682     objformat=`/usr/bin/objformat`
11683   else
11684     case $host_os in
11685     freebsd[123]*) objformat=aout ;;
11686     *) objformat=elf ;;
11687     esac
11688   fi
11689   version_type=freebsd-$objformat
11690   case $version_type in
11691     freebsd-elf*)
11692       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11693       need_version=no
11694       need_lib_prefix=no
11695       ;;
11696     freebsd-*)
11697       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11698       need_version=yes
11699       ;;
11700   esac
11701   shlibpath_var=LD_LIBRARY_PATH
11702   case $host_os in
11703   freebsd2*)
11704     shlibpath_overrides_runpath=yes
11705     ;;
11706   freebsd3.[01]* | freebsdelf3.[01]*)
11707     shlibpath_overrides_runpath=yes
11708     hardcode_into_libs=yes
11709     ;;
11710   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11711   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11712     shlibpath_overrides_runpath=no
11713     hardcode_into_libs=yes
11714     ;;
11715   *) # from 4.6 on, and DragonFly
11716     shlibpath_overrides_runpath=yes
11717     hardcode_into_libs=yes
11718     ;;
11719   esac
11720   ;;
11721
11722 gnu*)
11723   version_type=linux
11724   need_lib_prefix=no
11725   need_version=no
11726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11727   soname_spec='${libname}${release}${shared_ext}$major'
11728   shlibpath_var=LD_LIBRARY_PATH
11729   hardcode_into_libs=yes
11730   ;;
11731
11732 hpux9* | hpux10* | hpux11*)
11733   # Give a soname corresponding to the major version so that dld.sl refuses to
11734   # link against other versions.
11735   version_type=sunos
11736   need_lib_prefix=no
11737   need_version=no
11738   case $host_cpu in
11739   ia64*)
11740     shrext_cmds='.so'
11741     hardcode_into_libs=yes
11742     dynamic_linker="$host_os dld.so"
11743     shlibpath_var=LD_LIBRARY_PATH
11744     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11745     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11746     soname_spec='${libname}${release}${shared_ext}$major'
11747     if test "X$HPUX_IA64_MODE" = X32; then
11748       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11749     else
11750       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11751     fi
11752     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11753     ;;
11754   hppa*64*)
11755     shrext_cmds='.sl'
11756     hardcode_into_libs=yes
11757     dynamic_linker="$host_os dld.sl"
11758     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11759     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761     soname_spec='${libname}${release}${shared_ext}$major'
11762     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11763     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11764     ;;
11765   *)
11766     shrext_cmds='.sl'
11767     dynamic_linker="$host_os dld.sl"
11768     shlibpath_var=SHLIB_PATH
11769     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11770     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11771     soname_spec='${libname}${release}${shared_ext}$major'
11772     ;;
11773   esac
11774   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11775   postinstall_cmds='chmod 555 $lib'
11776   ;;
11777
11778 interix[3-9]*)
11779   version_type=linux
11780   need_lib_prefix=no
11781   need_version=no
11782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11783   soname_spec='${libname}${release}${shared_ext}$major'
11784   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11785   shlibpath_var=LD_LIBRARY_PATH
11786   shlibpath_overrides_runpath=no
11787   hardcode_into_libs=yes
11788   ;;
11789
11790 irix5* | irix6* | nonstopux*)
11791   case $host_os in
11792     nonstopux*) version_type=nonstopux ;;
11793     *)
11794         if test "$lt_cv_prog_gnu_ld" = yes; then
11795                 version_type=linux
11796         else
11797                 version_type=irix
11798         fi ;;
11799   esac
11800   need_lib_prefix=no
11801   need_version=no
11802   soname_spec='${libname}${release}${shared_ext}$major'
11803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11804   case $host_os in
11805   irix5* | nonstopux*)
11806     libsuff= shlibsuff=
11807     ;;
11808   *)
11809     case $LD in # libtool.m4 will add one of these switches to LD
11810     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11811       libsuff= shlibsuff= libmagic=32-bit;;
11812     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11813       libsuff=32 shlibsuff=N32 libmagic=N32;;
11814     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11815       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11816     *) libsuff= shlibsuff= libmagic=never-match;;
11817     esac
11818     ;;
11819   esac
11820   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11821   shlibpath_overrides_runpath=no
11822   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11823   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11824   hardcode_into_libs=yes
11825   ;;
11826
11827 # No shared lib support for Linux oldld, aout, or coff.
11828 linux*oldld* | linux*aout* | linux*coff*)
11829   dynamic_linker=no
11830   ;;
11831
11832 # This must be Linux ELF.
11833 linux* | k*bsd*-gnu)
11834   version_type=linux
11835   need_lib_prefix=no
11836   need_version=no
11837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11838   soname_spec='${libname}${release}${shared_ext}$major'
11839   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11840   shlibpath_var=LD_LIBRARY_PATH
11841   shlibpath_overrides_runpath=no
11842   # Some binutils ld are patched to set DT_RUNPATH
11843   save_LDFLAGS=$LDFLAGS
11844   save_libdir=$libdir
11845   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11846        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h.  */
11849
11850 int
11851 main ()
11852 {
11853
11854   ;
11855   return 0;
11856 }
11857 _ACEOF
11858 if ac_fn_c_try_link "$LINENO"; then :
11859   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11860   shlibpath_overrides_runpath=yes
11861 fi
11862 fi
11863 rm -f core conftest.err conftest.$ac_objext \
11864     conftest$ac_exeext conftest.$ac_ext
11865   LDFLAGS=$save_LDFLAGS
11866   libdir=$save_libdir
11867
11868   # This implies no fast_install, which is unacceptable.
11869   # Some rework will be needed to allow for fast_install
11870   # before this can be enabled.
11871   hardcode_into_libs=yes
11872
11873   # Append ld.so.conf contents to the search path
11874   if test -f /etc/ld.so.conf; then
11875     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' ' '`
11876     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11877   fi
11878
11879   # We used to test for /lib/ld.so.1 and disable shared libraries on
11880   # powerpc, because MkLinux only supported shared libraries with the
11881   # GNU dynamic linker.  Since this was broken with cross compilers,
11882   # most powerpc-linux boxes support dynamic linking these days and
11883   # people can always --disable-shared, the test was removed, and we
11884   # assume the GNU/Linux dynamic linker is in use.
11885   dynamic_linker='GNU/Linux ld.so'
11886   ;;
11887
11888 netbsd*)
11889   version_type=sunos
11890   need_lib_prefix=no
11891   need_version=no
11892   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11894     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11895     dynamic_linker='NetBSD (a.out) ld.so'
11896   else
11897     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11898     soname_spec='${libname}${release}${shared_ext}$major'
11899     dynamic_linker='NetBSD ld.elf_so'
11900   fi
11901   shlibpath_var=LD_LIBRARY_PATH
11902   shlibpath_overrides_runpath=yes
11903   hardcode_into_libs=yes
11904   ;;
11905
11906 newsos6)
11907   version_type=linux
11908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11909   shlibpath_var=LD_LIBRARY_PATH
11910   shlibpath_overrides_runpath=yes
11911   ;;
11912
11913 *nto* | *qnx*)
11914   version_type=qnx
11915   need_lib_prefix=no
11916   need_version=no
11917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918   soname_spec='${libname}${release}${shared_ext}$major'
11919   shlibpath_var=LD_LIBRARY_PATH
11920   shlibpath_overrides_runpath=no
11921   hardcode_into_libs=yes
11922   dynamic_linker='ldqnx.so'
11923   ;;
11924
11925 openbsd*)
11926   version_type=sunos
11927   sys_lib_dlsearch_path_spec="/usr/lib"
11928   need_lib_prefix=no
11929   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11930   case $host_os in
11931     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11932     *)                          need_version=no  ;;
11933   esac
11934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11935   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11936   shlibpath_var=LD_LIBRARY_PATH
11937   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11938     case $host_os in
11939       openbsd2.[89] | openbsd2.[89].*)
11940         shlibpath_overrides_runpath=no
11941         ;;
11942       *)
11943         shlibpath_overrides_runpath=yes
11944         ;;
11945       esac
11946   else
11947     shlibpath_overrides_runpath=yes
11948   fi
11949   ;;
11950
11951 os2*)
11952   libname_spec='$name'
11953   shrext_cmds=".dll"
11954   need_lib_prefix=no
11955   library_names_spec='$libname${shared_ext} $libname.a'
11956   dynamic_linker='OS/2 ld.exe'
11957   shlibpath_var=LIBPATH
11958   ;;
11959
11960 osf3* | osf4* | osf5*)
11961   version_type=osf
11962   need_lib_prefix=no
11963   need_version=no
11964   soname_spec='${libname}${release}${shared_ext}$major'
11965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11966   shlibpath_var=LD_LIBRARY_PATH
11967   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11968   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11969   ;;
11970
11971 rdos*)
11972   dynamic_linker=no
11973   ;;
11974
11975 solaris*)
11976   version_type=linux
11977   need_lib_prefix=no
11978   need_version=no
11979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11980   soname_spec='${libname}${release}${shared_ext}$major'
11981   shlibpath_var=LD_LIBRARY_PATH
11982   shlibpath_overrides_runpath=yes
11983   hardcode_into_libs=yes
11984   # ldd complains unless libraries are executable
11985   postinstall_cmds='chmod +x $lib'
11986   ;;
11987
11988 sunos4*)
11989   version_type=sunos
11990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11991   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11992   shlibpath_var=LD_LIBRARY_PATH
11993   shlibpath_overrides_runpath=yes
11994   if test "$with_gnu_ld" = yes; then
11995     need_lib_prefix=no
11996   fi
11997   need_version=yes
11998   ;;
11999
12000 sysv4 | sysv4.3*)
12001   version_type=linux
12002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003   soname_spec='${libname}${release}${shared_ext}$major'
12004   shlibpath_var=LD_LIBRARY_PATH
12005   case $host_vendor in
12006     sni)
12007       shlibpath_overrides_runpath=no
12008       need_lib_prefix=no
12009       runpath_var=LD_RUN_PATH
12010       ;;
12011     siemens)
12012       need_lib_prefix=no
12013       ;;
12014     motorola)
12015       need_lib_prefix=no
12016       need_version=no
12017       shlibpath_overrides_runpath=no
12018       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12019       ;;
12020   esac
12021   ;;
12022
12023 sysv4*MP*)
12024   if test -d /usr/nec ;then
12025     version_type=linux
12026     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12027     soname_spec='$libname${shared_ext}.$major'
12028     shlibpath_var=LD_LIBRARY_PATH
12029   fi
12030   ;;
12031
12032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12033   version_type=freebsd-elf
12034   need_lib_prefix=no
12035   need_version=no
12036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12037   soname_spec='${libname}${release}${shared_ext}$major'
12038   shlibpath_var=LD_LIBRARY_PATH
12039   shlibpath_overrides_runpath=yes
12040   hardcode_into_libs=yes
12041   if test "$with_gnu_ld" = yes; then
12042     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12043   else
12044     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12045     case $host_os in
12046       sco3.2v5*)
12047         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12048         ;;
12049     esac
12050   fi
12051   sys_lib_dlsearch_path_spec='/usr/lib'
12052   ;;
12053
12054 tpf*)
12055   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12056   version_type=linux
12057   need_lib_prefix=no
12058   need_version=no
12059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12060   shlibpath_var=LD_LIBRARY_PATH
12061   shlibpath_overrides_runpath=no
12062   hardcode_into_libs=yes
12063   ;;
12064
12065 uts4*)
12066   version_type=linux
12067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12068   soname_spec='${libname}${release}${shared_ext}$major'
12069   shlibpath_var=LD_LIBRARY_PATH
12070   ;;
12071
12072 *)
12073   dynamic_linker=no
12074   ;;
12075 esac
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12077 $as_echo "$dynamic_linker" >&6; }
12078 test "$dynamic_linker" = no && can_build_shared=no
12079
12080 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12081 if test "$GCC" = yes; then
12082   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12083 fi
12084
12085 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12086   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12087 fi
12088 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12089   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12090 fi
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
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12179 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12180 hardcode_action=
12181 if test -n "$hardcode_libdir_flag_spec" ||
12182    test -n "$runpath_var" ||
12183    test "X$hardcode_automatic" = "Xyes" ; then
12184
12185   # We can hardcode non-existent directories.
12186   if test "$hardcode_direct" != no &&
12187      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12188      # have to relink, otherwise we might link with an installed library
12189      # when we should be linking with a yet-to-be-installed one
12190      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12191      test "$hardcode_minus_L" != no; then
12192     # Linking always hardcodes the temporary library directory.
12193     hardcode_action=relink
12194   else
12195     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12196     hardcode_action=immediate
12197   fi
12198 else
12199   # We cannot hardcode anything, or else we can only hardcode existing
12200   # directories.
12201   hardcode_action=unsupported
12202 fi
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12204 $as_echo "$hardcode_action" >&6; }
12205
12206 if test "$hardcode_action" = relink ||
12207    test "$inherit_rpath" = yes; then
12208   # Fast installation is not supported
12209   enable_fast_install=no
12210 elif test "$shlibpath_overrides_runpath" = yes ||
12211      test "$enable_shared" = no; then
12212   # Fast installation is not necessary
12213   enable_fast_install=needless
12214 fi
12215
12216
12217
12218
12219
12220
12221   if test "x$enable_dlopen" != xyes; then
12222   enable_dlopen=unknown
12223   enable_dlopen_self=unknown
12224   enable_dlopen_self_static=unknown
12225 else
12226   lt_cv_dlopen=no
12227   lt_cv_dlopen_libs=
12228
12229   case $host_os in
12230   beos*)
12231     lt_cv_dlopen="load_add_on"
12232     lt_cv_dlopen_libs=
12233     lt_cv_dlopen_self=yes
12234     ;;
12235
12236   mingw* | pw32* | cegcc*)
12237     lt_cv_dlopen="LoadLibrary"
12238     lt_cv_dlopen_libs=
12239     ;;
12240
12241   cygwin*)
12242     lt_cv_dlopen="dlopen"
12243     lt_cv_dlopen_libs=
12244     ;;
12245
12246   darwin*)
12247   # if libdl is installed we need to link against it
12248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12249 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12250 if ${ac_cv_lib_dl_dlopen+:} false; then :
12251   $as_echo_n "(cached) " >&6
12252 else
12253   ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-ldl  $LIBS"
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h.  */
12257
12258 /* Override any GCC internal prototype to avoid an error.
12259    Use char because int might match the return type of a GCC
12260    builtin and then its argument prototype would still apply.  */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 char dlopen ();
12265 int
12266 main ()
12267 {
12268 return dlopen ();
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 if ac_fn_c_try_link "$LINENO"; then :
12274   ac_cv_lib_dl_dlopen=yes
12275 else
12276   ac_cv_lib_dl_dlopen=no
12277 fi
12278 rm -f core conftest.err conftest.$ac_objext \
12279     conftest$ac_exeext conftest.$ac_ext
12280 LIBS=$ac_check_lib_save_LIBS
12281 fi
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12283 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12284 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12285   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12286 else
12287
12288     lt_cv_dlopen="dyld"
12289     lt_cv_dlopen_libs=
12290     lt_cv_dlopen_self=yes
12291
12292 fi
12293
12294     ;;
12295
12296   *)
12297     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12298 if test "x$ac_cv_func_shl_load" = xyes; then :
12299   lt_cv_dlopen="shl_load"
12300 else
12301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12302 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12303 if ${ac_cv_lib_dld_shl_load+:} false; then :
12304   $as_echo_n "(cached) " >&6
12305 else
12306   ac_check_lib_save_LIBS=$LIBS
12307 LIBS="-ldld  $LIBS"
12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h.  */
12310
12311 /* Override any GCC internal prototype to avoid an error.
12312    Use char because int might match the return type of a GCC
12313    builtin and then its argument prototype would still apply.  */
12314 #ifdef __cplusplus
12315 extern "C"
12316 #endif
12317 char shl_load ();
12318 int
12319 main ()
12320 {
12321 return shl_load ();
12322   ;
12323   return 0;
12324 }
12325 _ACEOF
12326 if ac_fn_c_try_link "$LINENO"; then :
12327   ac_cv_lib_dld_shl_load=yes
12328 else
12329   ac_cv_lib_dld_shl_load=no
12330 fi
12331 rm -f core conftest.err conftest.$ac_objext \
12332     conftest$ac_exeext conftest.$ac_ext
12333 LIBS=$ac_check_lib_save_LIBS
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12336 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12337 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12338   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12339 else
12340   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12341 if test "x$ac_cv_func_dlopen" = xyes; then :
12342   lt_cv_dlopen="dlopen"
12343 else
12344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12345 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12346 if ${ac_cv_lib_dl_dlopen+:} false; then :
12347   $as_echo_n "(cached) " >&6
12348 else
12349   ac_check_lib_save_LIBS=$LIBS
12350 LIBS="-ldl  $LIBS"
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h.  */
12353
12354 /* Override any GCC internal prototype to avoid an error.
12355    Use char because int might match the return type of a GCC
12356    builtin and then its argument prototype would still apply.  */
12357 #ifdef __cplusplus
12358 extern "C"
12359 #endif
12360 char dlopen ();
12361 int
12362 main ()
12363 {
12364 return dlopen ();
12365   ;
12366   return 0;
12367 }
12368 _ACEOF
12369 if ac_fn_c_try_link "$LINENO"; then :
12370   ac_cv_lib_dl_dlopen=yes
12371 else
12372   ac_cv_lib_dl_dlopen=no
12373 fi
12374 rm -f core conftest.err conftest.$ac_objext \
12375     conftest$ac_exeext conftest.$ac_ext
12376 LIBS=$ac_check_lib_save_LIBS
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12379 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12380 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12381   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12382 else
12383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12384 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12385 if ${ac_cv_lib_svld_dlopen+:} false; then :
12386   $as_echo_n "(cached) " >&6
12387 else
12388   ac_check_lib_save_LIBS=$LIBS
12389 LIBS="-lsvld  $LIBS"
12390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h.  */
12392
12393 /* Override any GCC internal prototype to avoid an error.
12394    Use char because int might match the return type of a GCC
12395    builtin and then its argument prototype would still apply.  */
12396 #ifdef __cplusplus
12397 extern "C"
12398 #endif
12399 char dlopen ();
12400 int
12401 main ()
12402 {
12403 return dlopen ();
12404   ;
12405   return 0;
12406 }
12407 _ACEOF
12408 if ac_fn_c_try_link "$LINENO"; then :
12409   ac_cv_lib_svld_dlopen=yes
12410 else
12411   ac_cv_lib_svld_dlopen=no
12412 fi
12413 rm -f core conftest.err conftest.$ac_objext \
12414     conftest$ac_exeext conftest.$ac_ext
12415 LIBS=$ac_check_lib_save_LIBS
12416 fi
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12418 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12419 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12420   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12421 else
12422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12423 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12424 if ${ac_cv_lib_dld_dld_link+:} false; then :
12425   $as_echo_n "(cached) " >&6
12426 else
12427   ac_check_lib_save_LIBS=$LIBS
12428 LIBS="-ldld  $LIBS"
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h.  */
12431
12432 /* Override any GCC internal prototype to avoid an error.
12433    Use char because int might match the return type of a GCC
12434    builtin and then its argument prototype would still apply.  */
12435 #ifdef __cplusplus
12436 extern "C"
12437 #endif
12438 char dld_link ();
12439 int
12440 main ()
12441 {
12442 return dld_link ();
12443   ;
12444   return 0;
12445 }
12446 _ACEOF
12447 if ac_fn_c_try_link "$LINENO"; then :
12448   ac_cv_lib_dld_dld_link=yes
12449 else
12450   ac_cv_lib_dld_dld_link=no
12451 fi
12452 rm -f core conftest.err conftest.$ac_objext \
12453     conftest$ac_exeext conftest.$ac_ext
12454 LIBS=$ac_check_lib_save_LIBS
12455 fi
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12457 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12458 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12459   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12460 fi
12461
12462
12463 fi
12464
12465
12466 fi
12467
12468
12469 fi
12470
12471
12472 fi
12473
12474
12475 fi
12476
12477     ;;
12478   esac
12479
12480   if test "x$lt_cv_dlopen" != xno; then
12481     enable_dlopen=yes
12482   else
12483     enable_dlopen=no
12484   fi
12485
12486   case $lt_cv_dlopen in
12487   dlopen)
12488     save_CPPFLAGS="$CPPFLAGS"
12489     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12490
12491     save_LDFLAGS="$LDFLAGS"
12492     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12493
12494     save_LIBS="$LIBS"
12495     LIBS="$lt_cv_dlopen_libs $LIBS"
12496
12497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12498 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12499 if ${lt_cv_dlopen_self+:} false; then :
12500   $as_echo_n "(cached) " >&6
12501 else
12502           if test "$cross_compiling" = yes; then :
12503   lt_cv_dlopen_self=cross
12504 else
12505   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12506   lt_status=$lt_dlunknown
12507   cat > conftest.$ac_ext <<_LT_EOF
12508 #line 12508 "configure"
12509 #include "confdefs.h"
12510
12511 #if HAVE_DLFCN_H
12512 #include <dlfcn.h>
12513 #endif
12514
12515 #include <stdio.h>
12516
12517 #ifdef RTLD_GLOBAL
12518 #  define LT_DLGLOBAL           RTLD_GLOBAL
12519 #else
12520 #  ifdef DL_GLOBAL
12521 #    define LT_DLGLOBAL         DL_GLOBAL
12522 #  else
12523 #    define LT_DLGLOBAL         0
12524 #  endif
12525 #endif
12526
12527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12528    find out it does not work in some platform. */
12529 #ifndef LT_DLLAZY_OR_NOW
12530 #  ifdef RTLD_LAZY
12531 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12532 #  else
12533 #    ifdef DL_LAZY
12534 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12535 #    else
12536 #      ifdef RTLD_NOW
12537 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12538 #      else
12539 #        ifdef DL_NOW
12540 #          define LT_DLLAZY_OR_NOW      DL_NOW
12541 #        else
12542 #          define LT_DLLAZY_OR_NOW      0
12543 #        endif
12544 #      endif
12545 #    endif
12546 #  endif
12547 #endif
12548
12549 void fnord() { int i=42;}
12550 int main ()
12551 {
12552   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12553   int status = $lt_dlunknown;
12554
12555   if (self)
12556     {
12557       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12558       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12559       /* dlclose (self); */
12560     }
12561   else
12562     puts (dlerror ());
12563
12564   return status;
12565 }
12566 _LT_EOF
12567   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12568   (eval $ac_link) 2>&5
12569   ac_status=$?
12570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12571   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12572     (./conftest; exit; ) >&5 2>/dev/null
12573     lt_status=$?
12574     case x$lt_status in
12575       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12576       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12577       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12578     esac
12579   else :
12580     # compilation failed
12581     lt_cv_dlopen_self=no
12582   fi
12583 fi
12584 rm -fr conftest*
12585
12586
12587 fi
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12589 $as_echo "$lt_cv_dlopen_self" >&6; }
12590
12591     if test "x$lt_cv_dlopen_self" = xyes; then
12592       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12593       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12594 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12595 if ${lt_cv_dlopen_self_static+:} false; then :
12596   $as_echo_n "(cached) " >&6
12597 else
12598           if test "$cross_compiling" = yes; then :
12599   lt_cv_dlopen_self_static=cross
12600 else
12601   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12602   lt_status=$lt_dlunknown
12603   cat > conftest.$ac_ext <<_LT_EOF
12604 #line 12604 "configure"
12605 #include "confdefs.h"
12606
12607 #if HAVE_DLFCN_H
12608 #include <dlfcn.h>
12609 #endif
12610
12611 #include <stdio.h>
12612
12613 #ifdef RTLD_GLOBAL
12614 #  define LT_DLGLOBAL           RTLD_GLOBAL
12615 #else
12616 #  ifdef DL_GLOBAL
12617 #    define LT_DLGLOBAL         DL_GLOBAL
12618 #  else
12619 #    define LT_DLGLOBAL         0
12620 #  endif
12621 #endif
12622
12623 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12624    find out it does not work in some platform. */
12625 #ifndef LT_DLLAZY_OR_NOW
12626 #  ifdef RTLD_LAZY
12627 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12628 #  else
12629 #    ifdef DL_LAZY
12630 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12631 #    else
12632 #      ifdef RTLD_NOW
12633 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12634 #      else
12635 #        ifdef DL_NOW
12636 #          define LT_DLLAZY_OR_NOW      DL_NOW
12637 #        else
12638 #          define LT_DLLAZY_OR_NOW      0
12639 #        endif
12640 #      endif
12641 #    endif
12642 #  endif
12643 #endif
12644
12645 void fnord() { int i=42;}
12646 int main ()
12647 {
12648   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12649   int status = $lt_dlunknown;
12650
12651   if (self)
12652     {
12653       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12654       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12655       /* dlclose (self); */
12656     }
12657   else
12658     puts (dlerror ());
12659
12660   return status;
12661 }
12662 _LT_EOF
12663   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12664   (eval $ac_link) 2>&5
12665   ac_status=$?
12666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12667   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12668     (./conftest; exit; ) >&5 2>/dev/null
12669     lt_status=$?
12670     case x$lt_status in
12671       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12672       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12673       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12674     esac
12675   else :
12676     # compilation failed
12677     lt_cv_dlopen_self_static=no
12678   fi
12679 fi
12680 rm -fr conftest*
12681
12682
12683 fi
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12685 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12686     fi
12687
12688     CPPFLAGS="$save_CPPFLAGS"
12689     LDFLAGS="$save_LDFLAGS"
12690     LIBS="$save_LIBS"
12691     ;;
12692   esac
12693
12694   case $lt_cv_dlopen_self in
12695   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12696   *) enable_dlopen_self=unknown ;;
12697   esac
12698
12699   case $lt_cv_dlopen_self_static in
12700   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12701   *) enable_dlopen_self_static=unknown ;;
12702   esac
12703 fi
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721 striplib=
12722 old_striplib=
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12724 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12725 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12726   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12727   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12729 $as_echo "yes" >&6; }
12730 else
12731 # FIXME - insert some real tests, host_os isn't really good enough
12732   case $host_os in
12733   darwin*)
12734     if test -n "$STRIP" ; then
12735       striplib="$STRIP -x"
12736       old_striplib="$STRIP -S"
12737       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12738 $as_echo "yes" >&6; }
12739     else
12740       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12742     fi
12743     ;;
12744   *)
12745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12747     ;;
12748   esac
12749 fi
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762   # Report which library types will actually be built
12763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12764 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12766 $as_echo "$can_build_shared" >&6; }
12767
12768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12769 $as_echo_n "checking whether to build shared libraries... " >&6; }
12770   test "$can_build_shared" = "no" && enable_shared=no
12771
12772   # On AIX, shared libraries and static libraries use the same namespace, and
12773   # are all built from PIC.
12774   case $host_os in
12775   aix3*)
12776     test "$enable_shared" = yes && enable_static=no
12777     if test -n "$RANLIB"; then
12778       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12779       postinstall_cmds='$RANLIB $lib'
12780     fi
12781     ;;
12782
12783   aix[4-9]*)
12784     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12785       test "$enable_shared" = yes && enable_static=no
12786     fi
12787     ;;
12788   esac
12789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12790 $as_echo "$enable_shared" >&6; }
12791
12792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12793 $as_echo_n "checking whether to build static libraries... " >&6; }
12794   # Make sure either enable_shared or enable_static is yes.
12795   test "$enable_shared" = yes || enable_static=yes
12796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12797 $as_echo "$enable_static" >&6; }
12798
12799
12800
12801
12802 fi
12803 ac_ext=c
12804 ac_cpp='$CPP $CPPFLAGS'
12805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12808
12809 CC="$lt_save_CC"
12810
12811
12812 ac_ext=cpp
12813 ac_cpp='$CXXCPP $CPPFLAGS'
12814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12817
12818 archive_cmds_need_lc_CXX=no
12819 allow_undefined_flag_CXX=
12820 always_export_symbols_CXX=no
12821 archive_expsym_cmds_CXX=
12822 compiler_needs_object_CXX=no
12823 export_dynamic_flag_spec_CXX=
12824 hardcode_direct_CXX=no
12825 hardcode_direct_absolute_CXX=no
12826 hardcode_libdir_flag_spec_CXX=
12827 hardcode_libdir_flag_spec_ld_CXX=
12828 hardcode_libdir_separator_CXX=
12829 hardcode_minus_L_CXX=no
12830 hardcode_shlibpath_var_CXX=unsupported
12831 hardcode_automatic_CXX=no
12832 inherit_rpath_CXX=no
12833 module_cmds_CXX=
12834 module_expsym_cmds_CXX=
12835 link_all_deplibs_CXX=unknown
12836 old_archive_cmds_CXX=$old_archive_cmds
12837 no_undefined_flag_CXX=
12838 whole_archive_flag_spec_CXX=
12839 enable_shared_with_static_runtimes_CXX=no
12840
12841 # Source file extension for C++ test sources.
12842 ac_ext=cpp
12843
12844 # Object file extension for compiled C++ test sources.
12845 objext=o
12846 objext_CXX=$objext
12847
12848 # No sense in running all these tests if we already determined that
12849 # the CXX compiler isn't working.  Some variables (like enable_shared)
12850 # are currently assumed to apply to all compilers on this platform,
12851 # and will be corrupted by setting them based on a non-working compiler.
12852 if test "$_lt_caught_CXX_error" != yes; then
12853   # Code to be used in simple compile tests
12854   lt_simple_compile_test_code="int some_variable = 0;"
12855
12856   # Code to be used in simple link tests
12857   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12858
12859   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12860
12861
12862
12863
12864
12865
12866 # If no C compiler was specified, use CC.
12867 LTCC=${LTCC-"$CC"}
12868
12869 # If no C compiler flags were specified, use CFLAGS.
12870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12871
12872 # Allow CC to be a program name with arguments.
12873 compiler=$CC
12874
12875
12876   # save warnings/boilerplate of simple test code
12877   ac_outfile=conftest.$ac_objext
12878 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12880 _lt_compiler_boilerplate=`cat conftest.err`
12881 $RM conftest*
12882
12883   ac_outfile=conftest.$ac_objext
12884 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12886 _lt_linker_boilerplate=`cat conftest.err`
12887 $RM -r conftest*
12888
12889
12890   # Allow CC to be a program name with arguments.
12891   lt_save_CC=$CC
12892   lt_save_LD=$LD
12893   lt_save_GCC=$GCC
12894   GCC=$GXX
12895   lt_save_with_gnu_ld=$with_gnu_ld
12896   lt_save_path_LD=$lt_cv_path_LD
12897   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12898     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12899   else
12900     $as_unset lt_cv_prog_gnu_ld
12901   fi
12902   if test -n "${lt_cv_path_LDCXX+set}"; then
12903     lt_cv_path_LD=$lt_cv_path_LDCXX
12904   else
12905     $as_unset lt_cv_path_LD
12906   fi
12907   test -z "${LDCXX+set}" || LD=$LDCXX
12908   CC=${CXX-"c++"}
12909   compiler=$CC
12910   compiler_CXX=$CC
12911   for cc_temp in $compiler""; do
12912   case $cc_temp in
12913     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12914     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12915     \-*) ;;
12916     *) break;;
12917   esac
12918 done
12919 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12920
12921
12922   if test -n "$compiler"; then
12923     # We don't want -fno-exception when compiling C++ code, so set the
12924     # no_builtin_flag separately
12925     if test "$GXX" = yes; then
12926       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12927     else
12928       lt_prog_compiler_no_builtin_flag_CXX=
12929     fi
12930
12931     if test "$GXX" = yes; then
12932       # Set up default GNU C++ configuration
12933
12934
12935
12936 # Check whether --with-gnu-ld was given.
12937 if test "${with_gnu_ld+set}" = set; then :
12938   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12939 else
12940   with_gnu_ld=no
12941 fi
12942
12943 ac_prog=ld
12944 if test "$GCC" = yes; then
12945   # Check if gcc -print-prog-name=ld gives a path.
12946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12947 $as_echo_n "checking for ld used by $CC... " >&6; }
12948   case $host in
12949   *-*-mingw*)
12950     # gcc leaves a trailing carriage return which upsets mingw
12951     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12952   *)
12953     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12954   esac
12955   case $ac_prog in
12956     # Accept absolute paths.
12957     [\\/]* | ?:[\\/]*)
12958       re_direlt='/[^/][^/]*/\.\./'
12959       # Canonicalize the pathname of ld
12960       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12961       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12962         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12963       done
12964       test -z "$LD" && LD="$ac_prog"
12965       ;;
12966   "")
12967     # If it fails, then pretend we aren't using GCC.
12968     ac_prog=ld
12969     ;;
12970   *)
12971     # If it is relative, then search for the first ld in PATH.
12972     with_gnu_ld=unknown
12973     ;;
12974   esac
12975 elif test "$with_gnu_ld" = yes; then
12976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12977 $as_echo_n "checking for GNU ld... " >&6; }
12978 else
12979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12980 $as_echo_n "checking for non-GNU ld... " >&6; }
12981 fi
12982 if ${lt_cv_path_LD+:} false; then :
12983   $as_echo_n "(cached) " >&6
12984 else
12985   if test -z "$LD"; then
12986   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12987   for ac_dir in $PATH; do
12988     IFS="$lt_save_ifs"
12989     test -z "$ac_dir" && ac_dir=.
12990     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12991       lt_cv_path_LD="$ac_dir/$ac_prog"
12992       # Check to see if the program is GNU ld.  I'd rather use --version,
12993       # but apparently some variants of GNU ld only accept -v.
12994       # Break only if it was the GNU/non-GNU ld that we prefer.
12995       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12996       *GNU* | *'with BFD'*)
12997         test "$with_gnu_ld" != no && break
12998         ;;
12999       *)
13000         test "$with_gnu_ld" != yes && break
13001         ;;
13002       esac
13003     fi
13004   done
13005   IFS="$lt_save_ifs"
13006 else
13007   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13008 fi
13009 fi
13010
13011 LD="$lt_cv_path_LD"
13012 if test -n "$LD"; then
13013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13014 $as_echo "$LD" >&6; }
13015 else
13016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 $as_echo "no" >&6; }
13018 fi
13019 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13021 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13022 if ${lt_cv_prog_gnu_ld+:} false; then :
13023   $as_echo_n "(cached) " >&6
13024 else
13025   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13026 case `$LD -v 2>&1 </dev/null` in
13027 *GNU* | *'with BFD'*)
13028   lt_cv_prog_gnu_ld=yes
13029   ;;
13030 *)
13031   lt_cv_prog_gnu_ld=no
13032   ;;
13033 esac
13034 fi
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13036 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13037 with_gnu_ld=$lt_cv_prog_gnu_ld
13038
13039
13040
13041
13042
13043
13044
13045       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13046       # archiving commands below assume that GNU ld is being used.
13047       if test "$with_gnu_ld" = yes; then
13048         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13049         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'
13050
13051         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13052         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13053
13054         # If archive_cmds runs LD, not CC, wlarc should be empty
13055         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13056         #     investigate it a little bit more. (MM)
13057         wlarc='${wl}'
13058
13059         # ancient GNU ld didn't support --whole-archive et. al.
13060         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13061           $GREP 'no-whole-archive' > /dev/null; then
13062           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13063         else
13064           whole_archive_flag_spec_CXX=
13065         fi
13066       else
13067         with_gnu_ld=no
13068         wlarc=
13069
13070         # A generic and very simple default shared library creation
13071         # command for GNU C++ for the case where it uses the native
13072         # linker, instead of GNU ld.  If possible, this setting should
13073         # overridden to take advantage of the native linker features on
13074         # the platform it is being used on.
13075         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13076       fi
13077
13078       # Commands to make compiler produce verbose output that lists
13079       # what "hidden" libraries, object files and flags are used when
13080       # linking a shared library.
13081       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13082
13083     else
13084       GXX=no
13085       with_gnu_ld=no
13086       wlarc=
13087     fi
13088
13089     # PORTME: fill in a description of your system's C++ link characteristics
13090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13091 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13092     ld_shlibs_CXX=yes
13093     case $host_os in
13094       aix3*)
13095         # FIXME: insert proper C++ library support
13096         ld_shlibs_CXX=no
13097         ;;
13098       aix[4-9]*)
13099         if test "$host_cpu" = ia64; then
13100           # On IA64, the linker does run time linking by default, so we don't
13101           # have to do anything special.
13102           aix_use_runtimelinking=no
13103           exp_sym_flag='-Bexport'
13104           no_entry_flag=""
13105         else
13106           aix_use_runtimelinking=no
13107
13108           # Test if we are trying to use run time linking or normal
13109           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13110           # need to do runtime linking.
13111           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13112             for ld_flag in $LDFLAGS; do
13113               case $ld_flag in
13114               *-brtl*)
13115                 aix_use_runtimelinking=yes
13116                 break
13117                 ;;
13118               esac
13119             done
13120             ;;
13121           esac
13122
13123           exp_sym_flag='-bexport'
13124           no_entry_flag='-bnoentry'
13125         fi
13126
13127         # When large executables or shared objects are built, AIX ld can
13128         # have problems creating the table of contents.  If linking a library
13129         # or program results in "error TOC overflow" add -mminimal-toc to
13130         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13131         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13132
13133         archive_cmds_CXX=''
13134         hardcode_direct_CXX=yes
13135         hardcode_direct_absolute_CXX=yes
13136         hardcode_libdir_separator_CXX=':'
13137         link_all_deplibs_CXX=yes
13138         file_list_spec_CXX='${wl}-f,'
13139
13140         if test "$GXX" = yes; then
13141           case $host_os in aix4.[012]|aix4.[012].*)
13142           # We only want to do this on AIX 4.2 and lower, the check
13143           # below for broken collect2 doesn't work under 4.3+
13144           collect2name=`${CC} -print-prog-name=collect2`
13145           if test -f "$collect2name" &&
13146              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13147           then
13148             # We have reworked collect2
13149             :
13150           else
13151             # We have old collect2
13152             hardcode_direct_CXX=unsupported
13153             # It fails to find uninstalled libraries when the uninstalled
13154             # path is not listed in the libpath.  Setting hardcode_minus_L
13155             # to unsupported forces relinking
13156             hardcode_minus_L_CXX=yes
13157             hardcode_libdir_flag_spec_CXX='-L$libdir'
13158             hardcode_libdir_separator_CXX=
13159           fi
13160           esac
13161           shared_flag='-shared'
13162           if test "$aix_use_runtimelinking" = yes; then
13163             shared_flag="$shared_flag "'${wl}-G'
13164           fi
13165         else
13166           # not using gcc
13167           if test "$host_cpu" = ia64; then
13168           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13169           # chokes on -Wl,-G. The following line is correct:
13170           shared_flag='-G'
13171           else
13172             if test "$aix_use_runtimelinking" = yes; then
13173               shared_flag='${wl}-G'
13174             else
13175               shared_flag='${wl}-bM:SRE'
13176             fi
13177           fi
13178         fi
13179
13180         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13181         # It seems that -bexpall does not export symbols beginning with
13182         # underscore (_), so it is better to generate a list of symbols to
13183         # export.
13184         always_export_symbols_CXX=yes
13185         if test "$aix_use_runtimelinking" = yes; then
13186           # Warning - without using the other runtime loading flags (-brtl),
13187           # -berok will link without error, but may produce a broken library.
13188           allow_undefined_flag_CXX='-berok'
13189           # Determine the default libpath from the value encoded in an empty
13190           # executable.
13191           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h.  */
13193
13194 int
13195 main ()
13196 {
13197
13198   ;
13199   return 0;
13200 }
13201 _ACEOF
13202 if ac_fn_cxx_try_link "$LINENO"; then :
13203
13204 lt_aix_libpath_sed='
13205     /Import File Strings/,/^$/ {
13206         /^0/ {
13207             s/^0  *\(.*\)$/\1/
13208             p
13209         }
13210     }'
13211 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13212 # Check for a 64-bit object if we didn't find anything.
13213 if test -z "$aix_libpath"; then
13214   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13215 fi
13216 fi
13217 rm -f core conftest.err conftest.$ac_objext \
13218     conftest$ac_exeext conftest.$ac_ext
13219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13220
13221           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13222
13223           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"
13224         else
13225           if test "$host_cpu" = ia64; then
13226             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13227             allow_undefined_flag_CXX="-z nodefs"
13228             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"
13229           else
13230             # Determine the default libpath from the value encoded in an
13231             # empty executable.
13232             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h.  */
13234
13235 int
13236 main ()
13237 {
13238
13239   ;
13240   return 0;
13241 }
13242 _ACEOF
13243 if ac_fn_cxx_try_link "$LINENO"; then :
13244
13245 lt_aix_libpath_sed='
13246     /Import File Strings/,/^$/ {
13247         /^0/ {
13248             s/^0  *\(.*\)$/\1/
13249             p
13250         }
13251     }'
13252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13253 # Check for a 64-bit object if we didn't find anything.
13254 if test -z "$aix_libpath"; then
13255   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13256 fi
13257 fi
13258 rm -f core conftest.err conftest.$ac_objext \
13259     conftest$ac_exeext conftest.$ac_ext
13260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13261
13262             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13263             # Warning - without using the other run time loading flags,
13264             # -berok will link without error, but may produce a broken library.
13265             no_undefined_flag_CXX=' ${wl}-bernotok'
13266             allow_undefined_flag_CXX=' ${wl}-berok'
13267             # Exported symbols can be pulled into shared objects from archives
13268             whole_archive_flag_spec_CXX='$convenience'
13269             archive_cmds_need_lc_CXX=yes
13270             # This is similar to how AIX traditionally builds its shared
13271             # libraries.
13272             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'
13273           fi
13274         fi
13275         ;;
13276
13277       beos*)
13278         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13279           allow_undefined_flag_CXX=unsupported
13280           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13281           # support --undefined.  This deserves some investigation.  FIXME
13282           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13283         else
13284           ld_shlibs_CXX=no
13285         fi
13286         ;;
13287
13288       chorus*)
13289         case $cc_basename in
13290           *)
13291           # FIXME: insert proper C++ library support
13292           ld_shlibs_CXX=no
13293           ;;
13294         esac
13295         ;;
13296
13297       cygwin* | mingw* | pw32* | cegcc*)
13298         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13299         # as there is no search path for DLLs.
13300         hardcode_libdir_flag_spec_CXX='-L$libdir'
13301         allow_undefined_flag_CXX=unsupported
13302         always_export_symbols_CXX=no
13303         enable_shared_with_static_runtimes_CXX=yes
13304
13305         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13306           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'
13307           # If the export-symbols file already is a .def file (1st line
13308           # is EXPORTS), use it as is; otherwise, prepend...
13309           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13310             cp $export_symbols $output_objdir/$soname.def;
13311           else
13312             echo EXPORTS > $output_objdir/$soname.def;
13313             cat $export_symbols >> $output_objdir/$soname.def;
13314           fi~
13315           $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'
13316         else
13317           ld_shlibs_CXX=no
13318         fi
13319         ;;
13320       darwin* | rhapsody*)
13321
13322
13323   archive_cmds_need_lc_CXX=no
13324   hardcode_direct_CXX=no
13325   hardcode_automatic_CXX=yes
13326   hardcode_shlibpath_var_CXX=unsupported
13327   whole_archive_flag_spec_CXX=''
13328   link_all_deplibs_CXX=yes
13329   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13330   case $cc_basename in
13331      ifort*) _lt_dar_can_shared=yes ;;
13332      *) _lt_dar_can_shared=$GCC ;;
13333   esac
13334   if test "$_lt_dar_can_shared" = "yes"; then
13335     output_verbose_link_cmd=echo
13336     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}"
13337     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13338     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}"
13339     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}"
13340        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13341       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}"
13342       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}"
13343     fi
13344
13345   else
13346   ld_shlibs_CXX=no
13347   fi
13348
13349         ;;
13350
13351       dgux*)
13352         case $cc_basename in
13353           ec++*)
13354             # FIXME: insert proper C++ library support
13355             ld_shlibs_CXX=no
13356             ;;
13357           ghcx*)
13358             # Green Hills C++ Compiler
13359             # FIXME: insert proper C++ library support
13360             ld_shlibs_CXX=no
13361             ;;
13362           *)
13363             # FIXME: insert proper C++ library support
13364             ld_shlibs_CXX=no
13365             ;;
13366         esac
13367         ;;
13368
13369       freebsd[12]*)
13370         # C++ shared libraries reported to be fairly broken before
13371         # switch to ELF
13372         ld_shlibs_CXX=no
13373         ;;
13374
13375       freebsd-elf*)
13376         archive_cmds_need_lc_CXX=no
13377         ;;
13378
13379       freebsd* | dragonfly*)
13380         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13381         # conventions
13382         ld_shlibs_CXX=yes
13383         ;;
13384
13385       gnu*)
13386         ;;
13387
13388       hpux9*)
13389         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13390         hardcode_libdir_separator_CXX=:
13391         export_dynamic_flag_spec_CXX='${wl}-E'
13392         hardcode_direct_CXX=yes
13393         hardcode_minus_L_CXX=yes # Not in the search PATH,
13394                                              # but as the default
13395                                              # location of the library.
13396
13397         case $cc_basename in
13398           CC*)
13399             # FIXME: insert proper C++ library support
13400             ld_shlibs_CXX=no
13401             ;;
13402           aCC*)
13403             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'
13404             # Commands to make compiler produce verbose output that lists
13405             # what "hidden" libraries, object files and flags are used when
13406             # linking a shared library.
13407             #
13408             # There doesn't appear to be a way to prevent this compiler from
13409             # explicitly linking system object files so we need to strip them
13410             # from the output so that they don't get included in the library
13411             # dependencies.
13412             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'
13413             ;;
13414           *)
13415             if test "$GXX" = yes; then
13416               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'
13417             else
13418               # FIXME: insert proper C++ library support
13419               ld_shlibs_CXX=no
13420             fi
13421             ;;
13422         esac
13423         ;;
13424
13425       hpux10*|hpux11*)
13426         if test $with_gnu_ld = no; then
13427           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13428           hardcode_libdir_separator_CXX=:
13429
13430           case $host_cpu in
13431             hppa*64*|ia64*)
13432               ;;
13433             *)
13434               export_dynamic_flag_spec_CXX='${wl}-E'
13435               ;;
13436           esac
13437         fi
13438         case $host_cpu in
13439           hppa*64*|ia64*)
13440             hardcode_direct_CXX=no
13441             hardcode_shlibpath_var_CXX=no
13442             ;;
13443           *)
13444             hardcode_direct_CXX=yes
13445             hardcode_direct_absolute_CXX=yes
13446             hardcode_minus_L_CXX=yes # Not in the search PATH,
13447                                                  # but as the default
13448                                                  # location of the library.
13449             ;;
13450         esac
13451
13452         case $cc_basename in
13453           CC*)
13454             # FIXME: insert proper C++ library support
13455             ld_shlibs_CXX=no
13456             ;;
13457           aCC*)
13458             case $host_cpu in
13459               hppa*64*)
13460                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13461                 ;;
13462               ia64*)
13463                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13464                 ;;
13465               *)
13466                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13467                 ;;
13468             esac
13469             # Commands to make compiler produce verbose output that lists
13470             # what "hidden" libraries, object files and flags are used when
13471             # linking a shared library.
13472             #
13473             # There doesn't appear to be a way to prevent this compiler from
13474             # explicitly linking system object files so we need to strip them
13475             # from the output so that they don't get included in the library
13476             # dependencies.
13477             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'
13478             ;;
13479           *)
13480             if test "$GXX" = yes; then
13481               if test $with_gnu_ld = no; then
13482                 case $host_cpu in
13483                   hppa*64*)
13484                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13485                     ;;
13486                   ia64*)
13487                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13488                     ;;
13489                   *)
13490                     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'
13491                     ;;
13492                 esac
13493               fi
13494             else
13495               # FIXME: insert proper C++ library support
13496               ld_shlibs_CXX=no
13497             fi
13498             ;;
13499         esac
13500         ;;
13501
13502       interix[3-9]*)
13503         hardcode_direct_CXX=no
13504         hardcode_shlibpath_var_CXX=no
13505         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13506         export_dynamic_flag_spec_CXX='${wl}-E'
13507         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13508         # Instead, shared libraries are loaded at an image base (0x10000000 by
13509         # default) and relocated if they conflict, which is a slow very memory
13510         # consuming and fragmenting process.  To avoid this, we pick a random,
13511         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13512         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13513         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'
13514         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'
13515         ;;
13516       irix5* | irix6*)
13517         case $cc_basename in
13518           CC*)
13519             # SGI C++
13520             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'
13521
13522             # Archives containing C++ object files must be created using
13523             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13524             # necessary to make sure instantiated templates are included
13525             # in the archive.
13526             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13527             ;;
13528           *)
13529             if test "$GXX" = yes; then
13530               if test "$with_gnu_ld" = no; then
13531                 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'
13532               else
13533                 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'
13534               fi
13535             fi
13536             link_all_deplibs_CXX=yes
13537             ;;
13538         esac
13539         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13540         hardcode_libdir_separator_CXX=:
13541         inherit_rpath_CXX=yes
13542         ;;
13543
13544       linux* | k*bsd*-gnu)
13545         case $cc_basename in
13546           KCC*)
13547             # Kuck and Associates, Inc. (KAI) C++ Compiler
13548
13549             # KCC will only create a shared library if the output file
13550             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13551             # to its proper name (with version) after linking.
13552             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'
13553             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'
13554             # Commands to make compiler produce verbose output that lists
13555             # what "hidden" libraries, object files and flags are used when
13556             # linking a shared library.
13557             #
13558             # There doesn't appear to be a way to prevent this compiler from
13559             # explicitly linking system object files so we need to strip them
13560             # from the output so that they don't get included in the library
13561             # dependencies.
13562             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'
13563
13564             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13565             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13566
13567             # Archives containing C++ object files must be created using
13568             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13569             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13570             ;;
13571           icpc* | ecpc* )
13572             # Intel C++
13573             with_gnu_ld=yes
13574             # version 8.0 and above of icpc choke on multiply defined symbols
13575             # if we add $predep_objects and $postdep_objects, however 7.1 and
13576             # earlier do not add the objects themselves.
13577             case `$CC -V 2>&1` in
13578               *"Version 7."*)
13579                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13580                 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'
13581                 ;;
13582               *)  # Version 8.0 or newer
13583                 tmp_idyn=
13584                 case $host_cpu in
13585                   ia64*) tmp_idyn=' -i_dynamic';;
13586                 esac
13587                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13588                 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'
13589                 ;;
13590             esac
13591             archive_cmds_need_lc_CXX=no
13592             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13593             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13594             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13595             ;;
13596           pgCC* | pgcpp*)
13597             # Portland Group C++ compiler
13598             case `$CC -V` in
13599             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13600               prelink_cmds_CXX='tpldir=Template.dir~
13601                 rm -rf $tpldir~
13602                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13603                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13604               old_archive_cmds_CXX='tpldir=Template.dir~
13605                 rm -rf $tpldir~
13606                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13607                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13608                 $RANLIB $oldlib'
13609               archive_cmds_CXX='tpldir=Template.dir~
13610                 rm -rf $tpldir~
13611                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13612                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13613               archive_expsym_cmds_CXX='tpldir=Template.dir~
13614                 rm -rf $tpldir~
13615                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13616                 $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'
13617               ;;
13618             *) # Version 6 will use weak symbols
13619               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13620               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'
13621               ;;
13622             esac
13623
13624             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13625             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13626             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'
13627             ;;
13628           cxx*)
13629             # Compaq C++
13630             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13631             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'
13632
13633             runpath_var=LD_RUN_PATH
13634             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13635             hardcode_libdir_separator_CXX=:
13636
13637             # Commands to make compiler produce verbose output that lists
13638             # what "hidden" libraries, object files and flags are used when
13639             # linking a shared library.
13640             #
13641             # There doesn't appear to be a way to prevent this compiler from
13642             # explicitly linking system object files so we need to strip them
13643             # from the output so that they don't get included in the library
13644             # dependencies.
13645             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'
13646             ;;
13647           xl*)
13648             # IBM XL 8.0 on PPC, with GNU ld
13649             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13650             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13651             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13652             if test "x$supports_anon_versioning" = xyes; then
13653               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13654                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13655                 echo "local: *; };" >> $output_objdir/$libname.ver~
13656                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13657             fi
13658             ;;
13659           *)
13660             case `$CC -V 2>&1 | sed 5q` in
13661             *Sun\ C*)
13662               # Sun C++ 5.9
13663               no_undefined_flag_CXX=' -zdefs'
13664               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13665               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'
13666               hardcode_libdir_flag_spec_CXX='-R$libdir'
13667               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'
13668               compiler_needs_object_CXX=yes
13669
13670               # Not sure whether something based on
13671               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13672               # would be better.
13673               output_verbose_link_cmd='echo'
13674
13675               # Archives containing C++ object files must be created using
13676               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13677               # necessary to make sure instantiated templates are included
13678               # in the archive.
13679               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13680               ;;
13681             esac
13682             ;;
13683         esac
13684         ;;
13685
13686       lynxos*)
13687         # FIXME: insert proper C++ library support
13688         ld_shlibs_CXX=no
13689         ;;
13690
13691       m88k*)
13692         # FIXME: insert proper C++ library support
13693         ld_shlibs_CXX=no
13694         ;;
13695
13696       mvs*)
13697         case $cc_basename in
13698           cxx*)
13699             # FIXME: insert proper C++ library support
13700             ld_shlibs_CXX=no
13701             ;;
13702           *)
13703             # FIXME: insert proper C++ library support
13704             ld_shlibs_CXX=no
13705             ;;
13706         esac
13707         ;;
13708
13709       netbsd*)
13710         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13711           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13712           wlarc=
13713           hardcode_libdir_flag_spec_CXX='-R$libdir'
13714           hardcode_direct_CXX=yes
13715           hardcode_shlibpath_var_CXX=no
13716         fi
13717         # Workaround some broken pre-1.5 toolchains
13718         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13719         ;;
13720
13721       *nto* | *qnx*)
13722         ld_shlibs_CXX=yes
13723         ;;
13724
13725       openbsd2*)
13726         # C++ shared libraries are fairly broken
13727         ld_shlibs_CXX=no
13728         ;;
13729
13730       openbsd*)
13731         if test -f /usr/libexec/ld.so; then
13732           hardcode_direct_CXX=yes
13733           hardcode_shlibpath_var_CXX=no
13734           hardcode_direct_absolute_CXX=yes
13735           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13736           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13737           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13738             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13739             export_dynamic_flag_spec_CXX='${wl}-E'
13740             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13741           fi
13742           output_verbose_link_cmd=echo
13743         else
13744           ld_shlibs_CXX=no
13745         fi
13746         ;;
13747
13748       osf3* | osf4* | osf5*)
13749         case $cc_basename in
13750           KCC*)
13751             # Kuck and Associates, Inc. (KAI) C++ Compiler
13752
13753             # KCC will only create a shared library if the output file
13754             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13755             # to its proper name (with version) after linking.
13756             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'
13757
13758             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13759             hardcode_libdir_separator_CXX=:
13760
13761             # Archives containing C++ object files must be created using
13762             # the KAI C++ compiler.
13763             case $host in
13764               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13765               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13766             esac
13767             ;;
13768           RCC*)
13769             # Rational C++ 2.4.1
13770             # FIXME: insert proper C++ library support
13771             ld_shlibs_CXX=no
13772             ;;
13773           cxx*)
13774             case $host in
13775               osf3*)
13776                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13777                 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'
13778                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13779                 ;;
13780               *)
13781                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13782                 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'
13783                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13784                   echo "-hidden">> $lib.exp~
13785                   $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~
13786                   $RM $lib.exp'
13787                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13788                 ;;
13789             esac
13790
13791             hardcode_libdir_separator_CXX=:
13792
13793             # Commands to make compiler produce verbose output that lists
13794             # what "hidden" libraries, object files and flags are used when
13795             # linking a shared library.
13796             #
13797             # There doesn't appear to be a way to prevent this compiler from
13798             # explicitly linking system object files so we need to strip them
13799             # from the output so that they don't get included in the library
13800             # dependencies.
13801             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'
13802             ;;
13803           *)
13804             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13805               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13806               case $host in
13807                 osf3*)
13808                   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'
13809                   ;;
13810                 *)
13811                   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'
13812                   ;;
13813               esac
13814
13815               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13816               hardcode_libdir_separator_CXX=:
13817
13818               # Commands to make compiler produce verbose output that lists
13819               # what "hidden" libraries, object files and flags are used when
13820               # linking a shared library.
13821               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13822
13823             else
13824               # FIXME: insert proper C++ library support
13825               ld_shlibs_CXX=no
13826             fi
13827             ;;
13828         esac
13829         ;;
13830
13831       psos*)
13832         # FIXME: insert proper C++ library support
13833         ld_shlibs_CXX=no
13834         ;;
13835
13836       sunos4*)
13837         case $cc_basename in
13838           CC*)
13839             # Sun C++ 4.x
13840             # FIXME: insert proper C++ library support
13841             ld_shlibs_CXX=no
13842             ;;
13843           lcc*)
13844             # Lucid
13845             # FIXME: insert proper C++ library support
13846             ld_shlibs_CXX=no
13847             ;;
13848           *)
13849             # FIXME: insert proper C++ library support
13850             ld_shlibs_CXX=no
13851             ;;
13852         esac
13853         ;;
13854
13855       solaris*)
13856         case $cc_basename in
13857           CC*)
13858             # Sun C++ 4.2, 5.x and Centerline C++
13859             archive_cmds_need_lc_CXX=yes
13860             no_undefined_flag_CXX=' -zdefs'
13861             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13862             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13863               $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'
13864
13865             hardcode_libdir_flag_spec_CXX='-R$libdir'
13866             hardcode_shlibpath_var_CXX=no
13867             case $host_os in
13868               solaris2.[0-5] | solaris2.[0-5].*) ;;
13869               *)
13870                 # The compiler driver will combine and reorder linker options,
13871                 # but understands `-z linker_flag'.
13872                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13873                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13874                 ;;
13875             esac
13876             link_all_deplibs_CXX=yes
13877
13878             output_verbose_link_cmd='echo'
13879
13880             # Archives containing C++ object files must be created using
13881             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13882             # necessary to make sure instantiated templates are included
13883             # in the archive.
13884             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13885             ;;
13886           gcx*)
13887             # Green Hills C++ Compiler
13888             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13889
13890             # The C++ compiler must be used to create the archive.
13891             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13892             ;;
13893           *)
13894             # GNU C++ compiler with Solaris linker
13895             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13896               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13897               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13898                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13899                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13900                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13901
13902                 # Commands to make compiler produce verbose output that lists
13903                 # what "hidden" libraries, object files and flags are used when
13904                 # linking a shared library.
13905                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13906               else
13907                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13908                 # platform.
13909                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13910                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13911                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13912
13913                 # Commands to make compiler produce verbose output that lists
13914                 # what "hidden" libraries, object files and flags are used when
13915                 # linking a shared library.
13916                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13917               fi
13918
13919               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13920               case $host_os in
13921                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13922                 *)
13923                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13924                   ;;
13925               esac
13926             fi
13927             ;;
13928         esac
13929         ;;
13930
13931     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13932       no_undefined_flag_CXX='${wl}-z,text'
13933       archive_cmds_need_lc_CXX=no
13934       hardcode_shlibpath_var_CXX=no
13935       runpath_var='LD_RUN_PATH'
13936
13937       case $cc_basename in
13938         CC*)
13939           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13940           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13941           ;;
13942         *)
13943           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13944           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13945           ;;
13946       esac
13947       ;;
13948
13949       sysv5* | sco3.2v5* | sco5v6*)
13950         # Note: We can NOT use -z defs as we might desire, because we do not
13951         # link with -lc, and that would cause any symbols used from libc to
13952         # always be unresolved, which means just about no library would
13953         # ever link correctly.  If we're not using GNU ld we use -z text
13954         # though, which does catch some bad symbols but isn't as heavy-handed
13955         # as -z defs.
13956         no_undefined_flag_CXX='${wl}-z,text'
13957         allow_undefined_flag_CXX='${wl}-z,nodefs'
13958         archive_cmds_need_lc_CXX=no
13959         hardcode_shlibpath_var_CXX=no
13960         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13961         hardcode_libdir_separator_CXX=':'
13962         link_all_deplibs_CXX=yes
13963         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13964         runpath_var='LD_RUN_PATH'
13965
13966         case $cc_basename in
13967           CC*)
13968             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13969             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13970             ;;
13971           *)
13972             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13973             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13974             ;;
13975         esac
13976       ;;
13977
13978       tandem*)
13979         case $cc_basename in
13980           NCC*)
13981             # NonStop-UX NCC 3.20
13982             # FIXME: insert proper C++ library support
13983             ld_shlibs_CXX=no
13984             ;;
13985           *)
13986             # FIXME: insert proper C++ library support
13987             ld_shlibs_CXX=no
13988             ;;
13989         esac
13990         ;;
13991
13992       vxworks*)
13993         # FIXME: insert proper C++ library support
13994         ld_shlibs_CXX=no
13995         ;;
13996
13997       *)
13998         # FIXME: insert proper C++ library support
13999         ld_shlibs_CXX=no
14000         ;;
14001     esac
14002
14003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14004 $as_echo "$ld_shlibs_CXX" >&6; }
14005     test "$ld_shlibs_CXX" = no && can_build_shared=no
14006
14007     GCC_CXX="$GXX"
14008     LD_CXX="$LD"
14009
14010     ## CAVEAT EMPTOR:
14011     ## There is no encapsulation within the following macros, do not change
14012     ## the running order or otherwise move them around unless you know exactly
14013     ## what you are doing...
14014     # Dependencies to place before and after the object being linked:
14015 predep_objects_CXX=
14016 postdep_objects_CXX=
14017 predeps_CXX=
14018 postdeps_CXX=
14019 compiler_lib_search_path_CXX=
14020
14021 cat > conftest.$ac_ext <<_LT_EOF
14022 class Foo
14023 {
14024 public:
14025   Foo (void) { a = 0; }
14026 private:
14027   int a;
14028 };
14029 _LT_EOF
14030
14031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14032   (eval $ac_compile) 2>&5
14033   ac_status=$?
14034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035   test $ac_status = 0; }; then
14036   # Parse the compiler output and extract the necessary
14037   # objects, libraries and library flags.
14038
14039   # Sentinel used to keep track of whether or not we are before
14040   # the conftest object file.
14041   pre_test_object_deps_done=no
14042
14043   for p in `eval "$output_verbose_link_cmd"`; do
14044     case $p in
14045
14046     -L* | -R* | -l*)
14047        # Some compilers place space between "-{L,R}" and the path.
14048        # Remove the space.
14049        if test $p = "-L" ||
14050           test $p = "-R"; then
14051          prev=$p
14052          continue
14053        else
14054          prev=
14055        fi
14056
14057        if test "$pre_test_object_deps_done" = no; then
14058          case $p in
14059          -L* | -R*)
14060            # Internal compiler library paths should come after those
14061            # provided the user.  The postdeps already come after the
14062            # user supplied libs so there is no need to process them.
14063            if test -z "$compiler_lib_search_path_CXX"; then
14064              compiler_lib_search_path_CXX="${prev}${p}"
14065            else
14066              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14067            fi
14068            ;;
14069          # The "-l" case would never come before the object being
14070          # linked, so don't bother handling this case.
14071          esac
14072        else
14073          if test -z "$postdeps_CXX"; then
14074            postdeps_CXX="${prev}${p}"
14075          else
14076            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14077          fi
14078        fi
14079        ;;
14080
14081     *.$objext)
14082        # This assumes that the test object file only shows up
14083        # once in the compiler output.
14084        if test "$p" = "conftest.$objext"; then
14085          pre_test_object_deps_done=yes
14086          continue
14087        fi
14088
14089        if test "$pre_test_object_deps_done" = no; then
14090          if test -z "$predep_objects_CXX"; then
14091            predep_objects_CXX="$p"
14092          else
14093            predep_objects_CXX="$predep_objects_CXX $p"
14094          fi
14095        else
14096          if test -z "$postdep_objects_CXX"; then
14097            postdep_objects_CXX="$p"
14098          else
14099            postdep_objects_CXX="$postdep_objects_CXX $p"
14100          fi
14101        fi
14102        ;;
14103
14104     *) ;; # Ignore the rest.
14105
14106     esac
14107   done
14108
14109   # Clean up.
14110   rm -f a.out a.exe
14111 else
14112   echo "libtool.m4: error: problem compiling CXX test program"
14113 fi
14114
14115 $RM -f confest.$objext
14116
14117 # PORTME: override above test on systems where it is broken
14118 case $host_os in
14119 interix[3-9]*)
14120   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14121   # hack all around it, let's just trust "g++" to DTRT.
14122   predep_objects_CXX=
14123   postdep_objects_CXX=
14124   postdeps_CXX=
14125   ;;
14126
14127 linux*)
14128   case `$CC -V 2>&1 | sed 5q` in
14129   *Sun\ C*)
14130     # Sun C++ 5.9
14131
14132     # The more standards-conforming stlport4 library is
14133     # incompatible with the Cstd library. Avoid specifying
14134     # it if it's in CXXFLAGS. Ignore libCrun as
14135     # -library=stlport4 depends on it.
14136     case " $CXX $CXXFLAGS " in
14137     *" -library=stlport4 "*)
14138       solaris_use_stlport4=yes
14139       ;;
14140     esac
14141
14142     if test "$solaris_use_stlport4" != yes; then
14143       postdeps_CXX='-library=Cstd -library=Crun'
14144     fi
14145     ;;
14146   esac
14147   ;;
14148
14149 solaris*)
14150   case $cc_basename in
14151   CC*)
14152     # The more standards-conforming stlport4 library is
14153     # incompatible with the Cstd library. Avoid specifying
14154     # it if it's in CXXFLAGS. Ignore libCrun as
14155     # -library=stlport4 depends on it.
14156     case " $CXX $CXXFLAGS " in
14157     *" -library=stlport4 "*)
14158       solaris_use_stlport4=yes
14159       ;;
14160     esac
14161
14162     # Adding this requires a known-good setup of shared libraries for
14163     # Sun compiler versions before 5.6, else PIC objects from an old
14164     # archive will be linked into the output, leading to subtle bugs.
14165     if test "$solaris_use_stlport4" != yes; then
14166       postdeps_CXX='-library=Cstd -library=Crun'
14167     fi
14168     ;;
14169   esac
14170   ;;
14171 esac
14172
14173
14174 case " $postdeps_CXX " in
14175 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14176 esac
14177  compiler_lib_search_dirs_CXX=
14178 if test -n "${compiler_lib_search_path_CXX}"; then
14179  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14180 fi
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212     lt_prog_compiler_wl_CXX=
14213 lt_prog_compiler_pic_CXX=
14214 lt_prog_compiler_static_CXX=
14215
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14217 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14218
14219   # C++ specific cases for pic, static, wl, etc.
14220   if test "$GXX" = yes; then
14221     lt_prog_compiler_wl_CXX='-Wl,'
14222     lt_prog_compiler_static_CXX='-static'
14223
14224     case $host_os in
14225     aix*)
14226       # All AIX code is PIC.
14227       if test "$host_cpu" = ia64; then
14228         # AIX 5 now supports IA64 processor
14229         lt_prog_compiler_static_CXX='-Bstatic'
14230       fi
14231       ;;
14232
14233     amigaos*)
14234       case $host_cpu in
14235       powerpc)
14236             # see comment about AmigaOS4 .so support
14237             lt_prog_compiler_pic_CXX='-fPIC'
14238         ;;
14239       m68k)
14240             # FIXME: we need at least 68020 code to build shared libraries, but
14241             # adding the `-m68020' flag to GCC prevents building anything better,
14242             # like `-m68040'.
14243             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14244         ;;
14245       esac
14246       ;;
14247
14248     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14249       # PIC is the default for these OSes.
14250       ;;
14251     mingw* | cygwin* | os2* | pw32* | cegcc*)
14252       # This hack is so that the source file can tell whether it is being
14253       # built for inclusion in a dll (and should export symbols for example).
14254       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14255       # (--disable-auto-import) libraries
14256       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14257       ;;
14258     darwin* | rhapsody*)
14259       # PIC is the default on this platform
14260       # Common symbols not allowed in MH_DYLIB files
14261       lt_prog_compiler_pic_CXX='-fno-common'
14262       ;;
14263     *djgpp*)
14264       # DJGPP does not support shared libraries at all
14265       lt_prog_compiler_pic_CXX=
14266       ;;
14267     interix[3-9]*)
14268       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14269       # Instead, we relocate shared libraries at runtime.
14270       ;;
14271     sysv4*MP*)
14272       if test -d /usr/nec; then
14273         lt_prog_compiler_pic_CXX=-Kconform_pic
14274       fi
14275       ;;
14276     hpux*)
14277       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14278       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14279       # sets the default TLS model and affects inlining.
14280       case $host_cpu in
14281       hppa*64*)
14282         ;;
14283       *)
14284         lt_prog_compiler_pic_CXX='-fPIC'
14285         ;;
14286       esac
14287       ;;
14288     *qnx* | *nto*)
14289       # QNX uses GNU C++, but need to define -shared option too, otherwise
14290       # it will coredump.
14291       lt_prog_compiler_pic_CXX='-fPIC -shared'
14292       ;;
14293     *)
14294       lt_prog_compiler_pic_CXX='-fPIC'
14295       ;;
14296     esac
14297   else
14298     case $host_os in
14299       aix[4-9]*)
14300         # All AIX code is PIC.
14301         if test "$host_cpu" = ia64; then
14302           # AIX 5 now supports IA64 processor
14303           lt_prog_compiler_static_CXX='-Bstatic'
14304         else
14305           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14306         fi
14307         ;;
14308       chorus*)
14309         case $cc_basename in
14310         cxch68*)
14311           # Green Hills C++ Compiler
14312           # _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"
14313           ;;
14314         esac
14315         ;;
14316       dgux*)
14317         case $cc_basename in
14318           ec++*)
14319             lt_prog_compiler_pic_CXX='-KPIC'
14320             ;;
14321           ghcx*)
14322             # Green Hills C++ Compiler
14323             lt_prog_compiler_pic_CXX='-pic'
14324             ;;
14325           *)
14326             ;;
14327         esac
14328         ;;
14329       freebsd* | dragonfly*)
14330         # FreeBSD uses GNU C++
14331         ;;
14332       hpux9* | hpux10* | hpux11*)
14333         case $cc_basename in
14334           CC*)
14335             lt_prog_compiler_wl_CXX='-Wl,'
14336             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14337             if test "$host_cpu" != ia64; then
14338               lt_prog_compiler_pic_CXX='+Z'
14339             fi
14340             ;;
14341           aCC*)
14342             lt_prog_compiler_wl_CXX='-Wl,'
14343             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14344             case $host_cpu in
14345             hppa*64*|ia64*)
14346               # +Z the default
14347               ;;
14348             *)
14349               lt_prog_compiler_pic_CXX='+Z'
14350               ;;
14351             esac
14352             ;;
14353           *)
14354             ;;
14355         esac
14356         ;;
14357       interix*)
14358         # This is c89, which is MS Visual C++ (no shared libs)
14359         # Anyone wants to do a port?
14360         ;;
14361       irix5* | irix6* | nonstopux*)
14362         case $cc_basename in
14363           CC*)
14364             lt_prog_compiler_wl_CXX='-Wl,'
14365             lt_prog_compiler_static_CXX='-non_shared'
14366             # CC pic flag -KPIC is the default.
14367             ;;
14368           *)
14369             ;;
14370         esac
14371         ;;
14372       linux* | k*bsd*-gnu)
14373         case $cc_basename in
14374           KCC*)
14375             # KAI C++ Compiler
14376             lt_prog_compiler_wl_CXX='--backend -Wl,'
14377             lt_prog_compiler_pic_CXX='-fPIC'
14378             ;;
14379           ecpc* )
14380             # old Intel C++ for x86_64 which still supported -KPIC.
14381             lt_prog_compiler_wl_CXX='-Wl,'
14382             lt_prog_compiler_pic_CXX='-KPIC'
14383             lt_prog_compiler_static_CXX='-static'
14384             ;;
14385           icpc* )
14386             # Intel C++, used to be incompatible with GCC.
14387             # ICC 10 doesn't accept -KPIC any more.
14388             lt_prog_compiler_wl_CXX='-Wl,'
14389             lt_prog_compiler_pic_CXX='-fPIC'
14390             lt_prog_compiler_static_CXX='-static'
14391             ;;
14392           pgCC* | pgcpp*)
14393             # Portland Group C++ compiler
14394             lt_prog_compiler_wl_CXX='-Wl,'
14395             lt_prog_compiler_pic_CXX='-fpic'
14396             lt_prog_compiler_static_CXX='-Bstatic'
14397             ;;
14398           cxx*)
14399             # Compaq C++
14400             # Make sure the PIC flag is empty.  It appears that all Alpha
14401             # Linux and Compaq Tru64 Unix objects are PIC.
14402             lt_prog_compiler_pic_CXX=
14403             lt_prog_compiler_static_CXX='-non_shared'
14404             ;;
14405           xlc* | xlC*)
14406             # IBM XL 8.0 on PPC
14407             lt_prog_compiler_wl_CXX='-Wl,'
14408             lt_prog_compiler_pic_CXX='-qpic'
14409             lt_prog_compiler_static_CXX='-qstaticlink'
14410             ;;
14411           *)
14412             case `$CC -V 2>&1 | sed 5q` in
14413             *Sun\ C*)
14414               # Sun C++ 5.9
14415               lt_prog_compiler_pic_CXX='-KPIC'
14416               lt_prog_compiler_static_CXX='-Bstatic'
14417               lt_prog_compiler_wl_CXX='-Qoption ld '
14418               ;;
14419             esac
14420             ;;
14421         esac
14422         ;;
14423       lynxos*)
14424         ;;
14425       m88k*)
14426         ;;
14427       mvs*)
14428         case $cc_basename in
14429           cxx*)
14430             lt_prog_compiler_pic_CXX='-W c,exportall'
14431             ;;
14432           *)
14433             ;;
14434         esac
14435         ;;
14436       netbsd*)
14437         ;;
14438       *qnx* | *nto*)
14439         # QNX uses GNU C++, but need to define -shared option too, otherwise
14440         # it will coredump.
14441         lt_prog_compiler_pic_CXX='-fPIC -shared'
14442         ;;
14443       osf3* | osf4* | osf5*)
14444         case $cc_basename in
14445           KCC*)
14446             lt_prog_compiler_wl_CXX='--backend -Wl,'
14447             ;;
14448           RCC*)
14449             # Rational C++ 2.4.1
14450             lt_prog_compiler_pic_CXX='-pic'
14451             ;;
14452           cxx*)
14453             # Digital/Compaq C++
14454             lt_prog_compiler_wl_CXX='-Wl,'
14455             # Make sure the PIC flag is empty.  It appears that all Alpha
14456             # Linux and Compaq Tru64 Unix objects are PIC.
14457             lt_prog_compiler_pic_CXX=
14458             lt_prog_compiler_static_CXX='-non_shared'
14459             ;;
14460           *)
14461             ;;
14462         esac
14463         ;;
14464       psos*)
14465         ;;
14466       solaris*)
14467         case $cc_basename in
14468           CC*)
14469             # Sun C++ 4.2, 5.x and Centerline C++
14470             lt_prog_compiler_pic_CXX='-KPIC'
14471             lt_prog_compiler_static_CXX='-Bstatic'
14472             lt_prog_compiler_wl_CXX='-Qoption ld '
14473             ;;
14474           gcx*)
14475             # Green Hills C++ Compiler
14476             lt_prog_compiler_pic_CXX='-PIC'
14477             ;;
14478           *)
14479             ;;
14480         esac
14481         ;;
14482       sunos4*)
14483         case $cc_basename in
14484           CC*)
14485             # Sun C++ 4.x
14486             lt_prog_compiler_pic_CXX='-pic'
14487             lt_prog_compiler_static_CXX='-Bstatic'
14488             ;;
14489           lcc*)
14490             # Lucid
14491             lt_prog_compiler_pic_CXX='-pic'
14492             ;;
14493           *)
14494             ;;
14495         esac
14496         ;;
14497       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14498         case $cc_basename in
14499           CC*)
14500             lt_prog_compiler_wl_CXX='-Wl,'
14501             lt_prog_compiler_pic_CXX='-KPIC'
14502             lt_prog_compiler_static_CXX='-Bstatic'
14503             ;;
14504         esac
14505         ;;
14506       tandem*)
14507         case $cc_basename in
14508           NCC*)
14509             # NonStop-UX NCC 3.20
14510             lt_prog_compiler_pic_CXX='-KPIC'
14511             ;;
14512           *)
14513             ;;
14514         esac
14515         ;;
14516       vxworks*)
14517         ;;
14518       *)
14519         lt_prog_compiler_can_build_shared_CXX=no
14520         ;;
14521     esac
14522   fi
14523
14524 case $host_os in
14525   # For platforms which do not support PIC, -DPIC is meaningless:
14526   *djgpp*)
14527     lt_prog_compiler_pic_CXX=
14528     ;;
14529   *)
14530     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14531     ;;
14532 esac
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14534 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14535
14536
14537
14538 #
14539 # Check to make sure the PIC flag actually works.
14540 #
14541 if test -n "$lt_prog_compiler_pic_CXX"; then
14542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14543 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14544 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14545   $as_echo_n "(cached) " >&6
14546 else
14547   lt_cv_prog_compiler_pic_works_CXX=no
14548    ac_outfile=conftest.$ac_objext
14549    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14550    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14551    # Insert the option either (1) after the last *FLAGS variable, or
14552    # (2) before a word containing "conftest.", or (3) at the end.
14553    # Note that $ac_compile itself does not contain backslashes and begins
14554    # with a dollar sign (not a hyphen), so the echo should work correctly.
14555    # The option is referenced via a variable to avoid confusing sed.
14556    lt_compile=`echo "$ac_compile" | $SED \
14557    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14558    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14559    -e 's:$: $lt_compiler_flag:'`
14560    (eval echo "\"\$as_me:14560: $lt_compile\"" >&5)
14561    (eval "$lt_compile" 2>conftest.err)
14562    ac_status=$?
14563    cat conftest.err >&5
14564    echo "$as_me:14564: \$? = $ac_status" >&5
14565    if (exit $ac_status) && test -s "$ac_outfile"; then
14566      # The compiler can only warn and ignore the option if not recognized
14567      # So say no if there are warnings other than the usual output.
14568      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14569      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14570      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14571        lt_cv_prog_compiler_pic_works_CXX=yes
14572      fi
14573    fi
14574    $RM conftest*
14575
14576 fi
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14578 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14579
14580 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14581     case $lt_prog_compiler_pic_CXX in
14582      "" | " "*) ;;
14583      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14584      esac
14585 else
14586     lt_prog_compiler_pic_CXX=
14587      lt_prog_compiler_can_build_shared_CXX=no
14588 fi
14589
14590 fi
14591
14592
14593
14594 #
14595 # Check to make sure the static flag actually works.
14596 #
14597 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14599 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14600 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14601   $as_echo_n "(cached) " >&6
14602 else
14603   lt_cv_prog_compiler_static_works_CXX=no
14604    save_LDFLAGS="$LDFLAGS"
14605    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14606    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14607    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14608      # The linker can only warn and ignore the option if not recognized
14609      # So say no if there are warnings
14610      if test -s conftest.err; then
14611        # Append any errors to the config.log.
14612        cat conftest.err 1>&5
14613        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14614        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14615        if diff conftest.exp conftest.er2 >/dev/null; then
14616          lt_cv_prog_compiler_static_works_CXX=yes
14617        fi
14618      else
14619        lt_cv_prog_compiler_static_works_CXX=yes
14620      fi
14621    fi
14622    $RM -r conftest*
14623    LDFLAGS="$save_LDFLAGS"
14624
14625 fi
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14627 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14628
14629 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14630     :
14631 else
14632     lt_prog_compiler_static_CXX=
14633 fi
14634
14635
14636
14637
14638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14639 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14640 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14641   $as_echo_n "(cached) " >&6
14642 else
14643   lt_cv_prog_compiler_c_o_CXX=no
14644    $RM -r conftest 2>/dev/null
14645    mkdir conftest
14646    cd conftest
14647    mkdir out
14648    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14649
14650    lt_compiler_flag="-o out/conftest2.$ac_objext"
14651    # Insert the option either (1) after the last *FLAGS variable, or
14652    # (2) before a word containing "conftest.", or (3) at the end.
14653    # Note that $ac_compile itself does not contain backslashes and begins
14654    # with a dollar sign (not a hyphen), so the echo should work correctly.
14655    lt_compile=`echo "$ac_compile" | $SED \
14656    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14657    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14658    -e 's:$: $lt_compiler_flag:'`
14659    (eval echo "\"\$as_me:14659: $lt_compile\"" >&5)
14660    (eval "$lt_compile" 2>out/conftest.err)
14661    ac_status=$?
14662    cat out/conftest.err >&5
14663    echo "$as_me:14663: \$? = $ac_status" >&5
14664    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14665    then
14666      # The compiler can only warn and ignore the option if not recognized
14667      # So say no if there are warnings
14668      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14669      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14670      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14671        lt_cv_prog_compiler_c_o_CXX=yes
14672      fi
14673    fi
14674    chmod u+w . 2>&5
14675    $RM conftest*
14676    # SGI C++ compiler will create directory out/ii_files/ for
14677    # template instantiation
14678    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14679    $RM out/* && rmdir out
14680    cd ..
14681    $RM -r conftest
14682    $RM conftest*
14683
14684 fi
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14686 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14687
14688
14689
14690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14691 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14692 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14693   $as_echo_n "(cached) " >&6
14694 else
14695   lt_cv_prog_compiler_c_o_CXX=no
14696    $RM -r conftest 2>/dev/null
14697    mkdir conftest
14698    cd conftest
14699    mkdir out
14700    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14701
14702    lt_compiler_flag="-o out/conftest2.$ac_objext"
14703    # Insert the option either (1) after the last *FLAGS variable, or
14704    # (2) before a word containing "conftest.", or (3) at the end.
14705    # Note that $ac_compile itself does not contain backslashes and begins
14706    # with a dollar sign (not a hyphen), so the echo should work correctly.
14707    lt_compile=`echo "$ac_compile" | $SED \
14708    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14709    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14710    -e 's:$: $lt_compiler_flag:'`
14711    (eval echo "\"\$as_me:14711: $lt_compile\"" >&5)
14712    (eval "$lt_compile" 2>out/conftest.err)
14713    ac_status=$?
14714    cat out/conftest.err >&5
14715    echo "$as_me:14715: \$? = $ac_status" >&5
14716    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14717    then
14718      # The compiler can only warn and ignore the option if not recognized
14719      # So say no if there are warnings
14720      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14721      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14722      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14723        lt_cv_prog_compiler_c_o_CXX=yes
14724      fi
14725    fi
14726    chmod u+w . 2>&5
14727    $RM conftest*
14728    # SGI C++ compiler will create directory out/ii_files/ for
14729    # template instantiation
14730    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14731    $RM out/* && rmdir out
14732    cd ..
14733    $RM -r conftest
14734    $RM conftest*
14735
14736 fi
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14738 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14739
14740
14741
14742
14743 hard_links="nottested"
14744 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14745   # do not overwrite the value of need_locks provided by the user
14746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14747 $as_echo_n "checking if we can lock with hard links... " >&6; }
14748   hard_links=yes
14749   $RM conftest*
14750   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14751   touch conftest.a
14752   ln conftest.a conftest.b 2>&5 || hard_links=no
14753   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14755 $as_echo "$hard_links" >&6; }
14756   if test "$hard_links" = no; then
14757     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14758 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14759     need_locks=warn
14760   fi
14761 else
14762   need_locks=no
14763 fi
14764
14765
14766
14767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14768 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14769
14770   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14771   case $host_os in
14772   aix[4-9]*)
14773     # If we're using GNU nm, then we don't want the "-C" option.
14774     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14775     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14776       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'
14777     else
14778       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'
14779     fi
14780     ;;
14781   pw32*)
14782     export_symbols_cmds_CXX="$ltdll_cmds"
14783   ;;
14784   cygwin* | mingw* | cegcc*)
14785     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'
14786   ;;
14787   *)
14788     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14789   ;;
14790   esac
14791   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14792
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14794 $as_echo "$ld_shlibs_CXX" >&6; }
14795 test "$ld_shlibs_CXX" = no && can_build_shared=no
14796
14797 with_gnu_ld_CXX=$with_gnu_ld
14798
14799
14800
14801
14802
14803
14804 #
14805 # Do we need to explicitly link libc?
14806 #
14807 case "x$archive_cmds_need_lc_CXX" in
14808 x|xyes)
14809   # Assume -lc should be added
14810   archive_cmds_need_lc_CXX=yes
14811
14812   if test "$enable_shared" = yes && test "$GCC" = yes; then
14813     case $archive_cmds_CXX in
14814     *'~'*)
14815       # FIXME: we may have to deal with multi-command sequences.
14816       ;;
14817     '$CC '*)
14818       # Test whether the compiler implicitly links with -lc since on some
14819       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14820       # to ld, don't add -lc before -lgcc.
14821       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14822 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14823       $RM conftest*
14824       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14825
14826       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14827   (eval $ac_compile) 2>&5
14828   ac_status=$?
14829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14830   test $ac_status = 0; } 2>conftest.err; then
14831         soname=conftest
14832         lib=conftest
14833         libobjs=conftest.$ac_objext
14834         deplibs=
14835         wl=$lt_prog_compiler_wl_CXX
14836         pic_flag=$lt_prog_compiler_pic_CXX
14837         compiler_flags=-v
14838         linker_flags=-v
14839         verstring=
14840         output_objdir=.
14841         libname=conftest
14842         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14843         allow_undefined_flag_CXX=
14844         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14845   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14846   ac_status=$?
14847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14848   test $ac_status = 0; }
14849         then
14850           archive_cmds_need_lc_CXX=no
14851         else
14852           archive_cmds_need_lc_CXX=yes
14853         fi
14854         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14855       else
14856         cat conftest.err 1>&5
14857       fi
14858       $RM conftest*
14859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14860 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14861       ;;
14862     esac
14863   fi
14864   ;;
14865 esac
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
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14931 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14932
14933 library_names_spec=
14934 libname_spec='lib$name'
14935 soname_spec=
14936 shrext_cmds=".so"
14937 postinstall_cmds=
14938 postuninstall_cmds=
14939 finish_cmds=
14940 finish_eval=
14941 shlibpath_var=
14942 shlibpath_overrides_runpath=unknown
14943 version_type=none
14944 dynamic_linker="$host_os ld.so"
14945 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14946 need_lib_prefix=unknown
14947 hardcode_into_libs=no
14948
14949 # when you set need_version to no, make sure it does not cause -set_version
14950 # flags to be left without arguments
14951 need_version=unknown
14952
14953 case $host_os in
14954 aix3*)
14955   version_type=linux
14956   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14957   shlibpath_var=LIBPATH
14958
14959   # AIX 3 has no versioning support, so we append a major version to the name.
14960   soname_spec='${libname}${release}${shared_ext}$major'
14961   ;;
14962
14963 aix[4-9]*)
14964   version_type=linux
14965   need_lib_prefix=no
14966   need_version=no
14967   hardcode_into_libs=yes
14968   if test "$host_cpu" = ia64; then
14969     # AIX 5 supports IA64
14970     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14971     shlibpath_var=LD_LIBRARY_PATH
14972   else
14973     # With GCC up to 2.95.x, collect2 would create an import file
14974     # for dependence libraries.  The import file would start with
14975     # the line `#! .'.  This would cause the generated library to
14976     # depend on `.', always an invalid library.  This was fixed in
14977     # development snapshots of GCC prior to 3.0.
14978     case $host_os in
14979       aix4 | aix4.[01] | aix4.[01].*)
14980       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14981            echo ' yes '
14982            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14983         :
14984       else
14985         can_build_shared=no
14986       fi
14987       ;;
14988     esac
14989     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14990     # soname into executable. Probably we can add versioning support to
14991     # collect2, so additional links can be useful in future.
14992     if test "$aix_use_runtimelinking" = yes; then
14993       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14994       # instead of lib<name>.a to let people know that these are not
14995       # typical AIX shared libraries.
14996       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14997     else
14998       # We preserve .a as extension for shared libraries through AIX4.2
14999       # and later when we are not doing run time linking.
15000       library_names_spec='${libname}${release}.a $libname.a'
15001       soname_spec='${libname}${release}${shared_ext}$major'
15002     fi
15003     shlibpath_var=LIBPATH
15004   fi
15005   ;;
15006
15007 amigaos*)
15008   case $host_cpu in
15009   powerpc)
15010     # Since July 2007 AmigaOS4 officially supports .so libraries.
15011     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15013     ;;
15014   m68k)
15015     library_names_spec='$libname.ixlibrary $libname.a'
15016     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15017     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'
15018     ;;
15019   esac
15020   ;;
15021
15022 beos*)
15023   library_names_spec='${libname}${shared_ext}'
15024   dynamic_linker="$host_os ld.so"
15025   shlibpath_var=LIBRARY_PATH
15026   ;;
15027
15028 bsdi[45]*)
15029   version_type=linux
15030   need_version=no
15031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032   soname_spec='${libname}${release}${shared_ext}$major'
15033   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15034   shlibpath_var=LD_LIBRARY_PATH
15035   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15036   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15037   # the default ld.so.conf also contains /usr/contrib/lib and
15038   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15039   # libtool to hard-code these into programs
15040   ;;
15041
15042 cygwin* | mingw* | pw32* | cegcc*)
15043   version_type=windows
15044   shrext_cmds=".dll"
15045   need_version=no
15046   need_lib_prefix=no
15047
15048   case $GCC,$host_os in
15049   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15050     library_names_spec='$libname.dll.a'
15051     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15052     postinstall_cmds='base_file=`basename \${file}`~
15053       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15054       dldir=$destdir/`dirname \$dlpath`~
15055       test -d \$dldir || mkdir -p \$dldir~
15056       $install_prog $dir/$dlname \$dldir/$dlname~
15057       chmod a+x \$dldir/$dlname~
15058       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15059         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15060       fi'
15061     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15062       dlpath=$dir/\$dldll~
15063        $RM \$dlpath'
15064     shlibpath_overrides_runpath=yes
15065
15066     case $host_os in
15067     cygwin*)
15068       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15069       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15070       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15071       ;;
15072     mingw* | cegcc*)
15073       # MinGW DLLs use traditional 'lib' prefix
15074       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15075       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15076       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15077         # It is most probably a Windows format PATH printed by
15078         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15079         # path with ; separators, and with drive letters. We can handle the
15080         # drive letters (cygwin fileutils understands them), so leave them,
15081         # especially as we might pass files found there to a mingw objdump,
15082         # which wouldn't understand a cygwinified path. Ahh.
15083         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15084       else
15085         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15086       fi
15087       ;;
15088     pw32*)
15089       # pw32 DLLs use 'pw' prefix rather than 'lib'
15090       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15091       ;;
15092     esac
15093     ;;
15094
15095   *)
15096     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15097     ;;
15098   esac
15099   dynamic_linker='Win32 ld.exe'
15100   # FIXME: first we should search . and the directory the executable is in
15101   shlibpath_var=PATH
15102   ;;
15103
15104 darwin* | rhapsody*)
15105   dynamic_linker="$host_os dyld"
15106   version_type=darwin
15107   need_lib_prefix=no
15108   need_version=no
15109   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15110   soname_spec='${libname}${release}${major}$shared_ext'
15111   shlibpath_overrides_runpath=yes
15112   shlibpath_var=DYLD_LIBRARY_PATH
15113   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15114
15115   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15116   ;;
15117
15118 dgux*)
15119   version_type=linux
15120   need_lib_prefix=no
15121   need_version=no
15122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15123   soname_spec='${libname}${release}${shared_ext}$major'
15124   shlibpath_var=LD_LIBRARY_PATH
15125   ;;
15126
15127 freebsd1*)
15128   dynamic_linker=no
15129   ;;
15130
15131 freebsd* | dragonfly*)
15132   # DragonFly does not have aout.  When/if they implement a new
15133   # versioning mechanism, adjust this.
15134   if test -x /usr/bin/objformat; then
15135     objformat=`/usr/bin/objformat`
15136   else
15137     case $host_os in
15138     freebsd[123]*) objformat=aout ;;
15139     *) objformat=elf ;;
15140     esac
15141   fi
15142   version_type=freebsd-$objformat
15143   case $version_type in
15144     freebsd-elf*)
15145       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15146       need_version=no
15147       need_lib_prefix=no
15148       ;;
15149     freebsd-*)
15150       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15151       need_version=yes
15152       ;;
15153   esac
15154   shlibpath_var=LD_LIBRARY_PATH
15155   case $host_os in
15156   freebsd2*)
15157     shlibpath_overrides_runpath=yes
15158     ;;
15159   freebsd3.[01]* | freebsdelf3.[01]*)
15160     shlibpath_overrides_runpath=yes
15161     hardcode_into_libs=yes
15162     ;;
15163   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15164   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15165     shlibpath_overrides_runpath=no
15166     hardcode_into_libs=yes
15167     ;;
15168   *) # from 4.6 on, and DragonFly
15169     shlibpath_overrides_runpath=yes
15170     hardcode_into_libs=yes
15171     ;;
15172   esac
15173   ;;
15174
15175 gnu*)
15176   version_type=linux
15177   need_lib_prefix=no
15178   need_version=no
15179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15180   soname_spec='${libname}${release}${shared_ext}$major'
15181   shlibpath_var=LD_LIBRARY_PATH
15182   hardcode_into_libs=yes
15183   ;;
15184
15185 hpux9* | hpux10* | hpux11*)
15186   # Give a soname corresponding to the major version so that dld.sl refuses to
15187   # link against other versions.
15188   version_type=sunos
15189   need_lib_prefix=no
15190   need_version=no
15191   case $host_cpu in
15192   ia64*)
15193     shrext_cmds='.so'
15194     hardcode_into_libs=yes
15195     dynamic_linker="$host_os dld.so"
15196     shlibpath_var=LD_LIBRARY_PATH
15197     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199     soname_spec='${libname}${release}${shared_ext}$major'
15200     if test "X$HPUX_IA64_MODE" = X32; then
15201       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15202     else
15203       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15204     fi
15205     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15206     ;;
15207   hppa*64*)
15208     shrext_cmds='.sl'
15209     hardcode_into_libs=yes
15210     dynamic_linker="$host_os dld.sl"
15211     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15212     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214     soname_spec='${libname}${release}${shared_ext}$major'
15215     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15216     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15217     ;;
15218   *)
15219     shrext_cmds='.sl'
15220     dynamic_linker="$host_os dld.sl"
15221     shlibpath_var=SHLIB_PATH
15222     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15224     soname_spec='${libname}${release}${shared_ext}$major'
15225     ;;
15226   esac
15227   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15228   postinstall_cmds='chmod 555 $lib'
15229   ;;
15230
15231 interix[3-9]*)
15232   version_type=linux
15233   need_lib_prefix=no
15234   need_version=no
15235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15236   soname_spec='${libname}${release}${shared_ext}$major'
15237   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15238   shlibpath_var=LD_LIBRARY_PATH
15239   shlibpath_overrides_runpath=no
15240   hardcode_into_libs=yes
15241   ;;
15242
15243 irix5* | irix6* | nonstopux*)
15244   case $host_os in
15245     nonstopux*) version_type=nonstopux ;;
15246     *)
15247         if test "$lt_cv_prog_gnu_ld" = yes; then
15248                 version_type=linux
15249         else
15250                 version_type=irix
15251         fi ;;
15252   esac
15253   need_lib_prefix=no
15254   need_version=no
15255   soname_spec='${libname}${release}${shared_ext}$major'
15256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15257   case $host_os in
15258   irix5* | nonstopux*)
15259     libsuff= shlibsuff=
15260     ;;
15261   *)
15262     case $LD in # libtool.m4 will add one of these switches to LD
15263     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15264       libsuff= shlibsuff= libmagic=32-bit;;
15265     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15266       libsuff=32 shlibsuff=N32 libmagic=N32;;
15267     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15268       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15269     *) libsuff= shlibsuff= libmagic=never-match;;
15270     esac
15271     ;;
15272   esac
15273   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15274   shlibpath_overrides_runpath=no
15275   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15276   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15277   hardcode_into_libs=yes
15278   ;;
15279
15280 # No shared lib support for Linux oldld, aout, or coff.
15281 linux*oldld* | linux*aout* | linux*coff*)
15282   dynamic_linker=no
15283   ;;
15284
15285 # This must be Linux ELF.
15286 linux* | k*bsd*-gnu)
15287   version_type=linux
15288   need_lib_prefix=no
15289   need_version=no
15290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15291   soname_spec='${libname}${release}${shared_ext}$major'
15292   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15293   shlibpath_var=LD_LIBRARY_PATH
15294   shlibpath_overrides_runpath=no
15295   # Some binutils ld are patched to set DT_RUNPATH
15296   save_LDFLAGS=$LDFLAGS
15297   save_libdir=$libdir
15298   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15299        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h.  */
15302
15303 int
15304 main ()
15305 {
15306
15307   ;
15308   return 0;
15309 }
15310 _ACEOF
15311 if ac_fn_cxx_try_link "$LINENO"; then :
15312   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15313   shlibpath_overrides_runpath=yes
15314 fi
15315 fi
15316 rm -f core conftest.err conftest.$ac_objext \
15317     conftest$ac_exeext conftest.$ac_ext
15318   LDFLAGS=$save_LDFLAGS
15319   libdir=$save_libdir
15320
15321   # This implies no fast_install, which is unacceptable.
15322   # Some rework will be needed to allow for fast_install
15323   # before this can be enabled.
15324   hardcode_into_libs=yes
15325
15326   # Append ld.so.conf contents to the search path
15327   if test -f /etc/ld.so.conf; then
15328     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' ' '`
15329     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15330   fi
15331
15332   # We used to test for /lib/ld.so.1 and disable shared libraries on
15333   # powerpc, because MkLinux only supported shared libraries with the
15334   # GNU dynamic linker.  Since this was broken with cross compilers,
15335   # most powerpc-linux boxes support dynamic linking these days and
15336   # people can always --disable-shared, the test was removed, and we
15337   # assume the GNU/Linux dynamic linker is in use.
15338   dynamic_linker='GNU/Linux ld.so'
15339   ;;
15340
15341 netbsd*)
15342   version_type=sunos
15343   need_lib_prefix=no
15344   need_version=no
15345   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15347     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15348     dynamic_linker='NetBSD (a.out) ld.so'
15349   else
15350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15351     soname_spec='${libname}${release}${shared_ext}$major'
15352     dynamic_linker='NetBSD ld.elf_so'
15353   fi
15354   shlibpath_var=LD_LIBRARY_PATH
15355   shlibpath_overrides_runpath=yes
15356   hardcode_into_libs=yes
15357   ;;
15358
15359 newsos6)
15360   version_type=linux
15361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15362   shlibpath_var=LD_LIBRARY_PATH
15363   shlibpath_overrides_runpath=yes
15364   ;;
15365
15366 *nto* | *qnx*)
15367   version_type=qnx
15368   need_lib_prefix=no
15369   need_version=no
15370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371   soname_spec='${libname}${release}${shared_ext}$major'
15372   shlibpath_var=LD_LIBRARY_PATH
15373   shlibpath_overrides_runpath=no
15374   hardcode_into_libs=yes
15375   dynamic_linker='ldqnx.so'
15376   ;;
15377
15378 openbsd*)
15379   version_type=sunos
15380   sys_lib_dlsearch_path_spec="/usr/lib"
15381   need_lib_prefix=no
15382   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15383   case $host_os in
15384     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15385     *)                          need_version=no  ;;
15386   esac
15387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15388   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15389   shlibpath_var=LD_LIBRARY_PATH
15390   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15391     case $host_os in
15392       openbsd2.[89] | openbsd2.[89].*)
15393         shlibpath_overrides_runpath=no
15394         ;;
15395       *)
15396         shlibpath_overrides_runpath=yes
15397         ;;
15398       esac
15399   else
15400     shlibpath_overrides_runpath=yes
15401   fi
15402   ;;
15403
15404 os2*)
15405   libname_spec='$name'
15406   shrext_cmds=".dll"
15407   need_lib_prefix=no
15408   library_names_spec='$libname${shared_ext} $libname.a'
15409   dynamic_linker='OS/2 ld.exe'
15410   shlibpath_var=LIBPATH
15411   ;;
15412
15413 osf3* | osf4* | osf5*)
15414   version_type=osf
15415   need_lib_prefix=no
15416   need_version=no
15417   soname_spec='${libname}${release}${shared_ext}$major'
15418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419   shlibpath_var=LD_LIBRARY_PATH
15420   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15421   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15422   ;;
15423
15424 rdos*)
15425   dynamic_linker=no
15426   ;;
15427
15428 solaris*)
15429   version_type=linux
15430   need_lib_prefix=no
15431   need_version=no
15432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433   soname_spec='${libname}${release}${shared_ext}$major'
15434   shlibpath_var=LD_LIBRARY_PATH
15435   shlibpath_overrides_runpath=yes
15436   hardcode_into_libs=yes
15437   # ldd complains unless libraries are executable
15438   postinstall_cmds='chmod +x $lib'
15439   ;;
15440
15441 sunos4*)
15442   version_type=sunos
15443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15444   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15445   shlibpath_var=LD_LIBRARY_PATH
15446   shlibpath_overrides_runpath=yes
15447   if test "$with_gnu_ld" = yes; then
15448     need_lib_prefix=no
15449   fi
15450   need_version=yes
15451   ;;
15452
15453 sysv4 | sysv4.3*)
15454   version_type=linux
15455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456   soname_spec='${libname}${release}${shared_ext}$major'
15457   shlibpath_var=LD_LIBRARY_PATH
15458   case $host_vendor in
15459     sni)
15460       shlibpath_overrides_runpath=no
15461       need_lib_prefix=no
15462       runpath_var=LD_RUN_PATH
15463       ;;
15464     siemens)
15465       need_lib_prefix=no
15466       ;;
15467     motorola)
15468       need_lib_prefix=no
15469       need_version=no
15470       shlibpath_overrides_runpath=no
15471       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15472       ;;
15473   esac
15474   ;;
15475
15476 sysv4*MP*)
15477   if test -d /usr/nec ;then
15478     version_type=linux
15479     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15480     soname_spec='$libname${shared_ext}.$major'
15481     shlibpath_var=LD_LIBRARY_PATH
15482   fi
15483   ;;
15484
15485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15486   version_type=freebsd-elf
15487   need_lib_prefix=no
15488   need_version=no
15489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15490   soname_spec='${libname}${release}${shared_ext}$major'
15491   shlibpath_var=LD_LIBRARY_PATH
15492   shlibpath_overrides_runpath=yes
15493   hardcode_into_libs=yes
15494   if test "$with_gnu_ld" = yes; then
15495     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15496   else
15497     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15498     case $host_os in
15499       sco3.2v5*)
15500         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15501         ;;
15502     esac
15503   fi
15504   sys_lib_dlsearch_path_spec='/usr/lib'
15505   ;;
15506
15507 tpf*)
15508   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15509   version_type=linux
15510   need_lib_prefix=no
15511   need_version=no
15512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513   shlibpath_var=LD_LIBRARY_PATH
15514   shlibpath_overrides_runpath=no
15515   hardcode_into_libs=yes
15516   ;;
15517
15518 uts4*)
15519   version_type=linux
15520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521   soname_spec='${libname}${release}${shared_ext}$major'
15522   shlibpath_var=LD_LIBRARY_PATH
15523   ;;
15524
15525 *)
15526   dynamic_linker=no
15527   ;;
15528 esac
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15530 $as_echo "$dynamic_linker" >&6; }
15531 test "$dynamic_linker" = no && can_build_shared=no
15532
15533 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15534 if test "$GCC" = yes; then
15535   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15536 fi
15537
15538 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15539   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15540 fi
15541 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15542   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15543 fi
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15581 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15582 hardcode_action_CXX=
15583 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15584    test -n "$runpath_var_CXX" ||
15585    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15586
15587   # We can hardcode non-existent directories.
15588   if test "$hardcode_direct_CXX" != no &&
15589      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15590      # have to relink, otherwise we might link with an installed library
15591      # when we should be linking with a yet-to-be-installed one
15592      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15593      test "$hardcode_minus_L_CXX" != no; then
15594     # Linking always hardcodes the temporary library directory.
15595     hardcode_action_CXX=relink
15596   else
15597     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15598     hardcode_action_CXX=immediate
15599   fi
15600 else
15601   # We cannot hardcode anything, or else we can only hardcode existing
15602   # directories.
15603   hardcode_action_CXX=unsupported
15604 fi
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15606 $as_echo "$hardcode_action_CXX" >&6; }
15607
15608 if test "$hardcode_action_CXX" = relink ||
15609    test "$inherit_rpath_CXX" = yes; then
15610   # Fast installation is not supported
15611   enable_fast_install=no
15612 elif test "$shlibpath_overrides_runpath" = yes ||
15613      test "$enable_shared" = no; then
15614   # Fast installation is not necessary
15615   enable_fast_install=needless
15616 fi
15617
15618
15619
15620
15621
15622
15623
15624   fi # test -n "$compiler"
15625
15626   CC=$lt_save_CC
15627   LDCXX=$LD
15628   LD=$lt_save_LD
15629   GCC=$lt_save_GCC
15630   with_gnu_ld=$lt_save_with_gnu_ld
15631   lt_cv_path_LDCXX=$lt_cv_path_LD
15632   lt_cv_path_LD=$lt_save_path_LD
15633   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15634   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15635 fi # test "$_lt_caught_CXX_error" != yes
15636
15637 ac_ext=c
15638 ac_cpp='$CPP $CPPFLAGS'
15639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655         ac_config_commands="$ac_config_commands libtool"
15656
15657
15658
15659
15660 # Only expand once:
15661
15662
15663
15664
15665 if test x$use_libtool != xno; then
15666    DEFAULT_OBJECT_TYPE=".lo"
15667    DEFAULT_ARCHIVE_TYPE=".la"
15668    DEFAULT_SHARED_OBJECT_TYPE=".la"
15669    LIBTOOL="\$(LIBTOOL)"
15670    LIBTOOL_INSTALL_TARGET="libtool-install"
15671    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15672    LIBTOOL_CLEAN_TARGET="libtool-clean"
15673    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15674    FD_PLUGIN_DIR="src/plugins/fd"
15675    have_plugins=yes
15676 else
15677    DEFAULT_OBJECT_TYPE=".o"
15678    DEFAULT_ARCHIVE_TYPE=".a"
15679    DEFAULT_SHARED_OBJECT_TYPE=".so"
15680    LIBTOOL="# \$(LIBTOOL)"
15681    LIBTOOL_INSTALL_TARGET=""
15682    LIBTOOL_UNINSTALL_TARGET=""
15683    LIBTOOL_CLEAN_TARGET=""
15684    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15685    FD_PLUGIN_DIR=""
15686    have_plugins=no
15687 fi
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699 # Check whether --enable-includes was given.
15700 if test "${enable_includes+set}" = set; then :
15701   enableval=$enable_includes;
15702        if test x$enableval = xyes; then
15703           install_includes=yes
15704        fi
15705
15706
15707 fi
15708
15709
15710
15711 if test x$use_libtool != xno -a x$install_includes = xyes; then
15712    INCLUDE_INSTALL_TARGET="install-includes"
15713    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15714 else
15715    INCLUDE_INSTALL_TARGET=""
15716    INCLUDE_UNINSTALL_TARGET=""
15717 fi
15718
15719
15720
15721
15722
15723 case $host_os in
15724   *cygwin* ) CYGWIN=yes;;
15725          * ) CYGWIN=no;;
15726 esac
15727
15728 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15729 then
15730
15731
15732 if $TRUEPRG; then
15733   HAVE_SUN_OS_TRUE=
15734   HAVE_SUN_OS_FALSE='#'
15735 else
15736   HAVE_SUN_OS_TRUE='#'
15737   HAVE_SUN_OS_FALSE=
15738 fi
15739         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15740
15741 else
15742
15743
15744 if $FALSEPRG; then
15745   HAVE_SUN_OS_TRUE=
15746   HAVE_SUN_OS_FALSE='#'
15747 else
15748   HAVE_SUN_OS_TRUE='#'
15749   HAVE_SUN_OS_FALSE=
15750 fi
15751 fi
15752
15753 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15754 then
15755
15756
15757 if $TRUEPRG; then
15758   HAVE_OSF1_OS_TRUE=
15759   HAVE_OSF1_OS_FALSE='#'
15760 else
15761   HAVE_OSF1_OS_TRUE='#'
15762   HAVE_OSF1_OS_FALSE=
15763 fi
15764         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15765
15766 else
15767
15768
15769 if $FALSEPRG; then
15770   HAVE_OSF1_OS_TRUE=
15771   HAVE_OSF1_OS_FALSE='#'
15772 else
15773   HAVE_OSF1_OS_TRUE='#'
15774   HAVE_OSF1_OS_FALSE=
15775 fi
15776 fi
15777
15778 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15779 then
15780
15781
15782 if $TRUEPRG; then
15783   HAVE_AIX_OS_TRUE=
15784   HAVE_AIX_OS_FALSE='#'
15785 else
15786   HAVE_AIX_OS_TRUE='#'
15787   HAVE_AIX_OS_FALSE=
15788 fi
15789         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15790
15791 else
15792
15793
15794 if $FALSEPRG; then
15795   HAVE_AIX_OS_TRUE=
15796   HAVE_AIX_OS_FALSE='#'
15797 else
15798   HAVE_AIX_OS_TRUE='#'
15799   HAVE_AIX_OS_FALSE=
15800 fi
15801 fi
15802
15803 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15804 then
15805
15806
15807 if $TRUEPRG; then
15808   HAVE_HPUX_OS_TRUE=
15809   HAVE_HPUX_OS_FALSE='#'
15810 else
15811   HAVE_HPUX_OS_TRUE='#'
15812   HAVE_HPUX_OS_FALSE=
15813 fi
15814         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15815
15816 else
15817
15818
15819 if $FALSEPRG; then
15820   HAVE_HPUX_OS_TRUE=
15821   HAVE_HPUX_OS_FALSE='#'
15822 else
15823   HAVE_HPUX_OS_TRUE='#'
15824   HAVE_HPUX_OS_FALSE=
15825 fi
15826 fi
15827
15828 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15829 then
15830
15831
15832 if $TRUEPRG; then
15833   HAVE_LINUX_OS_TRUE=
15834   HAVE_LINUX_OS_FALSE='#'
15835 else
15836   HAVE_LINUX_OS_TRUE='#'
15837   HAVE_LINUX_OS_FALSE=
15838 fi
15839         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15840
15841 else
15842
15843
15844 if $FALSEPRG; then
15845   HAVE_LINUX_OS_TRUE=
15846   HAVE_LINUX_OS_FALSE='#'
15847 else
15848   HAVE_LINUX_OS_TRUE='#'
15849   HAVE_LINUX_OS_FALSE=
15850 fi
15851 fi
15852
15853 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15854 then
15855
15856
15857 if $TRUEPRG; then
15858   HAVE_FREEBSD_OS_TRUE=
15859   HAVE_FREEBSD_OS_FALSE='#'
15860 else
15861   HAVE_FREEBSD_OS_TRUE='#'
15862   HAVE_FREEBSD_OS_FALSE=
15863 fi
15864         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15865
15866 else
15867
15868
15869 if $FALSEPRG; then
15870   HAVE_FREEBSD_OS_TRUE=
15871   HAVE_FREEBSD_OS_FALSE='#'
15872 else
15873   HAVE_FREEBSD_OS_TRUE='#'
15874   HAVE_FREEBSD_OS_FALSE=
15875 fi
15876 fi
15877
15878 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15879 then
15880
15881
15882 if $TRUEPRG; then
15883   HAVE_NETBSD_OS_TRUE=
15884   HAVE_NETBSD_OS_FALSE='#'
15885 else
15886   HAVE_NETBSD_OS_TRUE='#'
15887   HAVE_NETBSD_OS_FALSE=
15888 fi
15889         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15890
15891 else
15892
15893
15894 if $FALSEPRG; then
15895   HAVE_NETBSD_OS_TRUE=
15896   HAVE_NETBSD_OS_FALSE='#'
15897 else
15898   HAVE_NETBSD_OS_TRUE='#'
15899   HAVE_NETBSD_OS_FALSE=
15900 fi
15901 fi
15902
15903 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15904 then
15905
15906
15907 if $TRUEPRG; then
15908   HAVE_OPENBSD_OS_TRUE=
15909   HAVE_OPENBSD_OS_FALSE='#'
15910 else
15911   HAVE_OPENBSD_OS_TRUE='#'
15912   HAVE_OPENBSD_OS_FALSE=
15913 fi
15914         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15915
15916 else
15917
15918
15919 if $FALSEPRG; then
15920   HAVE_OPENBSD_OS_TRUE=
15921   HAVE_OPENBSD_OS_FALSE='#'
15922 else
15923   HAVE_OPENBSD_OS_TRUE='#'
15924   HAVE_OPENBSD_OS_FALSE=
15925 fi
15926 fi
15927
15928 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15929 then
15930
15931
15932 if $TRUEPRG; then
15933   HAVE_BSDI_OS_TRUE=
15934   HAVE_BSDI_OS_FALSE='#'
15935 else
15936   HAVE_BSDI_OS_TRUE='#'
15937   HAVE_BSDI_OS_FALSE=
15938 fi
15939         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15940
15941 else
15942
15943
15944 if $FALSEPRG; then
15945   HAVE_BSDI_OS_TRUE=
15946   HAVE_BSDI_OS_FALSE='#'
15947 else
15948   HAVE_BSDI_OS_TRUE='#'
15949   HAVE_BSDI_OS_FALSE=
15950 fi
15951 fi
15952
15953 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15954 then
15955
15956
15957 if $TRUEPRG; then
15958   HAVE_SGI_OS_TRUE=
15959   HAVE_SGI_OS_FALSE='#'
15960 else
15961   HAVE_SGI_OS_TRUE='#'
15962   HAVE_SGI_OS_FALSE=
15963 fi
15964         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15965
15966 else
15967
15968
15969 if $FALSEPRG; then
15970   HAVE_SGI_OS_TRUE=
15971   HAVE_SGI_OS_FALSE='#'
15972 else
15973   HAVE_SGI_OS_TRUE='#'
15974   HAVE_SGI_OS_FALSE=
15975 fi
15976 fi
15977
15978 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15979 then
15980
15981
15982 if $TRUEPRG; then
15983   HAVE_IRIX_OS_TRUE=
15984   HAVE_IRIX_OS_FALSE='#'
15985 else
15986   HAVE_IRIX_OS_TRUE='#'
15987   HAVE_IRIX_OS_FALSE=
15988 fi
15989         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15990
15991 else
15992
15993
15994 if $FALSEPRG; then
15995   HAVE_IRIX_OS_TRUE=
15996   HAVE_IRIX_OS_FALSE='#'
15997 else
15998   HAVE_IRIX_OS_TRUE='#'
15999   HAVE_IRIX_OS_FALSE=
16000 fi
16001 fi
16002
16003 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16004 then
16005
16006
16007 if $TRUEPRG; then
16008   HAVE_DARWIN_OS_TRUE=
16009   HAVE_DARWIN_OS_FALSE='#'
16010 else
16011   HAVE_DARWIN_OS_TRUE='#'
16012   HAVE_DARWIN_OS_FALSE=
16013 fi
16014     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
16015
16016 else
16017
16018
16019 if $FALSEPRG; then
16020   HAVE_DARWIN_OS_TRUE=
16021   HAVE_DARWIN_OS_FALSE='#'
16022 else
16023   HAVE_DARWIN_OS_TRUE='#'
16024   HAVE_DARWIN_OS_FALSE=
16025 fi
16026 fi
16027
16028
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16030 $as_echo_n "checking for Operating System Distribution... " >&6; }
16031 if test "x$DISTNAME" != "x"
16032 then
16033         echo "distname set to $DISTNAME"
16034 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16035 then
16036         DISTNAME=alpha
16037 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16038 then
16039         DISTNAME=aix
16040 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16041 then
16042         DISTNAME=hpux
16043 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16044 then
16045         DISTNAME=solaris
16046 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16047 then
16048         DISTNAME=freebsd
16049 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16050 then
16051         DISTNAME=netbsd
16052 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16053 then
16054         DISTNAME=openbsd
16055 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16056 then
16057         DISTNAME=irix
16058 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16059 then
16060         DISTNAME=bsdi
16061 elif test -f /etc/SuSE-release
16062 then
16063         DISTNAME=suse
16064 elif test -d /etc/SuSEconfig
16065 then
16066         DISTNAME=suse5
16067 elif test -f /etc/mandrake-release
16068 then
16069         DISTNAME=mandrake
16070 elif test -f /etc/whitebox-release
16071 then
16072        DISTNAME=redhat
16073 elif test -f /etc/redhat-release
16074 then
16075         DISTNAME=redhat
16076 elif test -f /etc/gentoo-release
16077 then
16078         DISTNAME=gentoo
16079 elif test -f /etc/debian_version
16080 then
16081         DISTNAME=debian
16082 elif test -f /etc/slackware-version
16083 then
16084         DISTNAME=slackware
16085 elif test x$host_vendor = xapple
16086 then
16087     DISTNAME=osx
16088 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16089 then
16090     DISTNAME=darwin
16091 elif test -f /etc/engarde-version
16092 then
16093         DISTNAME=engarde
16094 elif test -f /etc/arch-release
16095 then
16096         DISTNAME=archlinux
16097 elif test "$CYGWIN" = yes
16098 then
16099         DISTNAME=cygwin
16100         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16101
16102 else
16103         DISTNAME=unknown
16104 fi
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16106 $as_echo "done" >&6; }
16107
16108
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16110 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16111 set x ${MAKE-make}
16112 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16113 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16114   $as_echo_n "(cached) " >&6
16115 else
16116   cat >conftest.make <<\_ACEOF
16117 SHELL = /bin/sh
16118 all:
16119         @echo '@@@%%%=$(MAKE)=@@@%%%'
16120 _ACEOF
16121 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16122 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16123   *@@@%%%=?*=@@@%%%*)
16124     eval ac_cv_prog_make_${ac_make}_set=yes;;
16125   *)
16126     eval ac_cv_prog_make_${ac_make}_set=no;;
16127 esac
16128 rm -f conftest.make
16129 fi
16130 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16132 $as_echo "yes" >&6; }
16133   SET_MAKE=
16134 else
16135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16136 $as_echo "no" >&6; }
16137   SET_MAKE="MAKE=${MAKE-make}"
16138 fi
16139
16140
16141
16142         MKINSTALLDIRS=
16143   if test -n "$ac_aux_dir"; then
16144     case "$ac_aux_dir" in
16145       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16146       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16147     esac
16148   fi
16149   if test -z "$MKINSTALLDIRS"; then
16150     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16151   fi
16152
16153
16154
16155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16156 $as_echo_n "checking whether NLS is requested... " >&6; }
16157     # Check whether --enable-nls was given.
16158 if test "${enable_nls+set}" = set; then :
16159   enableval=$enable_nls; USE_NLS=$enableval
16160 else
16161   USE_NLS=yes
16162 fi
16163
16164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16165 $as_echo "$USE_NLS" >&6; }
16166
16167
16168
16169
16170
16171
16172 # Prepare PATH_SEPARATOR.
16173 # The user is always right.
16174 if test "${PATH_SEPARATOR+set}" != set; then
16175   echo "#! /bin/sh" >conf$$.sh
16176   echo  "exit 0"   >>conf$$.sh
16177   chmod +x conf$$.sh
16178   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16179     PATH_SEPARATOR=';'
16180   else
16181     PATH_SEPARATOR=:
16182   fi
16183   rm -f conf$$.sh
16184 fi
16185
16186 # Find out how to test for executable files. Don't use a zero-byte file,
16187 # as systems may use methods other than mode bits to determine executability.
16188 cat >conf$$.file <<_ASEOF
16189 #! /bin/sh
16190 exit 0
16191 _ASEOF
16192 chmod +x conf$$.file
16193 if test -x conf$$.file >/dev/null 2>&1; then
16194   ac_executable_p="test -x"
16195 else
16196   ac_executable_p="test -f"
16197 fi
16198 rm -f conf$$.file
16199
16200 # Extract the first word of "msgfmt", so it can be a program name with args.
16201 set dummy msgfmt; ac_word=$2
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16203 $as_echo_n "checking for $ac_word... " >&6; }
16204 if ${ac_cv_path_MSGFMT+:} false; then :
16205   $as_echo_n "(cached) " >&6
16206 else
16207   case "$MSGFMT" in
16208   [\\/]* | ?:[\\/]*)
16209     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16210     ;;
16211   *)
16212     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16213     for ac_dir in $PATH; do
16214       IFS="$ac_save_IFS"
16215       test -z "$ac_dir" && ac_dir=.
16216       for ac_exec_ext in '' $ac_executable_extensions; do
16217         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16218           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16219           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16220      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16221             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16222             break 2
16223           fi
16224         fi
16225       done
16226     done
16227     IFS="$ac_save_IFS"
16228   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16229     ;;
16230 esac
16231 fi
16232 MSGFMT="$ac_cv_path_MSGFMT"
16233 if test "$MSGFMT" != ":"; then
16234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16235 $as_echo "$MSGFMT" >&6; }
16236 else
16237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16239 fi
16240
16241   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16242 set dummy gmsgfmt; ac_word=$2
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16244 $as_echo_n "checking for $ac_word... " >&6; }
16245 if ${ac_cv_path_GMSGFMT+:} false; then :
16246   $as_echo_n "(cached) " >&6
16247 else
16248   case $GMSGFMT in
16249   [\\/]* | ?:[\\/]*)
16250   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16251   ;;
16252   *)
16253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16254 for as_dir in $PATH
16255 do
16256   IFS=$as_save_IFS
16257   test -z "$as_dir" && as_dir=.
16258     for ac_exec_ext in '' $ac_executable_extensions; do
16259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16260     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16262     break 2
16263   fi
16264 done
16265   done
16266 IFS=$as_save_IFS
16267
16268   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16269   ;;
16270 esac
16271 fi
16272 GMSGFMT=$ac_cv_path_GMSGFMT
16273 if test -n "$GMSGFMT"; then
16274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16275 $as_echo "$GMSGFMT" >&6; }
16276 else
16277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16278 $as_echo "no" >&6; }
16279 fi
16280
16281
16282
16283
16284 # Prepare PATH_SEPARATOR.
16285 # The user is always right.
16286 if test "${PATH_SEPARATOR+set}" != set; then
16287   echo "#! /bin/sh" >conf$$.sh
16288   echo  "exit 0"   >>conf$$.sh
16289   chmod +x conf$$.sh
16290   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16291     PATH_SEPARATOR=';'
16292   else
16293     PATH_SEPARATOR=:
16294   fi
16295   rm -f conf$$.sh
16296 fi
16297
16298 # Find out how to test for executable files. Don't use a zero-byte file,
16299 # as systems may use methods other than mode bits to determine executability.
16300 cat >conf$$.file <<_ASEOF
16301 #! /bin/sh
16302 exit 0
16303 _ASEOF
16304 chmod +x conf$$.file
16305 if test -x conf$$.file >/dev/null 2>&1; then
16306   ac_executable_p="test -x"
16307 else
16308   ac_executable_p="test -f"
16309 fi
16310 rm -f conf$$.file
16311
16312 # Extract the first word of "xgettext", so it can be a program name with args.
16313 set dummy xgettext; ac_word=$2
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16315 $as_echo_n "checking for $ac_word... " >&6; }
16316 if ${ac_cv_path_XGETTEXT+:} false; then :
16317   $as_echo_n "(cached) " >&6
16318 else
16319   case "$XGETTEXT" in
16320   [\\/]* | ?:[\\/]*)
16321     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16322     ;;
16323   *)
16324     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16325     for ac_dir in $PATH; do
16326       IFS="$ac_save_IFS"
16327       test -z "$ac_dir" && ac_dir=.
16328       for ac_exec_ext in '' $ac_executable_extensions; do
16329         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16330           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16331           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16332      (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
16333             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16334             break 2
16335           fi
16336         fi
16337       done
16338     done
16339     IFS="$ac_save_IFS"
16340   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16341     ;;
16342 esac
16343 fi
16344 XGETTEXT="$ac_cv_path_XGETTEXT"
16345 if test "$XGETTEXT" != ":"; then
16346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16347 $as_echo "$XGETTEXT" >&6; }
16348 else
16349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16350 $as_echo "no" >&6; }
16351 fi
16352
16353     rm -f messages.po
16354
16355
16356 # Prepare PATH_SEPARATOR.
16357 # The user is always right.
16358 if test "${PATH_SEPARATOR+set}" != set; then
16359   echo "#! /bin/sh" >conf$$.sh
16360   echo  "exit 0"   >>conf$$.sh
16361   chmod +x conf$$.sh
16362   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16363     PATH_SEPARATOR=';'
16364   else
16365     PATH_SEPARATOR=:
16366   fi
16367   rm -f conf$$.sh
16368 fi
16369
16370 # Find out how to test for executable files. Don't use a zero-byte file,
16371 # as systems may use methods other than mode bits to determine executability.
16372 cat >conf$$.file <<_ASEOF
16373 #! /bin/sh
16374 exit 0
16375 _ASEOF
16376 chmod +x conf$$.file
16377 if test -x conf$$.file >/dev/null 2>&1; then
16378   ac_executable_p="test -x"
16379 else
16380   ac_executable_p="test -f"
16381 fi
16382 rm -f conf$$.file
16383
16384 # Extract the first word of "msgmerge", so it can be a program name with args.
16385 set dummy msgmerge; ac_word=$2
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16387 $as_echo_n "checking for $ac_word... " >&6; }
16388 if ${ac_cv_path_MSGMERGE+:} false; then :
16389   $as_echo_n "(cached) " >&6
16390 else
16391   case "$MSGMERGE" in
16392   [\\/]* | ?:[\\/]*)
16393     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16394     ;;
16395   *)
16396     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16397     for ac_dir in $PATH; do
16398       IFS="$ac_save_IFS"
16399       test -z "$ac_dir" && ac_dir=.
16400       for ac_exec_ext in '' $ac_executable_extensions; do
16401         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16402           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16403           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16404             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16405             break 2
16406           fi
16407         fi
16408       done
16409     done
16410     IFS="$ac_save_IFS"
16411   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16412     ;;
16413 esac
16414 fi
16415 MSGMERGE="$ac_cv_path_MSGMERGE"
16416 if test "$MSGMERGE" != ":"; then
16417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16418 $as_echo "$MSGMERGE" >&6; }
16419 else
16420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16421 $as_echo "no" >&6; }
16422 fi
16423
16424
16425       if test "$GMSGFMT" != ":"; then
16426             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16427        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16428       : ;
16429     else
16430       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16431       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16432 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16433       GMSGFMT=":"
16434     fi
16435   fi
16436
16437       if test "$XGETTEXT" != ":"; then
16438             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16439        (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
16440       : ;
16441     else
16442       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16443 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16444       XGETTEXT=":"
16445     fi
16446         rm -f messages.po
16447   fi
16448
16449   ac_config_commands="$ac_config_commands default-1"
16450
16451
16452
16453       if test "X$prefix" = "XNONE"; then
16454     acl_final_prefix="$ac_default_prefix"
16455   else
16456     acl_final_prefix="$prefix"
16457   fi
16458   if test "X$exec_prefix" = "XNONE"; then
16459     acl_final_exec_prefix='${prefix}'
16460   else
16461     acl_final_exec_prefix="$exec_prefix"
16462   fi
16463   acl_save_prefix="$prefix"
16464   prefix="$acl_final_prefix"
16465   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16466   prefix="$acl_save_prefix"
16467
16468
16469 # Check whether --with-gnu-ld was given.
16470 if test "${with_gnu_ld+set}" = set; then :
16471   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16472 else
16473   with_gnu_ld=no
16474 fi
16475
16476 # Prepare PATH_SEPARATOR.
16477 # The user is always right.
16478 if test "${PATH_SEPARATOR+set}" != set; then
16479   echo "#! /bin/sh" >conf$$.sh
16480   echo  "exit 0"   >>conf$$.sh
16481   chmod +x conf$$.sh
16482   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16483     PATH_SEPARATOR=';'
16484   else
16485     PATH_SEPARATOR=:
16486   fi
16487   rm -f conf$$.sh
16488 fi
16489 ac_prog=ld
16490 if test "$GCC" = yes; then
16491   # Check if gcc -print-prog-name=ld gives a path.
16492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16493 $as_echo_n "checking for ld used by GCC... " >&6; }
16494   case $host in
16495   *-*-mingw*)
16496     # gcc leaves a trailing carriage return which upsets mingw
16497     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16498   *)
16499     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16500   esac
16501   case $ac_prog in
16502     # Accept absolute paths.
16503     [\\/]* | [A-Za-z]:[\\/]*)
16504       re_direlt='/[^/][^/]*/\.\./'
16505       # Canonicalize the path of ld
16506       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16507       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16508         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16509       done
16510       test -z "$LD" && LD="$ac_prog"
16511       ;;
16512   "")
16513     # If it fails, then pretend we aren't using GCC.
16514     ac_prog=ld
16515     ;;
16516   *)
16517     # If it is relative, then search for the first ld in PATH.
16518     with_gnu_ld=unknown
16519     ;;
16520   esac
16521 elif test "$with_gnu_ld" = yes; then
16522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16523 $as_echo_n "checking for GNU ld... " >&6; }
16524 else
16525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16526 $as_echo_n "checking for non-GNU ld... " >&6; }
16527 fi
16528 if ${acl_cv_path_LD+:} false; then :
16529   $as_echo_n "(cached) " >&6
16530 else
16531   if test -z "$LD"; then
16532   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16533   for ac_dir in $PATH; do
16534     test -z "$ac_dir" && ac_dir=.
16535     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16536       acl_cv_path_LD="$ac_dir/$ac_prog"
16537       # Check to see if the program is GNU ld.  I'd rather use --version,
16538       # but apparently some GNU ld's only accept -v.
16539       # Break only if it was the GNU/non-GNU ld that we prefer.
16540       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16541       *GNU* | *'with BFD'*)
16542         test "$with_gnu_ld" != no && break ;;
16543       *)
16544         test "$with_gnu_ld" != yes && break ;;
16545       esac
16546     fi
16547   done
16548   IFS="$ac_save_ifs"
16549 else
16550   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16551 fi
16552 fi
16553
16554 LD="$acl_cv_path_LD"
16555 if test -n "$LD"; then
16556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16557 $as_echo "$LD" >&6; }
16558 else
16559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16560 $as_echo "no" >&6; }
16561 fi
16562 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16564 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16565 if ${acl_cv_prog_gnu_ld+:} false; then :
16566   $as_echo_n "(cached) " >&6
16567 else
16568   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16569 case `$LD -v 2>&1 </dev/null` in
16570 *GNU* | *'with BFD'*)
16571   acl_cv_prog_gnu_ld=yes ;;
16572 *)
16573   acl_cv_prog_gnu_ld=no ;;
16574 esac
16575 fi
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16577 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16578 with_gnu_ld=$acl_cv_prog_gnu_ld
16579
16580
16581
16582
16583                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16584 $as_echo_n "checking for shared library run path origin... " >&6; }
16585 if ${acl_cv_rpath+:} false; then :
16586   $as_echo_n "(cached) " >&6
16587 else
16588
16589     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16590     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16591     . ./conftest.sh
16592     rm -f ./conftest.sh
16593     acl_cv_rpath=done
16594
16595 fi
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16597 $as_echo "$acl_cv_rpath" >&6; }
16598   wl="$acl_cv_wl"
16599   libext="$acl_cv_libext"
16600   shlibext="$acl_cv_shlibext"
16601   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16602   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16603   hardcode_direct="$acl_cv_hardcode_direct"
16604   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16605     # Check whether --enable-rpath was given.
16606 if test "${enable_rpath+set}" = set; then :
16607   enableval=$enable_rpath; :
16608 else
16609   enable_rpath=yes
16610 fi
16611
16612
16613
16614
16615
16616
16617
16618
16619     use_additional=yes
16620
16621   acl_save_prefix="$prefix"
16622   prefix="$acl_final_prefix"
16623   acl_save_exec_prefix="$exec_prefix"
16624   exec_prefix="$acl_final_exec_prefix"
16625
16626     eval additional_includedir=\"$includedir\"
16627     eval additional_libdir=\"$libdir\"
16628
16629   exec_prefix="$acl_save_exec_prefix"
16630   prefix="$acl_save_prefix"
16631
16632
16633 # Check whether --with-libiconv-prefix was given.
16634 if test "${with_libiconv_prefix+set}" = set; then :
16635   withval=$with_libiconv_prefix;
16636     if test "X$withval" = "Xno"; then
16637       use_additional=no
16638     else
16639       if test "X$withval" = "X"; then
16640
16641   acl_save_prefix="$prefix"
16642   prefix="$acl_final_prefix"
16643   acl_save_exec_prefix="$exec_prefix"
16644   exec_prefix="$acl_final_exec_prefix"
16645
16646           eval additional_includedir=\"$includedir\"
16647           eval additional_libdir=\"$libdir\"
16648
16649   exec_prefix="$acl_save_exec_prefix"
16650   prefix="$acl_save_prefix"
16651
16652       else
16653         additional_includedir="$withval/include"
16654         additional_libdir="$withval/lib"
16655       fi
16656     fi
16657
16658 fi
16659
16660       LIBICONV=
16661   LTLIBICONV=
16662   INCICONV=
16663   rpathdirs=
16664   ltrpathdirs=
16665   names_already_handled=
16666   names_next_round='iconv '
16667   while test -n "$names_next_round"; do
16668     names_this_round="$names_next_round"
16669     names_next_round=
16670     for name in $names_this_round; do
16671       already_handled=
16672       for n in $names_already_handled; do
16673         if test "$n" = "$name"; then
16674           already_handled=yes
16675           break
16676         fi
16677       done
16678       if test -z "$already_handled"; then
16679         names_already_handled="$names_already_handled $name"
16680                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16681         eval value=\"\$HAVE_LIB$uppername\"
16682         if test -n "$value"; then
16683           if test "$value" = yes; then
16684             eval value=\"\$LIB$uppername\"
16685             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16686             eval value=\"\$LTLIB$uppername\"
16687             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16688           else
16689                                     :
16690           fi
16691         else
16692                               found_dir=
16693           found_la=
16694           found_so=
16695           found_a=
16696           if test $use_additional = yes; then
16697             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16698               found_dir="$additional_libdir"
16699               found_so="$additional_libdir/lib$name.$shlibext"
16700               if test -f "$additional_libdir/lib$name.la"; then
16701                 found_la="$additional_libdir/lib$name.la"
16702               fi
16703             else
16704               if test -f "$additional_libdir/lib$name.$libext"; then
16705                 found_dir="$additional_libdir"
16706                 found_a="$additional_libdir/lib$name.$libext"
16707                 if test -f "$additional_libdir/lib$name.la"; then
16708                   found_la="$additional_libdir/lib$name.la"
16709                 fi
16710               fi
16711             fi
16712           fi
16713           if test "X$found_dir" = "X"; then
16714             for x in $LDFLAGS $LTLIBICONV; do
16715
16716   acl_save_prefix="$prefix"
16717   prefix="$acl_final_prefix"
16718   acl_save_exec_prefix="$exec_prefix"
16719   exec_prefix="$acl_final_exec_prefix"
16720   eval x=\"$x\"
16721   exec_prefix="$acl_save_exec_prefix"
16722   prefix="$acl_save_prefix"
16723
16724               case "$x" in
16725                 -L*)
16726                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16727                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16728                     found_dir="$dir"
16729                     found_so="$dir/lib$name.$shlibext"
16730                     if test -f "$dir/lib$name.la"; then
16731                       found_la="$dir/lib$name.la"
16732                     fi
16733                   else
16734                     if test -f "$dir/lib$name.$libext"; then
16735                       found_dir="$dir"
16736                       found_a="$dir/lib$name.$libext"
16737                       if test -f "$dir/lib$name.la"; then
16738                         found_la="$dir/lib$name.la"
16739                       fi
16740                     fi
16741                   fi
16742                   ;;
16743               esac
16744               if test "X$found_dir" != "X"; then
16745                 break
16746               fi
16747             done
16748           fi
16749           if test "X$found_dir" != "X"; then
16750                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16751             if test "X$found_so" != "X"; then
16752                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16753                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16754               else
16755                                                                                 haveit=
16756                 for x in $ltrpathdirs; do
16757                   if test "X$x" = "X$found_dir"; then
16758                     haveit=yes
16759                     break
16760                   fi
16761                 done
16762                 if test -z "$haveit"; then
16763                   ltrpathdirs="$ltrpathdirs $found_dir"
16764                 fi
16765                                 if test "$hardcode_direct" = yes; then
16766                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16767                 else
16768                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16769                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16770                                                             haveit=
16771                     for x in $rpathdirs; do
16772                       if test "X$x" = "X$found_dir"; then
16773                         haveit=yes
16774                         break
16775                       fi
16776                     done
16777                     if test -z "$haveit"; then
16778                       rpathdirs="$rpathdirs $found_dir"
16779                     fi
16780                   else
16781                                                                                 haveit=
16782                     for x in $LDFLAGS $LIBICONV; do
16783
16784   acl_save_prefix="$prefix"
16785   prefix="$acl_final_prefix"
16786   acl_save_exec_prefix="$exec_prefix"
16787   exec_prefix="$acl_final_exec_prefix"
16788   eval x=\"$x\"
16789   exec_prefix="$acl_save_exec_prefix"
16790   prefix="$acl_save_prefix"
16791
16792                       if test "X$x" = "X-L$found_dir"; then
16793                         haveit=yes
16794                         break
16795                       fi
16796                     done
16797                     if test -z "$haveit"; then
16798                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16799                     fi
16800                     if test "$hardcode_minus_L" != no; then
16801                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16802                     else
16803                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16804                     fi
16805                   fi
16806                 fi
16807               fi
16808             else
16809               if test "X$found_a" != "X"; then
16810                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16811               else
16812                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16813               fi
16814             fi
16815                         additional_includedir=
16816             case "$found_dir" in
16817               */lib | */lib/)
16818                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16819                 additional_includedir="$basedir/include"
16820                 ;;
16821             esac
16822             if test "X$additional_includedir" != "X"; then
16823                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16824                 haveit=
16825                 if test "X$additional_includedir" = "X/usr/local/include"; then
16826                   if test -n "$GCC"; then
16827                     case $host_os in
16828                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16829                     esac
16830                   fi
16831                 fi
16832                 if test -z "$haveit"; then
16833                   for x in $CPPFLAGS $INCICONV; do
16834
16835   acl_save_prefix="$prefix"
16836   prefix="$acl_final_prefix"
16837   acl_save_exec_prefix="$exec_prefix"
16838   exec_prefix="$acl_final_exec_prefix"
16839   eval x=\"$x\"
16840   exec_prefix="$acl_save_exec_prefix"
16841   prefix="$acl_save_prefix"
16842
16843                     if test "X$x" = "X-I$additional_includedir"; then
16844                       haveit=yes
16845                       break
16846                     fi
16847                   done
16848                   if test -z "$haveit"; then
16849                     if test -d "$additional_includedir"; then
16850                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16851                     fi
16852                   fi
16853                 fi
16854               fi
16855             fi
16856                         if test -n "$found_la"; then
16857                                                         save_libdir="$libdir"
16858               case "$found_la" in
16859                 */* | *\\*) . "$found_la" ;;
16860                 *) . "./$found_la" ;;
16861               esac
16862               libdir="$save_libdir"
16863                             for dep in $dependency_libs; do
16864                 case "$dep" in
16865                   -L*)
16866                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16867                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16868                       haveit=
16869                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16870                         if test -n "$GCC"; then
16871                           case $host_os in
16872                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16873                           esac
16874                         fi
16875                       fi
16876                       if test -z "$haveit"; then
16877                         haveit=
16878                         for x in $LDFLAGS $LIBICONV; do
16879
16880   acl_save_prefix="$prefix"
16881   prefix="$acl_final_prefix"
16882   acl_save_exec_prefix="$exec_prefix"
16883   exec_prefix="$acl_final_exec_prefix"
16884   eval x=\"$x\"
16885   exec_prefix="$acl_save_exec_prefix"
16886   prefix="$acl_save_prefix"
16887
16888                           if test "X$x" = "X-L$additional_libdir"; then
16889                             haveit=yes
16890                             break
16891                           fi
16892                         done
16893                         if test -z "$haveit"; then
16894                           if test -d "$additional_libdir"; then
16895                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16896                           fi
16897                         fi
16898                         haveit=
16899                         for x in $LDFLAGS $LTLIBICONV; do
16900
16901   acl_save_prefix="$prefix"
16902   prefix="$acl_final_prefix"
16903   acl_save_exec_prefix="$exec_prefix"
16904   exec_prefix="$acl_final_exec_prefix"
16905   eval x=\"$x\"
16906   exec_prefix="$acl_save_exec_prefix"
16907   prefix="$acl_save_prefix"
16908
16909                           if test "X$x" = "X-L$additional_libdir"; then
16910                             haveit=yes
16911                             break
16912                           fi
16913                         done
16914                         if test -z "$haveit"; then
16915                           if test -d "$additional_libdir"; then
16916                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16917                           fi
16918                         fi
16919                       fi
16920                     fi
16921                     ;;
16922                   -R*)
16923                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16924                     if test "$enable_rpath" != no; then
16925                                                                   haveit=
16926                       for x in $rpathdirs; do
16927                         if test "X$x" = "X$dir"; then
16928                           haveit=yes
16929                           break
16930                         fi
16931                       done
16932                       if test -z "$haveit"; then
16933                         rpathdirs="$rpathdirs $dir"
16934                       fi
16935                                                                   haveit=
16936                       for x in $ltrpathdirs; do
16937                         if test "X$x" = "X$dir"; then
16938                           haveit=yes
16939                           break
16940                         fi
16941                       done
16942                       if test -z "$haveit"; then
16943                         ltrpathdirs="$ltrpathdirs $dir"
16944                       fi
16945                     fi
16946                     ;;
16947                   -l*)
16948                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16949                     ;;
16950                   *.la)
16951                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16952                     ;;
16953                   *)
16954                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16955                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16956                     ;;
16957                 esac
16958               done
16959             fi
16960           else
16961                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16962             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16963           fi
16964         fi
16965       fi
16966     done
16967   done
16968   if test "X$rpathdirs" != "X"; then
16969     if test -n "$hardcode_libdir_separator"; then
16970                         alldirs=
16971       for found_dir in $rpathdirs; do
16972         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16973       done
16974             acl_save_libdir="$libdir"
16975       libdir="$alldirs"
16976       eval flag=\"$hardcode_libdir_flag_spec\"
16977       libdir="$acl_save_libdir"
16978       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16979     else
16980             for found_dir in $rpathdirs; do
16981         acl_save_libdir="$libdir"
16982         libdir="$found_dir"
16983         eval flag=\"$hardcode_libdir_flag_spec\"
16984         libdir="$acl_save_libdir"
16985         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16986       done
16987     fi
16988   fi
16989   if test "X$ltrpathdirs" != "X"; then
16990             for found_dir in $ltrpathdirs; do
16991       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16992     done
16993   fi
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17013 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17014 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17015   $as_echo_n "(cached) " >&6
17016 else
17017   gt_save_CPPFLAGS="$CPPFLAGS"
17018      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17019      gt_save_LIBS="$LIBS"
17020      LIBS="$LIBS -framework CoreFoundation"
17021      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022 /* end confdefs.h.  */
17023 #include <CFPreferences.h>
17024 int
17025 main ()
17026 {
17027 CFPreferencesCopyAppValue(NULL, NULL)
17028   ;
17029   return 0;
17030 }
17031 _ACEOF
17032 if ac_fn_c_try_link "$LINENO"; then :
17033   gt_cv_func_CFPreferencesCopyAppValue=yes
17034 else
17035   gt_cv_func_CFPreferencesCopyAppValue=no
17036 fi
17037 rm -f core conftest.err conftest.$ac_objext \
17038     conftest$ac_exeext conftest.$ac_ext
17039      CPPFLAGS="$gt_save_CPPFLAGS"
17040      LIBS="$gt_save_LIBS"
17041 fi
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17043 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17044   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17045
17046 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17047
17048   fi
17049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17050 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17051 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
17052   $as_echo_n "(cached) " >&6
17053 else
17054   gt_save_CPPFLAGS="$CPPFLAGS"
17055      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17056      gt_save_LIBS="$LIBS"
17057      LIBS="$LIBS -framework CoreFoundation"
17058      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h.  */
17060 #include <CFLocale.h>
17061 int
17062 main ()
17063 {
17064 CFLocaleCopyCurrent();
17065   ;
17066   return 0;
17067 }
17068 _ACEOF
17069 if ac_fn_c_try_link "$LINENO"; then :
17070   gt_cv_func_CFLocaleCopyCurrent=yes
17071 else
17072   gt_cv_func_CFLocaleCopyCurrent=no
17073 fi
17074 rm -f core conftest.err conftest.$ac_objext \
17075     conftest$ac_exeext conftest.$ac_ext
17076      CPPFLAGS="$gt_save_CPPFLAGS"
17077      LIBS="$gt_save_LIBS"
17078 fi
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17080 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17081   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17082
17083 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17084
17085   fi
17086   INTL_MACOSX_LIBS=
17087   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17088     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17089   fi
17090
17091
17092
17093
17094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17095 $as_echo_n "checking whether NLS is requested... " >&6; }
17096     # Check whether --enable-nls was given.
17097 if test "${enable_nls+set}" = set; then :
17098   enableval=$enable_nls; USE_NLS=$enableval
17099 else
17100   USE_NLS=yes
17101 fi
17102
17103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17104 $as_echo "$USE_NLS" >&6; }
17105
17106
17107
17108
17109   LIBINTL=
17110   LTLIBINTL=
17111   POSUB=
17112
17113     if test "$USE_NLS" = "yes"; then
17114     gt_use_preinstalled_gnugettext=no
17115
17116
17117
17118
17119
17120
17121         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17122 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17123 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17124   $as_echo_n "(cached) " >&6
17125 else
17126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127 /* end confdefs.h.  */
17128 #include <libintl.h>
17129 extern int _nl_msg_cat_cntr;
17130 extern int *_nl_domain_bindings;
17131 int
17132 main ()
17133 {
17134 bindtextdomain ("", "");
17135 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17136   ;
17137   return 0;
17138 }
17139 _ACEOF
17140 if ac_fn_c_try_link "$LINENO"; then :
17141   gt_cv_func_gnugettext1_libc=yes
17142 else
17143   gt_cv_func_gnugettext1_libc=no
17144 fi
17145 rm -f core conftest.err conftest.$ac_objext \
17146     conftest$ac_exeext conftest.$ac_ext
17147 fi
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17149 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17150
17151         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17152
17153
17154
17155
17156
17157           am_save_CPPFLAGS="$CPPFLAGS"
17158
17159   for element in $INCICONV; do
17160     haveit=
17161     for x in $CPPFLAGS; do
17162
17163   acl_save_prefix="$prefix"
17164   prefix="$acl_final_prefix"
17165   acl_save_exec_prefix="$exec_prefix"
17166   exec_prefix="$acl_final_exec_prefix"
17167   eval x=\"$x\"
17168   exec_prefix="$acl_save_exec_prefix"
17169   prefix="$acl_save_prefix"
17170
17171       if test "X$x" = "X$element"; then
17172         haveit=yes
17173         break
17174       fi
17175     done
17176     if test -z "$haveit"; then
17177       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17178     fi
17179   done
17180
17181
17182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17183 $as_echo_n "checking for iconv... " >&6; }
17184 if ${am_cv_func_iconv+:} false; then :
17185   $as_echo_n "(cached) " >&6
17186 else
17187
17188     am_cv_func_iconv="no, consider installing GNU libiconv"
17189     am_cv_lib_iconv=no
17190     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h.  */
17192 #include <stdlib.h>
17193 #include <iconv.h>
17194 int
17195 main ()
17196 {
17197 iconv_t cd = iconv_open("","");
17198        iconv(cd,NULL,NULL,NULL,NULL);
17199        iconv_close(cd);
17200   ;
17201   return 0;
17202 }
17203 _ACEOF
17204 if ac_fn_c_try_link "$LINENO"; then :
17205   am_cv_func_iconv=yes
17206 fi
17207 rm -f core conftest.err conftest.$ac_objext \
17208     conftest$ac_exeext conftest.$ac_ext
17209     if test "$am_cv_func_iconv" != yes; then
17210       am_save_LIBS="$LIBS"
17211       LIBS="$LIBS $LIBICONV"
17212       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h.  */
17214 #include <stdlib.h>
17215 #include <iconv.h>
17216 int
17217 main ()
17218 {
17219 iconv_t cd = iconv_open("","");
17220          iconv(cd,NULL,NULL,NULL,NULL);
17221          iconv_close(cd);
17222   ;
17223   return 0;
17224 }
17225 _ACEOF
17226 if ac_fn_c_try_link "$LINENO"; then :
17227   am_cv_lib_iconv=yes
17228         am_cv_func_iconv=yes
17229 fi
17230 rm -f core conftest.err conftest.$ac_objext \
17231     conftest$ac_exeext conftest.$ac_ext
17232       LIBS="$am_save_LIBS"
17233     fi
17234
17235 fi
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17237 $as_echo "$am_cv_func_iconv" >&6; }
17238   if test "$am_cv_func_iconv" = yes; then
17239
17240 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17241
17242   fi
17243   if test "$am_cv_lib_iconv" = yes; then
17244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17245 $as_echo_n "checking how to link with libiconv... " >&6; }
17246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17247 $as_echo "$LIBICONV" >&6; }
17248   else
17249             CPPFLAGS="$am_save_CPPFLAGS"
17250     LIBICONV=
17251     LTLIBICONV=
17252   fi
17253
17254
17255
17256
17257
17258
17259     use_additional=yes
17260
17261   acl_save_prefix="$prefix"
17262   prefix="$acl_final_prefix"
17263   acl_save_exec_prefix="$exec_prefix"
17264   exec_prefix="$acl_final_exec_prefix"
17265
17266     eval additional_includedir=\"$includedir\"
17267     eval additional_libdir=\"$libdir\"
17268
17269   exec_prefix="$acl_save_exec_prefix"
17270   prefix="$acl_save_prefix"
17271
17272
17273 # Check whether --with-libintl-prefix was given.
17274 if test "${with_libintl_prefix+set}" = set; then :
17275   withval=$with_libintl_prefix;
17276     if test "X$withval" = "Xno"; then
17277       use_additional=no
17278     else
17279       if test "X$withval" = "X"; then
17280
17281   acl_save_prefix="$prefix"
17282   prefix="$acl_final_prefix"
17283   acl_save_exec_prefix="$exec_prefix"
17284   exec_prefix="$acl_final_exec_prefix"
17285
17286           eval additional_includedir=\"$includedir\"
17287           eval additional_libdir=\"$libdir\"
17288
17289   exec_prefix="$acl_save_exec_prefix"
17290   prefix="$acl_save_prefix"
17291
17292       else
17293         additional_includedir="$withval/include"
17294         additional_libdir="$withval/lib"
17295       fi
17296     fi
17297
17298 fi
17299
17300       LIBINTL=
17301   LTLIBINTL=
17302   INCINTL=
17303   rpathdirs=
17304   ltrpathdirs=
17305   names_already_handled=
17306   names_next_round='intl '
17307   while test -n "$names_next_round"; do
17308     names_this_round="$names_next_round"
17309     names_next_round=
17310     for name in $names_this_round; do
17311       already_handled=
17312       for n in $names_already_handled; do
17313         if test "$n" = "$name"; then
17314           already_handled=yes
17315           break
17316         fi
17317       done
17318       if test -z "$already_handled"; then
17319         names_already_handled="$names_already_handled $name"
17320                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17321         eval value=\"\$HAVE_LIB$uppername\"
17322         if test -n "$value"; then
17323           if test "$value" = yes; then
17324             eval value=\"\$LIB$uppername\"
17325             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17326             eval value=\"\$LTLIB$uppername\"
17327             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17328           else
17329                                     :
17330           fi
17331         else
17332                               found_dir=
17333           found_la=
17334           found_so=
17335           found_a=
17336           if test $use_additional = yes; then
17337             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17338               found_dir="$additional_libdir"
17339               found_so="$additional_libdir/lib$name.$shlibext"
17340               if test -f "$additional_libdir/lib$name.la"; then
17341                 found_la="$additional_libdir/lib$name.la"
17342               fi
17343             else
17344               if test -f "$additional_libdir/lib$name.$libext"; then
17345                 found_dir="$additional_libdir"
17346                 found_a="$additional_libdir/lib$name.$libext"
17347                 if test -f "$additional_libdir/lib$name.la"; then
17348                   found_la="$additional_libdir/lib$name.la"
17349                 fi
17350               fi
17351             fi
17352           fi
17353           if test "X$found_dir" = "X"; then
17354             for x in $LDFLAGS $LTLIBINTL; do
17355
17356   acl_save_prefix="$prefix"
17357   prefix="$acl_final_prefix"
17358   acl_save_exec_prefix="$exec_prefix"
17359   exec_prefix="$acl_final_exec_prefix"
17360   eval x=\"$x\"
17361   exec_prefix="$acl_save_exec_prefix"
17362   prefix="$acl_save_prefix"
17363
17364               case "$x" in
17365                 -L*)
17366                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17367                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17368                     found_dir="$dir"
17369                     found_so="$dir/lib$name.$shlibext"
17370                     if test -f "$dir/lib$name.la"; then
17371                       found_la="$dir/lib$name.la"
17372                     fi
17373                   else
17374                     if test -f "$dir/lib$name.$libext"; then
17375                       found_dir="$dir"
17376                       found_a="$dir/lib$name.$libext"
17377                       if test -f "$dir/lib$name.la"; then
17378                         found_la="$dir/lib$name.la"
17379                       fi
17380                     fi
17381                   fi
17382                   ;;
17383               esac
17384               if test "X$found_dir" != "X"; then
17385                 break
17386               fi
17387             done
17388           fi
17389           if test "X$found_dir" != "X"; then
17390                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17391             if test "X$found_so" != "X"; then
17392                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17393                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17394               else
17395                                                                                 haveit=
17396                 for x in $ltrpathdirs; do
17397                   if test "X$x" = "X$found_dir"; then
17398                     haveit=yes
17399                     break
17400                   fi
17401                 done
17402                 if test -z "$haveit"; then
17403                   ltrpathdirs="$ltrpathdirs $found_dir"
17404                 fi
17405                                 if test "$hardcode_direct" = yes; then
17406                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17407                 else
17408                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17409                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17410                                                             haveit=
17411                     for x in $rpathdirs; do
17412                       if test "X$x" = "X$found_dir"; then
17413                         haveit=yes
17414                         break
17415                       fi
17416                     done
17417                     if test -z "$haveit"; then
17418                       rpathdirs="$rpathdirs $found_dir"
17419                     fi
17420                   else
17421                                                                                 haveit=
17422                     for x in $LDFLAGS $LIBINTL; do
17423
17424   acl_save_prefix="$prefix"
17425   prefix="$acl_final_prefix"
17426   acl_save_exec_prefix="$exec_prefix"
17427   exec_prefix="$acl_final_exec_prefix"
17428   eval x=\"$x\"
17429   exec_prefix="$acl_save_exec_prefix"
17430   prefix="$acl_save_prefix"
17431
17432                       if test "X$x" = "X-L$found_dir"; then
17433                         haveit=yes
17434                         break
17435                       fi
17436                     done
17437                     if test -z "$haveit"; then
17438                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17439                     fi
17440                     if test "$hardcode_minus_L" != no; then
17441                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17442                     else
17443                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17444                     fi
17445                   fi
17446                 fi
17447               fi
17448             else
17449               if test "X$found_a" != "X"; then
17450                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17451               else
17452                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17453               fi
17454             fi
17455                         additional_includedir=
17456             case "$found_dir" in
17457               */lib | */lib/)
17458                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17459                 additional_includedir="$basedir/include"
17460                 ;;
17461             esac
17462             if test "X$additional_includedir" != "X"; then
17463                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17464                 haveit=
17465                 if test "X$additional_includedir" = "X/usr/local/include"; then
17466                   if test -n "$GCC"; then
17467                     case $host_os in
17468                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17469                     esac
17470                   fi
17471                 fi
17472                 if test -z "$haveit"; then
17473                   for x in $CPPFLAGS $INCINTL; do
17474
17475   acl_save_prefix="$prefix"
17476   prefix="$acl_final_prefix"
17477   acl_save_exec_prefix="$exec_prefix"
17478   exec_prefix="$acl_final_exec_prefix"
17479   eval x=\"$x\"
17480   exec_prefix="$acl_save_exec_prefix"
17481   prefix="$acl_save_prefix"
17482
17483                     if test "X$x" = "X-I$additional_includedir"; then
17484                       haveit=yes
17485                       break
17486                     fi
17487                   done
17488                   if test -z "$haveit"; then
17489                     if test -d "$additional_includedir"; then
17490                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17491                     fi
17492                   fi
17493                 fi
17494               fi
17495             fi
17496                         if test -n "$found_la"; then
17497                                                         save_libdir="$libdir"
17498               case "$found_la" in
17499                 */* | *\\*) . "$found_la" ;;
17500                 *) . "./$found_la" ;;
17501               esac
17502               libdir="$save_libdir"
17503                             for dep in $dependency_libs; do
17504                 case "$dep" in
17505                   -L*)
17506                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17507                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17508                       haveit=
17509                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17510                         if test -n "$GCC"; then
17511                           case $host_os in
17512                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17513                           esac
17514                         fi
17515                       fi
17516                       if test -z "$haveit"; then
17517                         haveit=
17518                         for x in $LDFLAGS $LIBINTL; do
17519
17520   acl_save_prefix="$prefix"
17521   prefix="$acl_final_prefix"
17522   acl_save_exec_prefix="$exec_prefix"
17523   exec_prefix="$acl_final_exec_prefix"
17524   eval x=\"$x\"
17525   exec_prefix="$acl_save_exec_prefix"
17526   prefix="$acl_save_prefix"
17527
17528                           if test "X$x" = "X-L$additional_libdir"; then
17529                             haveit=yes
17530                             break
17531                           fi
17532                         done
17533                         if test -z "$haveit"; then
17534                           if test -d "$additional_libdir"; then
17535                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17536                           fi
17537                         fi
17538                         haveit=
17539                         for x in $LDFLAGS $LTLIBINTL; do
17540
17541   acl_save_prefix="$prefix"
17542   prefix="$acl_final_prefix"
17543   acl_save_exec_prefix="$exec_prefix"
17544   exec_prefix="$acl_final_exec_prefix"
17545   eval x=\"$x\"
17546   exec_prefix="$acl_save_exec_prefix"
17547   prefix="$acl_save_prefix"
17548
17549                           if test "X$x" = "X-L$additional_libdir"; then
17550                             haveit=yes
17551                             break
17552                           fi
17553                         done
17554                         if test -z "$haveit"; then
17555                           if test -d "$additional_libdir"; then
17556                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17557                           fi
17558                         fi
17559                       fi
17560                     fi
17561                     ;;
17562                   -R*)
17563                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17564                     if test "$enable_rpath" != no; then
17565                                                                   haveit=
17566                       for x in $rpathdirs; do
17567                         if test "X$x" = "X$dir"; then
17568                           haveit=yes
17569                           break
17570                         fi
17571                       done
17572                       if test -z "$haveit"; then
17573                         rpathdirs="$rpathdirs $dir"
17574                       fi
17575                                                                   haveit=
17576                       for x in $ltrpathdirs; do
17577                         if test "X$x" = "X$dir"; then
17578                           haveit=yes
17579                           break
17580                         fi
17581                       done
17582                       if test -z "$haveit"; then
17583                         ltrpathdirs="$ltrpathdirs $dir"
17584                       fi
17585                     fi
17586                     ;;
17587                   -l*)
17588                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17589                     ;;
17590                   *.la)
17591                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17592                     ;;
17593                   *)
17594                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17595                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17596                     ;;
17597                 esac
17598               done
17599             fi
17600           else
17601                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17602             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17603           fi
17604         fi
17605       fi
17606     done
17607   done
17608   if test "X$rpathdirs" != "X"; then
17609     if test -n "$hardcode_libdir_separator"; then
17610                         alldirs=
17611       for found_dir in $rpathdirs; do
17612         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17613       done
17614             acl_save_libdir="$libdir"
17615       libdir="$alldirs"
17616       eval flag=\"$hardcode_libdir_flag_spec\"
17617       libdir="$acl_save_libdir"
17618       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17619     else
17620             for found_dir in $rpathdirs; do
17621         acl_save_libdir="$libdir"
17622         libdir="$found_dir"
17623         eval flag=\"$hardcode_libdir_flag_spec\"
17624         libdir="$acl_save_libdir"
17625         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17626       done
17627     fi
17628   fi
17629   if test "X$ltrpathdirs" != "X"; then
17630             for found_dir in $ltrpathdirs; do
17631       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17632     done
17633   fi
17634
17635           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17636 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17637 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
17638   $as_echo_n "(cached) " >&6
17639 else
17640   gt_save_CPPFLAGS="$CPPFLAGS"
17641             CPPFLAGS="$CPPFLAGS $INCINTL"
17642             gt_save_LIBS="$LIBS"
17643             LIBS="$LIBS $LIBINTL"
17644                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h.  */
17646 #include <libintl.h>
17647 extern int _nl_msg_cat_cntr;
17648 extern
17649 #ifdef __cplusplus
17650 "C"
17651 #endif
17652 const char *_nl_expand_alias (const char *);
17653 int
17654 main ()
17655 {
17656 bindtextdomain ("", "");
17657 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17658   ;
17659   return 0;
17660 }
17661 _ACEOF
17662 if ac_fn_c_try_link "$LINENO"; then :
17663   gt_cv_func_gnugettext1_libintl=yes
17664 else
17665   gt_cv_func_gnugettext1_libintl=no
17666 fi
17667 rm -f core conftest.err conftest.$ac_objext \
17668     conftest$ac_exeext conftest.$ac_ext
17669                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17670               LIBS="$LIBS $LIBICONV"
17671               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h.  */
17673 #include <libintl.h>
17674 extern int _nl_msg_cat_cntr;
17675 extern
17676 #ifdef __cplusplus
17677 "C"
17678 #endif
17679 const char *_nl_expand_alias (const char *);
17680 int
17681 main ()
17682 {
17683 bindtextdomain ("", "");
17684 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17685   ;
17686   return 0;
17687 }
17688 _ACEOF
17689 if ac_fn_c_try_link "$LINENO"; then :
17690   LIBINTL="$LIBINTL $LIBICONV"
17691                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17692                 gt_cv_func_gnugettext1_libintl=yes
17693
17694 fi
17695 rm -f core conftest.err conftest.$ac_objext \
17696     conftest$ac_exeext conftest.$ac_ext
17697             fi
17698             CPPFLAGS="$gt_save_CPPFLAGS"
17699             LIBS="$gt_save_LIBS"
17700 fi
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17702 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17703         fi
17704
17705                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17706            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17707                 && test "$PACKAGE" != gettext-runtime \
17708                 && test "$PACKAGE" != gettext-tools; }; then
17709           gt_use_preinstalled_gnugettext=yes
17710         else
17711                     LIBINTL=
17712           LTLIBINTL=
17713           INCINTL=
17714         fi
17715
17716
17717
17718     if test -n "$INTL_MACOSX_LIBS"; then
17719       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17720          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17721                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17722         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17723       fi
17724     fi
17725
17726     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17727        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17728
17729 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17730
17731     else
17732       USE_NLS=no
17733     fi
17734   fi
17735
17736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17737 $as_echo_n "checking whether to use NLS... " >&6; }
17738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17739 $as_echo "$USE_NLS" >&6; }
17740   if test "$USE_NLS" = "yes"; then
17741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17742 $as_echo_n "checking where the gettext function comes from... " >&6; }
17743     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17744       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17745         gt_source="external libintl"
17746       else
17747         gt_source="libc"
17748       fi
17749     else
17750       gt_source="included intl directory"
17751     fi
17752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17753 $as_echo "$gt_source" >&6; }
17754   fi
17755
17756   if test "$USE_NLS" = "yes"; then
17757
17758     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17759       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17760         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17761 $as_echo_n "checking how to link with libintl... " >&6; }
17762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17763 $as_echo "$LIBINTL" >&6; }
17764
17765   for element in $INCINTL; do
17766     haveit=
17767     for x in $CPPFLAGS; do
17768
17769   acl_save_prefix="$prefix"
17770   prefix="$acl_final_prefix"
17771   acl_save_exec_prefix="$exec_prefix"
17772   exec_prefix="$acl_final_exec_prefix"
17773   eval x=\"$x\"
17774   exec_prefix="$acl_save_exec_prefix"
17775   prefix="$acl_save_prefix"
17776
17777       if test "X$x" = "X$element"; then
17778         haveit=yes
17779         break
17780       fi
17781     done
17782     if test -z "$haveit"; then
17783       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17784     fi
17785   done
17786
17787       fi
17788
17789
17790 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17791
17792
17793 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17794
17795     fi
17796
17797         POSUB=po
17798   fi
17799
17800
17801
17802     INTLLIBS="$LIBINTL"
17803
17804
17805
17806
17807
17808
17809
17810 os_name=`uname -s 2>/dev/null`
17811 if test x${prefix} = xNONE ; then
17812    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17813       sysconfdir=/etc/bacula
17814    fi
17815
17816    if test `eval echo ${libdir}` = NONE/lib ; then
17817       case ${os_name} in
17818       Linux)
17819          os_processor=`uname -p 2>/dev/null`
17820          case ${os_processor} in
17821          x86_64)
17822             libdir=/usr/lib64
17823             ;;
17824          *)
17825             libdir=/usr/lib
17826             ;;
17827          esac
17828          ;;
17829       *)
17830          libdir=/usr/lib
17831          ;;
17832       esac
17833    fi
17834
17835    if test `eval echo ${includedir}` = NONE/include ; then
17836       includedir=/usr/include
17837    fi
17838
17839    if test `eval echo ${datarootdir}` = NONE/share ; then
17840       datarootdir=/usr/share
17841    fi
17842    prefix=
17843 fi
17844
17845 if test x${exec_prefix} = xNONE ; then
17846    exec_prefix=${prefix}
17847 fi
17848
17849 sysconfdir=`eval echo ${sysconfdir}`
17850 datarootdir=`eval echo ${datarootdir}`
17851 docdir=`eval echo ${docdir}`
17852 htmldir=`eval echo ${htmldir}`
17853 libdir=`eval echo ${libdir}`
17854 includedir=`eval echo ${includedir}`
17855 localedir=`eval echo ${datarootdir}/locale`
17856 cat >>confdefs.h <<_ACEOF
17857 #define SYSCONFDIR "$sysconfdir"
17858 _ACEOF
17859
17860 cat >>confdefs.h <<_ACEOF
17861 #define LOCALEDIR "$localedir"
17862 _ACEOF
17863
17864
17865 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17866    sbindir=${exec_prefix}/sbin
17867 fi
17868 sbindir=`eval echo ${sbindir}`
17869
17870 if test x$mandir = x'${prefix}/man' ; then
17871    mandir=/usr/share/man
17872 fi
17873
17874 if test x$htmldir = x${docdir} ; then
17875    htmldir=`eval echo ${docdir}bacula/html`
17876 fi
17877
17878 if test x$docdir = x'/usr/share/doc/' ; then
17879    docdir=`eval echo ${docdir}bacula`
17880 fi
17881
17882
17883 for ac_prog in msgfmt
17884 do
17885   # Extract the first word of "$ac_prog", so it can be a program name with args.
17886 set dummy $ac_prog; ac_word=$2
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17888 $as_echo_n "checking for $ac_word... " >&6; }
17889 if ${ac_cv_path_MSGFMT+:} false; then :
17890   $as_echo_n "(cached) " >&6
17891 else
17892   case $MSGFMT in
17893   [\\/]* | ?:[\\/]*)
17894   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17895   ;;
17896   *)
17897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17898 for as_dir in $PATH
17899 do
17900   IFS=$as_save_IFS
17901   test -z "$as_dir" && as_dir=.
17902     for ac_exec_ext in '' $ac_executable_extensions; do
17903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17904     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17906     break 2
17907   fi
17908 done
17909   done
17910 IFS=$as_save_IFS
17911
17912   ;;
17913 esac
17914 fi
17915 MSGFMT=$ac_cv_path_MSGFMT
17916 if test -n "$MSGFMT"; then
17917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17918 $as_echo "$MSGFMT" >&6; }
17919 else
17920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17921 $as_echo "no" >&6; }
17922 fi
17923
17924
17925   test -n "$MSGFMT" && break
17926 done
17927 test -n "$MSGFMT" || MSGFMT="no"
17928
17929 if test "$MSGFMT" = "no"
17930 then
17931    echo 'msgfmt program not found, disabling NLS !'
17932    USE_NLS=no
17933    USE_INCLUDED_LIBINTL=no
17934 #else
17935
17936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17937 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17938 if ${ac_cv_gnu_library_2+:} false; then :
17939   $as_echo_n "(cached) " >&6
17940 else
17941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h.  */
17943
17944 #include <features.h>
17945 #ifdef __GNU_LIBRARY__
17946  #if (__GLIBC__ >= 2)
17947   Lucky GNU user
17948  #endif
17949 #endif
17950
17951 _ACEOF
17952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17953   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17954   ac_cv_gnu_library_2=yes
17955 else
17956   ac_cv_gnu_library_2=no
17957 fi
17958 rm -f conftest*
17959
17960
17961
17962 fi
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17964 $as_echo "$ac_cv_gnu_library_2" >&6; }
17965
17966     GLIBC2="$ac_cv_gnu_library_2"
17967
17968
17969 if test -n "$ac_tool_prefix"; then
17970   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17971 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17973 $as_echo_n "checking for $ac_word... " >&6; }
17974 if ${ac_cv_prog_RANLIB+:} false; then :
17975   $as_echo_n "(cached) " >&6
17976 else
17977   if test -n "$RANLIB"; then
17978   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17979 else
17980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17981 for as_dir in $PATH
17982 do
17983   IFS=$as_save_IFS
17984   test -z "$as_dir" && as_dir=.
17985     for ac_exec_ext in '' $ac_executable_extensions; do
17986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17987     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17989     break 2
17990   fi
17991 done
17992   done
17993 IFS=$as_save_IFS
17994
17995 fi
17996 fi
17997 RANLIB=$ac_cv_prog_RANLIB
17998 if test -n "$RANLIB"; then
17999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18000 $as_echo "$RANLIB" >&6; }
18001 else
18002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18003 $as_echo "no" >&6; }
18004 fi
18005
18006
18007 fi
18008 if test -z "$ac_cv_prog_RANLIB"; then
18009   ac_ct_RANLIB=$RANLIB
18010   # Extract the first word of "ranlib", so it can be a program name with args.
18011 set dummy ranlib; ac_word=$2
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18013 $as_echo_n "checking for $ac_word... " >&6; }
18014 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
18015   $as_echo_n "(cached) " >&6
18016 else
18017   if test -n "$ac_ct_RANLIB"; then
18018   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18019 else
18020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18021 for as_dir in $PATH
18022 do
18023   IFS=$as_save_IFS
18024   test -z "$as_dir" && as_dir=.
18025     for ac_exec_ext in '' $ac_executable_extensions; do
18026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18027     ac_cv_prog_ac_ct_RANLIB="ranlib"
18028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18029     break 2
18030   fi
18031 done
18032   done
18033 IFS=$as_save_IFS
18034
18035 fi
18036 fi
18037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18038 if test -n "$ac_ct_RANLIB"; then
18039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18040 $as_echo "$ac_ct_RANLIB" >&6; }
18041 else
18042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18043 $as_echo "no" >&6; }
18044 fi
18045
18046   if test "x$ac_ct_RANLIB" = x; then
18047     RANLIB=":"
18048   else
18049     case $cross_compiling:$ac_tool_warned in
18050 yes:)
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18053 ac_tool_warned=yes ;;
18054 esac
18055     RANLIB=$ac_ct_RANLIB
18056   fi
18057 else
18058   RANLIB="$ac_cv_prog_RANLIB"
18059 fi
18060
18061
18062         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18063 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18064 if ${ac_cv_lib_cposix_strerror+:} false; then :
18065   $as_echo_n "(cached) " >&6
18066 else
18067   ac_check_lib_save_LIBS=$LIBS
18068 LIBS="-lcposix  $LIBS"
18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18070 /* end confdefs.h.  */
18071
18072 /* Override any GCC internal prototype to avoid an error.
18073    Use char because int might match the return type of a GCC
18074    builtin and then its argument prototype would still apply.  */
18075 #ifdef __cplusplus
18076 extern "C"
18077 #endif
18078 char strerror ();
18079 int
18080 main ()
18081 {
18082 return strerror ();
18083   ;
18084   return 0;
18085 }
18086 _ACEOF
18087 if ac_fn_c_try_link "$LINENO"; then :
18088   ac_cv_lib_cposix_strerror=yes
18089 else
18090   ac_cv_lib_cposix_strerror=no
18091 fi
18092 rm -f core conftest.err conftest.$ac_objext \
18093     conftest$ac_exeext conftest.$ac_ext
18094 LIBS=$ac_check_lib_save_LIBS
18095 fi
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18097 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18098 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18099   LIBS="$LIBS -lcposix"
18100 fi
18101
18102
18103
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18105 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18106 if ${ac_cv_c_const+:} false; then :
18107   $as_echo_n "(cached) " >&6
18108 else
18109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h.  */
18111
18112 int
18113 main ()
18114 {
18115 /* FIXME: Include the comments suggested by Paul. */
18116 #ifndef __cplusplus
18117   /* Ultrix mips cc rejects this.  */
18118   typedef int charset[2];
18119   const charset cs;
18120   /* SunOS 4.1.1 cc rejects this.  */
18121   char const *const *pcpcc;
18122   char **ppc;
18123   /* NEC SVR4.0.2 mips cc rejects this.  */
18124   struct point {int x, y;};
18125   static struct point const zero = {0,0};
18126   /* AIX XL C 1.02.0.0 rejects this.
18127      It does not let you subtract one const X* pointer from another in
18128      an arm of an if-expression whose if-part is not a constant
18129      expression */
18130   const char *g = "string";
18131   pcpcc = &g + (g ? g-g : 0);
18132   /* HPUX 7.0 cc rejects these. */
18133   ++pcpcc;
18134   ppc = (char**) pcpcc;
18135   pcpcc = (char const *const *) ppc;
18136   { /* SCO 3.2v4 cc rejects this.  */
18137     char *t;
18138     char const *s = 0 ? (char *) 0 : (char const *) 0;
18139
18140     *t++ = 0;
18141     if (s) return 0;
18142   }
18143   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18144     int x[] = {25, 17};
18145     const int *foo = &x[0];
18146     ++foo;
18147   }
18148   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18149     typedef const int *iptr;
18150     iptr p = 0;
18151     ++p;
18152   }
18153   { /* AIX XL C 1.02.0.0 rejects this saying
18154        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18155     struct s { int j; const int *ap[3]; };
18156     struct s *b; b->j = 5;
18157   }
18158   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18159     const int foo = 10;
18160     if (!foo) return 0;
18161   }
18162   return !cs[0] && !zero.x;
18163 #endif
18164
18165   ;
18166   return 0;
18167 }
18168 _ACEOF
18169 if ac_fn_c_try_compile "$LINENO"; then :
18170   ac_cv_c_const=yes
18171 else
18172   ac_cv_c_const=no
18173 fi
18174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18175 fi
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18177 $as_echo "$ac_cv_c_const" >&6; }
18178 if test $ac_cv_c_const = no; then
18179
18180 $as_echo "#define const /**/" >>confdefs.h
18181
18182 fi
18183
18184
18185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18186 $as_echo_n "checking for signed... " >&6; }
18187 if ${bh_cv_c_signed+:} false; then :
18188   $as_echo_n "(cached) " >&6
18189 else
18190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h.  */
18192
18193 int
18194 main ()
18195 {
18196 signed char x;
18197   ;
18198   return 0;
18199 }
18200 _ACEOF
18201 if ac_fn_c_try_compile "$LINENO"; then :
18202   bh_cv_c_signed=yes
18203 else
18204   bh_cv_c_signed=no
18205 fi
18206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18207 fi
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18209 $as_echo "$bh_cv_c_signed" >&6; }
18210   if test $bh_cv_c_signed = no; then
18211
18212 $as_echo "#define signed /**/" >>confdefs.h
18213
18214   fi
18215
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18217 $as_echo_n "checking for inline... " >&6; }
18218 if ${ac_cv_c_inline+:} false; then :
18219   $as_echo_n "(cached) " >&6
18220 else
18221   ac_cv_c_inline=no
18222 for ac_kw in inline __inline__ __inline; do
18223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h.  */
18225 #ifndef __cplusplus
18226 typedef int foo_t;
18227 static $ac_kw foo_t static_foo () {return 0; }
18228 $ac_kw foo_t foo () {return 0; }
18229 #endif
18230
18231 _ACEOF
18232 if ac_fn_c_try_compile "$LINENO"; then :
18233   ac_cv_c_inline=$ac_kw
18234 fi
18235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18236   test "$ac_cv_c_inline" != no && break
18237 done
18238
18239 fi
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18241 $as_echo "$ac_cv_c_inline" >&6; }
18242
18243 case $ac_cv_c_inline in
18244   inline | yes) ;;
18245   *)
18246     case $ac_cv_c_inline in
18247       no) ac_val=;;
18248       *) ac_val=$ac_cv_c_inline;;
18249     esac
18250     cat >>confdefs.h <<_ACEOF
18251 #ifndef __cplusplus
18252 #define inline $ac_val
18253 #endif
18254 _ACEOF
18255     ;;
18256 esac
18257
18258 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18259 if test "x$ac_cv_type_off_t" = xyes; then :
18260
18261 else
18262
18263 cat >>confdefs.h <<_ACEOF
18264 #define off_t long int
18265 _ACEOF
18266
18267 fi
18268
18269 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18270 if test "x$ac_cv_type_size_t" = xyes; then :
18271
18272 else
18273
18274 cat >>confdefs.h <<_ACEOF
18275 #define size_t unsigned int
18276 _ACEOF
18277
18278 fi
18279
18280
18281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18282 $as_echo_n "checking for long long... " >&6; }
18283 if ${ac_cv_type_long_long+:} false; then :
18284   $as_echo_n "(cached) " >&6
18285 else
18286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h.  */
18288 long long ll = 1LL; int i = 63;
18289 int
18290 main ()
18291 {
18292 long long llmax = (long long) -1;
18293      return ll << i | ll >> i | llmax / ll | llmax % ll;
18294   ;
18295   return 0;
18296 }
18297 _ACEOF
18298 if ac_fn_c_try_link "$LINENO"; then :
18299   ac_cv_type_long_long=yes
18300 else
18301   ac_cv_type_long_long=no
18302 fi
18303 rm -f core conftest.err conftest.$ac_objext \
18304     conftest$ac_exeext conftest.$ac_ext
18305 fi
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18307 $as_echo "$ac_cv_type_long_long" >&6; }
18308   if test $ac_cv_type_long_long = yes; then
18309
18310 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18311
18312   fi
18313
18314
18315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18316 $as_echo_n "checking for long double... " >&6; }
18317 if ${gt_cv_c_long_double+:} false; then :
18318   $as_echo_n "(cached) " >&6
18319 else
18320   if test "$GCC" = yes; then
18321        gt_cv_c_long_double=yes
18322      else
18323        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h.  */
18325
18326          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18327          long double foo = 0.0;
18328          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18329          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18330
18331 int
18332 main ()
18333 {
18334
18335   ;
18336   return 0;
18337 }
18338 _ACEOF
18339 if ac_fn_c_try_compile "$LINENO"; then :
18340   gt_cv_c_long_double=yes
18341 else
18342   gt_cv_c_long_double=no
18343 fi
18344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18345      fi
18346 fi
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18348 $as_echo "$gt_cv_c_long_double" >&6; }
18349   if test $gt_cv_c_long_double = yes; then
18350
18351 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18352
18353   fi
18354
18355
18356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18357 $as_echo_n "checking for wchar_t... " >&6; }
18358 if ${gt_cv_c_wchar_t+:} false; then :
18359   $as_echo_n "(cached) " >&6
18360 else
18361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362 /* end confdefs.h.  */
18363 #include <stddef.h>
18364        wchar_t foo = (wchar_t)'\0';
18365 int
18366 main ()
18367 {
18368
18369   ;
18370   return 0;
18371 }
18372 _ACEOF
18373 if ac_fn_c_try_compile "$LINENO"; then :
18374   gt_cv_c_wchar_t=yes
18375 else
18376   gt_cv_c_wchar_t=no
18377 fi
18378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18379 fi
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18381 $as_echo "$gt_cv_c_wchar_t" >&6; }
18382   if test $gt_cv_c_wchar_t = yes; then
18383
18384 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18385
18386   fi
18387
18388
18389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18390 $as_echo_n "checking for wint_t... " >&6; }
18391 if ${gt_cv_c_wint_t+:} false; then :
18392   $as_echo_n "(cached) " >&6
18393 else
18394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18395 /* end confdefs.h.  */
18396 #include <wchar.h>
18397        wint_t foo = (wchar_t)'\0';
18398 int
18399 main ()
18400 {
18401
18402   ;
18403   return 0;
18404 }
18405 _ACEOF
18406 if ac_fn_c_try_compile "$LINENO"; then :
18407   gt_cv_c_wint_t=yes
18408 else
18409   gt_cv_c_wint_t=no
18410 fi
18411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18412 fi
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18414 $as_echo "$gt_cv_c_wint_t" >&6; }
18415   if test $gt_cv_c_wint_t = yes; then
18416
18417 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18418
18419   fi
18420
18421
18422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18423 $as_echo_n "checking for inttypes.h... " >&6; }
18424 if ${gl_cv_header_inttypes_h+:} false; then :
18425   $as_echo_n "(cached) " >&6
18426 else
18427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18428 /* end confdefs.h.  */
18429 #include <sys/types.h>
18430 #include <inttypes.h>
18431 int
18432 main ()
18433 {
18434 uintmax_t i = (uintmax_t) -1;
18435   ;
18436   return 0;
18437 }
18438 _ACEOF
18439 if ac_fn_c_try_compile "$LINENO"; then :
18440   gl_cv_header_inttypes_h=yes
18441 else
18442   gl_cv_header_inttypes_h=no
18443 fi
18444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18445 fi
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18447 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18448   if test $gl_cv_header_inttypes_h = yes; then
18449
18450 cat >>confdefs.h <<_ACEOF
18451 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18452 _ACEOF
18453
18454   fi
18455
18456
18457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18458 $as_echo_n "checking for stdint.h... " >&6; }
18459 if ${gl_cv_header_stdint_h+:} false; then :
18460   $as_echo_n "(cached) " >&6
18461 else
18462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18463 /* end confdefs.h.  */
18464 #include <sys/types.h>
18465 #include <stdint.h>
18466 int
18467 main ()
18468 {
18469 uintmax_t i = (uintmax_t) -1;
18470   ;
18471   return 0;
18472 }
18473 _ACEOF
18474 if ac_fn_c_try_compile "$LINENO"; then :
18475   gl_cv_header_stdint_h=yes
18476 else
18477   gl_cv_header_stdint_h=no
18478 fi
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18480 fi
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18482 $as_echo "$gl_cv_header_stdint_h" >&6; }
18483   if test $gl_cv_header_stdint_h = yes; then
18484
18485 cat >>confdefs.h <<_ACEOF
18486 #define HAVE_STDINT_H_WITH_UINTMAX 1
18487 _ACEOF
18488
18489   fi
18490
18491
18492
18493
18494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18495 $as_echo_n "checking for intmax_t... " >&6; }
18496 if ${gt_cv_c_intmax_t+:} false; then :
18497   $as_echo_n "(cached) " >&6
18498 else
18499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18500 /* end confdefs.h.  */
18501
18502 #include <stddef.h>
18503 #include <stdlib.h>
18504 #if HAVE_STDINT_H_WITH_UINTMAX
18505 #include <stdint.h>
18506 #endif
18507 #if HAVE_INTTYPES_H_WITH_UINTMAX
18508 #include <inttypes.h>
18509 #endif
18510
18511 int
18512 main ()
18513 {
18514 intmax_t x = -1;
18515   ;
18516   return 0;
18517 }
18518 _ACEOF
18519 if ac_fn_c_try_compile "$LINENO"; then :
18520   gt_cv_c_intmax_t=yes
18521 else
18522   gt_cv_c_intmax_t=no
18523 fi
18524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18525 fi
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18527 $as_echo "$gt_cv_c_intmax_t" >&6; }
18528   if test $gt_cv_c_intmax_t = yes; then
18529
18530 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18531
18532   fi
18533
18534
18535
18536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18537 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18538 if ${gt_cv_func_printf_posix+:} false; then :
18539   $as_echo_n "(cached) " >&6
18540 else
18541
18542       if test "$cross_compiling" = yes; then :
18543
18544         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h.  */
18546
18547 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18548   notposix
18549 #endif
18550
18551 _ACEOF
18552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18553   $EGREP "notposix" >/dev/null 2>&1; then :
18554   gt_cv_func_printf_posix="guessing no"
18555 else
18556   gt_cv_func_printf_posix="guessing yes"
18557 fi
18558 rm -f conftest*
18559
18560
18561 else
18562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h.  */
18564
18565 #include <stdio.h>
18566 #include <string.h>
18567 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18568    dollar expansion (possibly an autoconf bug).  */
18569 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18570 static char buf[100];
18571 int main ()
18572 {
18573   sprintf (buf, format, 33, 55);
18574   return (strcmp (buf, "55 33") != 0);
18575 }
18576 _ACEOF
18577 if ac_fn_c_try_run "$LINENO"; then :
18578   gt_cv_func_printf_posix=yes
18579 else
18580   gt_cv_func_printf_posix=no
18581 fi
18582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18583   conftest.$ac_objext conftest.beam conftest.$ac_ext
18584 fi
18585
18586
18587 fi
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18589 $as_echo "$gt_cv_func_printf_posix" >&6; }
18590   case $gt_cv_func_printf_posix in
18591     *yes)
18592
18593 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18594
18595       ;;
18596   esac
18597
18598 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18599 # for constant arguments.  Useless!
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18601 $as_echo_n "checking for working alloca.h... " >&6; }
18602 if ${ac_cv_working_alloca_h+:} false; then :
18603   $as_echo_n "(cached) " >&6
18604 else
18605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18606 /* end confdefs.h.  */
18607 #include <alloca.h>
18608 int
18609 main ()
18610 {
18611 char *p = (char *) alloca (2 * sizeof (int));
18612                           if (p) return 0;
18613   ;
18614   return 0;
18615 }
18616 _ACEOF
18617 if ac_fn_c_try_link "$LINENO"; then :
18618   ac_cv_working_alloca_h=yes
18619 else
18620   ac_cv_working_alloca_h=no
18621 fi
18622 rm -f core conftest.err conftest.$ac_objext \
18623     conftest$ac_exeext conftest.$ac_ext
18624 fi
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18626 $as_echo "$ac_cv_working_alloca_h" >&6; }
18627 if test $ac_cv_working_alloca_h = yes; then
18628
18629 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18630
18631 fi
18632
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18634 $as_echo_n "checking for alloca... " >&6; }
18635 if ${ac_cv_func_alloca_works+:} false; then :
18636   $as_echo_n "(cached) " >&6
18637 else
18638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h.  */
18640 #ifdef __GNUC__
18641 # define alloca __builtin_alloca
18642 #else
18643 # ifdef _MSC_VER
18644 #  include <malloc.h>
18645 #  define alloca _alloca
18646 # else
18647 #  ifdef HAVE_ALLOCA_H
18648 #   include <alloca.h>
18649 #  else
18650 #   ifdef _AIX
18651  #pragma alloca
18652 #   else
18653 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18654 void *alloca (size_t);
18655 #    endif
18656 #   endif
18657 #  endif
18658 # endif
18659 #endif
18660
18661 int
18662 main ()
18663 {
18664 char *p = (char *) alloca (1);
18665                                     if (p) return 0;
18666   ;
18667   return 0;
18668 }
18669 _ACEOF
18670 if ac_fn_c_try_link "$LINENO"; then :
18671   ac_cv_func_alloca_works=yes
18672 else
18673   ac_cv_func_alloca_works=no
18674 fi
18675 rm -f core conftest.err conftest.$ac_objext \
18676     conftest$ac_exeext conftest.$ac_ext
18677 fi
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18679 $as_echo "$ac_cv_func_alloca_works" >&6; }
18680
18681 if test $ac_cv_func_alloca_works = yes; then
18682
18683 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18684
18685 else
18686   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18687 # that cause trouble.  Some versions do not even contain alloca or
18688 # contain a buggy version.  If you still want to use their alloca,
18689 # use ar to extract alloca.o from them instead of compiling alloca.c.
18690
18691 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18692
18693 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18694
18695
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18697 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18698 if ${ac_cv_os_cray+:} false; then :
18699   $as_echo_n "(cached) " >&6
18700 else
18701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h.  */
18703 #if defined CRAY && ! defined CRAY2
18704 webecray
18705 #else
18706 wenotbecray
18707 #endif
18708
18709 _ACEOF
18710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18711   $EGREP "webecray" >/dev/null 2>&1; then :
18712   ac_cv_os_cray=yes
18713 else
18714   ac_cv_os_cray=no
18715 fi
18716 rm -f conftest*
18717
18718 fi
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18720 $as_echo "$ac_cv_os_cray" >&6; }
18721 if test $ac_cv_os_cray = yes; then
18722   for ac_func in _getb67 GETB67 getb67; do
18723     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18725 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18726
18727 cat >>confdefs.h <<_ACEOF
18728 #define CRAY_STACKSEG_END $ac_func
18729 _ACEOF
18730
18731     break
18732 fi
18733
18734   done
18735 fi
18736
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18738 $as_echo_n "checking stack direction for C alloca... " >&6; }
18739 if ${ac_cv_c_stack_direction+:} false; then :
18740   $as_echo_n "(cached) " >&6
18741 else
18742   if test "$cross_compiling" = yes; then :
18743   ac_cv_c_stack_direction=0
18744 else
18745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746 /* end confdefs.h.  */
18747 $ac_includes_default
18748 int
18749 find_stack_direction ()
18750 {
18751   static char *addr = 0;
18752   auto char dummy;
18753   if (addr == 0)
18754     {
18755       addr = &dummy;
18756       return find_stack_direction ();
18757     }
18758   else
18759     return (&dummy > addr) ? 1 : -1;
18760 }
18761
18762 int
18763 main ()
18764 {
18765   return find_stack_direction () < 0;
18766 }
18767 _ACEOF
18768 if ac_fn_c_try_run "$LINENO"; then :
18769   ac_cv_c_stack_direction=1
18770 else
18771   ac_cv_c_stack_direction=-1
18772 fi
18773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18774   conftest.$ac_objext conftest.beam conftest.$ac_ext
18775 fi
18776
18777 fi
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18779 $as_echo "$ac_cv_c_stack_direction" >&6; }
18780 cat >>confdefs.h <<_ACEOF
18781 #define STACK_DIRECTION $ac_cv_c_stack_direction
18782 _ACEOF
18783
18784
18785 fi
18786
18787
18788
18789
18790   for ac_header in $ac_header_list
18791 do :
18792   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18793 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18794 "
18795 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18796   cat >>confdefs.h <<_ACEOF
18797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18798 _ACEOF
18799
18800 fi
18801
18802 done
18803
18804
18805
18806
18807
18808
18809
18810
18811 for ac_func in getpagesize
18812 do :
18813   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18814 if test "x$ac_cv_func_getpagesize" = xyes; then :
18815   cat >>confdefs.h <<_ACEOF
18816 #define HAVE_GETPAGESIZE 1
18817 _ACEOF
18818
18819 fi
18820 done
18821
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18823 $as_echo_n "checking for working mmap... " >&6; }
18824 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18825   $as_echo_n "(cached) " >&6
18826 else
18827   if test "$cross_compiling" = yes; then :
18828   ac_cv_func_mmap_fixed_mapped=no
18829 else
18830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h.  */
18832 $ac_includes_default
18833 /* malloc might have been renamed as rpl_malloc. */
18834 #undef malloc
18835
18836 /* Thanks to Mike Haertel and Jim Avera for this test.
18837    Here is a matrix of mmap possibilities:
18838         mmap private not fixed
18839         mmap private fixed at somewhere currently unmapped
18840         mmap private fixed at somewhere already mapped
18841         mmap shared not fixed
18842         mmap shared fixed at somewhere currently unmapped
18843         mmap shared fixed at somewhere already mapped
18844    For private mappings, we should verify that changes cannot be read()
18845    back from the file, nor mmap's back from the file at a different
18846    address.  (There have been systems where private was not correctly
18847    implemented like the infamous i386 svr4.0, and systems where the
18848    VM page cache was not coherent with the file system buffer cache
18849    like early versions of FreeBSD and possibly contemporary NetBSD.)
18850    For shared mappings, we should conversely verify that changes get
18851    propagated back to all the places they're supposed to be.
18852
18853    Grep wants private fixed already mapped.
18854    The main things grep needs to know about mmap are:
18855    * does it exist and is it safe to write into the mmap'd area
18856    * how to use it (BSD variants)  */
18857
18858 #include <fcntl.h>
18859 #include <sys/mman.h>
18860
18861 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18862 char *malloc ();
18863 #endif
18864
18865 /* This mess was copied from the GNU getpagesize.h.  */
18866 #ifndef HAVE_GETPAGESIZE
18867 # ifdef _SC_PAGESIZE
18868 #  define getpagesize() sysconf(_SC_PAGESIZE)
18869 # else /* no _SC_PAGESIZE */
18870 #  ifdef HAVE_SYS_PARAM_H
18871 #   include <sys/param.h>
18872 #   ifdef EXEC_PAGESIZE
18873 #    define getpagesize() EXEC_PAGESIZE
18874 #   else /* no EXEC_PAGESIZE */
18875 #    ifdef NBPG
18876 #     define getpagesize() NBPG * CLSIZE
18877 #     ifndef CLSIZE
18878 #      define CLSIZE 1
18879 #     endif /* no CLSIZE */
18880 #    else /* no NBPG */
18881 #     ifdef NBPC
18882 #      define getpagesize() NBPC
18883 #     else /* no NBPC */
18884 #      ifdef PAGESIZE
18885 #       define getpagesize() PAGESIZE
18886 #      endif /* PAGESIZE */
18887 #     endif /* no NBPC */
18888 #    endif /* no NBPG */
18889 #   endif /* no EXEC_PAGESIZE */
18890 #  else /* no HAVE_SYS_PARAM_H */
18891 #   define getpagesize() 8192   /* punt totally */
18892 #  endif /* no HAVE_SYS_PARAM_H */
18893 # endif /* no _SC_PAGESIZE */
18894
18895 #endif /* no HAVE_GETPAGESIZE */
18896
18897 int
18898 main ()
18899 {
18900   char *data, *data2, *data3;
18901   const char *cdata2;
18902   int i, pagesize;
18903   int fd, fd2;
18904
18905   pagesize = getpagesize ();
18906
18907   /* First, make a file with some known garbage in it. */
18908   data = (char *) malloc (pagesize);
18909   if (!data)
18910     return 1;
18911   for (i = 0; i < pagesize; ++i)
18912     *(data + i) = rand ();
18913   umask (0);
18914   fd = creat ("conftest.mmap", 0600);
18915   if (fd < 0)
18916     return 2;
18917   if (write (fd, data, pagesize) != pagesize)
18918     return 3;
18919   close (fd);
18920
18921   /* Next, check that the tail of a page is zero-filled.  File must have
18922      non-zero length, otherwise we risk SIGBUS for entire page.  */
18923   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18924   if (fd2 < 0)
18925     return 4;
18926   cdata2 = "";
18927   if (write (fd2, cdata2, 1) != 1)
18928     return 5;
18929   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18930   if (data2 == MAP_FAILED)
18931     return 6;
18932   for (i = 0; i < pagesize; ++i)
18933     if (*(data2 + i))
18934       return 7;
18935   close (fd2);
18936   if (munmap (data2, pagesize))
18937     return 8;
18938
18939   /* Next, try to mmap the file at a fixed address which already has
18940      something else allocated at it.  If we can, also make sure that
18941      we see the same garbage.  */
18942   fd = open ("conftest.mmap", O_RDWR);
18943   if (fd < 0)
18944     return 9;
18945   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18946                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18947     return 10;
18948   for (i = 0; i < pagesize; ++i)
18949     if (*(data + i) != *(data2 + i))
18950       return 11;
18951
18952   /* Finally, make sure that changes to the mapped area do not
18953      percolate back to the file as seen by read().  (This is a bug on
18954      some variants of i386 svr4.0.)  */
18955   for (i = 0; i < pagesize; ++i)
18956     *(data2 + i) = *(data2 + i) + 1;
18957   data3 = (char *) malloc (pagesize);
18958   if (!data3)
18959     return 12;
18960   if (read (fd, data3, pagesize) != pagesize)
18961     return 13;
18962   for (i = 0; i < pagesize; ++i)
18963     if (*(data + i) != *(data3 + i))
18964       return 14;
18965   close (fd);
18966   return 0;
18967 }
18968 _ACEOF
18969 if ac_fn_c_try_run "$LINENO"; then :
18970   ac_cv_func_mmap_fixed_mapped=yes
18971 else
18972   ac_cv_func_mmap_fixed_mapped=no
18973 fi
18974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18975   conftest.$ac_objext conftest.beam conftest.$ac_ext
18976 fi
18977
18978 fi
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18980 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18981 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18982
18983 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18984
18985 fi
18986 rm -f conftest.mmap conftest.txt
18987
18988
18989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18990 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18991 if ${ac_cv_gnu_library_2_1+:} false; then :
18992   $as_echo_n "(cached) " >&6
18993 else
18994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h.  */
18996
18997 #include <features.h>
18998 #ifdef __GNU_LIBRARY__
18999  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19000   Lucky GNU user
19001  #endif
19002 #endif
19003
19004 _ACEOF
19005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19006   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19007   ac_cv_gnu_library_2_1=yes
19008 else
19009   ac_cv_gnu_library_2_1=no
19010 fi
19011 rm -f conftest*
19012
19013
19014
19015 fi
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
19017 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
19018
19019     GLIBC21="$ac_cv_gnu_library_2_1"
19020
19021
19022
19023
19024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
19025 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
19026 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
19027   $as_echo_n "(cached) " >&6
19028 else
19029
19030       if test "$cross_compiling" = yes; then :
19031
19032           # Guess based on the CPU.
19033           case "$host_cpu" in
19034             alpha* | i3456786 | m68k | s390*)
19035               gt_cv_int_divbyzero_sigfpe="guessing yes";;
19036             *)
19037               gt_cv_int_divbyzero_sigfpe="guessing no";;
19038           esac
19039
19040 else
19041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h.  */
19043
19044 #include <stdlib.h>
19045 #include <signal.h>
19046
19047 static void
19048 #ifdef __cplusplus
19049 sigfpe_handler (int sig)
19050 #else
19051 sigfpe_handler (sig) int sig;
19052 #endif
19053 {
19054   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
19055   exit (sig != SIGFPE);
19056 }
19057
19058 int x = 1;
19059 int y = 0;
19060 int z;
19061 int nan;
19062
19063 int main ()
19064 {
19065   signal (SIGFPE, sigfpe_handler);
19066 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
19067 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19068   signal (SIGTRAP, sigfpe_handler);
19069 #endif
19070 /* Linux/SPARC yields signal SIGILL.  */
19071 #if defined (__sparc__) && defined (__linux__)
19072   signal (SIGILL, sigfpe_handler);
19073 #endif
19074
19075   z = x / y;
19076   nan = y / y;
19077   exit (1);
19078 }
19079
19080 _ACEOF
19081 if ac_fn_c_try_run "$LINENO"; then :
19082   gt_cv_int_divbyzero_sigfpe=yes
19083 else
19084   gt_cv_int_divbyzero_sigfpe=no
19085 fi
19086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19087   conftest.$ac_objext conftest.beam conftest.$ac_ext
19088 fi
19089
19090
19091 fi
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19093 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19094   case "$gt_cv_int_divbyzero_sigfpe" in
19095     *yes) value=1;;
19096     *) value=0;;
19097   esac
19098
19099 cat >>confdefs.h <<_ACEOF
19100 #define INTDIV0_RAISES_SIGFPE $value
19101 _ACEOF
19102
19103
19104
19105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19106 $as_echo_n "checking for unsigned long long... " >&6; }
19107 if ${ac_cv_type_unsigned_long_long+:} false; then :
19108   $as_echo_n "(cached) " >&6
19109 else
19110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h.  */
19112 unsigned long long ull = 1ULL; int i = 63;
19113 int
19114 main ()
19115 {
19116 unsigned long long ullmax = (unsigned long long) -1;
19117      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19118   ;
19119   return 0;
19120 }
19121 _ACEOF
19122 if ac_fn_c_try_link "$LINENO"; then :
19123   ac_cv_type_unsigned_long_long=yes
19124 else
19125   ac_cv_type_unsigned_long_long=no
19126 fi
19127 rm -f core conftest.err conftest.$ac_objext \
19128     conftest$ac_exeext conftest.$ac_ext
19129 fi
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19131 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19132   if test $ac_cv_type_unsigned_long_long = yes; then
19133
19134 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19135
19136   fi
19137
19138
19139
19140
19141   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19142
19143     test $ac_cv_type_unsigned_long_long = yes \
19144       && ac_type='unsigned long long' \
19145       || ac_type='unsigned long'
19146
19147 cat >>confdefs.h <<_ACEOF
19148 #define uintmax_t $ac_type
19149 _ACEOF
19150
19151   else
19152
19153 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19154
19155   fi
19156
19157
19158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19159 $as_echo_n "checking for inttypes.h... " >&6; }
19160 if ${gt_cv_header_inttypes_h+:} false; then :
19161   $as_echo_n "(cached) " >&6
19162 else
19163
19164     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h.  */
19166 #include <sys/types.h>
19167 #include <inttypes.h>
19168 int
19169 main ()
19170 {
19171
19172   ;
19173   return 0;
19174 }
19175 _ACEOF
19176 if ac_fn_c_try_compile "$LINENO"; then :
19177   gt_cv_header_inttypes_h=yes
19178 else
19179   gt_cv_header_inttypes_h=no
19180 fi
19181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19182
19183 fi
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19185 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19186   if test $gt_cv_header_inttypes_h = yes; then
19187
19188 cat >>confdefs.h <<_ACEOF
19189 #define HAVE_INTTYPES_H 1
19190 _ACEOF
19191
19192   fi
19193
19194
19195
19196   if test $gt_cv_header_inttypes_h = yes; then
19197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19198 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19199 if ${gt_cv_inttypes_pri_broken+:} false; then :
19200   $as_echo_n "(cached) " >&6
19201 else
19202
19203         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19204 /* end confdefs.h.  */
19205 #include <inttypes.h>
19206 #ifdef PRId32
19207 char *p = PRId32;
19208 #endif
19209
19210 int
19211 main ()
19212 {
19213
19214   ;
19215   return 0;
19216 }
19217 _ACEOF
19218 if ac_fn_c_try_compile "$LINENO"; then :
19219   gt_cv_inttypes_pri_broken=no
19220 else
19221   gt_cv_inttypes_pri_broken=yes
19222 fi
19223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19224
19225 fi
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19227 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19228   fi
19229   if test "$gt_cv_inttypes_pri_broken" = yes; then
19230
19231 cat >>confdefs.h <<_ACEOF
19232 #define PRI_MACROS_BROKEN 1
19233 _ACEOF
19234
19235   fi
19236
19237
19238   for ac_header in stdint.h
19239 do :
19240   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19241 if test "x$ac_cv_header_stdint_h" = xyes; then :
19242   cat >>confdefs.h <<_ACEOF
19243 #define HAVE_STDINT_H 1
19244 _ACEOF
19245
19246 fi
19247
19248 done
19249
19250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19251 $as_echo_n "checking for SIZE_MAX... " >&6; }
19252   result=
19253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19254 /* end confdefs.h.  */
19255
19256 #include <limits.h>
19257 #if HAVE_STDINT_H
19258 #include <stdint.h>
19259 #endif
19260 #ifdef SIZE_MAX
19261 Found it
19262 #endif
19263
19264 _ACEOF
19265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19266   $EGREP "Found it" >/dev/null 2>&1; then :
19267   result=yes
19268 fi
19269 rm -f conftest*
19270
19271   if test -z "$result"; then
19272                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19273
19274 else
19275   result=?
19276 fi
19277
19278
19279     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19280
19281 else
19282   result=?
19283 fi
19284
19285
19286     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19287
19288 else
19289   result=?
19290 fi
19291
19292
19293     if test "$fits_in_uint" = 1; then
19294                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19295 /* end confdefs.h.  */
19296 #include <stddef.h>
19297         extern size_t foo;
19298         extern unsigned long foo;
19299
19300 int
19301 main ()
19302 {
19303
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 if ac_fn_c_try_compile "$LINENO"; then :
19309   fits_in_uint=0
19310 fi
19311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19312     fi
19313     if test -z "$result"; then
19314       if test "$fits_in_uint" = 1; then
19315         result="$res_hi$res_lo"U
19316       else
19317         result="$res_hi$res_lo"UL
19318       fi
19319     else
19320             result='~(size_t)0'
19321     fi
19322   fi
19323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19324 $as_echo "$result" >&6; }
19325   if test "$result" != yes; then
19326
19327 cat >>confdefs.h <<_ACEOF
19328 #define SIZE_MAX $result
19329 _ACEOF
19330
19331   fi
19332
19333
19334
19335
19336   for ac_header in stdint.h
19337 do :
19338   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19339 if test "x$ac_cv_header_stdint_h" = xyes; then :
19340   cat >>confdefs.h <<_ACEOF
19341 #define HAVE_STDINT_H 1
19342 _ACEOF
19343
19344 fi
19345
19346 done
19347
19348
19349
19350
19351
19352
19353
19354
19355   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19356 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19357
19358 else
19359
19360 $as_echo "#define ptrdiff_t long" >>confdefs.h
19361
19362
19363 fi
19364
19365   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19366 stdlib.h string.h unistd.h sys/param.h
19367 do :
19368   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19369 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19370 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19371   cat >>confdefs.h <<_ACEOF
19372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19373 _ACEOF
19374
19375 fi
19376
19377 done
19378
19379   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19380 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19381 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19382 __fsetlocking
19383 do :
19384   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19385 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19386 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19387   cat >>confdefs.h <<_ACEOF
19388 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19389 _ACEOF
19390
19391 fi
19392 done
19393
19394
19395
19396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19397 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19398 if ${ac_cv_have_decl__snprintf+:} false; then :
19399   $as_echo_n "(cached) " >&6
19400 else
19401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402 /* end confdefs.h.  */
19403 #include <stdio.h>
19404 int
19405 main ()
19406 {
19407
19408 #ifndef _snprintf
19409   char *p = (char *) _snprintf;
19410 #endif
19411
19412   ;
19413   return 0;
19414 }
19415 _ACEOF
19416 if ac_fn_c_try_compile "$LINENO"; then :
19417   ac_cv_have_decl__snprintf=yes
19418 else
19419   ac_cv_have_decl__snprintf=no
19420 fi
19421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19422 fi
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19424 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19425   if test $ac_cv_have_decl__snprintf = yes; then
19426     gt_value=1
19427   else
19428     gt_value=0
19429   fi
19430
19431 cat >>confdefs.h <<_ACEOF
19432 #define HAVE_DECL__SNPRINTF $gt_value
19433 _ACEOF
19434
19435
19436
19437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19438 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19439 if ${ac_cv_have_decl__snwprintf+:} false; then :
19440   $as_echo_n "(cached) " >&6
19441 else
19442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443 /* end confdefs.h.  */
19444 #include <stdio.h>
19445 int
19446 main ()
19447 {
19448
19449 #ifndef _snwprintf
19450   char *p = (char *) _snwprintf;
19451 #endif
19452
19453   ;
19454   return 0;
19455 }
19456 _ACEOF
19457 if ac_fn_c_try_compile "$LINENO"; then :
19458   ac_cv_have_decl__snwprintf=yes
19459 else
19460   ac_cv_have_decl__snwprintf=no
19461 fi
19462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19463 fi
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19465 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19466   if test $ac_cv_have_decl__snwprintf = yes; then
19467     gt_value=1
19468   else
19469     gt_value=0
19470   fi
19471
19472 cat >>confdefs.h <<_ACEOF
19473 #define HAVE_DECL__SNWPRINTF $gt_value
19474 _ACEOF
19475
19476
19477
19478
19479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19480 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19481 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
19482   $as_echo_n "(cached) " >&6
19483 else
19484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h.  */
19486 #include <stdio.h>
19487 int
19488 main ()
19489 {
19490
19491 #ifndef feof_unlocked
19492   char *p = (char *) feof_unlocked;
19493 #endif
19494
19495   ;
19496   return 0;
19497 }
19498 _ACEOF
19499 if ac_fn_c_try_compile "$LINENO"; then :
19500   ac_cv_have_decl_feof_unlocked=yes
19501 else
19502   ac_cv_have_decl_feof_unlocked=no
19503 fi
19504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19505 fi
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19507 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19508   if test $ac_cv_have_decl_feof_unlocked = yes; then
19509     gt_value=1
19510   else
19511     gt_value=0
19512   fi
19513
19514 cat >>confdefs.h <<_ACEOF
19515 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19516 _ACEOF
19517
19518
19519
19520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19521 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19522 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
19523   $as_echo_n "(cached) " >&6
19524 else
19525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19526 /* end confdefs.h.  */
19527 #include <stdio.h>
19528 int
19529 main ()
19530 {
19531
19532 #ifndef fgets_unlocked
19533   char *p = (char *) fgets_unlocked;
19534 #endif
19535
19536   ;
19537   return 0;
19538 }
19539 _ACEOF
19540 if ac_fn_c_try_compile "$LINENO"; then :
19541   ac_cv_have_decl_fgets_unlocked=yes
19542 else
19543   ac_cv_have_decl_fgets_unlocked=no
19544 fi
19545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19546 fi
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19548 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19549   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19550     gt_value=1
19551   else
19552     gt_value=0
19553   fi
19554
19555 cat >>confdefs.h <<_ACEOF
19556 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19557 _ACEOF
19558
19559
19560
19561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19562 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19563 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
19564   $as_echo_n "(cached) " >&6
19565 else
19566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19567 /* end confdefs.h.  */
19568 #include <stdio.h>
19569 int
19570 main ()
19571 {
19572
19573 #ifndef getc_unlocked
19574   char *p = (char *) getc_unlocked;
19575 #endif
19576
19577   ;
19578   return 0;
19579 }
19580 _ACEOF
19581 if ac_fn_c_try_compile "$LINENO"; then :
19582   ac_cv_have_decl_getc_unlocked=yes
19583 else
19584   ac_cv_have_decl_getc_unlocked=no
19585 fi
19586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19587 fi
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19589 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19590   if test $ac_cv_have_decl_getc_unlocked = yes; then
19591     gt_value=1
19592   else
19593     gt_value=0
19594   fi
19595
19596 cat >>confdefs.h <<_ACEOF
19597 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19598 _ACEOF
19599
19600
19601
19602   case $gt_cv_func_printf_posix in
19603     *yes) HAVE_POSIX_PRINTF=1 ;;
19604     *) HAVE_POSIX_PRINTF=0 ;;
19605   esac
19606
19607   if test "$ac_cv_func_asprintf" = yes; then
19608     HAVE_ASPRINTF=1
19609   else
19610     HAVE_ASPRINTF=0
19611   fi
19612
19613   if test "$ac_cv_func_snprintf" = yes; then
19614     HAVE_SNPRINTF=1
19615   else
19616     HAVE_SNPRINTF=0
19617   fi
19618
19619   if test "$ac_cv_func_wprintf" = yes; then
19620     HAVE_WPRINTF=1
19621   else
19622     HAVE_WPRINTF=0
19623   fi
19624
19625
19626
19627
19628
19629
19630
19631           am_save_CPPFLAGS="$CPPFLAGS"
19632
19633   for element in $INCICONV; do
19634     haveit=
19635     for x in $CPPFLAGS; do
19636
19637   acl_save_prefix="$prefix"
19638   prefix="$acl_final_prefix"
19639   acl_save_exec_prefix="$exec_prefix"
19640   exec_prefix="$acl_final_exec_prefix"
19641   eval x=\"$x\"
19642   exec_prefix="$acl_save_exec_prefix"
19643   prefix="$acl_save_prefix"
19644
19645       if test "X$x" = "X$element"; then
19646         haveit=yes
19647         break
19648       fi
19649     done
19650     if test -z "$haveit"; then
19651       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19652     fi
19653   done
19654
19655
19656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19657 $as_echo_n "checking for iconv... " >&6; }
19658 if ${am_cv_func_iconv+:} false; then :
19659   $as_echo_n "(cached) " >&6
19660 else
19661
19662     am_cv_func_iconv="no, consider installing GNU libiconv"
19663     am_cv_lib_iconv=no
19664     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h.  */
19666 #include <stdlib.h>
19667 #include <iconv.h>
19668 int
19669 main ()
19670 {
19671 iconv_t cd = iconv_open("","");
19672        iconv(cd,NULL,NULL,NULL,NULL);
19673        iconv_close(cd);
19674   ;
19675   return 0;
19676 }
19677 _ACEOF
19678 if ac_fn_c_try_link "$LINENO"; then :
19679   am_cv_func_iconv=yes
19680 fi
19681 rm -f core conftest.err conftest.$ac_objext \
19682     conftest$ac_exeext conftest.$ac_ext
19683     if test "$am_cv_func_iconv" != yes; then
19684       am_save_LIBS="$LIBS"
19685       LIBS="$LIBS $LIBICONV"
19686       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19687 /* end confdefs.h.  */
19688 #include <stdlib.h>
19689 #include <iconv.h>
19690 int
19691 main ()
19692 {
19693 iconv_t cd = iconv_open("","");
19694          iconv(cd,NULL,NULL,NULL,NULL);
19695          iconv_close(cd);
19696   ;
19697   return 0;
19698 }
19699 _ACEOF
19700 if ac_fn_c_try_link "$LINENO"; then :
19701   am_cv_lib_iconv=yes
19702         am_cv_func_iconv=yes
19703 fi
19704 rm -f core conftest.err conftest.$ac_objext \
19705     conftest$ac_exeext conftest.$ac_ext
19706       LIBS="$am_save_LIBS"
19707     fi
19708
19709 fi
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19711 $as_echo "$am_cv_func_iconv" >&6; }
19712   if test "$am_cv_func_iconv" = yes; then
19713
19714 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19715
19716   fi
19717   if test "$am_cv_lib_iconv" = yes; then
19718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19719 $as_echo_n "checking how to link with libiconv... " >&6; }
19720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19721 $as_echo "$LIBICONV" >&6; }
19722   else
19723             CPPFLAGS="$am_save_CPPFLAGS"
19724     LIBICONV=
19725     LTLIBICONV=
19726   fi
19727
19728
19729
19730   if test "$am_cv_func_iconv" = yes; then
19731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19732 $as_echo_n "checking for iconv declaration... " >&6; }
19733     if ${am_cv_proto_iconv+:} false; then :
19734   $as_echo_n "(cached) " >&6
19735 else
19736
19737       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19738 /* end confdefs.h.  */
19739
19740 #include <stdlib.h>
19741 #include <iconv.h>
19742 extern
19743 #ifdef __cplusplus
19744 "C"
19745 #endif
19746 #if defined(__STDC__) || defined(__cplusplus)
19747 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19748 #else
19749 size_t iconv();
19750 #endif
19751
19752 int
19753 main ()
19754 {
19755
19756   ;
19757   return 0;
19758 }
19759 _ACEOF
19760 if ac_fn_c_try_compile "$LINENO"; then :
19761   am_cv_proto_iconv_arg1=""
19762 else
19763   am_cv_proto_iconv_arg1="const"
19764 fi
19765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19766       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);"
19767 fi
19768
19769     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19770     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19771          }$am_cv_proto_iconv" >&5
19772 $as_echo "${ac_t:-
19773          }$am_cv_proto_iconv" >&6; }
19774
19775 cat >>confdefs.h <<_ACEOF
19776 #define ICONV_CONST $am_cv_proto_iconv_arg1
19777 _ACEOF
19778
19779   fi
19780
19781
19782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19783 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19784 if ${am_cv_langinfo_codeset+:} false; then :
19785   $as_echo_n "(cached) " >&6
19786 else
19787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19788 /* end confdefs.h.  */
19789 #include <langinfo.h>
19790 int
19791 main ()
19792 {
19793 char* cs = nl_langinfo(CODESET);
19794   ;
19795   return 0;
19796 }
19797 _ACEOF
19798 if ac_fn_c_try_link "$LINENO"; then :
19799   am_cv_langinfo_codeset=yes
19800 else
19801   am_cv_langinfo_codeset=no
19802 fi
19803 rm -f core conftest.err conftest.$ac_objext \
19804     conftest$ac_exeext conftest.$ac_ext
19805
19806 fi
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19808 $as_echo "$am_cv_langinfo_codeset" >&6; }
19809   if test $am_cv_langinfo_codeset = yes; then
19810
19811 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19812
19813   fi
19814
19815   if test $ac_cv_header_locale_h = yes; then
19816
19817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19818 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19819 if ${gt_cv_val_LC_MESSAGES+:} false; then :
19820   $as_echo_n "(cached) " >&6
19821 else
19822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h.  */
19824 #include <locale.h>
19825 int
19826 main ()
19827 {
19828 return LC_MESSAGES
19829   ;
19830   return 0;
19831 }
19832 _ACEOF
19833 if ac_fn_c_try_link "$LINENO"; then :
19834   gt_cv_val_LC_MESSAGES=yes
19835 else
19836   gt_cv_val_LC_MESSAGES=no
19837 fi
19838 rm -f core conftest.err conftest.$ac_objext \
19839     conftest$ac_exeext conftest.$ac_ext
19840 fi
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19842 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19843   if test $gt_cv_val_LC_MESSAGES = yes; then
19844
19845 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19846
19847   fi
19848
19849   fi
19850
19851   if test -n "$INTL_MACOSX_LIBS"; then
19852     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19853   fi
19854
19855                       for ac_prog in bison
19856 do
19857   # Extract the first word of "$ac_prog", so it can be a program name with args.
19858 set dummy $ac_prog; ac_word=$2
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19860 $as_echo_n "checking for $ac_word... " >&6; }
19861 if ${ac_cv_prog_INTLBISON+:} false; then :
19862   $as_echo_n "(cached) " >&6
19863 else
19864   if test -n "$INTLBISON"; then
19865   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19866 else
19867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19868 for as_dir in $PATH
19869 do
19870   IFS=$as_save_IFS
19871   test -z "$as_dir" && as_dir=.
19872     for ac_exec_ext in '' $ac_executable_extensions; do
19873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19874     ac_cv_prog_INTLBISON="$ac_prog"
19875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19876     break 2
19877   fi
19878 done
19879   done
19880 IFS=$as_save_IFS
19881
19882 fi
19883 fi
19884 INTLBISON=$ac_cv_prog_INTLBISON
19885 if test -n "$INTLBISON"; then
19886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19887 $as_echo "$INTLBISON" >&6; }
19888 else
19889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19890 $as_echo "no" >&6; }
19891 fi
19892
19893
19894   test -n "$INTLBISON" && break
19895 done
19896
19897   if test -z "$INTLBISON"; then
19898     ac_verc_fail=yes
19899   else
19900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19901 $as_echo_n "checking version of bison... " >&6; }
19902     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19903     case $ac_prog_version in
19904       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19905       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19906          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19907       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19908     esac
19909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19910 $as_echo "$ac_prog_version" >&6; }
19911   fi
19912   if test $ac_verc_fail = yes; then
19913     INTLBISON=:
19914   fi
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19932 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19933 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19934   $as_echo_n "(cached) " >&6
19935 else
19936   gt_save_CPPFLAGS="$CPPFLAGS"
19937      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19938      gt_save_LIBS="$LIBS"
19939      LIBS="$LIBS -framework CoreFoundation"
19940      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19941 /* end confdefs.h.  */
19942 #include <CFPreferences.h>
19943 int
19944 main ()
19945 {
19946 CFPreferencesCopyAppValue(NULL, NULL)
19947   ;
19948   return 0;
19949 }
19950 _ACEOF
19951 if ac_fn_c_try_link "$LINENO"; then :
19952   gt_cv_func_CFPreferencesCopyAppValue=yes
19953 else
19954   gt_cv_func_CFPreferencesCopyAppValue=no
19955 fi
19956 rm -f core conftest.err conftest.$ac_objext \
19957     conftest$ac_exeext conftest.$ac_ext
19958      CPPFLAGS="$gt_save_CPPFLAGS"
19959      LIBS="$gt_save_LIBS"
19960 fi
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19962 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19963   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19964
19965 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19966
19967   fi
19968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19969 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19970 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19971   $as_echo_n "(cached) " >&6
19972 else
19973   gt_save_CPPFLAGS="$CPPFLAGS"
19974      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19975      gt_save_LIBS="$LIBS"
19976      LIBS="$LIBS -framework CoreFoundation"
19977      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19978 /* end confdefs.h.  */
19979 #include <CFLocale.h>
19980 int
19981 main ()
19982 {
19983 CFLocaleCopyCurrent();
19984   ;
19985   return 0;
19986 }
19987 _ACEOF
19988 if ac_fn_c_try_link "$LINENO"; then :
19989   gt_cv_func_CFLocaleCopyCurrent=yes
19990 else
19991   gt_cv_func_CFLocaleCopyCurrent=no
19992 fi
19993 rm -f core conftest.err conftest.$ac_objext \
19994     conftest$ac_exeext conftest.$ac_ext
19995      CPPFLAGS="$gt_save_CPPFLAGS"
19996      LIBS="$gt_save_LIBS"
19997 fi
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19999 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20000   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20001
20002 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
20003
20004   fi
20005   INTL_MACOSX_LIBS=
20006   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20007     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20008   fi
20009
20010
20011
20012
20013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20014 $as_echo_n "checking whether NLS is requested... " >&6; }
20015     # Check whether --enable-nls was given.
20016 if test "${enable_nls+set}" = set; then :
20017   enableval=$enable_nls; USE_NLS=$enableval
20018 else
20019   USE_NLS=yes
20020 fi
20021
20022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20023 $as_echo "$USE_NLS" >&6; }
20024
20025
20026
20027
20028     BUILD_INCLUDED_LIBINTL=no
20029     USE_INCLUDED_LIBINTL=no
20030
20031   LIBINTL=
20032   LTLIBINTL=
20033   POSUB=
20034
20035     if test "$USE_NLS" = "yes"; then
20036     gt_use_preinstalled_gnugettext=no
20037
20038       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20039 $as_echo_n "checking whether included gettext is requested... " >&6; }
20040
20041 # Check whether --with-included-gettext was given.
20042 if test "${with_included_gettext+set}" = set; then :
20043   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20044 else
20045   nls_cv_force_use_gnu_gettext=no
20046 fi
20047
20048       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20049 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20050
20051       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20052       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20053
20054
20055
20056
20057
20058
20059         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20060 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20061 if ${gt_cv_func_gnugettext1_libc+:} false; then :
20062   $as_echo_n "(cached) " >&6
20063 else
20064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20065 /* end confdefs.h.  */
20066 #include <libintl.h>
20067 extern int _nl_msg_cat_cntr;
20068 extern int *_nl_domain_bindings;
20069 int
20070 main ()
20071 {
20072 bindtextdomain ("", "");
20073 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20074   ;
20075   return 0;
20076 }
20077 _ACEOF
20078 if ac_fn_c_try_link "$LINENO"; then :
20079   gt_cv_func_gnugettext1_libc=yes
20080 else
20081   gt_cv_func_gnugettext1_libc=no
20082 fi
20083 rm -f core conftest.err conftest.$ac_objext \
20084     conftest$ac_exeext conftest.$ac_ext
20085 fi
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20087 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20088
20089         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20090
20091
20092
20093     use_additional=yes
20094
20095   acl_save_prefix="$prefix"
20096   prefix="$acl_final_prefix"
20097   acl_save_exec_prefix="$exec_prefix"
20098   exec_prefix="$acl_final_exec_prefix"
20099
20100     eval additional_includedir=\"$includedir\"
20101     eval additional_libdir=\"$libdir\"
20102
20103   exec_prefix="$acl_save_exec_prefix"
20104   prefix="$acl_save_prefix"
20105
20106
20107 # Check whether --with-libintl-prefix was given.
20108 if test "${with_libintl_prefix+set}" = set; then :
20109   withval=$with_libintl_prefix;
20110     if test "X$withval" = "Xno"; then
20111       use_additional=no
20112     else
20113       if test "X$withval" = "X"; then
20114
20115   acl_save_prefix="$prefix"
20116   prefix="$acl_final_prefix"
20117   acl_save_exec_prefix="$exec_prefix"
20118   exec_prefix="$acl_final_exec_prefix"
20119
20120           eval additional_includedir=\"$includedir\"
20121           eval additional_libdir=\"$libdir\"
20122
20123   exec_prefix="$acl_save_exec_prefix"
20124   prefix="$acl_save_prefix"
20125
20126       else
20127         additional_includedir="$withval/include"
20128         additional_libdir="$withval/lib"
20129       fi
20130     fi
20131
20132 fi
20133
20134       LIBINTL=
20135   LTLIBINTL=
20136   INCINTL=
20137   rpathdirs=
20138   ltrpathdirs=
20139   names_already_handled=
20140   names_next_round='intl '
20141   while test -n "$names_next_round"; do
20142     names_this_round="$names_next_round"
20143     names_next_round=
20144     for name in $names_this_round; do
20145       already_handled=
20146       for n in $names_already_handled; do
20147         if test "$n" = "$name"; then
20148           already_handled=yes
20149           break
20150         fi
20151       done
20152       if test -z "$already_handled"; then
20153         names_already_handled="$names_already_handled $name"
20154                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20155         eval value=\"\$HAVE_LIB$uppername\"
20156         if test -n "$value"; then
20157           if test "$value" = yes; then
20158             eval value=\"\$LIB$uppername\"
20159             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20160             eval value=\"\$LTLIB$uppername\"
20161             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20162           else
20163                                     :
20164           fi
20165         else
20166                               found_dir=
20167           found_la=
20168           found_so=
20169           found_a=
20170           if test $use_additional = yes; then
20171             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20172               found_dir="$additional_libdir"
20173               found_so="$additional_libdir/lib$name.$shlibext"
20174               if test -f "$additional_libdir/lib$name.la"; then
20175                 found_la="$additional_libdir/lib$name.la"
20176               fi
20177             else
20178               if test -f "$additional_libdir/lib$name.$libext"; then
20179                 found_dir="$additional_libdir"
20180                 found_a="$additional_libdir/lib$name.$libext"
20181                 if test -f "$additional_libdir/lib$name.la"; then
20182                   found_la="$additional_libdir/lib$name.la"
20183                 fi
20184               fi
20185             fi
20186           fi
20187           if test "X$found_dir" = "X"; then
20188             for x in $LDFLAGS $LTLIBINTL; do
20189
20190   acl_save_prefix="$prefix"
20191   prefix="$acl_final_prefix"
20192   acl_save_exec_prefix="$exec_prefix"
20193   exec_prefix="$acl_final_exec_prefix"
20194   eval x=\"$x\"
20195   exec_prefix="$acl_save_exec_prefix"
20196   prefix="$acl_save_prefix"
20197
20198               case "$x" in
20199                 -L*)
20200                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20201                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20202                     found_dir="$dir"
20203                     found_so="$dir/lib$name.$shlibext"
20204                     if test -f "$dir/lib$name.la"; then
20205                       found_la="$dir/lib$name.la"
20206                     fi
20207                   else
20208                     if test -f "$dir/lib$name.$libext"; then
20209                       found_dir="$dir"
20210                       found_a="$dir/lib$name.$libext"
20211                       if test -f "$dir/lib$name.la"; then
20212                         found_la="$dir/lib$name.la"
20213                       fi
20214                     fi
20215                   fi
20216                   ;;
20217               esac
20218               if test "X$found_dir" != "X"; then
20219                 break
20220               fi
20221             done
20222           fi
20223           if test "X$found_dir" != "X"; then
20224                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20225             if test "X$found_so" != "X"; then
20226                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20227                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20228               else
20229                                                                                 haveit=
20230                 for x in $ltrpathdirs; do
20231                   if test "X$x" = "X$found_dir"; then
20232                     haveit=yes
20233                     break
20234                   fi
20235                 done
20236                 if test -z "$haveit"; then
20237                   ltrpathdirs="$ltrpathdirs $found_dir"
20238                 fi
20239                                 if test "$hardcode_direct" = yes; then
20240                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20241                 else
20242                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20243                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20244                                                             haveit=
20245                     for x in $rpathdirs; do
20246                       if test "X$x" = "X$found_dir"; then
20247                         haveit=yes
20248                         break
20249                       fi
20250                     done
20251                     if test -z "$haveit"; then
20252                       rpathdirs="$rpathdirs $found_dir"
20253                     fi
20254                   else
20255                                                                                 haveit=
20256                     for x in $LDFLAGS $LIBINTL; do
20257
20258   acl_save_prefix="$prefix"
20259   prefix="$acl_final_prefix"
20260   acl_save_exec_prefix="$exec_prefix"
20261   exec_prefix="$acl_final_exec_prefix"
20262   eval x=\"$x\"
20263   exec_prefix="$acl_save_exec_prefix"
20264   prefix="$acl_save_prefix"
20265
20266                       if test "X$x" = "X-L$found_dir"; then
20267                         haveit=yes
20268                         break
20269                       fi
20270                     done
20271                     if test -z "$haveit"; then
20272                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20273                     fi
20274                     if test "$hardcode_minus_L" != no; then
20275                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20276                     else
20277                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20278                     fi
20279                   fi
20280                 fi
20281               fi
20282             else
20283               if test "X$found_a" != "X"; then
20284                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20285               else
20286                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20287               fi
20288             fi
20289                         additional_includedir=
20290             case "$found_dir" in
20291               */lib | */lib/)
20292                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20293                 additional_includedir="$basedir/include"
20294                 ;;
20295             esac
20296             if test "X$additional_includedir" != "X"; then
20297                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20298                 haveit=
20299                 if test "X$additional_includedir" = "X/usr/local/include"; then
20300                   if test -n "$GCC"; then
20301                     case $host_os in
20302                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20303                     esac
20304                   fi
20305                 fi
20306                 if test -z "$haveit"; then
20307                   for x in $CPPFLAGS $INCINTL; do
20308
20309   acl_save_prefix="$prefix"
20310   prefix="$acl_final_prefix"
20311   acl_save_exec_prefix="$exec_prefix"
20312   exec_prefix="$acl_final_exec_prefix"
20313   eval x=\"$x\"
20314   exec_prefix="$acl_save_exec_prefix"
20315   prefix="$acl_save_prefix"
20316
20317                     if test "X$x" = "X-I$additional_includedir"; then
20318                       haveit=yes
20319                       break
20320                     fi
20321                   done
20322                   if test -z "$haveit"; then
20323                     if test -d "$additional_includedir"; then
20324                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20325                     fi
20326                   fi
20327                 fi
20328               fi
20329             fi
20330                         if test -n "$found_la"; then
20331                                                         save_libdir="$libdir"
20332               case "$found_la" in
20333                 */* | *\\*) . "$found_la" ;;
20334                 *) . "./$found_la" ;;
20335               esac
20336               libdir="$save_libdir"
20337                             for dep in $dependency_libs; do
20338                 case "$dep" in
20339                   -L*)
20340                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20341                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20342                       haveit=
20343                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20344                         if test -n "$GCC"; then
20345                           case $host_os in
20346                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20347                           esac
20348                         fi
20349                       fi
20350                       if test -z "$haveit"; then
20351                         haveit=
20352                         for x in $LDFLAGS $LIBINTL; do
20353
20354   acl_save_prefix="$prefix"
20355   prefix="$acl_final_prefix"
20356   acl_save_exec_prefix="$exec_prefix"
20357   exec_prefix="$acl_final_exec_prefix"
20358   eval x=\"$x\"
20359   exec_prefix="$acl_save_exec_prefix"
20360   prefix="$acl_save_prefix"
20361
20362                           if test "X$x" = "X-L$additional_libdir"; then
20363                             haveit=yes
20364                             break
20365                           fi
20366                         done
20367                         if test -z "$haveit"; then
20368                           if test -d "$additional_libdir"; then
20369                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20370                           fi
20371                         fi
20372                         haveit=
20373                         for x in $LDFLAGS $LTLIBINTL; do
20374
20375   acl_save_prefix="$prefix"
20376   prefix="$acl_final_prefix"
20377   acl_save_exec_prefix="$exec_prefix"
20378   exec_prefix="$acl_final_exec_prefix"
20379   eval x=\"$x\"
20380   exec_prefix="$acl_save_exec_prefix"
20381   prefix="$acl_save_prefix"
20382
20383                           if test "X$x" = "X-L$additional_libdir"; then
20384                             haveit=yes
20385                             break
20386                           fi
20387                         done
20388                         if test -z "$haveit"; then
20389                           if test -d "$additional_libdir"; then
20390                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20391                           fi
20392                         fi
20393                       fi
20394                     fi
20395                     ;;
20396                   -R*)
20397                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20398                     if test "$enable_rpath" != no; then
20399                                                                   haveit=
20400                       for x in $rpathdirs; do
20401                         if test "X$x" = "X$dir"; then
20402                           haveit=yes
20403                           break
20404                         fi
20405                       done
20406                       if test -z "$haveit"; then
20407                         rpathdirs="$rpathdirs $dir"
20408                       fi
20409                                                                   haveit=
20410                       for x in $ltrpathdirs; do
20411                         if test "X$x" = "X$dir"; then
20412                           haveit=yes
20413                           break
20414                         fi
20415                       done
20416                       if test -z "$haveit"; then
20417                         ltrpathdirs="$ltrpathdirs $dir"
20418                       fi
20419                     fi
20420                     ;;
20421                   -l*)
20422                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20423                     ;;
20424                   *.la)
20425                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20426                     ;;
20427                   *)
20428                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20429                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20430                     ;;
20431                 esac
20432               done
20433             fi
20434           else
20435                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20436             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20437           fi
20438         fi
20439       fi
20440     done
20441   done
20442   if test "X$rpathdirs" != "X"; then
20443     if test -n "$hardcode_libdir_separator"; then
20444                         alldirs=
20445       for found_dir in $rpathdirs; do
20446         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20447       done
20448             acl_save_libdir="$libdir"
20449       libdir="$alldirs"
20450       eval flag=\"$hardcode_libdir_flag_spec\"
20451       libdir="$acl_save_libdir"
20452       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20453     else
20454             for found_dir in $rpathdirs; do
20455         acl_save_libdir="$libdir"
20456         libdir="$found_dir"
20457         eval flag=\"$hardcode_libdir_flag_spec\"
20458         libdir="$acl_save_libdir"
20459         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20460       done
20461     fi
20462   fi
20463   if test "X$ltrpathdirs" != "X"; then
20464             for found_dir in $ltrpathdirs; do
20465       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20466     done
20467   fi
20468
20469           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20470 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20471 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
20472   $as_echo_n "(cached) " >&6
20473 else
20474   gt_save_CPPFLAGS="$CPPFLAGS"
20475             CPPFLAGS="$CPPFLAGS $INCINTL"
20476             gt_save_LIBS="$LIBS"
20477             LIBS="$LIBS $LIBINTL"
20478                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20479 /* end confdefs.h.  */
20480 #include <libintl.h>
20481 extern int _nl_msg_cat_cntr;
20482 extern
20483 #ifdef __cplusplus
20484 "C"
20485 #endif
20486 const char *_nl_expand_alias (const char *);
20487 int
20488 main ()
20489 {
20490 bindtextdomain ("", "");
20491 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20492   ;
20493   return 0;
20494 }
20495 _ACEOF
20496 if ac_fn_c_try_link "$LINENO"; then :
20497   gt_cv_func_gnugettext1_libintl=yes
20498 else
20499   gt_cv_func_gnugettext1_libintl=no
20500 fi
20501 rm -f core conftest.err conftest.$ac_objext \
20502     conftest$ac_exeext conftest.$ac_ext
20503                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20504               LIBS="$LIBS $LIBICONV"
20505               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h.  */
20507 #include <libintl.h>
20508 extern int _nl_msg_cat_cntr;
20509 extern
20510 #ifdef __cplusplus
20511 "C"
20512 #endif
20513 const char *_nl_expand_alias (const char *);
20514 int
20515 main ()
20516 {
20517 bindtextdomain ("", "");
20518 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20519   ;
20520   return 0;
20521 }
20522 _ACEOF
20523 if ac_fn_c_try_link "$LINENO"; then :
20524   LIBINTL="$LIBINTL $LIBICONV"
20525                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20526                 gt_cv_func_gnugettext1_libintl=yes
20527
20528 fi
20529 rm -f core conftest.err conftest.$ac_objext \
20530     conftest$ac_exeext conftest.$ac_ext
20531             fi
20532             CPPFLAGS="$gt_save_CPPFLAGS"
20533             LIBS="$gt_save_LIBS"
20534 fi
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20536 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20537         fi
20538
20539                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20540            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20541                 && test "$PACKAGE" != gettext-runtime \
20542                 && test "$PACKAGE" != gettext-tools; }; then
20543           gt_use_preinstalled_gnugettext=yes
20544         else
20545                     LIBINTL=
20546           LTLIBINTL=
20547           INCINTL=
20548         fi
20549
20550
20551         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20552                               nls_cv_use_gnu_gettext=yes
20553         fi
20554       fi
20555
20556       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20557                 BUILD_INCLUDED_LIBINTL=yes
20558         USE_INCLUDED_LIBINTL=yes
20559         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20560         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20561         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20562       fi
20563
20564       CATOBJEXT=
20565       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20566          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20567                 CATOBJEXT=.gmo
20568       fi
20569
20570
20571     if test -n "$INTL_MACOSX_LIBS"; then
20572       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20573          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20574                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20575         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20576       fi
20577     fi
20578
20579     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20580        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20581
20582 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20583
20584     else
20585       USE_NLS=no
20586     fi
20587   fi
20588
20589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20590 $as_echo_n "checking whether to use NLS... " >&6; }
20591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20592 $as_echo "$USE_NLS" >&6; }
20593   if test "$USE_NLS" = "yes"; then
20594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20595 $as_echo_n "checking where the gettext function comes from... " >&6; }
20596     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20597       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20598         gt_source="external libintl"
20599       else
20600         gt_source="libc"
20601       fi
20602     else
20603       gt_source="included intl directory"
20604     fi
20605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20606 $as_echo "$gt_source" >&6; }
20607   fi
20608
20609   if test "$USE_NLS" = "yes"; then
20610
20611     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20612       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20614 $as_echo_n "checking how to link with libintl... " >&6; }
20615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20616 $as_echo "$LIBINTL" >&6; }
20617
20618   for element in $INCINTL; do
20619     haveit=
20620     for x in $CPPFLAGS; do
20621
20622   acl_save_prefix="$prefix"
20623   prefix="$acl_final_prefix"
20624   acl_save_exec_prefix="$exec_prefix"
20625   exec_prefix="$acl_final_exec_prefix"
20626   eval x=\"$x\"
20627   exec_prefix="$acl_save_exec_prefix"
20628   prefix="$acl_save_prefix"
20629
20630       if test "X$x" = "X$element"; then
20631         haveit=yes
20632         break
20633       fi
20634     done
20635     if test -z "$haveit"; then
20636       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20637     fi
20638   done
20639
20640       fi
20641
20642
20643 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20644
20645
20646 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20647
20648     fi
20649
20650         POSUB=po
20651   fi
20652
20653
20654             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20655       BUILD_INCLUDED_LIBINTL=yes
20656     fi
20657
20658
20659
20660
20661
20662         nls_cv_header_intl=
20663     nls_cv_header_libgt=
20664
20665         DATADIRNAME=share
20666
20667
20668         INSTOBJEXT=.mo
20669
20670
20671         GENCAT=gencat
20672
20673
20674         INTLOBJS=
20675     if test "$USE_INCLUDED_LIBINTL" = yes; then
20676       INTLOBJS="\$(GETTOBJS)"
20677     fi
20678
20679
20680         INTL_LIBTOOL_SUFFIX_PREFIX=
20681
20682
20683
20684     INTLLIBS="$LIBINTL"
20685
20686
20687
20688
20689
20690
20691 fi
20692
20693 support_smartalloc=yes
20694 support_readline=yes
20695 support_conio=yes
20696 support_gnome=no
20697 support_bat=no
20698 support_wx_console=no
20699 support_tray_monitor=no
20700 support_tls=no
20701 support_crypto=no
20702 gnome_version=
20703 wx_version=
20704 support_static_tools=no
20705 support_static_fd=no
20706 support_static_sd=no
20707 support_static_dir=no
20708 support_static_cons=no
20709 support_python=no
20710 build_client_only=no
20711 build_dird=yes
20712 build_stored=yes
20713 db_backends=""
20714 support_lockmgr=no
20715
20716
20717 # Check whether --enable-gnome was given.
20718 if test "${enable_gnome+set}" = set; then :
20719   enableval=$enable_gnome;
20720        if test x$enableval = xyes; then
20721           support_gnome=yes
20722        fi
20723
20724
20725 fi
20726
20727
20728 GNOME_DIR=
20729 if test x$support_gnome = xyes; then
20730    as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
20731    as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
20732 fi
20733 # AC_SUBST(GNOME_DIR)
20734
20735 # Check whether --enable-bat was given.
20736 if test "${enable_bat+set}" = set; then :
20737   enableval=$enable_bat;
20738        if test x$enableval = xyes; then
20739
20740 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20741
20742           support_bat=yes
20743        fi
20744
20745
20746 fi
20747
20748
20749 BAT_DIR=
20750 if test x$support_bat = xyes; then
20751    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20752    pkg=$?
20753    if test $pkg = 0; then
20754       BAT_DIR=src/qt-console
20755    else
20756       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20757    fi
20758 fi
20759
20760 got_qwt=no
20761 QWT_INC=
20762 QWT_LDFLAGS=
20763 QWT_LIB=
20764 QWT=
20765 no_qwt=no
20766
20767
20768
20769
20770
20771
20772
20773
20774 # Check whether --enable-bwx-console was given.
20775 if test "${enable_bwx_console+set}" = set; then :
20776   enableval=$enable_bwx_console;
20777        if test x$enableval = xyes; then
20778           support_wx_console=yes
20779        fi
20780
20781
20782 fi
20783
20784
20785 WX_DIR=
20786 if test x$support_wx_console = xyes; then
20787    abc=`$WXCONFIG $WXFLAGS --cppflags`
20788    pkg=$?
20789    if test $pkg = 0; then
20790       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20791       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20792       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20793
20794
20795
20796       WX_DIR="src/wx-console"
20797    else
20798       echo " "
20799       echo "wx-config program not found. bwx-console disabled."
20800       echo " "
20801       support_wx_console=no
20802    fi
20803 fi
20804
20805
20806 # Check whether --enable-tray-monitor was given.
20807 if test "${enable_tray_monitor+set}" = set; then :
20808   enableval=$enable_tray_monitor;
20809        if test x$enableval = xyes; then
20810           support_tray_monitor=yes
20811        fi
20812
20813
20814 fi
20815
20816
20817 TRAY_MONITOR_DIR=
20818 if test x$support_tray_monitor = xyes; then
20819    abc=`$PKGCONFIG --exists gtk+-2.0`
20820    pkg=$?
20821    if test $pkg = 0; then
20822       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20823       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20824
20825
20826       TRAY_MONITOR_DIR=src/tray-monitor
20827       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20828       pkg=$?
20829       if test $pkg = 0; then
20830
20831 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20832
20833       fi
20834    fi
20835 fi
20836
20837
20838 # Check whether --enable-smartalloc was given.
20839 if test "${enable_smartalloc+set}" = set; then :
20840   enableval=$enable_smartalloc;
20841        if test x$enableval = xno; then
20842           support_smartalloc=no
20843        fi
20844
20845
20846 fi
20847
20848
20849 if test x$support_smartalloc = xyes; then
20850
20851 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20852
20853 fi
20854
20855 # Check whether --enable-lockmgr was given.
20856 if test "${enable_lockmgr+set}" = set; then :
20857   enableval=$enable_lockmgr;
20858        if test x$enableval = xyes; then
20859           support_lockmgr=yes
20860        fi
20861
20862
20863 fi
20864
20865
20866 if test x$support_lockmgr = xyes; then
20867
20868 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20869
20870 fi
20871
20872
20873 # Check whether --enable-static-tools was given.
20874 if test "${enable_static_tools+set}" = set; then :
20875   enableval=$enable_static_tools;
20876        if test x$enableval = xyes; then
20877           if test x$use_libtool = xyes; then
20878              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20879   please rerun configure with --disable-libtool" "$LINENO" 5
20880           fi
20881           support_static_tools=yes
20882        fi
20883
20884
20885 fi
20886
20887
20888 TTOOL_LDFLAGS=
20889 if test x$support_static_tools = xyes; then
20890    TTOOL_LDFLAGS="-static"
20891 fi
20892
20893
20894 # Check whether --enable-static-fd was given.
20895 if test "${enable_static_fd+set}" = set; then :
20896   enableval=$enable_static_fd;
20897        if test x$enableval = xyes; then
20898           if test x$use_libtool = xyes; then
20899              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20900   please rerun configure with --disable-libtool" "$LINENO" 5
20901           fi
20902           support_static_fd=yes
20903        fi
20904
20905
20906 fi
20907
20908
20909 STATIC_FD=
20910 if test x$support_static_fd = xyes; then
20911    STATIC_FD="static-bacula-fd"
20912 fi
20913
20914
20915 # Check whether --enable-static-sd was given.
20916 if test "${enable_static_sd+set}" = set; then :
20917   enableval=$enable_static_sd;
20918        if test x$enableval = xyes; then
20919           if test x$use_libtool = xyes; then
20920              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20921   please rerun configure with --disable-libtool" "$LINENO" 5
20922           fi
20923           support_static_sd=yes
20924        fi
20925
20926
20927 fi
20928
20929
20930 STATIC_SD=
20931 if test x$support_static_sd = xyes; then
20932    STATIC_SD="static-bacula-sd"
20933 fi
20934
20935
20936 # Check whether --enable-static-dir was given.
20937 if test "${enable_static_dir+set}" = set; then :
20938   enableval=$enable_static_dir;
20939        if test x$enableval = xyes; then
20940           if test x$use_libtool = xyes; then
20941              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20942   please rerun configure with --disable-libtool" "$LINENO" 5
20943           fi
20944           support_static_dir=yes
20945        fi
20946
20947
20948 fi
20949
20950
20951 STATIC_DIR=
20952 if test x$support_static_dir = xyes; then
20953    STATIC_DIR="static-bacula-dir"
20954 fi
20955
20956
20957 # Check whether --enable-static-cons was given.
20958 if test "${enable_static_cons+set}" = set; then :
20959   enableval=$enable_static_cons;
20960        if test x$enableval = xyes; then
20961           if test x$use_libtool = xyes; then
20962              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20963   please rerun configure with --disable-libtool" "$LINENO" 5
20964           fi
20965           support_static_cons=yes
20966        fi
20967
20968
20969 fi
20970
20971
20972 STATIC_CONS=
20973 STATIC_GNOME_CONS=
20974 STATIC_WX_CONS=
20975 if test x$support_static_cons = xyes; then
20976    STATIC_CONS="static-bconsole"
20977    STATIC_GNOME_CONS="static-bgnome-console"
20978    STATIC_WX_CONS="static-bwx-console"
20979 fi
20980
20981
20982
20983
20984 # Check whether --enable-client-only was given.
20985 if test "${enable_client_only+set}" = set; then :
20986   enableval=$enable_client_only;
20987        if test x$enableval = xyes; then
20988           build_client_only=yes
20989           db_backends="None"
20990           DB_BACKENDS="none"
20991        fi
20992
20993
20994 fi
20995
20996 if test x$build_client_only = xno; then
20997    ALL_DIRS="subdirs"
20998 else
20999    ALL_DIRS=""
21000 fi
21001
21002
21003 # Check whether --enable-build-dird was given.
21004 if test "${enable_build_dird+set}" = set; then :
21005   enableval=$enable_build_dird;
21006        if test x$enableval = xno; then
21007           build_dird=no
21008        fi
21009
21010
21011 fi
21012
21013 if test x$build_dird = xyes; then
21014    DIRD_DIR="src/dird"
21015    DIR_TOOLS="DIRTOOLS"
21016 else
21017    DIRD_DIR=""
21018    DIR_TOOLS="NODIRTOOLS"
21019 fi
21020
21021
21022
21023 # Check whether --enable-build-stored was given.
21024 if test "${enable_build_stored+set}" = set; then :
21025   enableval=$enable_build_stored;
21026       if test x$enableval = xno; then
21027          build_stored=no
21028       fi
21029
21030
21031 fi
21032
21033 if test x$build_stored = xyes; then
21034    STORED_DIR="src/stored"
21035 else
21036    STORED_DIR=""
21037 fi
21038
21039
21040 # Check whether --enable-conio was given.
21041 if test "${enable_conio+set}" = set; then :
21042   enableval=$enable_conio;
21043        if test x$enableval = xno; then
21044           support_conio=no
21045        fi
21046
21047
21048 fi
21049
21050
21051
21052 support_ipv6=yes
21053 # Check whether --enable-ipv6 was given.
21054 if test "${enable_ipv6+set}" = set; then :
21055   enableval=$enable_ipv6;
21056        if test x$enableval = xno; then
21057           support_ipv6=no
21058        fi
21059
21060
21061 fi
21062
21063
21064 if test x$support_ipv6 = xyes; then
21065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21066 /* end confdefs.h.  */
21067  #include <sys/types.h>
21068 #include <sys/socket.h>
21069 #include <netinet/in.h>
21070 int
21071 main ()
21072 {
21073 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21074   ;
21075   return 0;
21076 }
21077 _ACEOF
21078 if ac_fn_c_try_link "$LINENO"; then :
21079   support_ipv6=yes
21080 else
21081   support_ipv6=no
21082 fi
21083 rm -f core conftest.err conftest.$ac_objext \
21084     conftest$ac_exeext conftest.$ac_ext
21085 fi
21086
21087 if test x$support_ipv6 = xyes; then
21088
21089 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21090
21091 fi
21092
21093 TERM_LIB=""
21094 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21095 if test "x$ac_cv_header_curses_h" = xyes; then :
21096
21097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21098 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21099 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
21100   $as_echo_n "(cached) " >&6
21101 else
21102   ac_check_lib_save_LIBS=$LIBS
21103 LIBS="-ltinfo  $LIBS"
21104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21105 /* end confdefs.h.  */
21106
21107 /* Override any GCC internal prototype to avoid an error.
21108    Use char because int might match the return type of a GCC
21109    builtin and then its argument prototype would still apply.  */
21110 #ifdef __cplusplus
21111 extern "C"
21112 #endif
21113 char tgetent ();
21114 int
21115 main ()
21116 {
21117 return tgetent ();
21118   ;
21119   return 0;
21120 }
21121 _ACEOF
21122 if ac_fn_c_try_link "$LINENO"; then :
21123   ac_cv_lib_tinfo_tgetent=yes
21124 else
21125   ac_cv_lib_tinfo_tgetent=no
21126 fi
21127 rm -f core conftest.err conftest.$ac_objext \
21128     conftest$ac_exeext conftest.$ac_ext
21129 LIBS=$ac_check_lib_save_LIBS
21130 fi
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21132 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21133 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
21134    TERM_LIB="-ltinfo"
21135 else
21136
21137       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21138 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21139 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21140   $as_echo_n "(cached) " >&6
21141 else
21142   ac_check_lib_save_LIBS=$LIBS
21143 LIBS="-lncurses  $LIBS"
21144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21145 /* end confdefs.h.  */
21146
21147 /* Override any GCC internal prototype to avoid an error.
21148    Use char because int might match the return type of a GCC
21149    builtin and then its argument prototype would still apply.  */
21150 #ifdef __cplusplus
21151 extern "C"
21152 #endif
21153 char tgetent ();
21154 int
21155 main ()
21156 {
21157 return tgetent ();
21158   ;
21159   return 0;
21160 }
21161 _ACEOF
21162 if ac_fn_c_try_link "$LINENO"; then :
21163   ac_cv_lib_ncurses_tgetent=yes
21164 else
21165   ac_cv_lib_ncurses_tgetent=no
21166 fi
21167 rm -f core conftest.err conftest.$ac_objext \
21168     conftest$ac_exeext conftest.$ac_ext
21169 LIBS=$ac_check_lib_save_LIBS
21170 fi
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21172 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21173 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21174    TERM_LIB="-lncurses"
21175 else
21176
21177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21178 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21179 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21180   $as_echo_n "(cached) " >&6
21181 else
21182   ac_check_lib_save_LIBS=$LIBS
21183 LIBS="-ltermcap  $LIBS"
21184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21185 /* end confdefs.h.  */
21186
21187 /* Override any GCC internal prototype to avoid an error.
21188    Use char because int might match the return type of a GCC
21189    builtin and then its argument prototype would still apply.  */
21190 #ifdef __cplusplus
21191 extern "C"
21192 #endif
21193 char tgetent ();
21194 int
21195 main ()
21196 {
21197 return tgetent ();
21198   ;
21199   return 0;
21200 }
21201 _ACEOF
21202 if ac_fn_c_try_link "$LINENO"; then :
21203   ac_cv_lib_termcap_tgetent=yes
21204 else
21205   ac_cv_lib_termcap_tgetent=no
21206 fi
21207 rm -f core conftest.err conftest.$ac_objext \
21208     conftest$ac_exeext conftest.$ac_ext
21209 LIBS=$ac_check_lib_save_LIBS
21210 fi
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21212 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21213 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21214    TERM_LIB="-ltermcap"
21215 fi
21216
21217
21218 fi
21219
21220
21221 fi
21222
21223
21224 else
21225     for ac_header in curses.h
21226 do :
21227   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21228 if test "x$ac_cv_header_curses_h" = xyes; then :
21229   cat >>confdefs.h <<_ACEOF
21230 #define HAVE_CURSES_H 1
21231 _ACEOF
21232
21233 fi
21234
21235 done
21236
21237      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21238 if test "x$ac_cv_header_term_h" = xyes; then :
21239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21240 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21241 if ${ac_cv_lib_curses_tgetent+:} false; then :
21242   $as_echo_n "(cached) " >&6
21243 else
21244   ac_check_lib_save_LIBS=$LIBS
21245 LIBS="-lcurses  $LIBS"
21246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21247 /* end confdefs.h.  */
21248
21249 /* Override any GCC internal prototype to avoid an error.
21250    Use char because int might match the return type of a GCC
21251    builtin and then its argument prototype would still apply.  */
21252 #ifdef __cplusplus
21253 extern "C"
21254 #endif
21255 char tgetent ();
21256 int
21257 main ()
21258 {
21259 return tgetent ();
21260   ;
21261   return 0;
21262 }
21263 _ACEOF
21264 if ac_fn_c_try_link "$LINENO"; then :
21265   ac_cv_lib_curses_tgetent=yes
21266 else
21267   ac_cv_lib_curses_tgetent=no
21268 fi
21269 rm -f core conftest.err conftest.$ac_objext \
21270     conftest$ac_exeext conftest.$ac_ext
21271 LIBS=$ac_check_lib_save_LIBS
21272 fi
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21274 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21275 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
21276    TERM_LIB="-lcurses"
21277 fi
21278
21279
21280 fi
21281
21282
21283
21284 fi
21285
21286
21287
21288
21289 got_conio="no"
21290 if test x$support_conio = xyes; then
21291    if test x$TERM_LIB != x; then
21292       CONS_LIBS=$TERM_LIB
21293       CONS_OBJ="conio.o"
21294       CONS_SRC="conio.c"
21295       got_conio="yes"
21296       support_readline=no
21297
21298 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21299
21300    else
21301       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21302    fi
21303 fi
21304
21305
21306 # Check whether --enable-readline was given.
21307 if test "${enable_readline+set}" = set; then :
21308   enableval=$enable_readline;
21309        if test x$enableval = xno; then
21310           support_readline=no
21311        fi
21312
21313
21314 fi
21315
21316 if test x$TERM_LIB = x ; then
21317    support_readline=no
21318 fi
21319
21320 got_readline="no"
21321 READLINE_SRC=
21322 if test x$support_readline = xyes; then
21323
21324 # Check whether --with-readline was given.
21325 if test "${with_readline+set}" = set; then :
21326   withval=$with_readline;
21327           case "$with_readline" in
21328           no)
21329              :
21330              ;;
21331           yes|*)
21332              if test -f ${with_readline}/readline.h; then
21333                 CONS_INC="-I${with_readline}"
21334                 CONS_LDFLAGS="-L$with_readline"
21335              elif test -f ${with_readline}/include/readline/readline.h; then
21336                 CONS_INC="-I${with_readline}/include/readline"
21337                 CONS_LDFLAGS="-L${with_readline}/lib"
21338                 with_readline="${with_readline}/include/readline"
21339              else
21340                 with_readline="/usr/include/readline"
21341              fi
21342
21343              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21344 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21345 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21346
21347
21348 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21349
21350                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21351                     got_readline="yes"
21352
21353 else
21354
21355                     echo " "
21356                     echo "readline.h not found. readline turned off ..."
21357                     echo " "
21358
21359
21360 fi
21361
21362
21363              ;;
21364           esac
21365
21366 else
21367
21368                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21369 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
21370
21371
21372 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21373
21374                 got_readline="yes"
21375                 CONS_INC="-I/usr/include/readline"
21376                 CONS_LIBS="-lreadline $TERM_LIB"
21377
21378 else
21379
21380                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21381 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21382 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21383
21384
21385 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21386
21387                         got_readline="yes"
21388                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21389                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21390                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21391                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21392
21393 else
21394
21395                         echo " "
21396                         echo "readline.h not found. readline turned off ..."
21397                         echo " "
21398
21399
21400 fi
21401
21402
21403
21404
21405 fi
21406
21407
21408
21409
21410 fi
21411
21412 fi
21413
21414
21415
21416
21417
21418
21419
21420
21421 MAKE_SHELL=/bin/sh
21422
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21424 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21425 if ${ac_cv_header_stat_broken+:} false; then :
21426   $as_echo_n "(cached) " >&6
21427 else
21428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21429 /* end confdefs.h.  */
21430 #include <sys/types.h>
21431 #include <sys/stat.h>
21432
21433 #if defined S_ISBLK && defined S_IFDIR
21434 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21435 #endif
21436
21437 #if defined S_ISBLK && defined S_IFCHR
21438 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21439 #endif
21440
21441 #if defined S_ISLNK && defined S_IFREG
21442 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21443 #endif
21444
21445 #if defined S_ISSOCK && defined S_IFREG
21446 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21447 #endif
21448
21449 _ACEOF
21450 if ac_fn_c_try_compile "$LINENO"; then :
21451   ac_cv_header_stat_broken=no
21452 else
21453   ac_cv_header_stat_broken=yes
21454 fi
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 fi
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21458 $as_echo "$ac_cv_header_stat_broken" >&6; }
21459 if test $ac_cv_header_stat_broken = yes; then
21460
21461 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21462
21463 fi
21464
21465 ac_header_dirent=no
21466 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21467   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21469 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21470 if eval \${$as_ac_Header+:} false; then :
21471   $as_echo_n "(cached) " >&6
21472 else
21473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21474 /* end confdefs.h.  */
21475 #include <sys/types.h>
21476 #include <$ac_hdr>
21477
21478 int
21479 main ()
21480 {
21481 if ((DIR *) 0)
21482 return 0;
21483   ;
21484   return 0;
21485 }
21486 _ACEOF
21487 if ac_fn_c_try_compile "$LINENO"; then :
21488   eval "$as_ac_Header=yes"
21489 else
21490   eval "$as_ac_Header=no"
21491 fi
21492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21493 fi
21494 eval ac_res=\$$as_ac_Header
21495                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21496 $as_echo "$ac_res" >&6; }
21497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21498   cat >>confdefs.h <<_ACEOF
21499 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21500 _ACEOF
21501
21502 ac_header_dirent=$ac_hdr; break
21503 fi
21504
21505 done
21506 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21507 if test $ac_header_dirent = dirent.h; then
21508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21509 $as_echo_n "checking for library containing opendir... " >&6; }
21510 if ${ac_cv_search_opendir+:} false; then :
21511   $as_echo_n "(cached) " >&6
21512 else
21513   ac_func_search_save_LIBS=$LIBS
21514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21515 /* end confdefs.h.  */
21516
21517 /* Override any GCC internal prototype to avoid an error.
21518    Use char because int might match the return type of a GCC
21519    builtin and then its argument prototype would still apply.  */
21520 #ifdef __cplusplus
21521 extern "C"
21522 #endif
21523 char opendir ();
21524 int
21525 main ()
21526 {
21527 return opendir ();
21528   ;
21529   return 0;
21530 }
21531 _ACEOF
21532 for ac_lib in '' dir; do
21533   if test -z "$ac_lib"; then
21534     ac_res="none required"
21535   else
21536     ac_res=-l$ac_lib
21537     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21538   fi
21539   if ac_fn_c_try_link "$LINENO"; then :
21540   ac_cv_search_opendir=$ac_res
21541 fi
21542 rm -f core conftest.err conftest.$ac_objext \
21543     conftest$ac_exeext
21544   if ${ac_cv_search_opendir+:} false; then :
21545   break
21546 fi
21547 done
21548 if ${ac_cv_search_opendir+:} false; then :
21549
21550 else
21551   ac_cv_search_opendir=no
21552 fi
21553 rm conftest.$ac_ext
21554 LIBS=$ac_func_search_save_LIBS
21555 fi
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21557 $as_echo "$ac_cv_search_opendir" >&6; }
21558 ac_res=$ac_cv_search_opendir
21559 if test "$ac_res" != no; then :
21560   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21561
21562 fi
21563
21564 else
21565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21566 $as_echo_n "checking for library containing opendir... " >&6; }
21567 if ${ac_cv_search_opendir+:} false; then :
21568   $as_echo_n "(cached) " >&6
21569 else
21570   ac_func_search_save_LIBS=$LIBS
21571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21572 /* end confdefs.h.  */
21573
21574 /* Override any GCC internal prototype to avoid an error.
21575    Use char because int might match the return type of a GCC
21576    builtin and then its argument prototype would still apply.  */
21577 #ifdef __cplusplus
21578 extern "C"
21579 #endif
21580 char opendir ();
21581 int
21582 main ()
21583 {
21584 return opendir ();
21585   ;
21586   return 0;
21587 }
21588 _ACEOF
21589 for ac_lib in '' x; do
21590   if test -z "$ac_lib"; then
21591     ac_res="none required"
21592   else
21593     ac_res=-l$ac_lib
21594     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21595   fi
21596   if ac_fn_c_try_link "$LINENO"; then :
21597   ac_cv_search_opendir=$ac_res
21598 fi
21599 rm -f core conftest.err conftest.$ac_objext \
21600     conftest$ac_exeext
21601   if ${ac_cv_search_opendir+:} false; then :
21602   break
21603 fi
21604 done
21605 if ${ac_cv_search_opendir+:} false; then :
21606
21607 else
21608   ac_cv_search_opendir=no
21609 fi
21610 rm conftest.$ac_ext
21611 LIBS=$ac_func_search_save_LIBS
21612 fi
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21614 $as_echo "$ac_cv_search_opendir" >&6; }
21615 ac_res=$ac_cv_search_opendir
21616 if test "$ac_res" != no; then :
21617   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21618
21619 fi
21620
21621 fi
21622
21623 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21624 do :
21625   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21626 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21627 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21628   cat >>confdefs.h <<_ACEOF
21629 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21630 _ACEOF
21631
21632 fi
21633 done
21634
21635 for ac_func in nanosleep nl_langinfo
21636 do :
21637   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21638 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21639 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21640   cat >>confdefs.h <<_ACEOF
21641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21642 _ACEOF
21643
21644 fi
21645 done
21646
21647 for ac_header in varargs.h
21648 do :
21649   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21650 if test "x$ac_cv_header_varargs_h" = xyes; then :
21651   cat >>confdefs.h <<_ACEOF
21652 #define HAVE_VARARGS_H 1
21653 _ACEOF
21654
21655 fi
21656
21657 done
21658
21659
21660
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21662 $as_echo_n "checking for Python support... " >&6; }
21663
21664 # Check whether --with-python was given.
21665 if test "${with_python+set}" = set; then :
21666   withval=$with_python;
21667        PYTHON_INCDIR=
21668        PYTHON_LIBS=
21669        if test "$withval" != "no"; then
21670           if test "$withval" = "yes"; then
21671              if test -e /usr/bin/python-config ; then
21672                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21673                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21674              else
21675                 for python_root in /usr /usr/local /usr/sfw; do
21676                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21677                       if test -f $python_root/include/${ver}/Python.h; then
21678                          PYTHON_INCDIR=-I$python_root/include/${ver}
21679                          if test -d $python_root/lib64/${ver}/config; then
21680                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21681                          else
21682                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21683                          fi
21684                          break
21685                       fi
21686                    done
21687                 done
21688
21689                 if test x$PYTHON_INCDIR = x; then
21690                    if test -f $prefix/include/Python.h; then
21691                       PYTHON_INCDIR=-I$prefix/include
21692                       if test -d $prefix/lib64/config; then
21693                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21694                       else
21695                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21696                       fi
21697                    else
21698                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21699 $as_echo "no" >&6; }
21700                       as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
21701                    fi
21702                 fi
21703              fi
21704           else
21705              if test -e $withval/bin/python-config ; then
21706                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21707                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21708              elif test -f $withval/Python.h; then
21709                 PYTHON_INCDIR=-I$withval
21710                 PYTHON_LIBS="-L$withval/config -lpython"
21711              elif test -f $withval/include/Python.h; then
21712                 PYTHON_INCDIR=-I$withval/include
21713                 if test -d $withval/lib64/config; then
21714                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21715                 else
21716                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21717                 fi
21718              elif test -f $withval/include/python/Python.h; then
21719                 PYTHON_INCDIR=-I$withval/include/python
21720                 if test -d $withval/lib64/python/config; then
21721                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21722                 else
21723                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21724                 fi
21725              else
21726                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21727 $as_echo "no" >&6; }
21728                 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21729              fi
21730           fi
21731
21732           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21733
21734           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21735 $as_echo "yes" >&6; }
21736           support_python=yes
21737           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21738 $as_echo "$as_me: checking for more Python libs" >&6;}
21739           saved_LIBS="$LIBS"; LIBS=
21740           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21741 $as_echo_n "checking for library containing shm_open... " >&6; }
21742 if ${ac_cv_search_shm_open+:} false; then :
21743   $as_echo_n "(cached) " >&6
21744 else
21745   ac_func_search_save_LIBS=$LIBS
21746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21747 /* end confdefs.h.  */
21748
21749 /* Override any GCC internal prototype to avoid an error.
21750    Use char because int might match the return type of a GCC
21751    builtin and then its argument prototype would still apply.  */
21752 #ifdef __cplusplus
21753 extern "C"
21754 #endif
21755 char shm_open ();
21756 int
21757 main ()
21758 {
21759 return shm_open ();
21760   ;
21761   return 0;
21762 }
21763 _ACEOF
21764 for ac_lib in '' rt; do
21765   if test -z "$ac_lib"; then
21766     ac_res="none required"
21767   else
21768     ac_res=-l$ac_lib
21769     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21770   fi
21771   if ac_fn_c_try_link "$LINENO"; then :
21772   ac_cv_search_shm_open=$ac_res
21773 fi
21774 rm -f core conftest.err conftest.$ac_objext \
21775     conftest$ac_exeext
21776   if ${ac_cv_search_shm_open+:} false; then :
21777   break
21778 fi
21779 done
21780 if ${ac_cv_search_shm_open+:} false; then :
21781
21782 else
21783   ac_cv_search_shm_open=no
21784 fi
21785 rm conftest.$ac_ext
21786 LIBS=$ac_func_search_save_LIBS
21787 fi
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21789 $as_echo "$ac_cv_search_shm_open" >&6; }
21790 ac_res=$ac_cv_search_shm_open
21791 if test "$ac_res" != no; then :
21792   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21793
21794 fi
21795
21796           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21797 $as_echo_n "checking for openpty in -lutil... " >&6; }
21798 if ${ac_cv_lib_util_openpty+:} false; then :
21799   $as_echo_n "(cached) " >&6
21800 else
21801   ac_check_lib_save_LIBS=$LIBS
21802 LIBS="-lutil  $LIBS"
21803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21804 /* end confdefs.h.  */
21805
21806 /* Override any GCC internal prototype to avoid an error.
21807    Use char because int might match the return type of a GCC
21808    builtin and then its argument prototype would still apply.  */
21809 #ifdef __cplusplus
21810 extern "C"
21811 #endif
21812 char openpty ();
21813 int
21814 main ()
21815 {
21816 return openpty ();
21817   ;
21818   return 0;
21819 }
21820 _ACEOF
21821 if ac_fn_c_try_link "$LINENO"; then :
21822   ac_cv_lib_util_openpty=yes
21823 else
21824   ac_cv_lib_util_openpty=no
21825 fi
21826 rm -f core conftest.err conftest.$ac_objext \
21827     conftest$ac_exeext conftest.$ac_ext
21828 LIBS=$ac_check_lib_save_LIBS
21829 fi
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21831 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21832 if test "x$ac_cv_lib_util_openpty" = xyes; then :
21833   cat >>confdefs.h <<_ACEOF
21834 #define HAVE_LIBUTIL 1
21835 _ACEOF
21836
21837   LIBS="-lutil $LIBS"
21838
21839 fi
21840
21841           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21842           LIBS="$saved_LIBS"
21843        else
21844           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21845 $as_echo "no" >&6; }
21846        fi
21847
21848 else
21849
21850        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21851 $as_echo "no" >&6; }
21852
21853
21854 fi
21855
21856
21857
21858
21859 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21860 if test "x$ac_cv_func_socket" = xyes; then :
21861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21862 $as_echo "using libc's socket" >&6; }
21863 else
21864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21865 $as_echo_n "checking for socket in -lxnet... " >&6; }
21866 if ${ac_cv_lib_xnet_socket+:} false; then :
21867   $as_echo_n "(cached) " >&6
21868 else
21869   ac_check_lib_save_LIBS=$LIBS
21870 LIBS="-lxnet  $LIBS"
21871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872 /* end confdefs.h.  */
21873
21874 /* Override any GCC internal prototype to avoid an error.
21875    Use char because int might match the return type of a GCC
21876    builtin and then its argument prototype would still apply.  */
21877 #ifdef __cplusplus
21878 extern "C"
21879 #endif
21880 char socket ();
21881 int
21882 main ()
21883 {
21884 return socket ();
21885   ;
21886   return 0;
21887 }
21888 _ACEOF
21889 if ac_fn_c_try_link "$LINENO"; then :
21890   ac_cv_lib_xnet_socket=yes
21891 else
21892   ac_cv_lib_xnet_socket=no
21893 fi
21894 rm -f core conftest.err conftest.$ac_objext \
21895     conftest$ac_exeext conftest.$ac_ext
21896 LIBS=$ac_check_lib_save_LIBS
21897 fi
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21899 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21900 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
21901   cat >>confdefs.h <<_ACEOF
21902 #define HAVE_LIBXNET 1
21903 _ACEOF
21904
21905   LIBS="-lxnet $LIBS"
21906
21907 fi
21908
21909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21910 $as_echo_n "checking for socket in -lsocket... " >&6; }
21911 if ${ac_cv_lib_socket_socket+:} false; then :
21912   $as_echo_n "(cached) " >&6
21913 else
21914   ac_check_lib_save_LIBS=$LIBS
21915 LIBS="-lsocket  $LIBS"
21916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21917 /* end confdefs.h.  */
21918
21919 /* Override any GCC internal prototype to avoid an error.
21920    Use char because int might match the return type of a GCC
21921    builtin and then its argument prototype would still apply.  */
21922 #ifdef __cplusplus
21923 extern "C"
21924 #endif
21925 char socket ();
21926 int
21927 main ()
21928 {
21929 return socket ();
21930   ;
21931   return 0;
21932 }
21933 _ACEOF
21934 if ac_fn_c_try_link "$LINENO"; then :
21935   ac_cv_lib_socket_socket=yes
21936 else
21937   ac_cv_lib_socket_socket=no
21938 fi
21939 rm -f core conftest.err conftest.$ac_objext \
21940     conftest$ac_exeext conftest.$ac_ext
21941 LIBS=$ac_check_lib_save_LIBS
21942 fi
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21944 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21945 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21946   cat >>confdefs.h <<_ACEOF
21947 #define HAVE_LIBSOCKET 1
21948 _ACEOF
21949
21950   LIBS="-lsocket $LIBS"
21951
21952 fi
21953
21954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21955 $as_echo_n "checking for socket in -linet... " >&6; }
21956 if ${ac_cv_lib_inet_socket+:} false; then :
21957   $as_echo_n "(cached) " >&6
21958 else
21959   ac_check_lib_save_LIBS=$LIBS
21960 LIBS="-linet  $LIBS"
21961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21962 /* end confdefs.h.  */
21963
21964 /* Override any GCC internal prototype to avoid an error.
21965    Use char because int might match the return type of a GCC
21966    builtin and then its argument prototype would still apply.  */
21967 #ifdef __cplusplus
21968 extern "C"
21969 #endif
21970 char socket ();
21971 int
21972 main ()
21973 {
21974 return socket ();
21975   ;
21976   return 0;
21977 }
21978 _ACEOF
21979 if ac_fn_c_try_link "$LINENO"; then :
21980   ac_cv_lib_inet_socket=yes
21981 else
21982   ac_cv_lib_inet_socket=no
21983 fi
21984 rm -f core conftest.err conftest.$ac_objext \
21985     conftest$ac_exeext conftest.$ac_ext
21986 LIBS=$ac_check_lib_save_LIBS
21987 fi
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21989 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21990 if test "x$ac_cv_lib_inet_socket" = xyes; then :
21991   cat >>confdefs.h <<_ACEOF
21992 #define HAVE_LIBINET 1
21993 _ACEOF
21994
21995   LIBS="-linet $LIBS"
21996
21997 fi
21998
21999 fi
22000
22001
22002 TCPW_MSG="no"
22003 WRAPLIBS=""
22004
22005 # Check whether --with-tcp-wrappers was given.
22006 if test "${with_tcp_wrappers+set}" = set; then :
22007   withval=$with_tcp_wrappers;
22008        if test "x$withval" != "xno" ; then
22009           saved_LIBS="$LIBS"
22010           LIBS="$saved_LIBS -lwrap"
22011           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22012 $as_echo_n "checking for library containing nanosleep... " >&6; }
22013 if ${ac_cv_search_nanosleep+:} false; then :
22014   $as_echo_n "(cached) " >&6
22015 else
22016   ac_func_search_save_LIBS=$LIBS
22017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22018 /* end confdefs.h.  */
22019
22020 /* Override any GCC internal prototype to avoid an error.
22021    Use char because int might match the return type of a GCC
22022    builtin and then its argument prototype would still apply.  */
22023 #ifdef __cplusplus
22024 extern "C"
22025 #endif
22026 char nanosleep ();
22027 int
22028 main ()
22029 {
22030 return nanosleep ();
22031   ;
22032   return 0;
22033 }
22034 _ACEOF
22035 for ac_lib in '' rt; do
22036   if test -z "$ac_lib"; then
22037     ac_res="none required"
22038   else
22039     ac_res=-l$ac_lib
22040     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22041   fi
22042   if ac_fn_c_try_link "$LINENO"; then :
22043   ac_cv_search_nanosleep=$ac_res
22044 fi
22045 rm -f core conftest.err conftest.$ac_objext \
22046     conftest$ac_exeext
22047   if ${ac_cv_search_nanosleep+:} false; then :
22048   break
22049 fi
22050 done
22051 if ${ac_cv_search_nanosleep+:} false; then :
22052
22053 else
22054   ac_cv_search_nanosleep=no
22055 fi
22056 rm conftest.$ac_ext
22057 LIBS=$ac_func_search_save_LIBS
22058 fi
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22060 $as_echo "$ac_cv_search_nanosleep" >&6; }
22061 ac_res=$ac_cv_search_nanosleep
22062 if test "$ac_res" != no; then :
22063   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22064
22065 fi
22066
22067           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22068 $as_echo_n "checking for libwrap... " >&6; }
22069           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22070 /* end confdefs.h.  */
22071
22072                #include <sys/types.h>
22073                #include <tcpd.h>
22074                int deny_severity = 0;
22075                int allow_severity = 0;
22076                struct request_info *req;
22077
22078 int
22079 main ()
22080 {
22081
22082                 hosts_access(req);
22083
22084   ;
22085   return 0;
22086 }
22087 _ACEOF
22088 if ac_fn_c_try_link "$LINENO"; then :
22089
22090                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22091 $as_echo "yes" >&6; }
22092
22093 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22094
22095                  TCPW_MSG="yes"
22096                  LIBS="$saved_LIBS"
22097                  WRAPLIBS="-lwrap"
22098
22099 else
22100
22101                  LIBS="$saved_LIBS -lwrap -lnsl"
22102                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22103                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22104 /* end confdefs.h.  */
22105
22106                        #include <sys/types.h>
22107                        #include <tcpd.h>
22108                        int deny_severity = 0;
22109                        int allow_severity = 0;
22110                        struct request_info *req;
22111
22112 int
22113 main ()
22114 {
22115
22116                        hosts_access(req);
22117
22118   ;
22119   return 0;
22120 }
22121 _ACEOF
22122 if ac_fn_c_try_link "$LINENO"; then :
22123
22124                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22125 $as_echo "yes" >&6; }
22126
22127 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22128
22129                       TCPW_MSG="yes"
22130                       LIBS="$saved_LIBS"
22131                       WRAPLIBS="-lwrap"
22132
22133 else
22134
22135                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22136
22137
22138 fi
22139 rm -f core conftest.err conftest.$ac_objext \
22140     conftest$ac_exeext conftest.$ac_ext
22141
22142
22143 fi
22144 rm -f core conftest.err conftest.$ac_objext \
22145     conftest$ac_exeext conftest.$ac_ext
22146        fi
22147
22148
22149 fi
22150
22151
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22153 $as_echo_n "checking for OpenSSL... " >&6; }
22154
22155 # Check whether --with-openssl was given.
22156 if test "${with_openssl+set}" = set; then :
22157   withval=$with_openssl;
22158         with_openssl_directory=${withval}
22159
22160
22161 fi
22162
22163
22164 if test "x$with_openssl_directory" != "xno"; then
22165    OPENSSL_LIBS="-lssl -lcrypto"
22166    OPENSSL_INC=""
22167
22168    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22169       #
22170       # Make sure the $with_openssl_directory also makes sense
22171       #
22172       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22173          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22174          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22175       fi
22176    fi
22177
22178    saved_LIBS="${LIBS}"
22179    saved_CFLAGS="${CFLAGS}"
22180    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22181    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22182
22183    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22184 /* end confdefs.h.  */
22185
22186           #include <openssl/ssl.h>
22187
22188 int
22189 main ()
22190 {
22191
22192            CRYPTO_set_id_callback(NULL);
22193
22194   ;
22195   return 0;
22196 }
22197 _ACEOF
22198 if ac_fn_c_try_link "$LINENO"; then :
22199
22200           support_tls="yes"
22201           support_crypto="yes"
22202
22203 else
22204
22205           support_tls="no"
22206           support_crypto="no"
22207
22208
22209 fi
22210 rm -f core conftest.err conftest.$ac_objext \
22211     conftest$ac_exeext conftest.$ac_ext
22212
22213    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22214 /* end confdefs.h.  */
22215
22216           #include <openssl/evp.h>
22217
22218 int
22219 main ()
22220 {
22221
22222           EVP_sha512();
22223
22224   ;
22225   return 0;
22226 }
22227 _ACEOF
22228 if ac_fn_c_try_link "$LINENO"; then :
22229
22230           ac_cv_openssl_sha2="yes"
22231
22232 else
22233
22234           ac_cv_openssl_sha2="no"
22235
22236
22237 fi
22238 rm -f core conftest.err conftest.$ac_objext \
22239     conftest$ac_exeext conftest.$ac_ext
22240
22241                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h.  */
22243
22244           #include <openssl/evp.h>
22245
22246 int
22247 main ()
22248 {
22249
22250           EVP_aes_192_cbc();
22251
22252   ;
22253   return 0;
22254 }
22255 _ACEOF
22256 if ac_fn_c_try_link "$LINENO"; then :
22257
22258           ac_cv_openssl_export="no"
22259
22260 else
22261
22262           ac_cv_openssl_export="yes"
22263
22264
22265 fi
22266 rm -f core conftest.err conftest.$ac_objext \
22267     conftest$ac_exeext conftest.$ac_ext
22268
22269    if test "$support_tls" = "yes"; then
22270
22271 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22272
22273
22274 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22275
22276
22277 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22278
22279    fi
22280
22281    if test "$ac_cv_openssl_sha2" = "yes"; then
22282
22283 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22284
22285    fi
22286
22287    if test "$ac_cv_openssl_export" = "yes"; then
22288
22289 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22290
22291    fi
22292
22293    if test "$support_crypto" = "yes"; then
22294       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22295 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22296 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
22297   $as_echo_n "(cached) " >&6
22298 else
22299   ac_check_lib_save_LIBS=$LIBS
22300 LIBS="-lcrypto  $LIBS"
22301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302 /* end confdefs.h.  */
22303
22304 /* Override any GCC internal prototype to avoid an error.
22305    Use char because int might match the return type of a GCC
22306    builtin and then its argument prototype would still apply.  */
22307 #ifdef __cplusplus
22308 extern "C"
22309 #endif
22310 char EVP_PKEY_encrypt_old ();
22311 int
22312 main ()
22313 {
22314 return EVP_PKEY_encrypt_old ();
22315   ;
22316   return 0;
22317 }
22318 _ACEOF
22319 if ac_fn_c_try_link "$LINENO"; then :
22320   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
22321 else
22322   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
22323 fi
22324 rm -f core conftest.err conftest.$ac_objext \
22325     conftest$ac_exeext conftest.$ac_ext
22326 LIBS=$ac_check_lib_save_LIBS
22327 fi
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
22329 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
22330 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
22331
22332 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22333
22334 fi
22335
22336    fi
22337
22338    LIBS="${saved_LIBS}"
22339    CFLAGS="${saved_CFLAGS}"
22340 else
22341    support_tls="no"
22342    support_crypto="no"
22343    OPENSSL_LIBS=""
22344    OPENSSL_INC=""
22345 fi
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22347 $as_echo "$support_tls" >&6; }
22348
22349 if test "$support_tls" = "no"; then
22350    OPENSSL_LIBS=""
22351    OPENSSL_INC=""
22352 fi
22353 if test "$support_crypto" = "no"; then
22354    OPENSSL_LIBS=""
22355    OPENSSL_INC=""
22356 fi
22357
22358
22359
22360
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22362 $as_echo_n "checking for library containing dlopen... " >&6; }
22363 if ${ac_cv_search_dlopen+:} false; then :
22364   $as_echo_n "(cached) " >&6
22365 else
22366   ac_func_search_save_LIBS=$LIBS
22367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22368 /* end confdefs.h.  */
22369
22370 /* Override any GCC internal prototype to avoid an error.
22371    Use char because int might match the return type of a GCC
22372    builtin and then its argument prototype would still apply.  */
22373 #ifdef __cplusplus
22374 extern "C"
22375 #endif
22376 char dlopen ();
22377 int
22378 main ()
22379 {
22380 return dlopen ();
22381   ;
22382   return 0;
22383 }
22384 _ACEOF
22385 for ac_lib in '' dl; do
22386   if test -z "$ac_lib"; then
22387     ac_res="none required"
22388   else
22389     ac_res=-l$ac_lib
22390     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22391   fi
22392   if ac_fn_c_try_link "$LINENO"; then :
22393   ac_cv_search_dlopen=$ac_res
22394 fi
22395 rm -f core conftest.err conftest.$ac_objext \
22396     conftest$ac_exeext
22397   if ${ac_cv_search_dlopen+:} false; then :
22398   break
22399 fi
22400 done
22401 if ${ac_cv_search_dlopen+:} false; then :
22402
22403 else
22404   ac_cv_search_dlopen=no
22405 fi
22406 rm conftest.$ac_ext
22407 LIBS=$ac_func_search_save_LIBS
22408 fi
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22410 $as_echo "$ac_cv_search_dlopen" >&6; }
22411 ac_res=$ac_cv_search_dlopen
22412 if test "$ac_res" != no; then :
22413   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22414
22415 fi
22416
22417
22418 working_dir=`eval echo ${prefix}/var/bacula/working`
22419
22420 # Check whether --with-working-dir was given.
22421 if test "${with_working_dir+set}" = set; then :
22422   withval=$with_working_dir;
22423        if test "x$withval" != "xno" ; then
22424          working_dir=$withval
22425        fi
22426
22427
22428 fi
22429
22430
22431
22432
22433 archivedir=/tmp
22434
22435 # Check whether --with-archivedir was given.
22436 if test "${with_archivedir+set}" = set; then :
22437   withval=$with_archivedir;
22438        if test "x$withval" != "xno" ; then
22439           archivedir=$withval
22440        fi
22441
22442
22443 fi
22444
22445
22446
22447
22448 basename=`hostname`
22449
22450 # Check whether --with-basename was given.
22451 if test "${with_basename+set}" = set; then :
22452   withval=$with_basename;
22453        if test "x$withval" != "xno" ; then
22454           basename=$withval
22455        fi
22456
22457
22458 fi
22459
22460
22461
22462
22463 hostname=`uname -n | cut -d '.' -f 1`
22464 if test x${hostname} = x ; then
22465   hostname="localhost"
22466 fi
22467
22468 # Check whether --with-hostname was given.
22469 if test "${with_hostname+set}" = set; then :
22470   withval=$with_hostname;
22471        if test "x$withval" != "xno" ; then
22472          hostname=$withval
22473        fi
22474
22475
22476 fi
22477
22478
22479
22480
22481
22482 scriptdir=`eval echo ${sysconfdir}`
22483
22484 # Check whether --with-scriptdir was given.
22485 if test "${with_scriptdir+set}" = set; then :
22486   withval=$with_scriptdir;
22487        if test "x$withval" != "xno" ; then
22488           scriptdir=$withval
22489        fi
22490
22491
22492 fi
22493
22494
22495
22496
22497
22498 bsrdir=/tmp
22499
22500 # Check whether --with-bsrdir was given.
22501 if test "${with_bsrdir+set}" = set; then :
22502   withval=$with_bsrdir;
22503        if test "x$withval" != "xno" ; then
22504           bsrdir=$withval
22505        fi
22506
22507
22508 fi
22509
22510
22511
22512
22513 logdir=/tmp
22514
22515 # Check whether --with-logdir was given.
22516 if test "${with_logdir+set}" = set; then :
22517   withval=$with_logdir;
22518        if test "x$withval" != "xno" ; then
22519           logdir=$withval
22520        fi
22521
22522
22523 fi
22524
22525
22526
22527
22528
22529 # ------------------------------------------
22530 # Where to place plugindir (plugin files)
22531 # ------------------------------------------
22532 plugindir=`eval echo ${libdir}`
22533
22534 # Check whether --with-plugindir was given.
22535 if test "${with_plugindir+set}" = set; then :
22536   withval=$with_plugindir;
22537        if test "x$withval" != "xno" ; then
22538           plugindir=$withval
22539        fi
22540
22541
22542 fi
22543
22544
22545
22546
22547 dump_email=root@localhost
22548
22549 # Check whether --with-dump-email was given.
22550 if test "${with_dump_email+set}" = set; then :
22551   withval=$with_dump_email;
22552        if test "x$withval" != "xno" ; then
22553           dump_email=$withval
22554        fi
22555
22556
22557 fi
22558
22559
22560
22561
22562 job_email=root@localhost
22563
22564 # Check whether --with-job-email was given.
22565 if test "${with_job_email+set}" = set; then :
22566   withval=$with_job_email;
22567        if test "x$withval" != "xno" ; then
22568           job_email=$withval
22569        fi
22570
22571
22572 fi
22573
22574
22575
22576
22577 smtp_host=localhost
22578
22579 # Check whether --with-smtp_host was given.
22580 if test "${with_smtp_host+set}" = set; then :
22581   withval=$with_smtp_host;
22582        if test "x$withval" != "xno" ; then
22583           smtp_host=$withval
22584        fi
22585
22586
22587 fi
22588
22589
22590
22591
22592 piddir=/var/run
22593
22594 # Check whether --with-pid-dir was given.
22595 if test "${with_pid_dir+set}" = set; then :
22596   withval=$with_pid_dir;
22597        if test "x$withval" != "xno" ; then
22598           piddir=$withval
22599        fi
22600
22601
22602 fi
22603
22604
22605 cat >>confdefs.h <<_ACEOF
22606 #define _PATH_BACULA_PIDDIR "$piddir"
22607 _ACEOF
22608
22609
22610
22611 subsysdir=/var/run/subsys
22612 if test -d /var/run/subsys; then
22613    subsysdir=/var/run/subsys
22614 elif test -d /var/lock/subsys; then
22615    subsysdir=/var/lock/subsys
22616 else
22617    subsysdir=/var/run/subsys
22618 fi
22619
22620 # Check whether --with-subsys-dir was given.
22621 if test "${with_subsys_dir+set}" = set; then :
22622   withval=$with_subsys_dir;
22623        if test "x$withval" != "xno" ; then
22624           subsysdir=$withval
22625        fi
22626
22627
22628 fi
22629
22630
22631
22632
22633 baseport=9101
22634
22635 # Check whether --with-baseport was given.
22636 if test "${with_baseport+set}" = set; then :
22637   withval=$with_baseport;
22638        if test "x$withval" != "xno" ; then
22639           baseport=$withval
22640        fi
22641
22642
22643 fi
22644
22645
22646
22647 dir_port=`expr $baseport`
22648 fd_port=`expr $baseport + 1`
22649 sd_port=`expr $fd_port + 1`
22650
22651
22652
22653
22654
22655 dir_password=
22656
22657 # Check whether --with-dir-password was given.
22658 if test "${with_dir_password+set}" = set; then :
22659   withval=$with_dir_password;
22660        if test "x$withval" != "xno" ; then
22661           dir_password=$withval
22662        fi
22663
22664
22665 fi
22666
22667
22668 if test "x$dir_password" = "x" ; then
22669    if test "x$OPENSSL" = "xnone" ; then
22670       key=`autoconf/randpass 33`
22671    else
22672       key=`openssl rand -base64 33`
22673    fi
22674    dir_password=$key
22675 fi
22676
22677 fd_password=
22678
22679 # Check whether --with-fd-password was given.
22680 if test "${with_fd_password+set}" = set; then :
22681   withval=$with_fd_password;
22682        if test "x$withval" != "xno" ; then
22683           fd_password=$withval
22684        fi
22685
22686
22687 fi
22688
22689
22690 if test "x$fd_password" = "x" ; then
22691    if test "x$OPENSSL" = "xnone" ; then
22692       key=`autoconf/randpass 37`
22693    else
22694       key=`openssl rand -base64 33`
22695    fi
22696    fd_password=$key
22697 fi
22698
22699 sd_password=
22700
22701 # Check whether --with-sd-password was given.
22702 if test "${with_sd_password+set}" = set; then :
22703   withval=$with_sd_password;
22704        if test "x$withval" != "xno" ; then
22705           sd_password=$withval
22706        fi
22707
22708
22709 fi
22710
22711
22712 if test "x$sd_password" = "x" ; then
22713    if test "x$OPENSSL" = "xnone" ; then
22714       key=`autoconf/randpass 41`
22715    else
22716       key=`openssl rand -base64 33`
22717    fi
22718    sd_password=$key
22719 fi
22720
22721 mon_dir_password=
22722
22723 # Check whether --with-mon-dir-password was given.
22724 if test "${with_mon_dir_password+set}" = set; then :
22725   withval=$with_mon_dir_password;
22726        if test "x$withval" != "xno" ; then
22727           mon_dir_password=$withval
22728        fi
22729
22730
22731 fi
22732
22733
22734 if test "x$mon_dir_password" = "x" ; then
22735    if test "x$OPENSSL" = "xnone" ; then
22736       key=`autoconf/randpass 33`
22737    else
22738       key=`openssl rand -base64 33`
22739    fi
22740    mon_dir_password=$key
22741 fi
22742
22743 mon_fd_password=
22744
22745 # Check whether --with-mon-fd-password was given.
22746 if test "${with_mon_fd_password+set}" = set; then :
22747   withval=$with_mon_fd_password;
22748        if test "x$withval" != "xno" ; then
22749           mon_fd_password=$withval
22750        fi
22751
22752
22753 fi
22754
22755
22756 if test "x$mon_fd_password" = "x" ; then
22757    if test "x$OPENSSL" = "xnone" ; then
22758       key=`autoconf/randpass 37`
22759    else
22760       key=`openssl rand -base64 33`
22761    fi
22762    mon_fd_password=$key
22763 fi
22764
22765 mon_sd_password=
22766
22767 # Check whether --with-mon-sd-password was given.
22768 if test "${with_mon_sd_password+set}" = set; then :
22769   withval=$with_mon_sd_password;
22770        if test "x$withval" != "xno" ; then
22771           mon_sd_password=$withval
22772        fi
22773
22774
22775 fi
22776
22777
22778 if test "x$mon_sd_password" = "x" ; then
22779    if test "x$OPENSSL" = "xnone" ; then
22780       key=`autoconf/randpass 41`
22781    else
22782       key=`openssl rand -base64 33`
22783    fi
22784    mon_sd_password=$key
22785 fi
22786
22787
22788
22789
22790
22791
22792
22793
22794 db_name=bacula
22795
22796 # Check whether --with-db_name was given.
22797 if test "${with_db_name+set}" = set; then :
22798   withval=$with_db_name;
22799        if test "x$withval" != "x" ; then
22800           db_name=$withval
22801        fi
22802
22803
22804 fi
22805
22806
22807
22808 db_user=bacula
22809
22810 # Check whether --with-db_user was given.
22811 if test "${with_db_user+set}" = set; then :
22812   withval=$with_db_user;
22813        if test "x$withval" != "x" ; then
22814           db_user=$withval
22815        fi
22816
22817
22818 fi
22819
22820
22821
22822 db_password=
22823
22824 # Check whether --with-db_password was given.
22825 if test "${with_db_password+set}" = set; then :
22826   withval=$with_db_password;
22827        if test "x$withval" != "x" ; then
22828           db_password=$withval
22829        fi
22830
22831
22832 fi
22833
22834
22835
22836 db_port=" "
22837
22838 # Check whether --with-db_port was given.
22839 if test "${with_db_port+set}" = set; then :
22840   withval=$with_db_port;
22841        if test "x$withval" != "x" ; then
22842           db_port=$withval
22843        fi
22844
22845
22846 fi
22847
22848
22849
22850 #
22851 # Handle users and groups for each daemon
22852 #
22853 dir_user=
22854
22855 # Check whether --with-dir_user was given.
22856 if test "${with_dir_user+set}" = set; then :
22857   withval=$with_dir_user;
22858        if test "x$withval" != "x" ; then
22859            dir_user=$withval
22860        fi
22861
22862
22863 fi
22864
22865
22866 dir_group=
22867
22868 # Check whether --with-dir_group was given.
22869 if test "${with_dir_group+set}" = set; then :
22870   withval=$with_dir_group;
22871        if test "x$withval" != "x" ; then
22872           dir_group=$withval
22873        fi
22874
22875
22876 fi
22877
22878
22879 sd_user=
22880
22881 # Check whether --with-sd_user was given.
22882 if test "${with_sd_user+set}" = set; then :
22883   withval=$with_sd_user;
22884        if test "x$withval" != "x" ; then
22885           sd_user=$withval
22886        fi
22887
22888
22889 fi
22890
22891
22892 sd_group=
22893
22894 # Check whether --with-sd_group was given.
22895 if test "${with_sd_group+set}" = set; then :
22896   withval=$with_sd_group;
22897        if test "x$withval" != "x" ; then
22898           sd_group=$withval
22899        fi
22900
22901
22902 fi
22903
22904
22905 fd_user=
22906
22907 # Check whether --with-fd_user was given.
22908 if test "${with_fd_user+set}" = set; then :
22909   withval=$with_fd_user;
22910        if test "x$withval" != "x" ; then
22911           fd_user=$withval
22912        fi
22913
22914
22915 fi
22916
22917
22918 fd_group=
22919
22920 # Check whether --with-fd_group was given.
22921 if test "${with_fd_group+set}" = set; then :
22922   withval=$with_fd_group;
22923        if test "x$withval" != "x" ; then
22924           fd_group=$withval
22925        fi
22926
22927
22928 fi
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938 SBINPERM=0750
22939
22940 # Check whether --with-sbin-perm was given.
22941 if test "${with_sbin_perm+set}" = set; then :
22942   withval=$with_sbin_perm;
22943        if test "x$withval" != "x" ; then
22944           SBINPERM=$withval
22945        fi
22946
22947
22948 fi
22949
22950
22951
22952
22953
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22955 $as_echo_n "checking for PostgreSQL support... " >&6; }
22956
22957 # Check whether --with-postgresql was given.
22958 if test "${with_postgresql+set}" = set; then :
22959   withval=$with_postgresql;
22960   if test "$withval" != "no"; then
22961       if test "$withval" = "yes"; then
22962           PG_CONFIG=`which pg_config`
22963           if test -n "$PG_CONFIG"; then
22964               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22965               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22966               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22967           elif test -f /usr/local/include/libpq-fe.h; then
22968               POSTGRESQL_INCDIR=/usr/local/include
22969               if test -d /usr/local/lib64; then
22970                  POSTGRESQL_LIBDIR=/usr/local/lib64
22971               else
22972                  POSTGRESQL_LIBDIR=/usr/local/lib
22973               fi
22974               POSTGRESQL_BINDIR=/usr/local/bin
22975           elif test -f /usr/include/libpq-fe.h; then
22976               POSTGRESQL_INCDIR=/usr/include
22977               if test -d /usr/lib64; then
22978                  POSTGRESQL_LIBDIR=/usr/lib64
22979               else
22980                  POSTGRESQL_LIBDIR=/usr/lib
22981               fi
22982               POSTGRESQL_BINDIR=/usr/bin
22983           elif test -f /usr/include/pgsql/libpq-fe.h; then
22984               POSTGRESQL_INCDIR=/usr/include/pgsql
22985               if test -d /usr/lib64/pgsql; then
22986                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22987               else
22988                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22989               fi
22990               POSTGRESQL_BINDIR=/usr/bin
22991           elif test -f /usr/include/postgresql/libpq-fe.h; then
22992               POSTGRESQL_INCDIR=/usr/include/postgresql
22993               if test -d /usr/lib64/postgresql; then
22994                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22995               else
22996                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22997               fi
22998               POSTGRESQL_BINDIR=/usr/bin
22999           else
23000               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23001 $as_echo "no" >&6; }
23002               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23003           fi
23004       elif test -f $withval/include/libpq-fe.h; then
23005           POSTGRESQL_INCDIR=$withval/include
23006           POSTGRESQL_LIBDIR=$withval/lib
23007           POSTGRESQL_BINDIR=$withval/bin
23008       elif test -f $withval/include/postgresql/libpq-fe.h; then
23009           POSTGRESQL_INCDIR=$withval/include/postgresql
23010           if test -d $withval/lib64; then
23011               POSTGRESQL_LIBDIR=$withval/lib64
23012           else
23013               POSTGRESQL_LIBDIR=$withval/lib
23014           fi
23015           POSTGRESQL_BINDIR=$withval/bin
23016       else
23017           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23018 $as_echo "no" >&6; }
23019           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23020       fi
23021
23022 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23023
23024      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23025 $as_echo "yes" >&6; }
23026
23027      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23028      POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23029      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23030 if test "x$ac_cv_func_crypt" = xyes; then :
23031
23032 else
23033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23034 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23035 if ${ac_cv_lib_crypt_crypt+:} false; then :
23036   $as_echo_n "(cached) " >&6
23037 else
23038   ac_check_lib_save_LIBS=$LIBS
23039 LIBS="-lcrypt  $LIBS"
23040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23041 /* end confdefs.h.  */
23042
23043 /* Override any GCC internal prototype to avoid an error.
23044    Use char because int might match the return type of a GCC
23045    builtin and then its argument prototype would still apply.  */
23046 #ifdef __cplusplus
23047 extern "C"
23048 #endif
23049 char crypt ();
23050 int
23051 main ()
23052 {
23053 return crypt ();
23054   ;
23055   return 0;
23056 }
23057 _ACEOF
23058 if ac_fn_c_try_link "$LINENO"; then :
23059   ac_cv_lib_crypt_crypt=yes
23060 else
23061   ac_cv_lib_crypt_crypt=no
23062 fi
23063 rm -f core conftest.err conftest.$ac_objext \
23064     conftest$ac_exeext conftest.$ac_ext
23065 LIBS=$ac_check_lib_save_LIBS
23066 fi
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23068 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23069 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23070   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23071 fi
23072
23073 fi
23074
23075      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23076      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23077
23078      if test -z "${db_backends}"; then
23079          db_backends="PostgreSQL"
23080      else
23081          db_backends="${db_backends} PostgreSQL"
23082      fi
23083      if test -z "${DB_BACKENDS}"; then
23084          DB_BACKENDS="postgresql"
23085      else
23086          DB_BACKENDS="${DB_BACKENDS} postgresql"
23087      fi
23088   else
23089      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23090 $as_echo "no" >&6; }
23091   fi
23092
23093 else
23094
23095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23096 $as_echo "no" >&6; }
23097
23098 fi
23099
23100
23101
23102
23103
23104
23105
23106
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23108 $as_echo_n "checking for MySQL support... " >&6; }
23109
23110 # Check whether --with-mysql was given.
23111 if test "${with_mysql+set}" = set; then :
23112   withval=$with_mysql;
23113   if test "$withval" != "no"; then
23114         if test "$withval" = "yes"; then
23115            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23116                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
23117                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23118                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23119                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23120                    else
23121                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23122                    fi
23123                    MYSQL_BINDIR=/usr/local/mysql/bin
23124            elif test -f /usr/include/mysql/mysql.h; then
23125                    MYSQL_INCDIR=/usr/include/mysql
23126                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23127                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23128                            MYSQL_LIBDIR=/usr/lib64/mysql
23129                    elif test -f /usr/lib64/libmysqlclient_r.a \
23130                         -o -f /usr/lib64/libmysqlclient_r.so; then
23131                            MYSQL_LIBDIR=/usr/lib64
23132                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23133                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23134                            MYSQL_LIBDIR=/usr/lib/mysql
23135                    else
23136                            MYSQL_LIBDIR=/usr/lib
23137                    fi
23138                    MYSQL_BINDIR=/usr/bin
23139            elif test -f /usr/include/mysql.h; then
23140                    MYSQL_INCDIR=/usr/include
23141                    if test -f /usr/lib64/libmysqlclient_r.a \
23142                         -o -f /usr/lib64/libmysqlclient_r.so; then
23143                            MYSQL_LIBDIR=/usr/lib64
23144                    else
23145                            MYSQL_LIBDIR=/usr/lib
23146                    fi
23147                    MYSQL_BINDIR=/usr/bin
23148            elif test -f /usr/local/include/mysql/mysql.h; then
23149                    MYSQL_INCDIR=/usr/local/include/mysql
23150                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23151                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23152                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23153                    else
23154                            MYSQL_LIBDIR=/usr/local/lib/mysql
23155                    fi
23156                    MYSQL_BINDIR=/usr/local/bin
23157            elif test -f /usr/local/include/mysql.h; then
23158                    MYSQL_INCDIR=/usr/local/include
23159                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23160                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23161                            MYSQL_LIBDIR=/usr/local/lib64
23162                    else
23163                            MYSQL_LIBDIR=/usr/local/lib
23164                    fi
23165                    MYSQL_BINDIR=/usr/local/bin
23166            else
23167               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23168 $as_echo "no" >&6; }
23169               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23170            fi
23171         else
23172            if test -f $withval/include/mysql/mysql.h; then
23173               MYSQL_INCDIR=$withval/include/mysql
23174               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23175                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23176                  MYSQL_LIBDIR=$withval/lib64/mysql
23177               elif test -f $withval/lib64/libmysqlclient_r.a \
23178                    -o -f $withval/lib64/libmysqlclient_r.so; then
23179                  MYSQL_LIBDIR=$withval/lib64
23180               elif test -f $withval/lib/libmysqlclient_r.a \
23181                    -o -f $withval/lib/libmysqlclient_r.so; then
23182                  MYSQL_LIBDIR=$withval/lib
23183               else
23184                  MYSQL_LIBDIR=$withval/lib/mysql
23185               fi
23186               MYSQL_BINDIR=$withval/bin
23187            elif test -f $withval/include/mysql.h; then
23188               MYSQL_INCDIR=$withval/include
23189               if test -f $withval/lib64/libmysqlclient_r.a \
23190                    -o -f $withval/lib64/libmysqlclient_r.so; then
23191                  MYSQL_LIBDIR=$withval/lib64
23192               else
23193                  MYSQL_LIBDIR=$withval/lib
23194               fi
23195               MYSQL_BINDIR=$withval/bin
23196            else
23197               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23198 $as_echo "no" >&6; }
23199               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23200            fi
23201         fi
23202      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23203      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23204           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23205         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23206
23207 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23208
23209         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23210      fi
23211      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23212
23213
23214 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23215
23216      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23217 $as_echo "yes" >&6; }
23218
23219      if test -z "${db_backends}" ; then
23220          db_backends="MySQL"
23221      else
23222          db_backends="${db_backends} MySQL"
23223      fi
23224      if test -z "${DB_BACKENDS}" ; then
23225          DB_BACKENDS="mysql"
23226      else
23227          DB_BACKENDS="${DB_BACKENDS} mysql"
23228      fi
23229   else
23230      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23231 $as_echo "no" >&6; }
23232   fi
23233
23234
23235 fi
23236
23237
23238
23239 # Check whether --with-embedded-mysql was given.
23240 if test "${with_embedded_mysql+set}" = set; then :
23241   withval=$with_embedded_mysql;
23242   if test "$withval" != "no"; then
23243         if test "$withval" = "yes"; then
23244                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23245                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23246                         if test -d /usr/local/mysql/lib64/mysql; then
23247                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23248                         else
23249                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23250                         fi
23251                         MYSQL_BINDIR=/usr/local/mysql/bin
23252                 elif test -f /usr/include/mysql/mysql.h; then
23253                         MYSQL_INCDIR=/usr/include/mysql
23254                         if test -d /usr/lib64/mysql; then
23255                                 MYSQL_LIBDIR=/usr/lib64/mysql
23256                         else
23257                                 MYSQL_LIBDIR=/usr/lib/mysql
23258                         fi
23259                         MYSQL_BINDIR=/usr/bin
23260                 elif test -f /usr/include/mysql.h; then
23261                         MYSQL_INCDIR=/usr/include
23262                         if test -d /usr/lib64; then
23263                                 MYSQL_LIBDIR=/usr/lib64
23264                         else
23265                                 MYSQL_LIBDIR=/usr/lib
23266                         fi
23267                         MYSQL_BINDIR=/usr/bin
23268                 elif test -f /usr/local/include/mysql/mysql.h; then
23269                         MYSQL_INCDIR=/usr/local/include/mysql
23270                         if test -d /usr/local/lib64/mysql; then
23271                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23272                         else
23273                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23274                         fi
23275                         MYSQL_BINDIR=/usr/local/bin
23276                 elif test -f /usr/local/include/mysql.h; then
23277                         MYSQL_INCDIR=/usr/local/include
23278                         if test -d /usr/local/lib64; then
23279                                 MYSQL_LIBDIR=/usr/local/lib64
23280                         else
23281                                 MYSQL_LIBDIR=/usr/local/lib
23282                         fi
23283                         MYSQL_BINDIR=/usr/local/bin
23284                 else
23285                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23286 $as_echo "no" >&6; }
23287                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23288                 fi
23289         else
23290                 if test -f $withval/include/mysql/mysql.h; then
23291                         MYSQL_INCDIR=$withval/include/mysql
23292                         if test -d $withval/lib64/mysql; then
23293                                 MYSQL_LIBDIR=$withval/lib64/mysql
23294                         else
23295                                 MYSQL_LIBDIR=$withval/lib/mysql
23296                         fi
23297                         MYSQL_BINDIR=$withval/bin
23298                 elif test -f $withval/include/mysql.h; then
23299                         MYSQL_INCDIR=$withval/include
23300                         if test -d $withval/lib64; then
23301                                 MYSQL_LIBDIR=$withval/lib64
23302                         else
23303                                 MYSQL_LIBDIR=$withval/lib
23304                         fi
23305                         MYSQL_BINDIR=$withval/bin
23306                 else
23307                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23308 $as_echo "no" >&6; }
23309                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23310                 fi
23311         fi
23312      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23313      MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23314      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23315      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23316
23317
23318 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23319
23320
23321 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23322
23323      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23324 $as_echo "yes" >&6; }
23325
23326      if test -z "${db_backends}"; then
23327          db_backends="MySQL"
23328      else
23329          db_backends="${db_backends} MySQL"
23330      fi
23331      if test -z "${DB_BACKENDS}"; then
23332          DB_BACKENDS="mysql"
23333      else
23334          DB_BACKENDS="${DB_BACKENDS} mysql"
23335      fi
23336   else
23337      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23338 $as_echo "no" >&6; }
23339   fi
23340
23341
23342 fi
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23353 $as_echo_n "checking for SQLite3 support... " >&6; }
23354
23355 # Check whether --with-sqlite3 was given.
23356 if test "${with_sqlite3+set}" = set; then :
23357   withval=$with_sqlite3;
23358   if test "$withval" != "no"; then
23359      if test "$withval" = "yes"; then
23360         if test -f /usr/local/include/sqlite3.h; then
23361            SQLITE_INCDIR=/usr/local/include
23362            if test -d /usr/local/lib64; then
23363               SQLITE_LIBDIR=/usr/local/lib64
23364            else
23365               SQLITE_LIBDIR=/usr/local/lib
23366            fi
23367            SQLITE_BINDIR=/usr/local/bin
23368         elif test -f /usr/include/sqlite3.h; then
23369            SQLITE_INCDIR=/usr/include
23370            if test -d /usr/lib64; then
23371               SQLITE_LIBDIR=/usr/lib64
23372            else
23373               SQLITE_LIBDIR=/usr/lib
23374            fi
23375            SQLITE_BINDIR=/usr/bin
23376         elif test -f $prefix/include/sqlite3.h; then
23377            SQLITE_INCDIR=$prefix/include
23378            if test -d $prefix/lib64; then
23379               SQLITE_LIBDIR=$prefix/lib64
23380            else
23381               SQLITE_LIBDIR=$prefix/lib
23382            fi
23383            SQLITE_BINDIR=$prefix/bin
23384         else
23385            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23386 $as_echo "no" >&6; }
23387            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23388         fi
23389      else
23390         if test -f $withval/sqlite3.h; then
23391            SQLITE_INCDIR=$withval
23392            SQLITE_LIBDIR=$withval
23393            SQLITE_BINDIR=$withval
23394         elif test -f $withval/include/sqlite3.h; then
23395            SQLITE_INCDIR=$withval/include
23396            if test -d $withval/lib64; then
23397               SQLITE_LIBDIR=$withval/lib64
23398            else
23399               SQLITE_LIBDIR=$withval/lib
23400            fi
23401            SQLITE_BINDIR=$withval/bin
23402         else
23403            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23404 $as_echo "no" >&6; }
23405            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23406         fi
23407      fi
23408      SQLITE_INCLUDE=-I$SQLITE_INCDIR
23409      SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23410      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23411      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23412
23413
23414 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23415
23416      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23417 $as_echo "yes" >&6; }
23418
23419      if test -z "${db_backends}"; then
23420          db_backends="SQLite3"
23421      else
23422          db_backends="${db_backends} SQLite3"
23423      fi
23424      if test -z "${DB_BACKENDS}"; then
23425          DB_BACKENDS="sqlite3"
23426      else
23427          DB_BACKENDS="${DB_BACKENDS} sqlite3"
23428      fi
23429   else
23430      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23431 $as_echo "no" >&6; }
23432   fi
23433
23434 else
23435
23436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23437 $as_echo "no" >&6; }
23438
23439 fi
23440
23441
23442
23443
23444
23445
23446
23447
23448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23449 $as_echo_n "checking for Ingres support... " >&6; }
23450
23451 # Check whether --with-ingres was given.
23452 if test "${with_ingres+set}" = set; then :
23453   withval=$with_ingres;
23454   if test "$withval" != "no"; then
23455      if test "$withval" = "yes"; then
23456         if test -f ${II_SYSTEM}/files/eqdefc.h; then
23457            INGRES_INCDIR=${II_SYSTEM}/files
23458            INGRES_LIBDIR=${II_SYSTEM}/lib
23459            INGRES_BINDIR=${II_SYSTEM}/bin
23460         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23461            INGRES_INCDIR=${II_SYSTEM}/ingres/files
23462            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23463            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23464         else
23465            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23466 $as_echo "no" >&6; }
23467            as_fn_error $? "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23468         fi
23469      else
23470         if test -f $withval/files/eqdefc.h; then
23471            INGRES_INCDIR=$withval/files
23472            INGRES_LIBDIR=$withval/lib
23473            INGRES_BINDIR=$withval/bin
23474         else
23475            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23476 $as_echo "no" >&6; }
23477            as_fn_error $? "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23478         fi
23479      fi
23480      INGRES_INCLUDE=-I$INGRES_INCDIR
23481      INGRES_LIBS="-R $INGRES_LIBDIR -L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23482      DB_LIBS="${DB_LIBS} ${INGRES_LIBS}"
23483
23484 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23485
23486      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23487 $as_echo "yes" >&6; }
23488
23489      if test -z "${db_backends}"; then
23490          db_backends="Ingres"
23491      else
23492          db_backends="${db_backends} Ingres"
23493      fi
23494      if test -z "${DB_BACKENDS}"; then
23495          DB_BACKENDS="ingres"
23496      else
23497          DB_BACKENDS="${DB_BACKENDS} ingres"
23498      fi
23499   else
23500      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23501 $as_echo "no" >&6; }
23502   fi
23503
23504 else
23505
23506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23507 $as_echo "no" >&6; }
23508
23509 fi
23510
23511
23512
23513
23514
23515
23516
23517
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23519 $as_echo_n "checking for DBI support... " >&6; }
23520
23521 # Check whether --with-dbi was given.
23522 if test "${with_dbi+set}" = set; then :
23523   withval=$with_dbi;
23524   if test "$withval" != "no"; then
23525      if test "$withval" = "yes"; then
23526         if test -f /usr/local/include/dbi/dbi.h; then
23527            DBI_INCDIR=/usr/local/dbi/include
23528            if test -d /usr/local/lib64; then
23529               DBI_LIBDIR=/usr/local/lib64
23530            else
23531               DBI_LIBDIR=/usr/local/lib
23532            fi
23533            DBI_BINDIR=/usr/local/bin
23534         elif test -f /usr/include/dbi/dbi.h; then
23535            DBI_INCDIR=/usr/include
23536            if test -d /usr/lib64; then
23537               DBI_LIBDIR=/usr/lib64
23538            else
23539               DBI_LIBDIR=/usr/lib
23540            fi
23541            DBI_BINDIR=/usr/bin
23542         elif test -f $prefix/include/dbi/dbi.h; then
23543            DBI_INCDIR=$prefix/include
23544            if test -d $prefix/lib64; then
23545               DBI_LIBDIR=$prefix/lib64
23546            else
23547               DBI_LIBDIR=$prefix/lib
23548            fi
23549            DBI_BINDIR=$prefix/bin
23550         else
23551            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23552 $as_echo "no" >&6; }
23553            as_fn_error $? "Unable to find dbi.h in standard locations" "$LINENO" 5
23554         fi
23555         if test -d /usr/local/lib/dbd; then
23556            DRIVERDIR=/usr/local/lib/dbd
23557            if test -d /usr/local/lib64/dbd; then
23558               DRIVERDIR=/usr/local/lib64/dbd
23559            else
23560               DRIVERDIR=/usr/local/lib/dbd
23561            fi
23562         elif test -d /usr/lib/dbd; then
23563            DRIVERDIR=/usr/lib/dbd
23564            if test -d /usr/lib64/dbd; then
23565               DRIVERDIR=/usr/lib64/dbd
23566            else
23567               DRIVERDIR=/usr/lib/dbd
23568            fi
23569         elif test -d $prefix/lib/dbd; then
23570            if test -d $prefix/lib64/dbd; then
23571               DRIVERDIR=$prefix/lib64/dbd
23572            else
23573               DRIVERDIR=$prefix/lib/dbd
23574            fi
23575         elif test -d /usr/local/lib64/dbd; then
23576            DRIVERDIR=/usr/local/lib64/dbd
23577         elif test -d /usr/lib64/dbd; then
23578            DRIVERDIR=/usr/lib64/dbd
23579         elif test -d $prefix/lib64/dbd; then
23580            DRIVERDIR=$prefix/lib64/dbd
23581         else
23582            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23583 $as_echo "no" >&6; }
23584            as_fn_error $? "Unable to find DBD drivers in standard locations" "$LINENO" 5
23585         fi
23586      else
23587         if test -f $withval/dbi.h; then
23588            DBI_INCDIR=$withval
23589            DBI_LIBDIR=$withval
23590            DBI_BINDIR=$withval
23591         elif test -f $withval/include/dbi/dbi.h; then
23592            DBI_INCDIR=$withval/include
23593            if test -d $withval/lib64; then
23594               DBI_LIBDIR=$withval/lib64
23595            else
23596               DBI_LIBDIR=$withval/lib
23597            fi
23598            DBI_BINDIR=$withval/bin
23599         else
23600            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23601 $as_echo "no" >&6; }
23602            as_fn_error $? "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23603         fi
23604         if test -d $withval/dbd; then
23605            DRIVERDIR=$withval/dbd
23606         elif test -d $withval/lib/; then
23607            if test -d $withval/lib64/dbd; then
23608               DRIVERDIR=$withval/lib64/dbd
23609            else
23610               DRIVERDIR=$withval/lib/dbd
23611            fi
23612         elif test -d $withval/lib64/dbd; then
23613            DRIVERDIR=$withval/lib64/dbd
23614         else
23615            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23616 $as_echo "no" >&6; }
23617            as_fn_error $? "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23618         fi
23619      fi
23620      DBI_INCLUDE=-I$DBI_INCDIR
23621      DBI_LIBS="-R $DBI_LIBDIR -L$DBI_LIBDIR -ldbi"
23622      DBI_LIB=$DBI_LIBDIR/libdbi.a
23623      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23624      DB_LIBS="${DB_LIBS} ${DBI_LIBS}"
23625
23626
23627 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23628
23629      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23630 $as_echo "yes" >&6; }
23631
23632      if test -z "${db_backends}"; then
23633          db_backends="DBI"
23634      else
23635          db_backends="${db_backends} DBI"
23636      fi
23637      if test -z "${DB_BACKENDS}" ; then
23638         DB_BACKENDS="dbi"
23639      else
23640         DB_BACKENDS="${DB_BACKENDS} dbi"
23641      fi
23642      uncomment_dbi=" "
23643
23644   else
23645      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23646 $as_echo "no" >&6; }
23647   fi
23648
23649 else
23650
23651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23652 $as_echo "no" >&6; }
23653
23654 fi
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666 db_prog=no
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23668 $as_echo_n "checking for DBI drivers support... " >&6; }
23669
23670 # Check whether --with-dbi-driver was given.
23671 if test "${with_dbi_driver+set}" = set; then :
23672   withval=$with_dbi_driver;
23673   if test "$withval" != "no"; then
23674      case $withval in
23675         "mysql")
23676            db_prog="mysql"
23677            if test -f /usr/local/mysql/bin/mysql; then
23678               SQL_BINDIR=/usr/local/mysql/bin
23679               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23680                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23681                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23682               else
23683                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23684               fi
23685            elif test -f /usr/bin/mysql; then
23686               SQL_BINDIR=/usr/bin
23687               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23688                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23689                   MYSQL_LIBDIR=/usr/lib64/mysql
23690               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23691                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23692                   MYSQL_LIBDIR=/usr/lib/mysql
23693               else
23694                   MYSQL_LIBDIR=/usr/lib
23695               fi
23696            elif test -f /usr/local/bin/mysql; then
23697               SQL_BINDIR=/usr/local/bin
23698               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23699                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23700                   MYSQL_LIBDIR=/usr/local/lib64/mysql
23701               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23702                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23703                   MYSQL_LIBDIR=/usr/local/lib/mysql
23704               else
23705                   MYSQL_LIBDIR=/usr/local/lib
23706               fi
23707            elif test -f $withval/bin/mysql; then
23708               SQL_BINDIR=$withval/bin
23709               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23710                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23711                   MYSQL_LIBDIR=$withval/lib64/mysql
23712               elif test -f $withval/lib64/libmysqlclient_r.a \
23713                   -o -f $withval/lib64/libmysqlclient_r.so; then
23714                   MYSQL_LIBDIR=$withval/lib64
23715               elif test -f $withval/lib/libmysqlclient_r.a \
23716                   -o -f $withval/lib/libmysqlclient_r.so; then
23717                   MYSQL_LIBDIR=$withval/lib/
23718               else
23719                   MYSQL_LIBDIR=$withval/lib/mysql
23720               fi
23721            else
23722               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23723 $as_echo "no" >&6; }
23724               as_fn_error $? "Unable to find mysql in standard locations" "$LINENO" 5
23725            fi
23726            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23727               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23728            else
23729               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23730            fi
23731         ;;
23732         "postgresql")
23733            db_prog="postgresql"
23734            PG_CONFIG=`which pg_config`
23735            if test -n "$PG_CONFIG"; then
23736               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23737               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23738            elif test -f /usr/local/bin/psql; then
23739               POSTGRESQL_BINDIR=/usr/local/bin
23740               if test -d /usr/local/lib64; then
23741                  POSTGRESQL_LIBDIR=/usr/local/lib64
23742               else
23743                  POSTGRESQL_LIBDIR=/usr/local/lib
23744               fi
23745            elif test -f /usr/bin/psql; then
23746               POSTGRESQL_BINDIR=/usr/local/bin
23747               if test -d /usr/lib64/postgresql; then
23748                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23749               elif test -d /usr/lib/postgresql; then
23750                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23751               elif test -d /usr/lib64; then
23752                  POSTGRESQL_LIBDIR=/usr/lib64
23753               else
23754                  POSTGRESQL_LIBDIR=/usr/lib
23755               fi
23756            elif test -f $withval/bin/psql; then
23757               POSTGRESQL_BINDIR=$withval/bin
23758               if test -d $withval/lib64; then
23759                  POSTGRESQL_LIBDIR=$withval/lib64
23760               else
23761                  POSTGRESQL_LIBDIR=$withval/lib
23762               fi
23763            else
23764               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23765 $as_echo "no" >&6; }
23766               as_fn_error $? "Unable to find psql in standard locations" "$LINENO" 5
23767            fi
23768            if test -f $POSTGRESQL_LIBDIR/libpq.so; then
23769               DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.so
23770            else
23771               DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.a
23772            fi
23773         ;;
23774         "sqlite3")
23775            db_prog="sqlite3"
23776            if test -f /usr/local/bin/sqlite3; then
23777               SQLITE_BINDIR=/usr/local/bin
23778               if test -d /usr/local/lib64; then
23779                  SQLITE_LIBDIR=/usr/local/lib64
23780               else
23781                  SQLITE_LIBDIR=/usr/local/lib
23782               fi
23783            elif test -f /usr/bin/sqlite3; then
23784               SQLITE_BINDIR=/usr/bin
23785               if test -d /usr/lib64; then
23786                  SQLITE_LIBDIR=/usr/lib64
23787               else
23788                  SQLITE_LIBDIR=/usr/lib
23789               fi
23790            elif test -f $withval/bin/sqlite3; then
23791               SQLITE_BINDIR=$withval/bin
23792               if test -d $withval/lib64; then
23793                  SQLITE_LIBDIR=$withval/lib64
23794               else
23795                  SQLITE_LIBDIR=$withval/lib
23796               fi
23797            else
23798               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23799 $as_echo "no" >&6; }
23800               as_fn_error $? "Unable to find sqlite in standard locations" "$LINENO" 5
23801            fi
23802            if test -f $SQLITE_LIBDIR/libsqlite3.so; then
23803               DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.so
23804            else
23805               DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.a
23806            fi
23807         ;;
23808         *)
23809            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23810 $as_echo "no" >&6; }
23811            as_fn_error $? "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23812         ;;
23813      esac
23814
23815      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23816 $as_echo "yes" >&6; }
23817      DB_PROG=$db_prog
23818   else
23819      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23820 $as_echo "no" >&6; }
23821   fi
23822
23823 else
23824
23825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23826 $as_echo "no" >&6; }
23827
23828 fi
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839 if test "x${db_backends}" = "x" ; then
23840    echo " "
23841    echo " "
23842    echo "You have not specified either --enable-client-only or one of the"
23843    echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23844    echo "This is not permitted. Please reconfigure."
23845    echo " "
23846    echo "Aborting the configuration ..."
23847    echo " "
23848    echo " "
23849    exit 1
23850 fi
23851
23852 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23853    1)
23854       DEFAULT_DB_TYPE="${DB_BACKENDS}"
23855       if test x$use_libtool = xno; then
23856          SHARED_CATALOG_TARGETS=""
23857       else
23858          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23859       fi
23860       ;;
23861    *)
23862                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23863
23864                         if test x$use_libtool = xno; then
23865          echo " "
23866          echo " "
23867          echo "You have specified two or more of the"
23868          echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23869          echo "This is not permitted when not using libtool Please reconfigure."
23870          echo " "
23871          echo "Aborting the configuration ..."
23872          echo " "
23873          echo " "
23874          exit 1
23875       fi
23876
23877       SHARED_CATALOG_TARGETS=""
23878       for db_type in ${DB_BACKENDS}
23879       do
23880          if test -z "${SHARED_CATALOG_TARGETS}"; then
23881             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23882          else
23883             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23884          fi
23885       done
23886       ;;
23887 esac
23888
23889 if test x$use_libtool = xyes; then
23890    DB_LIBS=""
23891 fi
23892
23893
23894
23895
23896
23897
23898 support_batch_insert=yes
23899 # Check whether --enable-batch-insert was given.
23900 if test "${enable_batch_insert+set}" = set; then :
23901   enableval=$enable_batch_insert;
23902        if test x$enableval = xno; then
23903           support_batch_insert=no
23904        fi
23905
23906
23907 fi
23908
23909
23910 if test x$support_batch_insert = xyes; then
23911
23912 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23913
23914 fi
23915
23916 if test ! -z "$MYSQL_LIB"; then
23917    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23918 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23919 if ${ac_cv_lib_mysql_r_mysql_thread_safe+:} false; then :
23920   $as_echo_n "(cached) " >&6
23921 else
23922   ac_check_lib_save_LIBS=$LIBS
23923 LIBS="-lmysql_r  $LIBS"
23924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23925 /* end confdefs.h.  */
23926
23927 /* Override any GCC internal prototype to avoid an error.
23928    Use char because int might match the return type of a GCC
23929    builtin and then its argument prototype would still apply.  */
23930 #ifdef __cplusplus
23931 extern "C"
23932 #endif
23933 char mysql_thread_safe ();
23934 int
23935 main ()
23936 {
23937 return mysql_thread_safe ();
23938   ;
23939   return 0;
23940 }
23941 _ACEOF
23942 if ac_fn_c_try_link "$LINENO"; then :
23943   ac_cv_lib_mysql_r_mysql_thread_safe=yes
23944 else
23945   ac_cv_lib_mysql_r_mysql_thread_safe=no
23946 fi
23947 rm -f core conftest.err conftest.$ac_objext \
23948     conftest$ac_exeext conftest.$ac_ext
23949 LIBS=$ac_check_lib_save_LIBS
23950 fi
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23952 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23953 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = xyes; then :
23954
23955 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23956
23957 fi
23958
23959 fi
23960
23961 if test ! -z "SQLITE_LIB"; then
23962    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23963 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23964 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
23965   $as_echo_n "(cached) " >&6
23966 else
23967   ac_check_lib_save_LIBS=$LIBS
23968 LIBS="-lsqlite3  $LIBS"
23969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23970 /* end confdefs.h.  */
23971
23972 /* Override any GCC internal prototype to avoid an error.
23973    Use char because int might match the return type of a GCC
23974    builtin and then its argument prototype would still apply.  */
23975 #ifdef __cplusplus
23976 extern "C"
23977 #endif
23978 char sqlite3_threadsafe ();
23979 int
23980 main ()
23981 {
23982 return sqlite3_threadsafe ();
23983   ;
23984   return 0;
23985 }
23986 _ACEOF
23987 if ac_fn_c_try_link "$LINENO"; then :
23988   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23989 else
23990   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23991 fi
23992 rm -f core conftest.err conftest.$ac_objext \
23993     conftest$ac_exeext conftest.$ac_ext
23994 LIBS=$ac_check_lib_save_LIBS
23995 fi
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23997 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23998 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
23999
24000 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24001
24002 fi
24003
24004 fi
24005
24006 if test ! -z "$POSTGRESQL_LIB"; then
24007       saved_LIBS="${LIBS}"
24008    LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
24009
24010    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24011 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24012 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24013   $as_echo_n "(cached) " >&6
24014 else
24015   ac_check_lib_save_LIBS=$LIBS
24016 LIBS="-lpq  $LIBS"
24017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24018 /* end confdefs.h.  */
24019
24020 /* Override any GCC internal prototype to avoid an error.
24021    Use char because int might match the return type of a GCC
24022    builtin and then its argument prototype would still apply.  */
24023 #ifdef __cplusplus
24024 extern "C"
24025 #endif
24026 char PQisthreadsafe ();
24027 int
24028 main ()
24029 {
24030 return PQisthreadsafe ();
24031   ;
24032   return 0;
24033 }
24034 _ACEOF
24035 if ac_fn_c_try_link "$LINENO"; then :
24036   ac_cv_lib_pq_PQisthreadsafe=yes
24037 else
24038   ac_cv_lib_pq_PQisthreadsafe=no
24039 fi
24040 rm -f core conftest.err conftest.$ac_objext \
24041     conftest$ac_exeext conftest.$ac_ext
24042 LIBS=$ac_check_lib_save_LIBS
24043 fi
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24045 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24046 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24047
24048 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24049
24050 fi
24051
24052    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24053 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24054 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24055   $as_echo_n "(cached) " >&6
24056 else
24057   ac_check_lib_save_LIBS=$LIBS
24058 LIBS="-lpq  $LIBS"
24059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24060 /* end confdefs.h.  */
24061
24062 /* Override any GCC internal prototype to avoid an error.
24063    Use char because int might match the return type of a GCC
24064    builtin and then its argument prototype would still apply.  */
24065 #ifdef __cplusplus
24066 extern "C"
24067 #endif
24068 char PQputCopyData ();
24069 int
24070 main ()
24071 {
24072 return PQputCopyData ();
24073   ;
24074   return 0;
24075 }
24076 _ACEOF
24077 if ac_fn_c_try_link "$LINENO"; then :
24078   ac_cv_lib_pq_PQputCopyData=yes
24079 else
24080   ac_cv_lib_pq_PQputCopyData=no
24081 fi
24082 rm -f core conftest.err conftest.$ac_objext \
24083     conftest$ac_exeext conftest.$ac_ext
24084 LIBS=$ac_check_lib_save_LIBS
24085 fi
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24087 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24088 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24089
24090 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24091
24092 fi
24093
24094    if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24095       if test $support_batch_insert = yes ; then
24096
24097 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24098
24099       fi
24100    fi
24101
24102    if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24103    then
24104       echo "WARNING: Your PostgreSQL client library is too old to detect "
24105       echo "if it was compiled with --enable-thread-safety, consider to "
24106       echo "upgrade it in order to avoid problems with Batch insert mode"
24107       echo
24108    fi
24109
24110       LIBS="${saved_LIBS}"
24111 fi
24112
24113 if test ! -z "$DBI_LIBS"; then
24114             DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
24115
24116             if test $DB_PROG = postgresql; then
24117       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24118 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24119 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24120   $as_echo_n "(cached) " >&6
24121 else
24122   ac_check_lib_save_LIBS=$LIBS
24123 LIBS="-lpq  $LIBS"
24124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24125 /* end confdefs.h.  */
24126
24127 /* Override any GCC internal prototype to avoid an error.
24128    Use char because int might match the return type of a GCC
24129    builtin and then its argument prototype would still apply.  */
24130 #ifdef __cplusplus
24131 extern "C"
24132 #endif
24133 char PQisthreadsafe ();
24134 int
24135 main ()
24136 {
24137 return PQisthreadsafe ();
24138   ;
24139   return 0;
24140 }
24141 _ACEOF
24142 if ac_fn_c_try_link "$LINENO"; then :
24143   ac_cv_lib_pq_PQisthreadsafe=yes
24144 else
24145   ac_cv_lib_pq_PQisthreadsafe=no
24146 fi
24147 rm -f core conftest.err conftest.$ac_objext \
24148     conftest$ac_exeext conftest.$ac_ext
24149 LIBS=$ac_check_lib_save_LIBS
24150 fi
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24152 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24153 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24154   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24155
24156 fi
24157
24158       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24159 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24160 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24161   $as_echo_n "(cached) " >&6
24162 else
24163   ac_check_lib_save_LIBS=$LIBS
24164 LIBS="-lpq  $LIBS"
24165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24166 /* end confdefs.h.  */
24167
24168 /* Override any GCC internal prototype to avoid an error.
24169    Use char because int might match the return type of a GCC
24170    builtin and then its argument prototype would still apply.  */
24171 #ifdef __cplusplus
24172 extern "C"
24173 #endif
24174 char PQputCopyData ();
24175 int
24176 main ()
24177 {
24178 return PQputCopyData ();
24179   ;
24180   return 0;
24181 }
24182 _ACEOF
24183 if ac_fn_c_try_link "$LINENO"; then :
24184   ac_cv_lib_pq_PQputCopyData=yes
24185 else
24186   ac_cv_lib_pq_PQputCopyData=no
24187 fi
24188 rm -f core conftest.err conftest.$ac_objext \
24189     conftest$ac_exeext conftest.$ac_ext
24190 LIBS=$ac_check_lib_save_LIBS
24191 fi
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24193 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24194 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24195   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24196
24197 fi
24198
24199       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24200       pkg=$?
24201       if test $pkg = 0; then
24202          if test $support_batch_insert = yes ; then
24203
24204 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24205
24206          fi
24207       fi
24208    fi
24209 else
24210             uncomment_dbi="#"
24211 fi
24212
24213
24214
24215 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24216
24217
24218 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24219    if test -z "$CCOPTS"; then
24220       CCOPTS='-g -O2 -Wall'
24221    fi
24222    CFLAGS="$CCOPTS"
24223 fi
24224
24225
24226
24227 largefile_support="no"
24228
24229    # Check whether --enable-largefile was given.
24230 if test "${enable_largefile+set}" = set; then :
24231   enableval=$enable_largefile;
24232 fi
24233
24234    if test "$enable_largefile" != no; then
24235      if test -n "$ac_tool_prefix"; then
24236   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24237 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24239 $as_echo_n "checking for $ac_word... " >&6; }
24240 if ${ac_cv_prog_GETCONF+:} false; then :
24241   $as_echo_n "(cached) " >&6
24242 else
24243   if test -n "$GETCONF"; then
24244   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24245 else
24246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24247 for as_dir in $PATH
24248 do
24249   IFS=$as_save_IFS
24250   test -z "$as_dir" && as_dir=.
24251     for ac_exec_ext in '' $ac_executable_extensions; do
24252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24253     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24255     break 2
24256   fi
24257 done
24258   done
24259 IFS=$as_save_IFS
24260
24261 fi
24262 fi
24263 GETCONF=$ac_cv_prog_GETCONF
24264 if test -n "$GETCONF"; then
24265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24266 $as_echo "$GETCONF" >&6; }
24267 else
24268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24269 $as_echo "no" >&6; }
24270 fi
24271
24272
24273 fi
24274 if test -z "$ac_cv_prog_GETCONF"; then
24275   ac_ct_GETCONF=$GETCONF
24276   # Extract the first word of "getconf", so it can be a program name with args.
24277 set dummy getconf; ac_word=$2
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24279 $as_echo_n "checking for $ac_word... " >&6; }
24280 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24281   $as_echo_n "(cached) " >&6
24282 else
24283   if test -n "$ac_ct_GETCONF"; then
24284   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24285 else
24286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24287 for as_dir in $PATH
24288 do
24289   IFS=$as_save_IFS
24290   test -z "$as_dir" && as_dir=.
24291     for ac_exec_ext in '' $ac_executable_extensions; do
24292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24293     ac_cv_prog_ac_ct_GETCONF="getconf"
24294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24295     break 2
24296   fi
24297 done
24298   done
24299 IFS=$as_save_IFS
24300
24301 fi
24302 fi
24303 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24304 if test -n "$ac_ct_GETCONF"; then
24305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24306 $as_echo "$ac_ct_GETCONF" >&6; }
24307 else
24308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24309 $as_echo "no" >&6; }
24310 fi
24311
24312   if test "x$ac_ct_GETCONF" = x; then
24313     GETCONF=""
24314   else
24315     case $cross_compiling:$ac_tool_warned in
24316 yes:)
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24319 ac_tool_warned=yes ;;
24320 esac
24321     GETCONF=$ac_ct_GETCONF
24322   fi
24323 else
24324   GETCONF="$ac_cv_prog_GETCONF"
24325 fi
24326
24327      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24328 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24329 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24330   $as_echo_n "(cached) " >&6
24331 else
24332   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24333         ac_cv_sys_largefile_CFLAGS=no
24334         case "$host_os" in
24335            # IRIX 6.2 and later require cc -n32.
24336            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24337              if test "$GCC" != yes; then
24338                ac_cv_sys_largefile_CFLAGS=-n32
24339              fi
24340              ac_save_CC="$CC"
24341              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24342              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24343 /* end confdefs.h.  */
24344
24345 int
24346 main ()
24347 {
24348
24349   ;
24350   return 0;
24351 }
24352 _ACEOF
24353 if ac_fn_c_try_link "$LINENO"; then :
24354
24355 else
24356   ac_cv_sys_largefile_CFLAGS=no
24357 fi
24358 rm -f core conftest.err conftest.$ac_objext \
24359     conftest$ac_exeext conftest.$ac_ext
24360              CC="$ac_save_CC"
24361            esac
24362       }
24363 fi
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24365 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24366      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24367 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24368 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24369   $as_echo_n "(cached) " >&6
24370 else
24371   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24372         ac_cv_sys_largefile_LDFLAGS=no
24373
24374       }
24375 fi
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24377 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24378      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24379 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24380 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24381   $as_echo_n "(cached) " >&6
24382 else
24383   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24384         ac_cv_sys_largefile_LIBS=no
24385
24386       }
24387 fi
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24389 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24390
24391      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24392        case "$ac_flag" in
24393        no) ;;
24394        -D_FILE_OFFSET_BITS=*) ;;
24395        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24396        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24397        -D?* | -I?*)
24398          case "$ac_flag" in
24399    no) ;;
24400    ?*)
24401      case "$CPPFLAGS" in
24402      '') CPPFLAGS="$ac_flag" ;;
24403      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24404      esac ;;
24405    esac ;;
24406        *)
24407          case "$ac_flag" in
24408    no) ;;
24409    ?*)
24410      case "$CFLAGS" in
24411      '') CFLAGS="$ac_flag" ;;
24412      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24413      esac ;;
24414    esac ;;
24415        esac
24416      done
24417      case "$ac_cv_sys_largefile_LDFLAGS" in
24418    no) ;;
24419    ?*)
24420      case "$LDFLAGS" in
24421      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24422      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24423      esac ;;
24424    esac
24425      case "$ac_cv_sys_largefile_LIBS" in
24426    no) ;;
24427    ?*)
24428      case "$LIBS" in
24429      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24430      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24431      esac ;;
24432    esac
24433      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24434 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24435 if ${ac_cv_sys_file_offset_bits+:} false; then :
24436   $as_echo_n "(cached) " >&6
24437 else
24438   ac_cv_sys_file_offset_bits=no
24439       ac_cv_sys_file_offset_bits=64
24440       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24441         case "$ac_flag" in
24442         -D_FILE_OFFSET_BITS)
24443           ac_cv_sys_file_offset_bits=1 ;;
24444         -D_FILE_OFFSET_BITS=*)
24445           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24446         esac
24447       done
24448
24449 fi
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24451 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24452    if test "$ac_cv_sys_file_offset_bits" != no; then
24453
24454 cat >>confdefs.h <<_ACEOF
24455 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24456 _ACEOF
24457
24458    fi
24459      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24460 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24461 if ${ac_cv_sys_largefile_source+:} false; then :
24462   $as_echo_n "(cached) " >&6
24463 else
24464   ac_cv_sys_largefile_source=no
24465       ac_cv_sys_largefile_source=1
24466       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24467         case "$ac_flag" in
24468         -D_LARGEFILE_SOURCE)
24469           ac_cv_sys_largefile_source=1 ;;
24470         -D_LARGEFILE_SOURCE=*)
24471           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24472         esac
24473       done
24474
24475 fi
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24477 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24478    if test "$ac_cv_sys_largefile_source" != no; then
24479
24480 cat >>confdefs.h <<_ACEOF
24481 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24482 _ACEOF
24483
24484    fi
24485      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24486 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24487 if ${ac_cv_sys_large_files+:} false; then :
24488   $as_echo_n "(cached) " >&6
24489 else
24490   ac_cv_sys_large_files=no
24491       ac_cv_sys_large_files=1
24492       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24493         case "$ac_flag" in
24494         -D_LARGE_FILES)
24495           ac_cv_sys_large_files=1 ;;
24496         -D_LARGE_FILES=*)
24497           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24498         esac
24499       done
24500
24501 fi
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24503 $as_echo "$ac_cv_sys_large_files" >&6; }
24504    if test "$ac_cv_sys_large_files" != no; then
24505
24506 cat >>confdefs.h <<_ACEOF
24507 #define _LARGE_FILES $ac_cv_sys_large_files
24508 _ACEOF
24509
24510    fi
24511    fi
24512
24513
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24515 $as_echo_n "checking for X... " >&6; }
24516
24517
24518 # Check whether --with-x was given.
24519 if test "${with_x+set}" = set; then :
24520   withval=$with_x;
24521 fi
24522
24523 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24524 if test "x$with_x" = xno; then
24525   # The user explicitly disabled X.
24526   have_x=disabled
24527 else
24528   case $x_includes,$x_libraries in #(
24529     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24530     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24531   $as_echo_n "(cached) " >&6
24532 else
24533   # One or both of the vars are not set, and there is no cached value.
24534 ac_x_includes=no ac_x_libraries=no
24535 rm -f -r conftest.dir
24536 if mkdir conftest.dir; then
24537   cd conftest.dir
24538   cat >Imakefile <<'_ACEOF'
24539 incroot:
24540         @echo incroot='${INCROOT}'
24541 usrlibdir:
24542         @echo usrlibdir='${USRLIBDIR}'
24543 libdir:
24544         @echo libdir='${LIBDIR}'
24545 _ACEOF
24546   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24547     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24548     for ac_var in incroot usrlibdir libdir; do
24549       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24550     done
24551     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24552     for ac_extension in a so sl dylib la dll; do
24553       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24554          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24555         ac_im_usrlibdir=$ac_im_libdir; break
24556       fi
24557     done
24558     # Screen out bogus values from the imake configuration.  They are
24559     # bogus both because they are the default anyway, and because
24560     # using them would break gcc on systems where it needs fixed includes.
24561     case $ac_im_incroot in
24562         /usr/include) ac_x_includes= ;;
24563         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24564     esac
24565     case $ac_im_usrlibdir in
24566         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24567         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24568     esac
24569   fi
24570   cd ..
24571   rm -f -r conftest.dir
24572 fi
24573
24574 # Standard set of common directories for X headers.
24575 # Check X11 before X11Rn because it is often a symlink to the current release.
24576 ac_x_header_dirs='
24577 /usr/X11/include
24578 /usr/X11R7/include
24579 /usr/X11R6/include
24580 /usr/X11R5/include
24581 /usr/X11R4/include
24582
24583 /usr/include/X11
24584 /usr/include/X11R7
24585 /usr/include/X11R6
24586 /usr/include/X11R5
24587 /usr/include/X11R4
24588
24589 /usr/local/X11/include
24590 /usr/local/X11R7/include
24591 /usr/local/X11R6/include
24592 /usr/local/X11R5/include
24593 /usr/local/X11R4/include
24594
24595 /usr/local/include/X11
24596 /usr/local/include/X11R7
24597 /usr/local/include/X11R6
24598 /usr/local/include/X11R5
24599 /usr/local/include/X11R4
24600
24601 /usr/X386/include
24602 /usr/x386/include
24603 /usr/XFree86/include/X11
24604
24605 /usr/include
24606 /usr/local/include
24607 /usr/unsupported/include
24608 /usr/athena/include
24609 /usr/local/x11r5/include
24610 /usr/lpp/Xamples/include
24611
24612 /usr/openwin/include
24613 /usr/openwin/share/include'
24614
24615 if test "$ac_x_includes" = no; then
24616   # Guess where to find include files, by looking for Xlib.h.
24617   # First, try using that file with no special directory specified.
24618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24619 /* end confdefs.h.  */
24620 #include <X11/Xlib.h>
24621 _ACEOF
24622 if ac_fn_c_try_cpp "$LINENO"; then :
24623   # We can compile using X headers with no special include directory.
24624 ac_x_includes=
24625 else
24626   for ac_dir in $ac_x_header_dirs; do
24627   if test -r "$ac_dir/X11/Xlib.h"; then
24628     ac_x_includes=$ac_dir
24629     break
24630   fi
24631 done
24632 fi
24633 rm -f conftest.err conftest.i conftest.$ac_ext
24634 fi # $ac_x_includes = no
24635
24636 if test "$ac_x_libraries" = no; then
24637   # Check for the libraries.
24638   # See if we find them without any special options.
24639   # Don't add to $LIBS permanently.
24640   ac_save_LIBS=$LIBS
24641   LIBS="-lX11 $LIBS"
24642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24643 /* end confdefs.h.  */
24644 #include <X11/Xlib.h>
24645 int
24646 main ()
24647 {
24648 XrmInitialize ()
24649   ;
24650   return 0;
24651 }
24652 _ACEOF
24653 if ac_fn_c_try_link "$LINENO"; then :
24654   LIBS=$ac_save_LIBS
24655 # We can link X programs with no special library path.
24656 ac_x_libraries=
24657 else
24658   LIBS=$ac_save_LIBS
24659 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24660 do
24661   # Don't even attempt the hair of trying to link an X program!
24662   for ac_extension in a so sl dylib la dll; do
24663     if test -r "$ac_dir/libX11.$ac_extension"; then
24664       ac_x_libraries=$ac_dir
24665       break 2
24666     fi
24667   done
24668 done
24669 fi
24670 rm -f core conftest.err conftest.$ac_objext \
24671     conftest$ac_exeext conftest.$ac_ext
24672 fi # $ac_x_libraries = no
24673
24674 case $ac_x_includes,$ac_x_libraries in #(
24675   no,* | *,no | *\'*)
24676     # Didn't find X, or a directory has "'" in its name.
24677     ac_cv_have_x="have_x=no";; #(
24678   *)
24679     # Record where we found X for the cache.
24680     ac_cv_have_x="have_x=yes\
24681         ac_x_includes='$ac_x_includes'\
24682         ac_x_libraries='$ac_x_libraries'"
24683 esac
24684 fi
24685 ;; #(
24686     *) have_x=yes;;
24687   esac
24688   eval "$ac_cv_have_x"
24689 fi # $with_x != no
24690
24691 if test "$have_x" != yes; then
24692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24693 $as_echo "$have_x" >&6; }
24694   no_x=yes
24695 else
24696   # If each of the values was on the command line, it overrides each guess.
24697   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24698   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24699   # Update the cache value to reflect the command line values.
24700   ac_cv_have_x="have_x=yes\
24701         ac_x_includes='$x_includes'\
24702         ac_x_libraries='$x_libraries'"
24703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24704 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24705 fi
24706
24707 if test "$no_x" = yes; then
24708   # Not all programs may use this symbol, but it does not hurt to define it.
24709
24710 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24711
24712   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24713 else
24714   if test -n "$x_includes"; then
24715     X_CFLAGS="$X_CFLAGS -I$x_includes"
24716   fi
24717
24718   # It would also be nice to do this for all -L options, not just this one.
24719   if test -n "$x_libraries"; then
24720     X_LIBS="$X_LIBS -L$x_libraries"
24721     # For Solaris; some versions of Sun CC require a space after -R and
24722     # others require no space.  Words are not sufficient . . . .
24723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24724 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24725     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24726     ac_xsave_c_werror_flag=$ac_c_werror_flag
24727     ac_c_werror_flag=yes
24728     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24729 /* end confdefs.h.  */
24730
24731 int
24732 main ()
24733 {
24734
24735   ;
24736   return 0;
24737 }
24738 _ACEOF
24739 if ac_fn_c_try_link "$LINENO"; then :
24740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24741 $as_echo "no" >&6; }
24742        X_LIBS="$X_LIBS -R$x_libraries"
24743 else
24744   LIBS="$ac_xsave_LIBS -R $x_libraries"
24745        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24746 /* end confdefs.h.  */
24747
24748 int
24749 main ()
24750 {
24751
24752   ;
24753   return 0;
24754 }
24755 _ACEOF
24756 if ac_fn_c_try_link "$LINENO"; then :
24757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24758 $as_echo "yes" >&6; }
24759           X_LIBS="$X_LIBS -R $x_libraries"
24760 else
24761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24762 $as_echo "neither works" >&6; }
24763 fi
24764 rm -f core conftest.err conftest.$ac_objext \
24765     conftest$ac_exeext conftest.$ac_ext
24766 fi
24767 rm -f core conftest.err conftest.$ac_objext \
24768     conftest$ac_exeext conftest.$ac_ext
24769     ac_c_werror_flag=$ac_xsave_c_werror_flag
24770     LIBS=$ac_xsave_LIBS
24771   fi
24772
24773   # Check for system-dependent libraries X programs must link with.
24774   # Do this before checking for the system-independent R6 libraries
24775   # (-lICE), since we may need -lsocket or whatever for X linking.
24776
24777   if test "$ISC" = yes; then
24778     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24779   else
24780     # Martyn Johnson says this is needed for Ultrix, if the X
24781     # libraries were built with DECnet support.  And Karl Berry says
24782     # the Alpha needs dnet_stub (dnet does not exist).
24783     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24784     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785 /* end confdefs.h.  */
24786
24787 /* Override any GCC internal prototype to avoid an error.
24788    Use char because int might match the return type of a GCC
24789    builtin and then its argument prototype would still apply.  */
24790 #ifdef __cplusplus
24791 extern "C"
24792 #endif
24793 char XOpenDisplay ();
24794 int
24795 main ()
24796 {
24797 return XOpenDisplay ();
24798   ;
24799   return 0;
24800 }
24801 _ACEOF
24802 if ac_fn_c_try_link "$LINENO"; then :
24803
24804 else
24805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24806 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24807 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
24808   $as_echo_n "(cached) " >&6
24809 else
24810   ac_check_lib_save_LIBS=$LIBS
24811 LIBS="-ldnet  $LIBS"
24812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24813 /* end confdefs.h.  */
24814
24815 /* Override any GCC internal prototype to avoid an error.
24816    Use char because int might match the return type of a GCC
24817    builtin and then its argument prototype would still apply.  */
24818 #ifdef __cplusplus
24819 extern "C"
24820 #endif
24821 char dnet_ntoa ();
24822 int
24823 main ()
24824 {
24825 return dnet_ntoa ();
24826   ;
24827   return 0;
24828 }
24829 _ACEOF
24830 if ac_fn_c_try_link "$LINENO"; then :
24831   ac_cv_lib_dnet_dnet_ntoa=yes
24832 else
24833   ac_cv_lib_dnet_dnet_ntoa=no
24834 fi
24835 rm -f core conftest.err conftest.$ac_objext \
24836     conftest$ac_exeext conftest.$ac_ext
24837 LIBS=$ac_check_lib_save_LIBS
24838 fi
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24840 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24841 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
24842   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24843 fi
24844
24845     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24846       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24847 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24848 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
24849   $as_echo_n "(cached) " >&6
24850 else
24851   ac_check_lib_save_LIBS=$LIBS
24852 LIBS="-ldnet_stub  $LIBS"
24853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24854 /* end confdefs.h.  */
24855
24856 /* Override any GCC internal prototype to avoid an error.
24857    Use char because int might match the return type of a GCC
24858    builtin and then its argument prototype would still apply.  */
24859 #ifdef __cplusplus
24860 extern "C"
24861 #endif
24862 char dnet_ntoa ();
24863 int
24864 main ()
24865 {
24866 return dnet_ntoa ();
24867   ;
24868   return 0;
24869 }
24870 _ACEOF
24871 if ac_fn_c_try_link "$LINENO"; then :
24872   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24873 else
24874   ac_cv_lib_dnet_stub_dnet_ntoa=no
24875 fi
24876 rm -f core conftest.err conftest.$ac_objext \
24877     conftest$ac_exeext conftest.$ac_ext
24878 LIBS=$ac_check_lib_save_LIBS
24879 fi
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24881 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24882 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
24883   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24884 fi
24885
24886     fi
24887 fi
24888 rm -f core conftest.err conftest.$ac_objext \
24889     conftest$ac_exeext conftest.$ac_ext
24890     LIBS="$ac_xsave_LIBS"
24891
24892     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24893     # to get the SysV transport functions.
24894     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24895     # needs -lnsl.
24896     # The nsl library prevents programs from opening the X display
24897     # on Irix 5.2, according to T.E. Dickey.
24898     # The functions gethostbyname, getservbyname, and inet_addr are
24899     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24900     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24901 if test "x$ac_cv_func_gethostbyname" = xyes; then :
24902
24903 fi
24904
24905     if test $ac_cv_func_gethostbyname = no; then
24906       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24907 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24908 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
24909   $as_echo_n "(cached) " >&6
24910 else
24911   ac_check_lib_save_LIBS=$LIBS
24912 LIBS="-lnsl  $LIBS"
24913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24914 /* end confdefs.h.  */
24915
24916 /* Override any GCC internal prototype to avoid an error.
24917    Use char because int might match the return type of a GCC
24918    builtin and then its argument prototype would still apply.  */
24919 #ifdef __cplusplus
24920 extern "C"
24921 #endif
24922 char gethostbyname ();
24923 int
24924 main ()
24925 {
24926 return gethostbyname ();
24927   ;
24928   return 0;
24929 }
24930 _ACEOF
24931 if ac_fn_c_try_link "$LINENO"; then :
24932   ac_cv_lib_nsl_gethostbyname=yes
24933 else
24934   ac_cv_lib_nsl_gethostbyname=no
24935 fi
24936 rm -f core conftest.err conftest.$ac_objext \
24937     conftest$ac_exeext conftest.$ac_ext
24938 LIBS=$ac_check_lib_save_LIBS
24939 fi
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24941 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24942 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
24943   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24944 fi
24945
24946       if test $ac_cv_lib_nsl_gethostbyname = no; then
24947         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24948 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24949 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
24950   $as_echo_n "(cached) " >&6
24951 else
24952   ac_check_lib_save_LIBS=$LIBS
24953 LIBS="-lbsd  $LIBS"
24954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24955 /* end confdefs.h.  */
24956
24957 /* Override any GCC internal prototype to avoid an error.
24958    Use char because int might match the return type of a GCC
24959    builtin and then its argument prototype would still apply.  */
24960 #ifdef __cplusplus
24961 extern "C"
24962 #endif
24963 char gethostbyname ();
24964 int
24965 main ()
24966 {
24967 return gethostbyname ();
24968   ;
24969   return 0;
24970 }
24971 _ACEOF
24972 if ac_fn_c_try_link "$LINENO"; then :
24973   ac_cv_lib_bsd_gethostbyname=yes
24974 else
24975   ac_cv_lib_bsd_gethostbyname=no
24976 fi
24977 rm -f core conftest.err conftest.$ac_objext \
24978     conftest$ac_exeext conftest.$ac_ext
24979 LIBS=$ac_check_lib_save_LIBS
24980 fi
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24982 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24983 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
24984   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24985 fi
24986
24987       fi
24988     fi
24989
24990     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24991     # socket/setsockopt and other routines are undefined under SCO ODT
24992     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24993     # on later versions), says Simon Leinen: it contains gethostby*
24994     # variants that don't use the name server (or something).  -lsocket
24995     # must be given before -lnsl if both are needed.  We assume that
24996     # if connect needs -lnsl, so does gethostbyname.
24997     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24998 if test "x$ac_cv_func_connect" = xyes; then :
24999
25000 fi
25001
25002     if test $ac_cv_func_connect = no; then
25003       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25004 $as_echo_n "checking for connect in -lsocket... " >&6; }
25005 if ${ac_cv_lib_socket_connect+:} false; then :
25006   $as_echo_n "(cached) " >&6
25007 else
25008   ac_check_lib_save_LIBS=$LIBS
25009 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25011 /* end confdefs.h.  */
25012
25013 /* Override any GCC internal prototype to avoid an error.
25014    Use char because int might match the return type of a GCC
25015    builtin and then its argument prototype would still apply.  */
25016 #ifdef __cplusplus
25017 extern "C"
25018 #endif
25019 char connect ();
25020 int
25021 main ()
25022 {
25023 return connect ();
25024   ;
25025   return 0;
25026 }
25027 _ACEOF
25028 if ac_fn_c_try_link "$LINENO"; then :
25029   ac_cv_lib_socket_connect=yes
25030 else
25031   ac_cv_lib_socket_connect=no
25032 fi
25033 rm -f core conftest.err conftest.$ac_objext \
25034     conftest$ac_exeext conftest.$ac_ext
25035 LIBS=$ac_check_lib_save_LIBS
25036 fi
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25038 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25039 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25040   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25041 fi
25042
25043     fi
25044
25045     # Guillermo Gomez says -lposix is necessary on A/UX.
25046     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25047 if test "x$ac_cv_func_remove" = xyes; then :
25048
25049 fi
25050
25051     if test $ac_cv_func_remove = no; then
25052       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25053 $as_echo_n "checking for remove in -lposix... " >&6; }
25054 if ${ac_cv_lib_posix_remove+:} false; then :
25055   $as_echo_n "(cached) " >&6
25056 else
25057   ac_check_lib_save_LIBS=$LIBS
25058 LIBS="-lposix  $LIBS"
25059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25060 /* end confdefs.h.  */
25061
25062 /* Override any GCC internal prototype to avoid an error.
25063    Use char because int might match the return type of a GCC
25064    builtin and then its argument prototype would still apply.  */
25065 #ifdef __cplusplus
25066 extern "C"
25067 #endif
25068 char remove ();
25069 int
25070 main ()
25071 {
25072 return remove ();
25073   ;
25074   return 0;
25075 }
25076 _ACEOF
25077 if ac_fn_c_try_link "$LINENO"; then :
25078   ac_cv_lib_posix_remove=yes
25079 else
25080   ac_cv_lib_posix_remove=no
25081 fi
25082 rm -f core conftest.err conftest.$ac_objext \
25083     conftest$ac_exeext conftest.$ac_ext
25084 LIBS=$ac_check_lib_save_LIBS
25085 fi
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25087 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25088 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25089   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25090 fi
25091
25092     fi
25093
25094     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25095     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25096 if test "x$ac_cv_func_shmat" = xyes; then :
25097
25098 fi
25099
25100     if test $ac_cv_func_shmat = no; then
25101       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25102 $as_echo_n "checking for shmat in -lipc... " >&6; }
25103 if ${ac_cv_lib_ipc_shmat+:} false; then :
25104   $as_echo_n "(cached) " >&6
25105 else
25106   ac_check_lib_save_LIBS=$LIBS
25107 LIBS="-lipc  $LIBS"
25108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25109 /* end confdefs.h.  */
25110
25111 /* Override any GCC internal prototype to avoid an error.
25112    Use char because int might match the return type of a GCC
25113    builtin and then its argument prototype would still apply.  */
25114 #ifdef __cplusplus
25115 extern "C"
25116 #endif
25117 char shmat ();
25118 int
25119 main ()
25120 {
25121 return shmat ();
25122   ;
25123   return 0;
25124 }
25125 _ACEOF
25126 if ac_fn_c_try_link "$LINENO"; then :
25127   ac_cv_lib_ipc_shmat=yes
25128 else
25129   ac_cv_lib_ipc_shmat=no
25130 fi
25131 rm -f core conftest.err conftest.$ac_objext \
25132     conftest$ac_exeext conftest.$ac_ext
25133 LIBS=$ac_check_lib_save_LIBS
25134 fi
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25136 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25137 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25138   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25139 fi
25140
25141     fi
25142   fi
25143
25144   # Check for libraries that X11R6 Xt/Xaw programs need.
25145   ac_save_LDFLAGS=$LDFLAGS
25146   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25147   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25148   # check for ICE first), but we must link in the order -lSM -lICE or
25149   # we get undefined symbols.  So assume we have SM if we have ICE.
25150   # These have to be linked with before -lX11, unlike the other
25151   # libraries we check for below, so use a different variable.
25152   # John Interrante, Karl Berry
25153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25154 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25155 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25156   $as_echo_n "(cached) " >&6
25157 else
25158   ac_check_lib_save_LIBS=$LIBS
25159 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h.  */
25162
25163 /* Override any GCC internal prototype to avoid an error.
25164    Use char because int might match the return type of a GCC
25165    builtin and then its argument prototype would still apply.  */
25166 #ifdef __cplusplus
25167 extern "C"
25168 #endif
25169 char IceConnectionNumber ();
25170 int
25171 main ()
25172 {
25173 return IceConnectionNumber ();
25174   ;
25175   return 0;
25176 }
25177 _ACEOF
25178 if ac_fn_c_try_link "$LINENO"; then :
25179   ac_cv_lib_ICE_IceConnectionNumber=yes
25180 else
25181   ac_cv_lib_ICE_IceConnectionNumber=no
25182 fi
25183 rm -f core conftest.err conftest.$ac_objext \
25184     conftest$ac_exeext conftest.$ac_ext
25185 LIBS=$ac_check_lib_save_LIBS
25186 fi
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25188 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25189 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25190   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25191 fi
25192
25193   LDFLAGS=$ac_save_LDFLAGS
25194
25195 fi
25196
25197
25198 for ac_header in \
25199    assert.h \
25200    fcntl.h \
25201    grp.h \
25202    pwd.h \
25203    libc.h \
25204    limits.h \
25205    stdarg.h \
25206    stdlib.h \
25207    stdint.h \
25208    string.h \
25209    strings.h \
25210    termios.h \
25211    termcap.h \
25212    term.h \
25213    unistd.h \
25214    sys/bitypes.h \
25215    sys/byteorder.h \
25216    sys/ioctl.h \
25217    sys/select.h \
25218    sys/socket.h \
25219    sys/sockio.h \
25220    sys/stat.h \
25221    sys/time.h \
25222    sys/types.h \
25223    arpa/nameser.h \
25224    mtio.h \
25225    sys/mtio.h \
25226    sys/tape.h \
25227    regex.h \
25228
25229 do :
25230   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25231 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25232 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25233   cat >>confdefs.h <<_ACEOF
25234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25235 _ACEOF
25236
25237 fi
25238
25239 done
25240
25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25242 $as_echo_n "checking for ANSI C header files... " >&6; }
25243 if ${ac_cv_header_stdc+:} false; then :
25244   $as_echo_n "(cached) " >&6
25245 else
25246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25247 /* end confdefs.h.  */
25248 #include <stdlib.h>
25249 #include <stdarg.h>
25250 #include <string.h>
25251 #include <float.h>
25252
25253 int
25254 main ()
25255 {
25256
25257   ;
25258   return 0;
25259 }
25260 _ACEOF
25261 if ac_fn_c_try_compile "$LINENO"; then :
25262   ac_cv_header_stdc=yes
25263 else
25264   ac_cv_header_stdc=no
25265 fi
25266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25267
25268 if test $ac_cv_header_stdc = yes; then
25269   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25271 /* end confdefs.h.  */
25272 #include <string.h>
25273
25274 _ACEOF
25275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25276   $EGREP "memchr" >/dev/null 2>&1; then :
25277
25278 else
25279   ac_cv_header_stdc=no
25280 fi
25281 rm -f conftest*
25282
25283 fi
25284
25285 if test $ac_cv_header_stdc = yes; then
25286   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25288 /* end confdefs.h.  */
25289 #include <stdlib.h>
25290
25291 _ACEOF
25292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25293   $EGREP "free" >/dev/null 2>&1; then :
25294
25295 else
25296   ac_cv_header_stdc=no
25297 fi
25298 rm -f conftest*
25299
25300 fi
25301
25302 if test $ac_cv_header_stdc = yes; then
25303   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25304   if test "$cross_compiling" = yes; then :
25305   :
25306 else
25307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25308 /* end confdefs.h.  */
25309 #include <ctype.h>
25310 #include <stdlib.h>
25311 #if ((' ' & 0x0FF) == 0x020)
25312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25314 #else
25315 # define ISLOWER(c) \
25316                    (('a' <= (c) && (c) <= 'i') \
25317                      || ('j' <= (c) && (c) <= 'r') \
25318                      || ('s' <= (c) && (c) <= 'z'))
25319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25320 #endif
25321
25322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25323 int
25324 main ()
25325 {
25326   int i;
25327   for (i = 0; i < 256; i++)
25328     if (XOR (islower (i), ISLOWER (i))
25329         || toupper (i) != TOUPPER (i))
25330       return 2;
25331   return 0;
25332 }
25333 _ACEOF
25334 if ac_fn_c_try_run "$LINENO"; then :
25335
25336 else
25337   ac_cv_header_stdc=no
25338 fi
25339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25340   conftest.$ac_objext conftest.beam conftest.$ac_ext
25341 fi
25342
25343 fi
25344 fi
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25346 $as_echo "$ac_cv_header_stdc" >&6; }
25347 if test $ac_cv_header_stdc = yes; then
25348
25349 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25350
25351 fi
25352
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25354 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25355 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25356   $as_echo_n "(cached) " >&6
25357 else
25358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25359 /* end confdefs.h.  */
25360 #include <sys/types.h>
25361 int
25362 main ()
25363 {
25364 return makedev(0, 0);
25365   ;
25366   return 0;
25367 }
25368 _ACEOF
25369 if ac_fn_c_try_link "$LINENO"; then :
25370   ac_cv_header_sys_types_h_makedev=yes
25371 else
25372   ac_cv_header_sys_types_h_makedev=no
25373 fi
25374 rm -f core conftest.err conftest.$ac_objext \
25375     conftest$ac_exeext conftest.$ac_ext
25376
25377 fi
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25379 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25380
25381 if test $ac_cv_header_sys_types_h_makedev = no; then
25382 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25383 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25384
25385 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25386
25387 fi
25388
25389
25390
25391   if test $ac_cv_header_sys_mkdev_h = no; then
25392     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25393 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25394
25395 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25396
25397 fi
25398
25399
25400   fi
25401 fi
25402
25403 ac_header_dirent=no
25404 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25405   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25407 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25408 if eval \${$as_ac_Header+:} false; then :
25409   $as_echo_n "(cached) " >&6
25410 else
25411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25412 /* end confdefs.h.  */
25413 #include <sys/types.h>
25414 #include <$ac_hdr>
25415
25416 int
25417 main ()
25418 {
25419 if ((DIR *) 0)
25420 return 0;
25421   ;
25422   return 0;
25423 }
25424 _ACEOF
25425 if ac_fn_c_try_compile "$LINENO"; then :
25426   eval "$as_ac_Header=yes"
25427 else
25428   eval "$as_ac_Header=no"
25429 fi
25430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25431 fi
25432 eval ac_res=\$$as_ac_Header
25433                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25434 $as_echo "$ac_res" >&6; }
25435 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25436   cat >>confdefs.h <<_ACEOF
25437 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25438 _ACEOF
25439
25440 ac_header_dirent=$ac_hdr; break
25441 fi
25442
25443 done
25444 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25445 if test $ac_header_dirent = dirent.h; then
25446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25447 $as_echo_n "checking for library containing opendir... " >&6; }
25448 if ${ac_cv_search_opendir+:} false; then :
25449   $as_echo_n "(cached) " >&6
25450 else
25451   ac_func_search_save_LIBS=$LIBS
25452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25453 /* end confdefs.h.  */
25454
25455 /* Override any GCC internal prototype to avoid an error.
25456    Use char because int might match the return type of a GCC
25457    builtin and then its argument prototype would still apply.  */
25458 #ifdef __cplusplus
25459 extern "C"
25460 #endif
25461 char opendir ();
25462 int
25463 main ()
25464 {
25465 return opendir ();
25466   ;
25467   return 0;
25468 }
25469 _ACEOF
25470 for ac_lib in '' dir; do
25471   if test -z "$ac_lib"; then
25472     ac_res="none required"
25473   else
25474     ac_res=-l$ac_lib
25475     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25476   fi
25477   if ac_fn_c_try_link "$LINENO"; then :
25478   ac_cv_search_opendir=$ac_res
25479 fi
25480 rm -f core conftest.err conftest.$ac_objext \
25481     conftest$ac_exeext
25482   if ${ac_cv_search_opendir+:} false; then :
25483   break
25484 fi
25485 done
25486 if ${ac_cv_search_opendir+:} false; then :
25487
25488 else
25489   ac_cv_search_opendir=no
25490 fi
25491 rm conftest.$ac_ext
25492 LIBS=$ac_func_search_save_LIBS
25493 fi
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25495 $as_echo "$ac_cv_search_opendir" >&6; }
25496 ac_res=$ac_cv_search_opendir
25497 if test "$ac_res" != no; then :
25498   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25499
25500 fi
25501
25502 else
25503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25504 $as_echo_n "checking for library containing opendir... " >&6; }
25505 if ${ac_cv_search_opendir+:} false; then :
25506   $as_echo_n "(cached) " >&6
25507 else
25508   ac_func_search_save_LIBS=$LIBS
25509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25510 /* end confdefs.h.  */
25511
25512 /* Override any GCC internal prototype to avoid an error.
25513    Use char because int might match the return type of a GCC
25514    builtin and then its argument prototype would still apply.  */
25515 #ifdef __cplusplus
25516 extern "C"
25517 #endif
25518 char opendir ();
25519 int
25520 main ()
25521 {
25522 return opendir ();
25523   ;
25524   return 0;
25525 }
25526 _ACEOF
25527 for ac_lib in '' x; do
25528   if test -z "$ac_lib"; then
25529     ac_res="none required"
25530   else
25531     ac_res=-l$ac_lib
25532     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25533   fi
25534   if ac_fn_c_try_link "$LINENO"; then :
25535   ac_cv_search_opendir=$ac_res
25536 fi
25537 rm -f core conftest.err conftest.$ac_objext \
25538     conftest$ac_exeext
25539   if ${ac_cv_search_opendir+:} false; then :
25540   break
25541 fi
25542 done
25543 if ${ac_cv_search_opendir+:} false; then :
25544
25545 else
25546   ac_cv_search_opendir=no
25547 fi
25548 rm conftest.$ac_ext
25549 LIBS=$ac_func_search_save_LIBS
25550 fi
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25552 $as_echo "$ac_cv_search_opendir" >&6; }
25553 ac_res=$ac_cv_search_opendir
25554 if test "$ac_res" != no; then :
25555   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25556
25557 fi
25558
25559 fi
25560
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25562 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25563 if ${ac_cv_header_stat_broken+:} false; then :
25564   $as_echo_n "(cached) " >&6
25565 else
25566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25567 /* end confdefs.h.  */
25568 #include <sys/types.h>
25569 #include <sys/stat.h>
25570
25571 #if defined S_ISBLK && defined S_IFDIR
25572 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25573 #endif
25574
25575 #if defined S_ISBLK && defined S_IFCHR
25576 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25577 #endif
25578
25579 #if defined S_ISLNK && defined S_IFREG
25580 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25581 #endif
25582
25583 #if defined S_ISSOCK && defined S_IFREG
25584 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25585 #endif
25586
25587 _ACEOF
25588 if ac_fn_c_try_compile "$LINENO"; then :
25589   ac_cv_header_stat_broken=no
25590 else
25591   ac_cv_header_stat_broken=yes
25592 fi
25593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25594 fi
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25596 $as_echo "$ac_cv_header_stat_broken" >&6; }
25597 if test $ac_cv_header_stat_broken = yes; then
25598
25599 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25600
25601 fi
25602
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25604 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25605 if ${ac_cv_header_sys_wait_h+:} false; then :
25606   $as_echo_n "(cached) " >&6
25607 else
25608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25609 /* end confdefs.h.  */
25610 #include <sys/types.h>
25611 #include <sys/wait.h>
25612 #ifndef WEXITSTATUS
25613 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25614 #endif
25615 #ifndef WIFEXITED
25616 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25617 #endif
25618
25619 int
25620 main ()
25621 {
25622   int s;
25623   wait (&s);
25624   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25625   ;
25626   return 0;
25627 }
25628 _ACEOF
25629 if ac_fn_c_try_compile "$LINENO"; then :
25630   ac_cv_header_sys_wait_h=yes
25631 else
25632   ac_cv_header_sys_wait_h=no
25633 fi
25634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25635 fi
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25637 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25638 if test $ac_cv_header_sys_wait_h = yes; then
25639
25640 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25641
25642 fi
25643
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25645 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25646 if ${ac_cv_header_time+:} false; then :
25647   $as_echo_n "(cached) " >&6
25648 else
25649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25650 /* end confdefs.h.  */
25651 #include <sys/types.h>
25652 #include <sys/time.h>
25653 #include <time.h>
25654
25655 int
25656 main ()
25657 {
25658 if ((struct tm *) 0)
25659 return 0;
25660   ;
25661   return 0;
25662 }
25663 _ACEOF
25664 if ac_fn_c_try_compile "$LINENO"; then :
25665   ac_cv_header_time=yes
25666 else
25667   ac_cv_header_time=no
25668 fi
25669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25670 fi
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25672 $as_echo "$ac_cv_header_time" >&6; }
25673 if test $ac_cv_header_time = yes; then
25674
25675 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25676
25677 fi
25678
25679 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25680 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25681
25682 cat >>confdefs.h <<_ACEOF
25683 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25684 _ACEOF
25685
25686
25687 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25688
25689 fi
25690
25691
25692 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25693 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25694
25695 cat >>confdefs.h <<_ACEOF
25696 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25697 _ACEOF
25698
25699
25700 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25701
25702 else
25703   case " $LIBOBJS " in
25704   *" fileblocks.$ac_objext "* ) ;;
25705   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25706  ;;
25707 esac
25708
25709 fi
25710
25711
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25713 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25714 if ${ac_cv_struct_tm+:} false; then :
25715   $as_echo_n "(cached) " >&6
25716 else
25717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25718 /* end confdefs.h.  */
25719 #include <sys/types.h>
25720 #include <time.h>
25721
25722 int
25723 main ()
25724 {
25725 struct tm tm;
25726                                      int *p = &tm.tm_sec;
25727                                      return !p;
25728   ;
25729   return 0;
25730 }
25731 _ACEOF
25732 if ac_fn_c_try_compile "$LINENO"; then :
25733   ac_cv_struct_tm=time.h
25734 else
25735   ac_cv_struct_tm=sys/time.h
25736 fi
25737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25738 fi
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25740 $as_echo "$ac_cv_struct_tm" >&6; }
25741 if test $ac_cv_struct_tm = sys/time.h; then
25742
25743 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25744
25745 fi
25746
25747 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25748 #include <$ac_cv_struct_tm>
25749
25750 "
25751 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
25752
25753 cat >>confdefs.h <<_ACEOF
25754 #define HAVE_STRUCT_TM_TM_ZONE 1
25755 _ACEOF
25756
25757
25758 fi
25759
25760 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25761
25762 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25763
25764 else
25765   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25766 "
25767 if test "x$ac_cv_have_decl_tzname" = xyes; then :
25768   ac_have_decl=1
25769 else
25770   ac_have_decl=0
25771 fi
25772
25773 cat >>confdefs.h <<_ACEOF
25774 #define HAVE_DECL_TZNAME $ac_have_decl
25775 _ACEOF
25776
25777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25778 $as_echo_n "checking for tzname... " >&6; }
25779 if ${ac_cv_var_tzname+:} false; then :
25780   $as_echo_n "(cached) " >&6
25781 else
25782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25783 /* end confdefs.h.  */
25784 #include <time.h>
25785 #if !HAVE_DECL_TZNAME
25786 extern char *tzname[];
25787 #endif
25788
25789 int
25790 main ()
25791 {
25792 return tzname[0][0];
25793   ;
25794   return 0;
25795 }
25796 _ACEOF
25797 if ac_fn_c_try_link "$LINENO"; then :
25798   ac_cv_var_tzname=yes
25799 else
25800   ac_cv_var_tzname=no
25801 fi
25802 rm -f core conftest.err conftest.$ac_objext \
25803     conftest$ac_exeext conftest.$ac_ext
25804 fi
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25806 $as_echo "$ac_cv_var_tzname" >&6; }
25807   if test $ac_cv_var_tzname = yes; then
25808
25809 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25810
25811   fi
25812 fi
25813
25814
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25816 $as_echo_n "checking for utime.h... " >&6; }
25817 if ${ba_cv_header_utime_h+:} false; then :
25818   $as_echo_n "(cached) " >&6
25819 else
25820
25821        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25822 /* end confdefs.h.  */
25823
25824               #include <sys/types.h>
25825               #include <utime.h>
25826
25827 int
25828 main ()
25829 {
25830
25831               struct utimbuf foo
25832
25833   ;
25834   return 0;
25835 }
25836 _ACEOF
25837 if ac_fn_c_try_compile "$LINENO"; then :
25838
25839               ba_cv_header_utime_h=yes
25840
25841 else
25842
25843               ba_cv_header_utime_h=no
25844
25845
25846 fi
25847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25848
25849
25850 fi
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25852 $as_echo "$ba_cv_header_utime_h" >&6; }
25853 test $ba_cv_header_utime_h = yes &&
25854 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25855
25856
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25858 $as_echo_n "checking for socklen_t... " >&6; }
25859 if ${ba_cv_header_socklen_t+:} false; then :
25860   $as_echo_n "(cached) " >&6
25861 else
25862
25863        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25864 /* end confdefs.h.  */
25865
25866               #include <sys/types.h>
25867               #include <sys/socket.h>
25868
25869 int
25870 main ()
25871 {
25872
25873               socklen_t x
25874
25875   ;
25876   return 0;
25877 }
25878 _ACEOF
25879 if ac_fn_c_try_compile "$LINENO"; then :
25880
25881              ba_cv_header_socklen_t=yes
25882
25883 else
25884
25885              ba_cv_header_socklen_t=no
25886
25887
25888 fi
25889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25890
25891
25892 fi
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25894 $as_echo "$ba_cv_header_socklen_t" >&6; }
25895 test $ba_cv_header_socklen_t = yes &&
25896 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25897
25898
25899 ac_ext=cpp
25900 ac_cpp='$CXXCPP $CPPFLAGS'
25901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25904
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25906 $as_echo_n "checking for ioctl_req_t... " >&6; }
25907 if ${ba_cv_header_ioctl_req_t+:} false; then :
25908   $as_echo_n "(cached) " >&6
25909 else
25910
25911        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25912 /* end confdefs.h.  */
25913
25914               #include <unistd.h>
25915               #include <sys/types.h>
25916               #include <sys/ioctl.h>
25917
25918 int
25919 main ()
25920 {
25921
25922               int (*d_ioctl)(int fd, unsigned long int request, ...);
25923               d_ioctl = ::ioctl;
25924
25925   ;
25926   return 0;
25927 }
25928 _ACEOF
25929 if ac_fn_cxx_try_compile "$LINENO"; then :
25930
25931              ba_cv_header_ioctl_req_t=yes
25932
25933 else
25934
25935              ba_cv_header_ioctl_req_t=no
25936
25937
25938 fi
25939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25940
25941
25942 fi
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25944 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25945 test $ba_cv_header_ioctl_req_t = yes &&
25946 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25947
25948
25949 ac_ext=c
25950 ac_cpp='$CPP $CPPFLAGS'
25951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25954
25955
25956 ac_ext=cpp
25957 ac_cpp='$CXXCPP $CPPFLAGS'
25958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25961
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25963 $as_echo_n "checking for typeof... " >&6; }
25964 if ${ba_cv_have_typeof+:} false; then :
25965   $as_echo_n "(cached) " >&6
25966 else
25967
25968        if test "$cross_compiling" = yes; then :
25969
25970               ba_cv_have_typeof=no
25971
25972
25973 else
25974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25975 /* end confdefs.h.  */
25976
25977               main(){char *a = 0; a = (typeof a)a;}
25978
25979 _ACEOF
25980 if ac_fn_cxx_try_run "$LINENO"; then :
25981
25982               ba_cv_have_typeof=yes
25983
25984 else
25985
25986               ba_cv_have_typeof=no
25987
25988 fi
25989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25990   conftest.$ac_objext conftest.beam conftest.$ac_ext
25991 fi
25992
25993
25994
25995 fi
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25997 $as_echo "$ba_cv_have_typeof" >&6; }
25998 test $ba_cv_have_typeof = yes &&
25999 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26000
26001 ac_ext=c
26002 ac_cpp='$CPP $CPPFLAGS'
26003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26006
26007
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26009 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26010 if ${ac_cv_c_const+:} false; then :
26011   $as_echo_n "(cached) " >&6
26012 else
26013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26014 /* end confdefs.h.  */
26015
26016 int
26017 main ()
26018 {
26019 /* FIXME: Include the comments suggested by Paul. */
26020 #ifndef __cplusplus
26021   /* Ultrix mips cc rejects this.  */
26022   typedef int charset[2];
26023   const charset cs;
26024   /* SunOS 4.1.1 cc rejects this.  */
26025   char const *const *pcpcc;
26026   char **ppc;
26027   /* NEC SVR4.0.2 mips cc rejects this.  */
26028   struct point {int x, y;};
26029   static struct point const zero = {0,0};
26030   /* AIX XL C 1.02.0.0 rejects this.
26031      It does not let you subtract one const X* pointer from another in
26032      an arm of an if-expression whose if-part is not a constant
26033      expression */
26034   const char *g = "string";
26035   pcpcc = &g + (g ? g-g : 0);
26036   /* HPUX 7.0 cc rejects these. */
26037   ++pcpcc;
26038   ppc = (char**) pcpcc;
26039   pcpcc = (char const *const *) ppc;
26040   { /* SCO 3.2v4 cc rejects this.  */
26041     char *t;
26042     char const *s = 0 ? (char *) 0 : (char const *) 0;
26043
26044     *t++ = 0;
26045     if (s) return 0;
26046   }
26047   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26048     int x[] = {25, 17};
26049     const int *foo = &x[0];
26050     ++foo;
26051   }
26052   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26053     typedef const int *iptr;
26054     iptr p = 0;
26055     ++p;
26056   }
26057   { /* AIX XL C 1.02.0.0 rejects this saying
26058        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26059     struct s { int j; const int *ap[3]; };
26060     struct s *b; b->j = 5;
26061   }
26062   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26063     const int foo = 10;
26064     if (!foo) return 0;
26065   }
26066   return !cs[0] && !zero.x;
26067 #endif
26068
26069   ;
26070   return 0;
26071 }
26072 _ACEOF
26073 if ac_fn_c_try_compile "$LINENO"; then :
26074   ac_cv_c_const=yes
26075 else
26076   ac_cv_c_const=no
26077 fi
26078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26079 fi
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26081 $as_echo "$ac_cv_c_const" >&6; }
26082 if test $ac_cv_c_const = no; then
26083
26084 $as_echo "#define const /**/" >>confdefs.h
26085
26086 fi
26087
26088
26089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26090 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26091 if ${ac_cv_c_bigendian+:} false; then :
26092   $as_echo_n "(cached) " >&6
26093 else
26094   ac_cv_c_bigendian=unknown
26095     # See if we're dealing with a universal compiler.
26096     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26097 /* end confdefs.h.  */
26098 #ifndef __APPLE_CC__
26099                not a universal capable compiler
26100              #endif
26101              typedef int dummy;
26102
26103 _ACEOF
26104 if ac_fn_c_try_compile "$LINENO"; then :
26105
26106         # Check for potential -arch flags.  It is not universal unless
26107         # there are at least two -arch flags with different values.
26108         ac_arch=
26109         ac_prev=
26110         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26111          if test -n "$ac_prev"; then
26112            case $ac_word in
26113              i?86 | x86_64 | ppc | ppc64)
26114                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26115                  ac_arch=$ac_word
26116                else
26117                  ac_cv_c_bigendian=universal
26118                  break
26119                fi
26120                ;;
26121            esac
26122            ac_prev=
26123          elif test "x$ac_word" = "x-arch"; then
26124            ac_prev=arch
26125          fi
26126        done
26127 fi
26128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26129     if test $ac_cv_c_bigendian = unknown; then
26130       # See if sys/param.h defines the BYTE_ORDER macro.
26131       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26132 /* end confdefs.h.  */
26133 #include <sys/types.h>
26134              #include <sys/param.h>
26135
26136 int
26137 main ()
26138 {
26139 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26140                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26141                      && LITTLE_ENDIAN)
26142               bogus endian macros
26143              #endif
26144
26145   ;
26146   return 0;
26147 }
26148 _ACEOF
26149 if ac_fn_c_try_compile "$LINENO"; then :
26150   # It does; now see whether it defined to BIG_ENDIAN or not.
26151          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26152 /* end confdefs.h.  */
26153 #include <sys/types.h>
26154                 #include <sys/param.h>
26155
26156 int
26157 main ()
26158 {
26159 #if BYTE_ORDER != BIG_ENDIAN
26160                  not big endian
26161                 #endif
26162
26163   ;
26164   return 0;
26165 }
26166 _ACEOF
26167 if ac_fn_c_try_compile "$LINENO"; then :
26168   ac_cv_c_bigendian=yes
26169 else
26170   ac_cv_c_bigendian=no
26171 fi
26172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26173 fi
26174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26175     fi
26176     if test $ac_cv_c_bigendian = unknown; then
26177       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26178       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26179 /* end confdefs.h.  */
26180 #include <limits.h>
26181
26182 int
26183 main ()
26184 {
26185 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26186               bogus endian macros
26187              #endif
26188
26189   ;
26190   return 0;
26191 }
26192 _ACEOF
26193 if ac_fn_c_try_compile "$LINENO"; then :
26194   # It does; now see whether it defined to _BIG_ENDIAN or not.
26195          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26196 /* end confdefs.h.  */
26197 #include <limits.h>
26198
26199 int
26200 main ()
26201 {
26202 #ifndef _BIG_ENDIAN
26203                  not big endian
26204                 #endif
26205
26206   ;
26207   return 0;
26208 }
26209 _ACEOF
26210 if ac_fn_c_try_compile "$LINENO"; then :
26211   ac_cv_c_bigendian=yes
26212 else
26213   ac_cv_c_bigendian=no
26214 fi
26215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26216 fi
26217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26218     fi
26219     if test $ac_cv_c_bigendian = unknown; then
26220       # Compile a test program.
26221       if test "$cross_compiling" = yes; then :
26222   # Try to guess by grepping values from an object file.
26223          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26224 /* end confdefs.h.  */
26225 short int ascii_mm[] =
26226                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26227                 short int ascii_ii[] =
26228                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26229                 int use_ascii (int i) {
26230                   return ascii_mm[i] + ascii_ii[i];
26231                 }
26232                 short int ebcdic_ii[] =
26233                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26234                 short int ebcdic_mm[] =
26235                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26236                 int use_ebcdic (int i) {
26237                   return ebcdic_mm[i] + ebcdic_ii[i];
26238                 }
26239                 extern int foo;
26240
26241 int
26242 main ()
26243 {
26244 return use_ascii (foo) == use_ebcdic (foo);
26245   ;
26246   return 0;
26247 }
26248 _ACEOF
26249 if ac_fn_c_try_compile "$LINENO"; then :
26250   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26251               ac_cv_c_bigendian=yes
26252             fi
26253             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26254               if test "$ac_cv_c_bigendian" = unknown; then
26255                 ac_cv_c_bigendian=no
26256               else
26257                 # finding both strings is unlikely to happen, but who knows?
26258                 ac_cv_c_bigendian=unknown
26259               fi
26260             fi
26261 fi
26262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26263 else
26264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26265 /* end confdefs.h.  */
26266 $ac_includes_default
26267 int
26268 main ()
26269 {
26270
26271              /* Are we little or big endian?  From Harbison&Steele.  */
26272              union
26273              {
26274                long int l;
26275                char c[sizeof (long int)];
26276              } u;
26277              u.l = 1;
26278              return u.c[sizeof (long int) - 1] == 1;
26279
26280   ;
26281   return 0;
26282 }
26283 _ACEOF
26284 if ac_fn_c_try_run "$LINENO"; then :
26285   ac_cv_c_bigendian=no
26286 else
26287   ac_cv_c_bigendian=yes
26288 fi
26289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26290   conftest.$ac_objext conftest.beam conftest.$ac_ext
26291 fi
26292
26293     fi
26294 fi
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26296 $as_echo "$ac_cv_c_bigendian" >&6; }
26297  case $ac_cv_c_bigendian in #(
26298    yes)
26299
26300 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26301 ;; #(
26302    no)
26303
26304 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26305  ;; #(
26306    universal)
26307
26308 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26309
26310      ;; #(
26311    *)
26312      as_fn_error $? "unknown endianness
26313  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26314  esac
26315
26316
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26318 $as_echo_n "checking how to get filesystem type... " >&6; }
26319 fstype=no
26320 # The order of these tests is important.
26321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26322 /* end confdefs.h.  */
26323
26324        #include <sys/statvfs.h>
26325        #include <sys/fstyp.h>
26326
26327 _ACEOF
26328 if ac_fn_c_try_cpp "$LINENO"; then :
26329   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26330  fstype=SVR4
26331
26332 fi
26333 rm -f conftest.err conftest.i conftest.$ac_ext
26334 if test $fstype = no; then
26335    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26336 /* end confdefs.h.  */
26337
26338           #include <sys/statfs.h>
26339           #include <sys/fstyp.h>
26340
26341 _ACEOF
26342 if ac_fn_c_try_cpp "$LINENO"; then :
26343   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26344  fstype=SVR3
26345
26346 fi
26347 rm -f conftest.err conftest.i conftest.$ac_ext
26348 fi
26349 if test $fstype = no; then
26350    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26351 /* end confdefs.h.  */
26352
26353           #include <sys/statfs.h>
26354           #include <sys/vmount.h>
26355
26356 _ACEOF
26357 if ac_fn_c_try_cpp "$LINENO"; then :
26358   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26359  fstype=AIX
26360
26361 fi
26362 rm -f conftest.err conftest.i conftest.$ac_ext
26363 fi
26364 if test $fstype = no; then
26365    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26366 /* end confdefs.h.  */
26367
26368           #include <mntent.h>
26369
26370 _ACEOF
26371 if ac_fn_c_try_cpp "$LINENO"; then :
26372   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26373  fstype=4.3BSD
26374
26375 fi
26376 rm -f conftest.err conftest.i conftest.$ac_ext
26377 fi
26378 if test $fstype = no; then
26379    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26380 /* end confdefs.h.  */
26381 #include <sys/mount.h>
26382
26383 _ACEOF
26384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26385   $EGREP "f_type;" >/dev/null 2>&1; then :
26386   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26387  fstype=4.4BSD/OSF1
26388 fi
26389 rm -f conftest*
26390
26391 fi
26392 if test $fstype = no; then
26393    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26394 /* end confdefs.h.  */
26395
26396           #include <sys/mount.h>
26397           #include <sys/fs_types.h>
26398
26399 _ACEOF
26400 if ac_fn_c_try_cpp "$LINENO"; then :
26401   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26402  fstype=Ultrix
26403
26404 fi
26405 rm -f conftest.err conftest.i conftest.$ac_ext
26406 fi
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26408 $as_echo "$fstype" >&6; }
26409
26410 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26411 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26412
26413 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26414
26415 fi
26416
26417
26418
26419 ac_ext=cpp
26420 ac_cpp='$CXXCPP $CPPFLAGS'
26421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26424
26425
26426 for ac_header in cxxabi.h execinfo.h
26427 do :
26428   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26429 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26431   cat >>confdefs.h <<_ACEOF
26432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26433 _ACEOF
26434
26435 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
26436
26437 fi
26438
26439 done
26440
26441 ac_ext=c
26442 ac_cpp='$CPP $CPPFLAGS'
26443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26446
26447
26448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26449 $as_echo_n "checking return type of signal handlers... " >&6; }
26450 if ${ac_cv_type_signal+:} false; then :
26451   $as_echo_n "(cached) " >&6
26452 else
26453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26454 /* end confdefs.h.  */
26455 #include <sys/types.h>
26456 #include <signal.h>
26457
26458 int
26459 main ()
26460 {
26461 return *(signal (0, 0)) (0) == 1;
26462   ;
26463   return 0;
26464 }
26465 _ACEOF
26466 if ac_fn_c_try_compile "$LINENO"; then :
26467   ac_cv_type_signal=int
26468 else
26469   ac_cv_type_signal=void
26470 fi
26471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26472 fi
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26474 $as_echo "$ac_cv_type_signal" >&6; }
26475
26476 cat >>confdefs.h <<_ACEOF
26477 #define RETSIGTYPE $ac_cv_type_signal
26478 _ACEOF
26479
26480
26481
26482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26483 $as_echo_n "checking for type of signal functions... " >&6; }
26484   if ${bash_cv_signal_vintage+:} false; then :
26485   $as_echo_n "(cached) " >&6
26486 else
26487
26488     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26489 /* end confdefs.h.  */
26490 #include <signal.h>
26491 int
26492 main ()
26493 {
26494
26495       sigset_t ss;
26496       struct sigaction sa;
26497       sigemptyset(&ss); sigsuspend(&ss);
26498       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26499       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26500
26501   ;
26502   return 0;
26503 }
26504 _ACEOF
26505 if ac_fn_c_try_link "$LINENO"; then :
26506   bash_cv_signal_vintage="posix"
26507 else
26508
26509       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26510 /* end confdefs.h.  */
26511 #include <signal.h>
26512 int
26513 main ()
26514 {
26515
26516           int mask = sigmask(SIGINT);
26517           sigsetmask(mask); sigblock(mask); sigpause(mask);
26518
26519   ;
26520   return 0;
26521 }
26522 _ACEOF
26523 if ac_fn_c_try_link "$LINENO"; then :
26524   bash_cv_signal_vintage="4.2bsd"
26525 else
26526
26527         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26528 /* end confdefs.h.  */
26529
26530           #include <signal.h>
26531           RETSIGTYPE foo() { }
26532 int
26533 main ()
26534 {
26535
26536                   int mask = sigmask(SIGINT);
26537                   sigset(SIGINT, foo); sigrelse(SIGINT);
26538                   sighold(SIGINT); sigpause(SIGINT);
26539
26540   ;
26541   return 0;
26542 }
26543 _ACEOF
26544 if ac_fn_c_try_link "$LINENO"; then :
26545   bash_cv_signal_vintage="svr3"
26546 else
26547   bash_cv_signal_vintage="v7"
26548
26549 fi
26550 rm -f core conftest.err conftest.$ac_objext \
26551     conftest$ac_exeext conftest.$ac_ext
26552
26553 fi
26554 rm -f core conftest.err conftest.$ac_objext \
26555     conftest$ac_exeext conftest.$ac_ext
26556
26557 fi
26558 rm -f core conftest.err conftest.$ac_objext \
26559     conftest$ac_exeext conftest.$ac_ext
26560
26561 fi
26562
26563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26564 $as_echo "$bash_cv_signal_vintage" >&6; }
26565   if test "$bash_cv_signal_vintage" = "posix"; then
26566     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26567
26568   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26569     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26570
26571   elif test "$bash_cv_signal_vintage" = "svr3"; then
26572     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26573
26574   fi
26575
26576 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26577 if test "x$ac_cv_type_mode_t" = xyes; then :
26578
26579 else
26580
26581 cat >>confdefs.h <<_ACEOF
26582 #define mode_t int
26583 _ACEOF
26584
26585 fi
26586
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26588 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26589 if ${ac_cv_type_uid_t+:} false; then :
26590   $as_echo_n "(cached) " >&6
26591 else
26592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26593 /* end confdefs.h.  */
26594 #include <sys/types.h>
26595
26596 _ACEOF
26597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26598   $EGREP "uid_t" >/dev/null 2>&1; then :
26599   ac_cv_type_uid_t=yes
26600 else
26601   ac_cv_type_uid_t=no
26602 fi
26603 rm -f conftest*
26604
26605 fi
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26607 $as_echo "$ac_cv_type_uid_t" >&6; }
26608 if test $ac_cv_type_uid_t = no; then
26609
26610 $as_echo "#define uid_t int" >>confdefs.h
26611
26612
26613 $as_echo "#define gid_t int" >>confdefs.h
26614
26615 fi
26616
26617 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26618 if test "x$ac_cv_type_size_t" = xyes; then :
26619
26620 else
26621
26622 cat >>confdefs.h <<_ACEOF
26623 #define size_t unsigned int
26624 _ACEOF
26625
26626 fi
26627
26628 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26629 if test "x$ac_cv_type_pid_t" = xyes; then :
26630
26631 else
26632
26633 cat >>confdefs.h <<_ACEOF
26634 #define pid_t int
26635 _ACEOF
26636
26637 fi
26638
26639 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26640 if test "x$ac_cv_type_off_t" = xyes; then :
26641
26642 else
26643
26644 cat >>confdefs.h <<_ACEOF
26645 #define off_t long int
26646 _ACEOF
26647
26648 fi
26649
26650
26651   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26652 if test "x$ac_cv_type_intptr_t" = xyes; then :
26653
26654 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26655
26656 else
26657   for ac_type in 'int' 'long int' 'long long int'; do
26658        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26659 /* end confdefs.h.  */
26660 $ac_includes_default
26661 int
26662 main ()
26663 {
26664 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26665 test_array [0] = 0
26666
26667   ;
26668   return 0;
26669 }
26670 _ACEOF
26671 if ac_fn_c_try_compile "$LINENO"; then :
26672
26673 cat >>confdefs.h <<_ACEOF
26674 #define intptr_t $ac_type
26675 _ACEOF
26676
26677           ac_type=
26678 fi
26679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26680        test -z "$ac_type" && break
26681      done
26682 fi
26683
26684
26685
26686   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26687 if test "x$ac_cv_type_uintptr_t" = xyes; then :
26688
26689 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26690
26691 else
26692   for ac_type in 'unsigned int' 'unsigned long int' \
26693         'unsigned long long int'; do
26694        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26695 /* end confdefs.h.  */
26696 $ac_includes_default
26697 int
26698 main ()
26699 {
26700 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26701 test_array [0] = 0
26702
26703   ;
26704   return 0;
26705 }
26706 _ACEOF
26707 if ac_fn_c_try_compile "$LINENO"; then :
26708
26709 cat >>confdefs.h <<_ACEOF
26710 #define uintptr_t $ac_type
26711 _ACEOF
26712
26713           ac_type=
26714 fi
26715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26716        test -z "$ac_type" && break
26717      done
26718 fi
26719
26720
26721 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26722 if test "x$ac_cv_type_ino_t" = xyes; then :
26723
26724 else
26725
26726 cat >>confdefs.h <<_ACEOF
26727 #define ino_t unsigned long
26728 _ACEOF
26729
26730 fi
26731
26732 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26733 if test "x$ac_cv_type_dev_t" = xyes; then :
26734
26735 else
26736
26737 cat >>confdefs.h <<_ACEOF
26738 #define dev_t unsigned long
26739 _ACEOF
26740
26741 fi
26742
26743 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26744 if test "x$ac_cv_type_daddr_t" = xyes; then :
26745
26746 else
26747
26748 cat >>confdefs.h <<_ACEOF
26749 #define daddr_t long
26750 _ACEOF
26751
26752 fi
26753
26754 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26755 if test "x$ac_cv_type_major_t" = xyes; then :
26756
26757 else
26758
26759 cat >>confdefs.h <<_ACEOF
26760 #define major_t int
26761 _ACEOF
26762
26763 fi
26764
26765 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26766 if test "x$ac_cv_type_minor_t" = xyes; then :
26767
26768 else
26769
26770 cat >>confdefs.h <<_ACEOF
26771 #define minor_t int
26772 _ACEOF
26773
26774 fi
26775
26776 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26777 if test "x$ac_cv_type_ssize_t" = xyes; then :
26778
26779 else
26780
26781 cat >>confdefs.h <<_ACEOF
26782 #define ssize_t int
26783 _ACEOF
26784
26785 fi
26786
26787 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26788 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26789
26790 cat >>confdefs.h <<_ACEOF
26791 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26792 _ACEOF
26793
26794
26795 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26796
26797 else
26798   case " $LIBOBJS " in
26799   *" fileblocks.$ac_objext "* ) ;;
26800   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26801  ;;
26802 esac
26803
26804 fi
26805
26806
26807 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26808 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
26809
26810 cat >>confdefs.h <<_ACEOF
26811 #define HAVE_STRUCT_STAT_ST_RDEV 1
26812 _ACEOF
26813
26814
26815 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26816
26817 fi
26818
26819
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26821 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26822 if ${ac_cv_struct_tm+:} false; then :
26823   $as_echo_n "(cached) " >&6
26824 else
26825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26826 /* end confdefs.h.  */
26827 #include <sys/types.h>
26828 #include <time.h>
26829
26830 int
26831 main ()
26832 {
26833 struct tm tm;
26834                                      int *p = &tm.tm_sec;
26835                                      return !p;
26836   ;
26837   return 0;
26838 }
26839 _ACEOF
26840 if ac_fn_c_try_compile "$LINENO"; then :
26841   ac_cv_struct_tm=time.h
26842 else
26843   ac_cv_struct_tm=sys/time.h
26844 fi
26845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26846 fi
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26848 $as_echo "$ac_cv_struct_tm" >&6; }
26849 if test $ac_cv_struct_tm = sys/time.h; then
26850
26851 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26852
26853 fi
26854
26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26856 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26857 if ${ac_cv_c_const+:} false; then :
26858   $as_echo_n "(cached) " >&6
26859 else
26860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861 /* end confdefs.h.  */
26862
26863 int
26864 main ()
26865 {
26866 /* FIXME: Include the comments suggested by Paul. */
26867 #ifndef __cplusplus
26868   /* Ultrix mips cc rejects this.  */
26869   typedef int charset[2];
26870   const charset cs;
26871   /* SunOS 4.1.1 cc rejects this.  */
26872   char const *const *pcpcc;
26873   char **ppc;
26874   /* NEC SVR4.0.2 mips cc rejects this.  */
26875   struct point {int x, y;};
26876   static struct point const zero = {0,0};
26877   /* AIX XL C 1.02.0.0 rejects this.
26878      It does not let you subtract one const X* pointer from another in
26879      an arm of an if-expression whose if-part is not a constant
26880      expression */
26881   const char *g = "string";
26882   pcpcc = &g + (g ? g-g : 0);
26883   /* HPUX 7.0 cc rejects these. */
26884   ++pcpcc;
26885   ppc = (char**) pcpcc;
26886   pcpcc = (char const *const *) ppc;
26887   { /* SCO 3.2v4 cc rejects this.  */
26888     char *t;
26889     char const *s = 0 ? (char *) 0 : (char const *) 0;
26890
26891     *t++ = 0;
26892     if (s) return 0;
26893   }
26894   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26895     int x[] = {25, 17};
26896     const int *foo = &x[0];
26897     ++foo;
26898   }
26899   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26900     typedef const int *iptr;
26901     iptr p = 0;
26902     ++p;
26903   }
26904   { /* AIX XL C 1.02.0.0 rejects this saying
26905        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26906     struct s { int j; const int *ap[3]; };
26907     struct s *b; b->j = 5;
26908   }
26909   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26910     const int foo = 10;
26911     if (!foo) return 0;
26912   }
26913   return !cs[0] && !zero.x;
26914 #endif
26915
26916   ;
26917   return 0;
26918 }
26919 _ACEOF
26920 if ac_fn_c_try_compile "$LINENO"; then :
26921   ac_cv_c_const=yes
26922 else
26923   ac_cv_c_const=no
26924 fi
26925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26926 fi
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26928 $as_echo "$ac_cv_c_const" >&6; }
26929 if test $ac_cv_c_const = no; then
26930
26931 $as_echo "#define const /**/" >>confdefs.h
26932
26933 fi
26934
26935
26936 # The cast to long int works around a bug in the HP C Compiler
26937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26939 # This bug is HP SR number 8606223364.
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26941 $as_echo_n "checking size of char... " >&6; }
26942 if ${ac_cv_sizeof_char+:} false; then :
26943   $as_echo_n "(cached) " >&6
26944 else
26945   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26946
26947 else
26948   if test "$ac_cv_type_char" = yes; then
26949      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26951 as_fn_error 77 "cannot compute sizeof (char)
26952 See \`config.log' for more details" "$LINENO" 5; }
26953    else
26954      ac_cv_sizeof_char=0
26955    fi
26956 fi
26957
26958 fi
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26960 $as_echo "$ac_cv_sizeof_char" >&6; }
26961
26962
26963
26964 cat >>confdefs.h <<_ACEOF
26965 #define SIZEOF_CHAR $ac_cv_sizeof_char
26966 _ACEOF
26967
26968
26969 # The cast to long int works around a bug in the HP C Compiler
26970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26972 # This bug is HP SR number 8606223364.
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26974 $as_echo_n "checking size of short int... " >&6; }
26975 if ${ac_cv_sizeof_short_int+:} false; then :
26976   $as_echo_n "(cached) " >&6
26977 else
26978   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26979
26980 else
26981   if test "$ac_cv_type_short_int" = yes; then
26982      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26984 as_fn_error 77 "cannot compute sizeof (short int)
26985 See \`config.log' for more details" "$LINENO" 5; }
26986    else
26987      ac_cv_sizeof_short_int=0
26988    fi
26989 fi
26990
26991 fi
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26993 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26994
26995
26996
26997 cat >>confdefs.h <<_ACEOF
26998 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26999 _ACEOF
27000
27001
27002 # The cast to long int works around a bug in the HP C Compiler
27003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27005 # This bug is HP SR number 8606223364.
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27007 $as_echo_n "checking size of int... " >&6; }
27008 if ${ac_cv_sizeof_int+:} false; then :
27009   $as_echo_n "(cached) " >&6
27010 else
27011   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27012
27013 else
27014   if test "$ac_cv_type_int" = yes; then
27015      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27017 as_fn_error 77 "cannot compute sizeof (int)
27018 See \`config.log' for more details" "$LINENO" 5; }
27019    else
27020      ac_cv_sizeof_int=0
27021    fi
27022 fi
27023
27024 fi
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27026 $as_echo "$ac_cv_sizeof_int" >&6; }
27027
27028
27029
27030 cat >>confdefs.h <<_ACEOF
27031 #define SIZEOF_INT $ac_cv_sizeof_int
27032 _ACEOF
27033
27034
27035 # The cast to long int works around a bug in the HP C Compiler
27036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27038 # This bug is HP SR number 8606223364.
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27040 $as_echo_n "checking size of long int... " >&6; }
27041 if ${ac_cv_sizeof_long_int+:} false; then :
27042   $as_echo_n "(cached) " >&6
27043 else
27044   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27045
27046 else
27047   if test "$ac_cv_type_long_int" = yes; then
27048      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27050 as_fn_error 77 "cannot compute sizeof (long int)
27051 See \`config.log' for more details" "$LINENO" 5; }
27052    else
27053      ac_cv_sizeof_long_int=0
27054    fi
27055 fi
27056
27057 fi
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27059 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27060
27061
27062
27063 cat >>confdefs.h <<_ACEOF
27064 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27065 _ACEOF
27066
27067
27068 # The cast to long int works around a bug in the HP C Compiler
27069 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27070 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27071 # This bug is HP SR number 8606223364.
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27073 $as_echo_n "checking size of long long int... " >&6; }
27074 if ${ac_cv_sizeof_long_long_int+:} false; then :
27075   $as_echo_n "(cached) " >&6
27076 else
27077   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27078
27079 else
27080   if test "$ac_cv_type_long_long_int" = yes; then
27081      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27083 as_fn_error 77 "cannot compute sizeof (long long int)
27084 See \`config.log' for more details" "$LINENO" 5; }
27085    else
27086      ac_cv_sizeof_long_long_int=0
27087    fi
27088 fi
27089
27090 fi
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27092 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27093
27094
27095
27096 cat >>confdefs.h <<_ACEOF
27097 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27098 _ACEOF
27099
27100
27101 # The cast to long int works around a bug in the HP C Compiler
27102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27104 # This bug is HP SR number 8606223364.
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27106 $as_echo_n "checking size of int *... " >&6; }
27107 if ${ac_cv_sizeof_int_p+:} false; then :
27108   $as_echo_n "(cached) " >&6
27109 else
27110   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27111
27112 else
27113   if test "$ac_cv_type_int_p" = yes; then
27114      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27116 as_fn_error 77 "cannot compute sizeof (int *)
27117 See \`config.log' for more details" "$LINENO" 5; }
27118    else
27119      ac_cv_sizeof_int_p=0
27120    fi
27121 fi
27122
27123 fi
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27125 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27126
27127
27128
27129 cat >>confdefs.h <<_ACEOF
27130 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27131 _ACEOF
27132
27133
27134
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27136 $as_echo_n "checking for u_int type... " >&6; }
27137 if ${ac_cv_have_u_int+:} false; then :
27138   $as_echo_n "(cached) " >&6
27139 else
27140
27141        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27142 /* end confdefs.h.  */
27143
27144               #include <sys/types.h>
27145
27146 int
27147 main ()
27148 {
27149
27150               u_int a; a = 1;
27151
27152   ;
27153   return 0;
27154 }
27155 _ACEOF
27156 if ac_fn_c_try_compile "$LINENO"; then :
27157
27158               ac_cv_have_u_int="yes"
27159
27160 else
27161
27162               ac_cv_have_u_int="no"
27163
27164
27165 fi
27166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27167
27168
27169 fi
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27171 $as_echo "$ac_cv_have_u_int" >&6; }
27172 if test "x$ac_cv_have_u_int" = "xyes" ; then
27173    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27174
27175    have_u_int=1
27176 fi
27177
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27179 $as_echo_n "checking for intmax_t type... " >&6; }
27180 if ${ac_cv_have_intmax_t+:} false; then :
27181   $as_echo_n "(cached) " >&6
27182 else
27183
27184        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27185 /* end confdefs.h.  */
27186
27187               #include <sys/types.h>
27188
27189 int
27190 main ()
27191 {
27192
27193               intmax_t a; a = 1;
27194
27195   ;
27196   return 0;
27197 }
27198 _ACEOF
27199 if ac_fn_c_try_compile "$LINENO"; then :
27200
27201               ac_cv_have_intmax_t="yes"
27202
27203 else
27204
27205               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27206 /* end confdefs.h.  */
27207
27208                      #include <stdint.h>
27209
27210 int
27211 main ()
27212 {
27213
27214                      intmax_t a; a = 1;
27215
27216   ;
27217   return 0;
27218 }
27219 _ACEOF
27220 if ac_fn_c_try_compile "$LINENO"; then :
27221
27222                      ac_cv_have_intmax_t="yes"
27223
27224 else
27225
27226                      ac_cv_have_intmax_t="no"
27227
27228
27229 fi
27230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27231
27232
27233 fi
27234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27235
27236
27237 fi
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27239 $as_echo "$ac_cv_have_intmax_t" >&6; }
27240 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27241    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27242
27243    have_intmax_t=1
27244 fi
27245
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27247 $as_echo_n "checking for u_intmax_t type... " >&6; }
27248 if ${ac_cv_have_u_intmax_t+:} false; then :
27249   $as_echo_n "(cached) " >&6
27250 else
27251
27252        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27253 /* end confdefs.h.  */
27254
27255               #include <sys/types.h>
27256
27257 int
27258 main ()
27259 {
27260
27261               u_intmax_t a; a = 1;
27262
27263   ;
27264   return 0;
27265 }
27266 _ACEOF
27267 if ac_fn_c_try_compile "$LINENO"; then :
27268
27269               ac_cv_have_u_intmax_t="yes"
27270
27271 else
27272
27273               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27274 /* end confdefs.h.  */
27275
27276                      #include <stdint.h>
27277
27278 int
27279 main ()
27280 {
27281
27282                     u_intmax_t a; a = 1;
27283
27284   ;
27285   return 0;
27286 }
27287 _ACEOF
27288 if ac_fn_c_try_compile "$LINENO"; then :
27289
27290                     ac_cv_have_u_intmax_t="yes"
27291
27292 else
27293
27294                     ac_cv_have_u_intmax_t="no"
27295
27296
27297 fi
27298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27299
27300
27301 fi
27302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27303
27304
27305 fi
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27307 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27308 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27309    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27310
27311    have_u_intmax_t=1
27312 fi
27313
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27315 $as_echo_n "checking for intXX_t types... " >&6; }
27316 if ${ac_cv_have_intxx_t+:} false; then :
27317   $as_echo_n "(cached) " >&6
27318 else
27319
27320        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27321 /* end confdefs.h.  */
27322
27323               #include <sys/types.h>
27324
27325 int
27326 main ()
27327 {
27328
27329               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27330
27331   ;
27332   return 0;
27333 }
27334 _ACEOF
27335 if ac_fn_c_try_compile "$LINENO"; then :
27336
27337               ac_cv_have_intxx_t="yes"
27338
27339 else
27340
27341               ac_cv_have_intxx_t="no"
27342
27343
27344 fi
27345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27346
27347
27348 fi
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27350 $as_echo "$ac_cv_have_intxx_t" >&6; }
27351 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27352    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27353
27354    have_intxx_t=1
27355 fi
27356
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27358 $as_echo_n "checking for int64_t type... " >&6; }
27359 if ${ac_cv_have_int64_t+:} false; then :
27360   $as_echo_n "(cached) " >&6
27361 else
27362
27363        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27364 /* end confdefs.h.  */
27365
27366               #include <sys/types.h>
27367
27368 int
27369 main ()
27370 {
27371
27372               int64_t a; a = 1;
27373
27374   ;
27375   return 0;
27376 }
27377 _ACEOF
27378 if ac_fn_c_try_compile "$LINENO"; then :
27379
27380               ac_cv_have_int64_t="yes"
27381
27382 else
27383
27384               ac_cv_have_int64_t="no"
27385
27386
27387 fi
27388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27389
27390
27391 fi
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27393 $as_echo "$ac_cv_have_int64_t" >&6; }
27394 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27395    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27396
27397    have_int64_t=1
27398 fi
27399
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27401 $as_echo_n "checking for u_intXX_t types... " >&6; }
27402 if ${ac_cv_have_u_intxx_t+:} false; then :
27403   $as_echo_n "(cached) " >&6
27404 else
27405
27406        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27407 /* end confdefs.h.  */
27408
27409               #include <sys/types.h>
27410
27411 int
27412 main ()
27413 {
27414
27415               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27416
27417   ;
27418   return 0;
27419 }
27420 _ACEOF
27421 if ac_fn_c_try_compile "$LINENO"; then :
27422
27423              ac_cv_have_u_intxx_t="yes"
27424
27425 else
27426
27427              ac_cv_have_u_intxx_t="no"
27428
27429
27430 fi
27431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27432
27433
27434 fi
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27436 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27437 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27438    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27439
27440    have_u_intxx_t=1
27441 fi
27442
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27444 $as_echo_n "checking for u_int64_t types... " >&6; }
27445 if ${ac_cv_have_u_int64_t+:} false; then :
27446   $as_echo_n "(cached) " >&6
27447 else
27448
27449        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27450 /* end confdefs.h.  */
27451
27452               #include <sys/types.h>
27453
27454 int
27455 main ()
27456 {
27457
27458               u_int64_t a; a = 1;
27459
27460   ;
27461   return 0;
27462 }
27463 _ACEOF
27464 if ac_fn_c_try_compile "$LINENO"; then :
27465
27466              ac_cv_have_u_int64_t="yes"
27467
27468 else
27469
27470              ac_cv_have_u_int64_t="no"
27471
27472
27473 fi
27474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27475
27476
27477 fi
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27479 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27480 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27481    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27482
27483    have_u_int64_t=1
27484 fi
27485
27486 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27487     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27488 then
27489    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27490 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27491    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27492 /* end confdefs.h.  */
27493
27494           #include <sys/bitypes.h>
27495
27496 int
27497 main ()
27498 {
27499
27500           int8_t a; int16_t b; int32_t c;
27501           u_int8_t e; u_int16_t f; u_int32_t g;
27502           a = b = c = e = f = g = 1;
27503
27504   ;
27505   return 0;
27506 }
27507 _ACEOF
27508 if ac_fn_c_try_compile "$LINENO"; then :
27509
27510           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27511
27512           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27513
27514           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27515
27516           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27517 $as_echo "yes" >&6; }
27518
27519 else
27520
27521           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27522 $as_echo "no" >&6; }
27523
27524
27525 fi
27526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27527 fi
27528
27529 if test -z "$have_u_intxx_t" ; then
27530    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27531 $as_echo_n "checking for uintXX_t types... " >&6; }
27532 if ${ac_cv_have_uintxx_t+:} false; then :
27533   $as_echo_n "(cached) " >&6
27534 else
27535
27536           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27537 /* end confdefs.h.  */
27538
27539                  #include <sys/types.h>
27540
27541 int
27542 main ()
27543 {
27544
27545                  uint8_t a; uint16_t b;
27546                  uint32_t c; a = b = c = 1;
27547
27548   ;
27549   return 0;
27550 }
27551 _ACEOF
27552 if ac_fn_c_try_compile "$LINENO"; then :
27553
27554                 ac_cv_have_uintxx_t="yes"
27555
27556 else
27557
27558                 ac_cv_have_uintxx_t="no"
27559
27560
27561 fi
27562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27563
27564
27565 fi
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27567 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27568    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27569       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27570
27571    fi
27572 fi
27573
27574 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27575     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27576 then
27577    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27578 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27579    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27580 /* end confdefs.h.  */
27581
27582           #include <sys/bitypes.h>
27583
27584 int
27585 main ()
27586 {
27587
27588           int64_t a; u_int64_t b;
27589           a = b = 1;
27590
27591   ;
27592   return 0;
27593 }
27594 _ACEOF
27595 if ac_fn_c_try_compile "$LINENO"; then :
27596
27597           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27598
27599           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27600
27601           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27602 $as_echo "yes" >&6; }
27603
27604 else
27605
27606           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27607 $as_echo "no" >&6; }
27608
27609
27610 fi
27611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27612 fi
27613
27614 if (test -z "$have_uintxx_t" && \
27615     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27616 then
27617    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27618 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27619    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27620 /* end confdefs.h.  */
27621
27622           #include <sys/bitypes.h>
27623
27624 int
27625 main ()
27626 {
27627
27628           uint8_t a; uint16_t b;
27629           uint32_t c; a = b = c = 1;
27630
27631   ;
27632   return 0;
27633 }
27634 _ACEOF
27635 if ac_fn_c_try_compile "$LINENO"; then :
27636
27637           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27638
27639           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27640 $as_echo "yes" >&6; }
27641
27642 else
27643
27644           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27645 $as_echo "no" >&6; }
27646
27647
27648 fi
27649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27650 fi
27651
27652 for ac_func in \
27653    fork \
27654    getcwd \
27655    gethostname \
27656    getpid \
27657    gettimeofday \
27658    setpgid \
27659    setpgrp \
27660    setsid \
27661    signal \
27662    strerror \
27663    strncmp \
27664    strncpy \
27665    vfprintf \
27666
27667 do :
27668   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27669 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27670 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27671   cat >>confdefs.h <<_ACEOF
27672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27673 _ACEOF
27674
27675 else
27676   echo 'configure: cannot find needed function.'; exit 1
27677
27678 fi
27679 done
27680
27681
27682 for ac_func in getpagesize
27683 do :
27684   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27685 if test "x$ac_cv_func_getpagesize" = xyes; then :
27686   cat >>confdefs.h <<_ACEOF
27687 #define HAVE_GETPAGESIZE 1
27688 _ACEOF
27689
27690 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
27691
27692 fi
27693 done
27694
27695 for ac_func in malloc_trim
27696 do :
27697   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
27698 if test "x$ac_cv_func_malloc_trim" = xyes; then :
27699   cat >>confdefs.h <<_ACEOF
27700 #define HAVE_MALLOC_TRIM 1
27701 _ACEOF
27702
27703 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
27704
27705 fi
27706 done
27707
27708
27709 for ac_func in fchdir
27710 do :
27711   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27712 if test "x$ac_cv_func_fchdir" = xyes; then :
27713   cat >>confdefs.h <<_ACEOF
27714 #define HAVE_FCHDIR 1
27715 _ACEOF
27716  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27717
27718 fi
27719 done
27720
27721 for ac_func in strtoll
27722 do :
27723   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27724 if test "x$ac_cv_func_strtoll" = xyes; then :
27725   cat >>confdefs.h <<_ACEOF
27726 #define HAVE_STRTOLL 1
27727 _ACEOF
27728  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27729
27730 fi
27731 done
27732
27733 for ac_func in posix_fadvise
27734 do :
27735   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27736 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
27737   cat >>confdefs.h <<_ACEOF
27738 #define HAVE_POSIX_FADVISE 1
27739 _ACEOF
27740
27741 fi
27742 done
27743
27744 for ac_func in fdatasync
27745 do :
27746   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27747 if test "x$ac_cv_func_fdatasync" = xyes; then :
27748   cat >>confdefs.h <<_ACEOF
27749 #define HAVE_FDATASYNC 1
27750 _ACEOF
27751
27752 fi
27753 done
27754
27755
27756 for ac_func in chflags
27757 do :
27758   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27759 if test "x$ac_cv_func_chflags" = xyes; then :
27760   cat >>confdefs.h <<_ACEOF
27761 #define HAVE_CHFLAGS 1
27762 _ACEOF
27763
27764 fi
27765 done
27766
27767
27768 for ac_func in snprintf vsnprintf gethostid fseeko
27769 do :
27770   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27771 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27772 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27773   cat >>confdefs.h <<_ACEOF
27774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27775 _ACEOF
27776
27777 fi
27778 done
27779
27780
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27782 $as_echo_n "checking for va_copy... " >&6; }
27783 if ${ba_cv_va_copy+:} false; then :
27784   $as_echo_n "(cached) " >&6
27785 else
27786
27787        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27788 /* end confdefs.h.  */
27789
27790               #include <stdarg.h>
27791               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27792               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27793
27794 int
27795 main ()
27796 {
27797
27798               call_use_va_copy(1,2,3)
27799
27800   ;
27801   return 0;
27802 }
27803 _ACEOF
27804 if ac_fn_c_try_link "$LINENO"; then :
27805
27806               ba_cv_va_copy=yes,
27807
27808 else
27809
27810               ba_cv_va_copy=no
27811
27812
27813 fi
27814 rm -f core conftest.err conftest.$ac_objext \
27815     conftest$ac_exeext conftest.$ac_ext
27816
27817
27818 fi
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27820 $as_echo "$ba_cv_va_copy" >&6; }
27821 test $ba_cv_va_copy = yes &&
27822 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27823
27824
27825 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27826 do :
27827   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27830   cat >>confdefs.h <<_ACEOF
27831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27832 _ACEOF
27833
27834 fi
27835 done
27836
27837
27838 # If resolver functions are not in libc check for -lnsl or -lresolv.
27839 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27840 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
27841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27842 $as_echo "using libc's resolver" >&6; }
27843 else
27844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27845 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27846 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
27847   $as_echo_n "(cached) " >&6
27848 else
27849   ac_check_lib_save_LIBS=$LIBS
27850 LIBS="-lnsl  $LIBS"
27851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27852 /* end confdefs.h.  */
27853
27854 /* Override any GCC internal prototype to avoid an error.
27855    Use char because int might match the return type of a GCC
27856    builtin and then its argument prototype would still apply.  */
27857 #ifdef __cplusplus
27858 extern "C"
27859 #endif
27860 char gethostbyname_r ();
27861 int
27862 main ()
27863 {
27864 return gethostbyname_r ();
27865   ;
27866   return 0;
27867 }
27868 _ACEOF
27869 if ac_fn_c_try_link "$LINENO"; then :
27870   ac_cv_lib_nsl_gethostbyname_r=yes
27871 else
27872   ac_cv_lib_nsl_gethostbyname_r=no
27873 fi
27874 rm -f core conftest.err conftest.$ac_objext \
27875     conftest$ac_exeext conftest.$ac_ext
27876 LIBS=$ac_check_lib_save_LIBS
27877 fi
27878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27879 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27880 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
27881   cat >>confdefs.h <<_ACEOF
27882 #define HAVE_LIBNSL 1
27883 _ACEOF
27884
27885   LIBS="-lnsl $LIBS"
27886
27887 fi
27888
27889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27890 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27891 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
27892   $as_echo_n "(cached) " >&6
27893 else
27894   ac_check_lib_save_LIBS=$LIBS
27895 LIBS="-lresolv  $LIBS"
27896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27897 /* end confdefs.h.  */
27898
27899 /* Override any GCC internal prototype to avoid an error.
27900    Use char because int might match the return type of a GCC
27901    builtin and then its argument prototype would still apply.  */
27902 #ifdef __cplusplus
27903 extern "C"
27904 #endif
27905 char gethostbyname_r ();
27906 int
27907 main ()
27908 {
27909 return gethostbyname_r ();
27910   ;
27911   return 0;
27912 }
27913 _ACEOF
27914 if ac_fn_c_try_link "$LINENO"; then :
27915   ac_cv_lib_resolv_gethostbyname_r=yes
27916 else
27917   ac_cv_lib_resolv_gethostbyname_r=no
27918 fi
27919 rm -f core conftest.err conftest.$ac_objext \
27920     conftest$ac_exeext conftest.$ac_ext
27921 LIBS=$ac_check_lib_save_LIBS
27922 fi
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27924 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27925 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
27926   cat >>confdefs.h <<_ACEOF
27927 #define HAVE_LIBRESOLV 1
27928 _ACEOF
27929
27930   LIBS="-lresolv $LIBS"
27931
27932 fi
27933
27934 fi
27935
27936
27937 for ac_func in inet_pton
27938 do :
27939   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27940 if test "x$ac_cv_func_inet_pton" = xyes; then :
27941   cat >>confdefs.h <<_ACEOF
27942 #define HAVE_INET_PTON 1
27943 _ACEOF
27944  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27945
27946 fi
27947 done
27948
27949 for ac_func in inet_ntop
27950 do :
27951   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27952 if test "x$ac_cv_func_inet_ntop" = xyes; then :
27953   cat >>confdefs.h <<_ACEOF
27954 #define HAVE_INET_NTOP 1
27955 _ACEOF
27956  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27957
27958 fi
27959 done
27960
27961 for ac_func in gethostbyname2
27962 do :
27963   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27964 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
27965   cat >>confdefs.h <<_ACEOF
27966 #define HAVE_GETHOSTBYNAME2 1
27967 _ACEOF
27968  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27969
27970 fi
27971 done
27972
27973
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27975 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27976 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
27977   $as_echo_n "(cached) " >&6
27978 else
27979
27980        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27981 /* end confdefs.h.  */
27982
27983               #include <sys/socket.h>
27984
27985 int
27986 main ()
27987 {
27988
27989               struct sockaddr s; s.sa_len;
27990
27991   ;
27992   return 0;
27993 }
27994 _ACEOF
27995 if ac_fn_c_try_compile "$LINENO"; then :
27996
27997              ac_cv_struct_sockaddr_sa_len=yes
27998
27999 else
28000   ac_cv_struct_sockaddr_sa_len=no
28001
28002
28003 fi
28004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28005
28006
28007 fi
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28009 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28010
28011 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28012
28013 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28014
28015 fi
28016
28017 for ac_func in strftime
28018 do :
28019   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28020 if test "x$ac_cv_func_strftime" = xyes; then :
28021   cat >>confdefs.h <<_ACEOF
28022 #define HAVE_STRFTIME 1
28023 _ACEOF
28024
28025 else
28026   # strftime is in -lintl on SCO UNIX.
28027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28028 $as_echo_n "checking for strftime in -lintl... " >&6; }
28029 if ${ac_cv_lib_intl_strftime+:} 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 strftime ();
28044 int
28045 main ()
28046 {
28047 return strftime ();
28048   ;
28049   return 0;
28050 }
28051 _ACEOF
28052 if ac_fn_c_try_link "$LINENO"; then :
28053   ac_cv_lib_intl_strftime=yes
28054 else
28055   ac_cv_lib_intl_strftime=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_strftime" >&5
28062 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28063 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28064   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28065
28066 LIBS="-lintl $LIBS"
28067 fi
28068
28069 fi
28070 done
28071
28072 for ac_func in vprintf
28073 do :
28074   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28075 if test "x$ac_cv_func_vprintf" = xyes; then :
28076   cat >>confdefs.h <<_ACEOF
28077 #define HAVE_VPRINTF 1
28078 _ACEOF
28079
28080 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28081 if test "x$ac_cv_func__doprnt" = xyes; then :
28082
28083 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28084
28085 fi
28086
28087 fi
28088 done
28089
28090
28091 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28092 # for constant arguments.  Useless!
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28094 $as_echo_n "checking for working alloca.h... " >&6; }
28095 if ${ac_cv_working_alloca_h+:} false; then :
28096   $as_echo_n "(cached) " >&6
28097 else
28098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28099 /* end confdefs.h.  */
28100 #include <alloca.h>
28101 int
28102 main ()
28103 {
28104 char *p = (char *) alloca (2 * sizeof (int));
28105                           if (p) return 0;
28106   ;
28107   return 0;
28108 }
28109 _ACEOF
28110 if ac_fn_c_try_link "$LINENO"; then :
28111   ac_cv_working_alloca_h=yes
28112 else
28113   ac_cv_working_alloca_h=no
28114 fi
28115 rm -f core conftest.err conftest.$ac_objext \
28116     conftest$ac_exeext conftest.$ac_ext
28117 fi
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28119 $as_echo "$ac_cv_working_alloca_h" >&6; }
28120 if test $ac_cv_working_alloca_h = yes; then
28121
28122 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28123
28124 fi
28125
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28127 $as_echo_n "checking for alloca... " >&6; }
28128 if ${ac_cv_func_alloca_works+:} false; then :
28129   $as_echo_n "(cached) " >&6
28130 else
28131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28132 /* end confdefs.h.  */
28133 #ifdef __GNUC__
28134 # define alloca __builtin_alloca
28135 #else
28136 # ifdef _MSC_VER
28137 #  include <malloc.h>
28138 #  define alloca _alloca
28139 # else
28140 #  ifdef HAVE_ALLOCA_H
28141 #   include <alloca.h>
28142 #  else
28143 #   ifdef _AIX
28144  #pragma alloca
28145 #   else
28146 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28147 void *alloca (size_t);
28148 #    endif
28149 #   endif
28150 #  endif
28151 # endif
28152 #endif
28153
28154 int
28155 main ()
28156 {
28157 char *p = (char *) alloca (1);
28158                                     if (p) return 0;
28159   ;
28160   return 0;
28161 }
28162 _ACEOF
28163 if ac_fn_c_try_link "$LINENO"; then :
28164   ac_cv_func_alloca_works=yes
28165 else
28166   ac_cv_func_alloca_works=no
28167 fi
28168 rm -f core conftest.err conftest.$ac_objext \
28169     conftest$ac_exeext conftest.$ac_ext
28170 fi
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28172 $as_echo "$ac_cv_func_alloca_works" >&6; }
28173
28174 if test $ac_cv_func_alloca_works = yes; then
28175
28176 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28177
28178 else
28179   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28180 # that cause trouble.  Some versions do not even contain alloca or
28181 # contain a buggy version.  If you still want to use their alloca,
28182 # use ar to extract alloca.o from them instead of compiling alloca.c.
28183
28184 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28185
28186 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28187
28188
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28190 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28191 if ${ac_cv_os_cray+:} false; then :
28192   $as_echo_n "(cached) " >&6
28193 else
28194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28195 /* end confdefs.h.  */
28196 #if defined CRAY && ! defined CRAY2
28197 webecray
28198 #else
28199 wenotbecray
28200 #endif
28201
28202 _ACEOF
28203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28204   $EGREP "webecray" >/dev/null 2>&1; then :
28205   ac_cv_os_cray=yes
28206 else
28207   ac_cv_os_cray=no
28208 fi
28209 rm -f conftest*
28210
28211 fi
28212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28213 $as_echo "$ac_cv_os_cray" >&6; }
28214 if test $ac_cv_os_cray = yes; then
28215   for ac_func in _getb67 GETB67 getb67; do
28216     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28217 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28218 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28219
28220 cat >>confdefs.h <<_ACEOF
28221 #define CRAY_STACKSEG_END $ac_func
28222 _ACEOF
28223
28224     break
28225 fi
28226
28227   done
28228 fi
28229
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28231 $as_echo_n "checking stack direction for C alloca... " >&6; }
28232 if ${ac_cv_c_stack_direction+:} false; then :
28233   $as_echo_n "(cached) " >&6
28234 else
28235   if test "$cross_compiling" = yes; then :
28236   ac_cv_c_stack_direction=0
28237 else
28238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28239 /* end confdefs.h.  */
28240 $ac_includes_default
28241 int
28242 find_stack_direction ()
28243 {
28244   static char *addr = 0;
28245   auto char dummy;
28246   if (addr == 0)
28247     {
28248       addr = &dummy;
28249       return find_stack_direction ();
28250     }
28251   else
28252     return (&dummy > addr) ? 1 : -1;
28253 }
28254
28255 int
28256 main ()
28257 {
28258   return find_stack_direction () < 0;
28259 }
28260 _ACEOF
28261 if ac_fn_c_try_run "$LINENO"; then :
28262   ac_cv_c_stack_direction=1
28263 else
28264   ac_cv_c_stack_direction=-1
28265 fi
28266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28267   conftest.$ac_objext conftest.beam conftest.$ac_ext
28268 fi
28269
28270 fi
28271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28272 $as_echo "$ac_cv_c_stack_direction" >&6; }
28273 cat >>confdefs.h <<_ACEOF
28274 #define STACK_DIRECTION $ac_cv_c_stack_direction
28275 _ACEOF
28276
28277
28278 fi
28279
28280 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28281 # -lseq on Dynix/PTX, -lgen on Unixware.
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28283 $as_echo_n "checking for library containing getmntent... " >&6; }
28284 if ${ac_cv_search_getmntent+:} false; then :
28285   $as_echo_n "(cached) " >&6
28286 else
28287   ac_func_search_save_LIBS=$LIBS
28288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28289 /* end confdefs.h.  */
28290
28291 /* Override any GCC internal prototype to avoid an error.
28292    Use char because int might match the return type of a GCC
28293    builtin and then its argument prototype would still apply.  */
28294 #ifdef __cplusplus
28295 extern "C"
28296 #endif
28297 char getmntent ();
28298 int
28299 main ()
28300 {
28301 return getmntent ();
28302   ;
28303   return 0;
28304 }
28305 _ACEOF
28306 for ac_lib in '' sun seq gen; do
28307   if test -z "$ac_lib"; then
28308     ac_res="none required"
28309   else
28310     ac_res=-l$ac_lib
28311     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28312   fi
28313   if ac_fn_c_try_link "$LINENO"; then :
28314   ac_cv_search_getmntent=$ac_res
28315 fi
28316 rm -f core conftest.err conftest.$ac_objext \
28317     conftest$ac_exeext
28318   if ${ac_cv_search_getmntent+:} false; then :
28319   break
28320 fi
28321 done
28322 if ${ac_cv_search_getmntent+:} false; then :
28323
28324 else
28325   ac_cv_search_getmntent=no
28326 fi
28327 rm conftest.$ac_ext
28328 LIBS=$ac_func_search_save_LIBS
28329 fi
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28331 $as_echo "$ac_cv_search_getmntent" >&6; }
28332 ac_res=$ac_cv_search_getmntent
28333 if test "$ac_res" != no; then :
28334   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28335   ac_cv_func_getmntent=yes
28336
28337 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28338
28339 else
28340   ac_cv_func_getmntent=no
28341 fi
28342
28343
28344 for ac_func in getmntinfo
28345 do :
28346   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28347 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28348   cat >>confdefs.h <<_ACEOF
28349 #define HAVE_GETMNTINFO 1
28350 _ACEOF
28351  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28352
28353 fi
28354 done
28355
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28357 $as_echo_n "checking whether closedir returns void... " >&6; }
28358 if ${ac_cv_func_closedir_void+:} false; then :
28359   $as_echo_n "(cached) " >&6
28360 else
28361   if test "$cross_compiling" = yes; then :
28362   ac_cv_func_closedir_void=yes
28363 else
28364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28365 /* end confdefs.h.  */
28366 $ac_includes_default
28367 #include <$ac_header_dirent>
28368 #ifndef __cplusplus
28369 int closedir ();
28370 #endif
28371
28372 int
28373 main ()
28374 {
28375 return closedir (opendir (".")) != 0;
28376   ;
28377   return 0;
28378 }
28379 _ACEOF
28380 if ac_fn_c_try_run "$LINENO"; then :
28381   ac_cv_func_closedir_void=no
28382 else
28383   ac_cv_func_closedir_void=yes
28384 fi
28385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28386   conftest.$ac_objext conftest.beam conftest.$ac_ext
28387 fi
28388
28389 fi
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28391 $as_echo "$ac_cv_func_closedir_void" >&6; }
28392 if test $ac_cv_func_closedir_void = yes; then
28393
28394 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28395
28396 fi
28397
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28399 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28400 if ${ac_cv_func_setpgrp_void+:} false; then :
28401   $as_echo_n "(cached) " >&6
28402 else
28403   if test "$cross_compiling" = yes; then :
28404   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28405 else
28406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28407 /* end confdefs.h.  */
28408 $ac_includes_default
28409 int
28410 main ()
28411 {
28412 /* If this system has a BSD-style setpgrp which takes arguments,
28413   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28414   exit successfully. */
28415   return setpgrp (1,1) != -1;
28416   ;
28417   return 0;
28418 }
28419 _ACEOF
28420 if ac_fn_c_try_run "$LINENO"; then :
28421   ac_cv_func_setpgrp_void=no
28422 else
28423   ac_cv_func_setpgrp_void=yes
28424 fi
28425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28426   conftest.$ac_objext conftest.beam conftest.$ac_ext
28427 fi
28428
28429 fi
28430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28431 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28432 if test $ac_cv_func_setpgrp_void = yes; then
28433
28434 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28435
28436 fi
28437             # AC_FUNC_FNMATCH    dnl use local version
28438
28439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28440 $as_echo_n "checking for gettext in -lintl... " >&6; }
28441 if ${ac_cv_lib_intl_gettext+:} false; then :
28442   $as_echo_n "(cached) " >&6
28443 else
28444   ac_check_lib_save_LIBS=$LIBS
28445 LIBS="-lintl  $LIBS"
28446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28447 /* end confdefs.h.  */
28448
28449 /* Override any GCC internal prototype to avoid an error.
28450    Use char because int might match the return type of a GCC
28451    builtin and then its argument prototype would still apply.  */
28452 #ifdef __cplusplus
28453 extern "C"
28454 #endif
28455 char gettext ();
28456 int
28457 main ()
28458 {
28459 return gettext ();
28460   ;
28461   return 0;
28462 }
28463 _ACEOF
28464 if ac_fn_c_try_link "$LINENO"; then :
28465   ac_cv_lib_intl_gettext=yes
28466 else
28467   ac_cv_lib_intl_gettext=no
28468 fi
28469 rm -f core conftest.err conftest.$ac_objext \
28470     conftest$ac_exeext conftest.$ac_ext
28471 LIBS=$ac_check_lib_save_LIBS
28472 fi
28473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28474 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28475 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28476   LIBS="$LIBS -lintl"
28477 fi
28478
28479
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28481 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28482 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28483   $as_echo_n "(cached) " >&6
28484 else
28485   ac_check_lib_save_LIBS=$LIBS
28486 LIBS="-lsun  $LIBS"
28487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28488 /* end confdefs.h.  */
28489
28490 /* Override any GCC internal prototype to avoid an error.
28491    Use char because int might match the return type of a GCC
28492    builtin and then its argument prototype would still apply.  */
28493 #ifdef __cplusplus
28494 extern "C"
28495 #endif
28496 char getpwnam ();
28497 int
28498 main ()
28499 {
28500 return getpwnam ();
28501   ;
28502   return 0;
28503 }
28504 _ACEOF
28505 if ac_fn_c_try_link "$LINENO"; then :
28506   ac_cv_lib_sun_getpwnam=yes
28507 else
28508   ac_cv_lib_sun_getpwnam=no
28509 fi
28510 rm -f core conftest.err conftest.$ac_objext \
28511     conftest$ac_exeext conftest.$ac_ext
28512 LIBS=$ac_check_lib_save_LIBS
28513 fi
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28515 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28516 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28517   cat >>confdefs.h <<_ACEOF
28518 #define HAVE_LIBSUN 1
28519 _ACEOF
28520
28521   LIBS="-lsun $LIBS"
28522
28523 fi
28524
28525
28526 for ac_header in zlib.h
28527 do :
28528   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28529 if test "x$ac_cv_header_zlib_h" = xyes; then :
28530   cat >>confdefs.h <<_ACEOF
28531 #define HAVE_ZLIB_H 1
28532 _ACEOF
28533
28534 fi
28535
28536 done
28537
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28539 $as_echo_n "checking for deflate in -lz... " >&6; }
28540 if ${ac_cv_lib_z_deflate+:} false; then :
28541   $as_echo_n "(cached) " >&6
28542 else
28543   ac_check_lib_save_LIBS=$LIBS
28544 LIBS="-lz  $LIBS"
28545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28546 /* end confdefs.h.  */
28547
28548 /* Override any GCC internal prototype to avoid an error.
28549    Use char because int might match the return type of a GCC
28550    builtin and then its argument prototype would still apply.  */
28551 #ifdef __cplusplus
28552 extern "C"
28553 #endif
28554 char deflate ();
28555 int
28556 main ()
28557 {
28558 return deflate ();
28559   ;
28560   return 0;
28561 }
28562 _ACEOF
28563 if ac_fn_c_try_link "$LINENO"; then :
28564   ac_cv_lib_z_deflate=yes
28565 else
28566   ac_cv_lib_z_deflate=no
28567 fi
28568 rm -f core conftest.err conftest.$ac_objext \
28569     conftest$ac_exeext conftest.$ac_ext
28570 LIBS=$ac_check_lib_save_LIBS
28571 fi
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28573 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28574 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28575   ZLIBS="-lz"
28576 fi
28577
28578 have_zlib=no
28579 if test x$ZLIBS = x-lz; then
28580    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28581
28582    have_zlib=yes
28583 fi
28584
28585
28586 AFS_CFLAGS=""
28587 AFS_LIBS=""
28588 support_afs=auto
28589 # Check whether --enable-afs was given.
28590 if test "${enable_afs+set}" = set; then :
28591   enableval=$enable_afs;
28592        if test x$enableval = xyes; then
28593           support_afs=yes
28594        elif test x$enableval = xno; then
28595           support_afs=no
28596        fi
28597
28598
28599 fi
28600
28601
28602 have_afs=no
28603 if test x$support_afs = xyes -o x$support_afs = xauto; then
28604
28605 # Check whether --with-afsdir was given.
28606 if test "${with_afsdir+set}" = set; then :
28607   withval=$with_afsdir; with_afsdir=$withval
28608
28609 fi
28610
28611
28612             if test x$with_afsdir = x; then
28613       for root in /usr /usr/local; do
28614          if test -d ${root}/include/afs/ ; then
28615             with_afsdir=${root}
28616             break
28617          fi
28618       done
28619    fi
28620
28621    AFS_CFLAGS="-I${with_afsdir}/include"
28622
28623    saved_CFLAGS="${CFLAGS}"
28624    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28625
28626    for ac_header in afs/stds.h
28627 do :
28628   ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28629 if test "x$ac_cv_header_afs_stds_h" = xyes; then :
28630   cat >>confdefs.h <<_ACEOF
28631 #define HAVE_AFS_STDS_H 1
28632 _ACEOF
28633
28634 fi
28635
28636 done
28637
28638
28639    CFLAGS="${saved_CFLAGS}"
28640
28641             for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28642    do
28643       for arch_type in .a .so
28644       do
28645          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28646          pkg=$?
28647          if test $pkg = 0; then
28648             have_afs=yes
28649             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28650             break
28651          fi
28652       done
28653    done
28654
28655    if test x$support_afs = xyes -a $have_afs != yes; then
28656       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
28657   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28658    else
28659       if test $have_afs = yes; then
28660
28661 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28662
28663
28664 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28665
28666       fi
28667    fi
28668 fi
28669
28670
28671
28672
28673 support_acl=auto
28674 # Check whether --enable-acl was given.
28675 if test "${enable_acl+set}" = set; then :
28676   enableval=$enable_acl;
28677        if test x$enableval = xyes; then
28678           support_acl=yes
28679        elif test x$enableval = xno; then
28680           support_acl=no
28681        fi
28682
28683
28684 fi
28685
28686
28687 have_acl=no
28688 have_extended_acl=no
28689 if test x$support_acl = xyes -o x$support_acl = xauto; then
28690    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28691 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
28692
28693 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28694
28695 fi
28696
28697
28698
28699             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28700 if test "x$ac_cv_func_acl_get_file" = xyes; then :
28701
28702           have_acl=yes
28703
28704
28705 fi
28706
28707
28708             if test $have_acl = no; then
28709       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28710 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28711 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
28712   $as_echo_n "(cached) " >&6
28713 else
28714   ac_check_lib_save_LIBS=$LIBS
28715 LIBS="-lacl  $LIBS"
28716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28717 /* end confdefs.h.  */
28718
28719 /* Override any GCC internal prototype to avoid an error.
28720    Use char because int might match the return type of a GCC
28721    builtin and then its argument prototype would still apply.  */
28722 #ifdef __cplusplus
28723 extern "C"
28724 #endif
28725 char acl_get_file ();
28726 int
28727 main ()
28728 {
28729 return acl_get_file ();
28730   ;
28731   return 0;
28732 }
28733 _ACEOF
28734 if ac_fn_c_try_link "$LINENO"; then :
28735   ac_cv_lib_acl_acl_get_file=yes
28736 else
28737   ac_cv_lib_acl_acl_get_file=no
28738 fi
28739 rm -f core conftest.err conftest.$ac_objext \
28740     conftest$ac_exeext conftest.$ac_ext
28741 LIBS=$ac_check_lib_save_LIBS
28742 fi
28743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28744 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28745 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
28746
28747              have_acl=yes
28748              if test $have_afs = yes; then
28749                                                                 if test -d /usr/lib64/; then
28750                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28751                 else
28752                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
28753                 fi
28754              else
28755                 FDLIBS="-lacl $FDLIBS"
28756              fi
28757
28758
28759 fi
28760
28761    fi
28762
28763             if test $have_acl = no; then
28764       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28765 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28766 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
28767   $as_echo_n "(cached) " >&6
28768 else
28769   ac_check_lib_save_LIBS=$LIBS
28770 LIBS="-lpacl  $LIBS"
28771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28772 /* end confdefs.h.  */
28773
28774 /* Override any GCC internal prototype to avoid an error.
28775    Use char because int might match the return type of a GCC
28776    builtin and then its argument prototype would still apply.  */
28777 #ifdef __cplusplus
28778 extern "C"
28779 #endif
28780 char acl_get_file ();
28781 int
28782 main ()
28783 {
28784 return acl_get_file ();
28785   ;
28786   return 0;
28787 }
28788 _ACEOF
28789 if ac_fn_c_try_link "$LINENO"; then :
28790   ac_cv_lib_pacl_acl_get_file=yes
28791 else
28792   ac_cv_lib_pacl_acl_get_file=no
28793 fi
28794 rm -f core conftest.err conftest.$ac_objext \
28795     conftest$ac_exeext conftest.$ac_ext
28796 LIBS=$ac_check_lib_save_LIBS
28797 fi
28798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28799 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28800 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
28801
28802              have_acl=yes
28803              FDLIBS="-lpacl $FDLIBS"
28804
28805
28806 fi
28807
28808    fi
28809
28810             if test $have_acl = no -a \
28811            x${HAVE_SUN_OS_TRUE} = x; then
28812       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28813 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28814 if ${ac_cv_lib_sec_acltotext+:} false; then :
28815   $as_echo_n "(cached) " >&6
28816 else
28817   ac_check_lib_save_LIBS=$LIBS
28818 LIBS="-lsec  $LIBS"
28819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28820 /* end confdefs.h.  */
28821
28822 /* Override any GCC internal prototype to avoid an error.
28823    Use char because int might match the return type of a GCC
28824    builtin and then its argument prototype would still apply.  */
28825 #ifdef __cplusplus
28826 extern "C"
28827 #endif
28828 char acltotext ();
28829 int
28830 main ()
28831 {
28832 return acltotext ();
28833   ;
28834   return 0;
28835 }
28836 _ACEOF
28837 if ac_fn_c_try_link "$LINENO"; then :
28838   ac_cv_lib_sec_acltotext=yes
28839 else
28840   ac_cv_lib_sec_acltotext=no
28841 fi
28842 rm -f core conftest.err conftest.$ac_objext \
28843     conftest$ac_exeext conftest.$ac_ext
28844 LIBS=$ac_check_lib_save_LIBS
28845 fi
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28847 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28848 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
28849
28850              have_acl=yes
28851              FDLIBS="-lsec $FDLIBS"
28852
28853              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28854 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28855 if ${ac_cv_lib_sec_acl_totext+:} false; then :
28856   $as_echo_n "(cached) " >&6
28857 else
28858   ac_check_lib_save_LIBS=$LIBS
28859 LIBS="-lsec  $LIBS"
28860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28861 /* end confdefs.h.  */
28862
28863 /* Override any GCC internal prototype to avoid an error.
28864    Use char because int might match the return type of a GCC
28865    builtin and then its argument prototype would still apply.  */
28866 #ifdef __cplusplus
28867 extern "C"
28868 #endif
28869 char acl_totext ();
28870 int
28871 main ()
28872 {
28873 return acl_totext ();
28874   ;
28875   return 0;
28876 }
28877 _ACEOF
28878 if ac_fn_c_try_link "$LINENO"; then :
28879   ac_cv_lib_sec_acl_totext=yes
28880 else
28881   ac_cv_lib_sec_acl_totext=no
28882 fi
28883 rm -f core conftest.err conftest.$ac_objext \
28884     conftest$ac_exeext conftest.$ac_ext
28885 LIBS=$ac_check_lib_save_LIBS
28886 fi
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28888 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28889 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
28890
28891                     have_extended_acl=yes
28892
28893
28894 fi
28895
28896
28897
28898 fi
28899
28900    fi
28901
28902             if test $have_acl = no -a \
28903            x${HAVE_AIX_OS_TRUE} = x; then
28904       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28905 if test "x$ac_cv_func_acl_get" = xyes; then :
28906
28907              have_acl=yes
28908
28909              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28910 if test "x$ac_cv_func_aclx_get" = xyes; then :
28911
28912                     have_extended_acl=yes
28913
28914
28915 fi
28916
28917
28918
28919 fi
28920
28921    fi
28922
28923    if test x$support_acl = xyes -a $have_acl != yes; then
28924       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
28925   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28926    else
28927       if test $have_acl = yes; then
28928
28929 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28930
28931       fi
28932
28933       if test $have_extended_acl = yes; then
28934
28935 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28936
28937       fi
28938    fi
28939 fi
28940
28941 support_xattr=auto
28942 # Check whether --enable-xattr was given.
28943 if test "${enable_xattr+set}" = set; then :
28944   enableval=$enable_xattr;
28945        if test x$enableval = xyes; then
28946           support_xattr=yes
28947        elif test x$enableval = xno; then
28948           support_xattr=no
28949        fi
28950
28951
28952 fi
28953
28954
28955 have_xattr=no
28956 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28957                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28958            x${HAVE_NETBSD_OS_TRUE} = x -o \
28959            x${HAVE_OPENBSD_OS_TRUE} = x; then
28960       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28961 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
28962
28963 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28964
28965 fi
28966
28967
28968       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28969 if test "x$ac_cv_header_libutil_h" = xyes; then :
28970
28971 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28972
28973 fi
28974
28975
28976       for ac_func in extattr_get_link extattr_set_link extattr_list_link
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_EXTATTR_GET_LINK 1" >>confdefs.h
28988
28989
28990 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28991
28992
28993 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28994
28995
28996
28997 fi
28998 done
28999
29000
29001       if test $have_xattr = no; then
29002          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29003 do :
29004   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29005 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29006 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29007   cat >>confdefs.h <<_ACEOF
29008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29009 _ACEOF
29010
29011                 have_xattr=yes
29012
29013 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29014
29015
29016 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29017
29018
29019 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29020
29021
29022
29023 fi
29024 done
29025
29026       fi
29027
29028       if test $have_xattr = yes; then
29029          have_extattr_string_in_libc=no
29030          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29031 do :
29032   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29033 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29034 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29035   cat >>confdefs.h <<_ACEOF
29036 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29037 _ACEOF
29038
29039                 have_extattr_string_in_libc=yes
29040
29041 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29042
29043
29044 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29045
29046
29047
29048 fi
29049 done
29050
29051
29052                                  if test $have_extattr_string_in_libc = no; then
29053             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29054 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29055 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29056   $as_echo_n "(cached) " >&6
29057 else
29058   ac_check_lib_save_LIBS=$LIBS
29059 LIBS="-lutil  $LIBS"
29060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29061 /* end confdefs.h.  */
29062
29063 /* Override any GCC internal prototype to avoid an error.
29064    Use char because int might match the return type of a GCC
29065    builtin and then its argument prototype would still apply.  */
29066 #ifdef __cplusplus
29067 extern "C"
29068 #endif
29069 char extattr_namespace_to_string extattr_string_to_namespace ();
29070 int
29071 main ()
29072 {
29073 return extattr_namespace_to_string extattr_string_to_namespace ();
29074   ;
29075   return 0;
29076 }
29077 _ACEOF
29078 if ac_fn_c_try_link "$LINENO"; then :
29079   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29080 else
29081   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29082 fi
29083 rm -f core conftest.err conftest.$ac_objext \
29084     conftest$ac_exeext conftest.$ac_ext
29085 LIBS=$ac_check_lib_save_LIBS
29086 fi
29087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29088 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29089 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29090
29091
29092 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29093
29094
29095 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29096
29097                    FDLIBS="-lutil $FDLIBS"
29098
29099
29100 fi
29101
29102          fi
29103       fi
29104    fi
29105
29106                if test $have_xattr = no -a \
29107            x${HAVE_AIX_OS_TRUE} = x; then
29108       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29109 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29110
29111 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29112
29113 fi
29114
29115
29116       for ac_func in llistea lgetea lsetea
29117 do :
29118   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29119 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29120 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29121   cat >>confdefs.h <<_ACEOF
29122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29123 _ACEOF
29124
29125              have_xattr=yes
29126
29127 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29128
29129
29130 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29131
29132
29133 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29134
29135
29136
29137 fi
29138 done
29139
29140
29141       if test $have_xattr = no; then
29142          for ac_func in listea getea setea
29143 do :
29144   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29145 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29146 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29147   cat >>confdefs.h <<_ACEOF
29148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29149 _ACEOF
29150
29151                 have_xattr=yes
29152
29153 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29154
29155
29156 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29157
29158
29159 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29160
29161
29162
29163 fi
29164 done
29165
29166       fi
29167    fi
29168
29169                if test $have_xattr = no -a \
29170            x${HAVE_OSF1_OS_TRUE} = x; then
29171       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29172 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29173
29174 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29175
29176 fi
29177
29178
29179       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29180 do :
29181   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29182 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29183 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29184   cat >>confdefs.h <<_ACEOF
29185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29186 _ACEOF
29187
29188              have_xattr=yes
29189
29190 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29191
29192
29193 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29194
29195
29196 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29197
29198
29199 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29200
29201
29202 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29203
29204
29205
29206 fi
29207 done
29208
29209    fi
29210
29211                if test $have_xattr = no -a \
29212            x${HAVE_SUN_OS_TRUE} = x; then
29213       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29214 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29215
29216 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29217
29218 fi
29219
29220
29221       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29222 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29223
29224 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29225
29226 fi
29227
29228
29229       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29230 if test "x$ac_cv_header_attr_h" = xyes; then :
29231
29232 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29233
29234 fi
29235
29236
29237
29238       for ac_func in openat fstatat unlinkat fchownat futimesat
29239 do :
29240   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29241 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29242 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29243   cat >>confdefs.h <<_ACEOF
29244 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29245 _ACEOF
29246
29247              have_xattr=yes
29248
29249 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29250
29251
29252 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29253
29254
29255 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29256
29257
29258 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29259
29260
29261 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29262
29263
29264
29265 fi
29266 done
29267
29268
29269       if test $have_xattr = yes; then
29270          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29271 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29272 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
29273   $as_echo_n "(cached) " >&6
29274 else
29275   ac_check_lib_save_LIBS=$LIBS
29276 LIBS="-lnvpair  $LIBS"
29277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29278 /* end confdefs.h.  */
29279
29280 /* Override any GCC internal prototype to avoid an error.
29281    Use char because int might match the return type of a GCC
29282    builtin and then its argument prototype would still apply.  */
29283 #ifdef __cplusplus
29284 extern "C"
29285 #endif
29286 char nvlist_next_nvpair ();
29287 int
29288 main ()
29289 {
29290 return nvlist_next_nvpair ();
29291   ;
29292   return 0;
29293 }
29294 _ACEOF
29295 if ac_fn_c_try_link "$LINENO"; then :
29296   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29297 else
29298   ac_cv_lib_nvpair_nvlist_next_nvpair=no
29299 fi
29300 rm -f core conftest.err conftest.$ac_objext \
29301     conftest$ac_exeext conftest.$ac_ext
29302 LIBS=$ac_check_lib_save_LIBS
29303 fi
29304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29305 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29306 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
29307
29308
29309 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29310
29311                 FDLIBS="-lnvpair $FDLIBS"
29312
29313
29314 fi
29315
29316       fi
29317    fi
29318
29319             if test $have_xattr = no; then
29320       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29321 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
29322
29323 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29324
29325 fi
29326
29327
29328       for ac_func in llistxattr lgetxattr lsetxattr
29329 do :
29330   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29332 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29333   cat >>confdefs.h <<_ACEOF
29334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29335 _ACEOF
29336
29337              have_xattr=yes
29338
29339 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29340
29341
29342 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29343
29344
29345 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29346
29347
29348
29349 fi
29350 done
29351
29352
29353       if test $have_xattr = no; then
29354          for ac_func in listxattr getxattr setxattr
29355 do :
29356   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29357 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29358 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29359   cat >>confdefs.h <<_ACEOF
29360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29361 _ACEOF
29362
29363                 have_xattr=yes
29364
29365 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29366
29367
29368 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29369
29370
29371 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29372
29373
29374
29375 fi
29376 done
29377
29378       fi
29379    fi
29380
29381    if test x$support_xattr = xyes -a $have_xattr != yes; then
29382       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
29383   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29384    else
29385       if test $have_xattr = yes; then
29386
29387 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29388
29389       fi
29390    fi
29391 fi
29392
29393 PTHREAD_LIB=""
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29395 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29396 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
29397   $as_echo_n "(cached) " >&6
29398 else
29399   ac_check_lib_save_LIBS=$LIBS
29400 LIBS="-lpthread  $LIBS"
29401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29402 /* end confdefs.h.  */
29403
29404 /* Override any GCC internal prototype to avoid an error.
29405    Use char because int might match the return type of a GCC
29406    builtin and then its argument prototype would still apply.  */
29407 #ifdef __cplusplus
29408 extern "C"
29409 #endif
29410 char pthread_create ();
29411 int
29412 main ()
29413 {
29414 return pthread_create ();
29415   ;
29416   return 0;
29417 }
29418 _ACEOF
29419 if ac_fn_c_try_link "$LINENO"; then :
29420   ac_cv_lib_pthread_pthread_create=yes
29421 else
29422   ac_cv_lib_pthread_pthread_create=no
29423 fi
29424 rm -f core conftest.err conftest.$ac_objext \
29425     conftest$ac_exeext conftest.$ac_ext
29426 LIBS=$ac_check_lib_save_LIBS
29427 fi
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29429 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29430 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
29431   PTHREAD_LIB="-lpthread"
29432 else
29433
29434        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29435 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29436 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
29437   $as_echo_n "(cached) " >&6
29438 else
29439   ac_check_lib_save_LIBS=$LIBS
29440 LIBS="-lpthreads  $LIBS"
29441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29442 /* end confdefs.h.  */
29443
29444 /* Override any GCC internal prototype to avoid an error.
29445    Use char because int might match the return type of a GCC
29446    builtin and then its argument prototype would still apply.  */
29447 #ifdef __cplusplus
29448 extern "C"
29449 #endif
29450 char pthread_create ();
29451 int
29452 main ()
29453 {
29454 return pthread_create ();
29455   ;
29456   return 0;
29457 }
29458 _ACEOF
29459 if ac_fn_c_try_link "$LINENO"; then :
29460   ac_cv_lib_pthreads_pthread_create=yes
29461 else
29462   ac_cv_lib_pthreads_pthread_create=no
29463 fi
29464 rm -f core conftest.err conftest.$ac_objext \
29465     conftest$ac_exeext conftest.$ac_ext
29466 LIBS=$ac_check_lib_save_LIBS
29467 fi
29468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29469 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29470 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29471   PTHREAD_LIB="-lpthreads"
29472 else
29473
29474               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29475 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29476 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29477   $as_echo_n "(cached) " >&6
29478 else
29479   ac_check_lib_save_LIBS=$LIBS
29480 LIBS="-lc_r  $LIBS"
29481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29482 /* end confdefs.h.  */
29483
29484 /* Override any GCC internal prototype to avoid an error.
29485    Use char because int might match the return type of a GCC
29486    builtin and then its argument prototype would still apply.  */
29487 #ifdef __cplusplus
29488 extern "C"
29489 #endif
29490 char pthread_create ();
29491 int
29492 main ()
29493 {
29494 return pthread_create ();
29495   ;
29496   return 0;
29497 }
29498 _ACEOF
29499 if ac_fn_c_try_link "$LINENO"; then :
29500   ac_cv_lib_c_r_pthread_create=yes
29501 else
29502   ac_cv_lib_c_r_pthread_create=no
29503 fi
29504 rm -f core conftest.err conftest.$ac_objext \
29505     conftest$ac_exeext conftest.$ac_ext
29506 LIBS=$ac_check_lib_save_LIBS
29507 fi
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29509 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29510 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29511   PTHREAD_LIB="-lc_r"
29512 else
29513
29514                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29515 if test "x$ac_cv_func_pthread_create" = xyes; then :
29516
29517 fi
29518
29519
29520
29521 fi
29522
29523
29524
29525 fi
29526
29527
29528
29529 fi
29530
29531
29532 for ac_header in sys/prctl.h sys/capability.h
29533 do :
29534   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29535 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29537   cat >>confdefs.h <<_ACEOF
29538 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29539 _ACEOF
29540
29541 fi
29542
29543 done
29544
29545 for ac_func in prctl setreuid
29546 do :
29547   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29548 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29549 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29550   cat >>confdefs.h <<_ACEOF
29551 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29552 _ACEOF
29553
29554 fi
29555 done
29556
29557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29558 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29559 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29560   $as_echo_n "(cached) " >&6
29561 else
29562   ac_check_lib_save_LIBS=$LIBS
29563 LIBS="-lcap  $LIBS"
29564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29565 /* end confdefs.h.  */
29566
29567 /* Override any GCC internal prototype to avoid an error.
29568    Use char because int might match the return type of a GCC
29569    builtin and then its argument prototype would still apply.  */
29570 #ifdef __cplusplus
29571 extern "C"
29572 #endif
29573 char cap_set_proc ();
29574 int
29575 main ()
29576 {
29577 return cap_set_proc ();
29578   ;
29579   return 0;
29580 }
29581 _ACEOF
29582 if ac_fn_c_try_link "$LINENO"; then :
29583   ac_cv_lib_cap_cap_set_proc=yes
29584 else
29585   ac_cv_lib_cap_cap_set_proc=no
29586 fi
29587 rm -f core conftest.err conftest.$ac_objext \
29588     conftest$ac_exeext conftest.$ac_ext
29589 LIBS=$ac_check_lib_save_LIBS
29590 fi
29591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29592 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29593 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29594   CAP_LIBS="-lcap"
29595 else
29596   CAP_LIBS=
29597 fi
29598
29599 if test x$CAP_LIBS = x-lcap; then
29600
29601 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29602
29603 fi
29604
29605
29606
29607 $as_echo "#define FDLIBS 1" >>confdefs.h
29608
29609
29610 CFLAGS=${CFLAGS--O}
29611
29612 if test x$have_gcc = xyes ; then
29613    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29614    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29615 fi
29616 LDFLAGS=${LDFLAGS--O}
29617 CPPFLAGS="$CPPFLAGS"
29618 CFLAGS="$CFLAGS"
29619
29620
29621
29622
29623
29624
29625
29626
29627
29628
29629
29630
29631
29632
29633
29634 OBJLIST=
29635
29636
29637 lld="lld"
29638 llu="llu"
29639
29640 WCFLAGS=
29641 WLDFLAGS=
29642
29643 PFILES="platforms/Makefile"
29644 PSCMD="ps -e"
29645 WIN32=
29646 MACOSX=
29647
29648 hostname=`uname -n | cut -d '.' -f 1`
29649 if test x${hostname} = x ; then
29650    hostname="localhost"
29651 fi
29652 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29653 if test ! $? = 0; then
29654   hostname="localhost"
29655 fi
29656
29657 case "$DISTNAME" in
29658 aix)
29659    DISTVER=`uname -r`
29660    PSCMD="ps -e -o pid,comm"
29661    PFILES="${PFILES} \
29662       platforms/aix/Makefile"
29663    TAPEDRIVE="/dev/rmt0.1"
29664   ;;
29665 alpha)
29666    DISTVER=`uname -r`
29667    PTHREAD_LIB="-lpthread -lexc"
29668    if test "${CC}" = "gcc" ; then
29669       lld="lld"
29670       llu="llu"
29671    else
29672       lld="ld"
29673       llu="lu"
29674    fi
29675    TAPEDRIVE="/dev/nrmt0"
29676   ;;
29677 bsdi)
29678    DISTVER=`uname -a |awk '{print $3}'`
29679    TAPEDRIVE="/dev/nrmt0"
29680    PTHREAD_LIB="-pthread"
29681    CFLAGS="${CFLAGS} -pthread"
29682    PSCMD="ps -ax -o pid,command"
29683    lld="qd"
29684    llu="qu"
29685    PFILES="${PFILES} \
29686        platforms/bsdi/Makefile \
29687        platforms/bsdi/bacula-fd \
29688        platforms/bsdi/bacula-sd \
29689        platforms/bsdi/bacula-dir"
29690    largefile_support="yes"
29691   ;;
29692 cygwin)
29693    DISTVER=`uname -a |awk '{print $3}'`
29694    TAPEDRIVE="/dev/nrst0"
29695    WIN32=win32
29696    WCFLAGS="-mwindows"
29697    WLDFLAGS="-mwindows"
29698   ;;
29699 darwin)
29700    DISTVER=`uname -r`
29701    TAPEDRIVE="/dev/nst0"
29702    PSCMD="ps -e -o pid,command"
29703    MACOSX=macosx
29704    PFILES="${PFILES} \
29705       platforms/darwin/Makefile"
29706   ;;
29707 osx)
29708    DISTVER=`uname -r`
29709    TAPEDRIVE="/dev/nst0"
29710    PSCMD="ps -e -o pid,command"
29711    MACOSX=macosx
29712    PFILES="${PFILES} \
29713       platforms/osx/Makefile"
29714   ;;
29715 debian)
29716    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29717       DISTNAME="ubuntu"
29718    fi
29719    DISTVER=`cat /etc/debian_version`
29720    if test -f /etc/lsb-release ; then
29721       . /etc/lsb-release
29722       if test "x$DISTRIB_ID" != "x" ; then
29723          DISTNAME=$DISTRIB_ID
29724       fi
29725       if test "x$DISTRIB_RELEASE" != "x" ; then
29726          DISTVER=$DISTRIB_RELEASE
29727       fi
29728    fi
29729    if test "$DISTNAME" = "Ubuntu" ; then
29730       DISTNAME="ubuntu"
29731    fi
29732    TAPEDRIVE="/dev/nst0"
29733    PSCMD="ps -e -o pid,command"
29734    if test "$DISTNAME" = "ubuntu" ; then
29735       PFILES="${PFILES} \
29736          platforms/ubuntu/Makefile \
29737          platforms/ubuntu/bacula-fd \
29738          platforms/ubuntu/bacula-sd \
29739          platforms/ubuntu/bacula-dir"
29740    else
29741       PFILES="${PFILES} \
29742          platforms/debian/Makefile \
29743          platforms/debian/bacula-fd \
29744          platforms/debian/bacula-sd \
29745          platforms/debian/bacula-dir"
29746    fi
29747   ;;
29748 freebsd)
29749    DISTVER=`uname -a |awk '{print $3}'`
29750    VER=`echo $DISTVER | cut -c 1`
29751    if test x$VER = x4 ; then
29752       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29753       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29754    fi
29755    lld="qd"
29756    llu="qu"
29757    TAPEDRIVE="/dev/nrsa0"
29758    PSCMD="ps -ax -o pid,command"
29759    PFILES="${PFILES} \
29760        platforms/freebsd/Makefile \
29761        platforms/freebsd/bacula-fd \
29762        platforms/freebsd/bacula-sd \
29763        platforms/freebsd/bacula-dir"
29764    largefile_support="yes"
29765   ;;
29766 hpux)
29767    PSCMD="UNIX95=1; ps -e -o pid,comm"
29768    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29769    DISTVER=`uname -r`
29770    TAPEDRIVE="/dev/rmt/0hnb"
29771    PTHREAD_LIB="-lpthread"
29772    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29773
29774   ;;
29775 irix)
29776    DISTVER=`uname -r`
29777    TAPEDRIVE="/dev/rmt/0cbn"
29778    PSCMD="ps -e -o pid,comm"
29779    PFILES="${PFILES} \
29780        platforms/irix/Makefile \
29781        platforms/irix/bacula-fd \
29782        platforms/irix/bacula-sd \
29783        platforms/irix/bacula-dir"
29784   ;;
29785 netbsd)
29786    DISTVER=`uname -a |awk '{print $3}'`
29787    lld="qd"
29788    llu="qu"
29789    TAPEDRIVE="/dev/nrst0"
29790    PSCMD="ps -ax -o pid,command"
29791    PTHREAD_LIB="-pthread"
29792    CFLAGS="${CFLAGS} -pthread"
29793   ;;
29794 openbsd)
29795    DISTVER=`uname -a |awk '{print $3}'`
29796    lld="qd"
29797    llu="qu"
29798    TAPEDRIVE="/dev/nrst0"
29799    PSCMD="ps -ax -o pid,command"
29800    PTHREAD_LIB="-pthread"
29801    CFLAGS="${CFLAGS} -pthread"
29802    PFILES="${PFILES} \
29803        platforms/openbsd/Makefile \
29804        platforms/openbsd/bacula-fd \
29805        platforms/openbsd/bacula-sd \
29806        platforms/openbsd/bacula-dir"
29807   ;;
29808 redhat)
29809    if test -f /etc/whitebox-release ; then
29810       f=/etc/whitebox-release
29811    else
29812       f=/etc/redhat-release
29813    fi
29814    if test `cat $f | grep release |\
29815          cut -f 3 -d ' '`x = "Enterprise"x ; then
29816       DISTVER="Enterprise "`cat $f | grep release |\
29817           cut -f 6 -d ' '`
29818    else
29819        DISTVER=`cat /etc/redhat-release | grep release |\
29820            cut -f 5 -d ' '`
29821    fi
29822    TAPEDRIVE="/dev/nst0"
29823    PSCMD="ps -e -o pid,command"
29824    PFILES="${PFILES} \
29825        platforms/redhat/Makefile \
29826        platforms/redhat/bacula-fd \
29827        platforms/redhat/bacula-sd \
29828        platforms/redhat/bacula-dir
29829        "
29830   ;;
29831 mandrake)
29832    DISTVER=`cat /etc/mandrake-release | grep release |\
29833       cut -f 5 -d ' '`
29834    TAPEDRIVE="/dev/nst0"
29835    PSCMD="ps -e -o pid,command"
29836    PFILES="${PFILES} \
29837        platforms/mandrake/Makefile \
29838        platforms/mandrake/bacula-fd \
29839        platforms/mandrake/bacula-sd \
29840        platforms/mandrake/bacula-dir \
29841        "
29842   ;;
29843 gentoo)
29844    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29845    TAPEDRIVE="/dev/nst0"
29846    PSCMD="ps -e -o pid,command"
29847    PFILES="${PFILES} \
29848        platforms/gentoo/Makefile \
29849     platforms/gentoo/bacula-init \
29850        platforms/gentoo/bacula-fd \
29851        platforms/gentoo/bacula-sd \
29852        platforms/gentoo/bacula-dir"
29853   ;;
29854 slackware)
29855    DISTVER=`cat /etc/slackware-version`
29856    TAPEDRIVE="/dev/nst0"
29857    PSCMD="ps -e -o pid,command"
29858    PFILES="${PFILES} \
29859        platforms/slackware/Makefile \
29860        platforms/slackware/rc.bacula-fd \
29861        platforms/slackware/rc.bacula-sd \
29862        platforms/slackware/rc.bacula-dir\
29863        platforms/slackware/functions.bacula"
29864   ;;
29865 solaris)
29866    DISTVER=`uname -r`
29867    TAPEDRIVE="/dev/rmt/0cbn"
29868    PSCMD="ps -e -o pid,comm"
29869    PFILES="${PFILES} \
29870        platforms/solaris/Makefile \
29871        platforms/solaris/bacula-fd \
29872        platforms/solaris/bacula-sd \
29873        platforms/solaris/bacula-dir"
29874    case ${DISTVER} in
29875    5.5|5.6)
29876       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29877
29878       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29879
29880       ;;
29881    5.7|5.8)
29882       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
29883
29884       ;;
29885    *)
29886       ;;
29887    esac
29888    LIBS="$LIBS -lresolv -lrt"
29889   ;;
29890 suse)
29891    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29892        cut -f 3 -d ' '`
29893    TAPEDRIVE="/dev/nst0"
29894    PSCMD="ps -e -o pid,command"
29895    PFILES="${PFILES} \
29896        platforms/suse/Makefile \
29897        platforms/suse/bacula-fd \
29898        platforms/suse/bacula-sd \
29899        platforms/suse/bacula-dir \
29900        platforms/suse/bacula"
29901   ;;
29902 suse5)
29903    DISTNAME=suse
29904    DISTVER=5.x
29905    TAPEDRIVE="/dev/nst0"
29906    PSCMD="ps -e -o pid,command"
29907    PFILES="${PFILES} \
29908        platforms/suse/Makefile \
29909        platforms/suse/bacula-fd \
29910        platforms/suse/bacula-sd \
29911        platforms/suse/bacula-dir"
29912   ;;
29913 unknown)
29914    DISTVER=unknown
29915    TAPEDRIVE="/dev/nst0"
29916   ;;
29917 *)
29918   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29919   ;;
29920 esac
29921
29922
29923
29924 LIBS="$PTHREAD_LIB $LIBS"
29925
29926 cat >>confdefs.h <<_ACEOF
29927 #define lld "$lld"
29928 _ACEOF
29929
29930 cat >>confdefs.h <<_ACEOF
29931 #define llu "$llu"
29932 _ACEOF
29933
29934
29935
29936
29937
29938
29939
29940
29941 MCOMMON=./autoconf/Make.common
29942
29943
29944 if test "x${subsysdir}" = "x${sbindir}" ; then
29945    echo " "
29946    echo " "
29947    echo "You have set both --sbindir and --with-subsys-dir"
29948    echo "  equal to: ${subsysdir} "
29949    echo "This is not permitted. Please reconfigure."
29950    echo " "
29951    echo "Aborting configuration ..."
29952    echo " "
29953    echo " "
29954    exit 1
29955 fi
29956
29957 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/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_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"
29958
29959 ac_config_commands="$ac_config_commands default"
29960
29961 cat >confcache <<\_ACEOF
29962 # This file is a shell script that caches the results of configure
29963 # tests run on this system so they can be shared between configure
29964 # scripts and configure runs, see configure's option --config-cache.
29965 # It is not useful on other systems.  If it contains results you don't
29966 # want to keep, you may remove or edit it.
29967 #
29968 # config.status only pays attention to the cache file if you give it
29969 # the --recheck option to rerun configure.
29970 #
29971 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29972 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29973 # following values.
29974
29975 _ACEOF
29976
29977 # The following way of writing the cache mishandles newlines in values,
29978 # but we know of no workaround that is simple, portable, and efficient.
29979 # So, we kill variables containing newlines.
29980 # Ultrix sh set writes to stderr and can't be redirected directly,
29981 # and sets the high bit in the cache file unless we assign to the vars.
29982 (
29983   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29984     eval ac_val=\$$ac_var
29985     case $ac_val in #(
29986     *${as_nl}*)
29987       case $ac_var in #(
29988       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29989 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29990       esac
29991       case $ac_var in #(
29992       _ | IFS | as_nl) ;; #(
29993       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29994       *) { eval $ac_var=; unset $ac_var;} ;;
29995       esac ;;
29996     esac
29997   done
29998
29999   (set) 2>&1 |
30000     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30001     *${as_nl}ac_space=\ *)
30002       # `set' does not quote correctly, so add quotes: double-quote
30003       # substitution turns \\\\ into \\, and sed turns \\ into \.
30004       sed -n \
30005         "s/'/'\\\\''/g;
30006           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30007       ;; #(
30008     *)
30009       # `set' quotes correctly as required by POSIX, so do not add quotes.
30010       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30011       ;;
30012     esac |
30013     sort
30014 ) |
30015   sed '
30016      /^ac_cv_env_/b end
30017      t clear
30018      :clear
30019      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30020      t end
30021      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30022      :end' >>confcache
30023 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30024   if test -w "$cache_file"; then
30025     if test "x$cache_file" != "x/dev/null"; then
30026       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30027 $as_echo "$as_me: updating cache $cache_file" >&6;}
30028       if test ! -f "$cache_file" || test -h "$cache_file"; then
30029         cat confcache >"$cache_file"
30030       else
30031         case $cache_file in #(
30032         */* | ?:*)
30033           mv -f confcache "$cache_file"$$ &&
30034           mv -f "$cache_file"$$ "$cache_file" ;; #(
30035         *)
30036           mv -f confcache "$cache_file" ;;
30037         esac
30038       fi
30039     fi
30040   else
30041     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30042 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30043   fi
30044 fi
30045 rm -f confcache
30046
30047 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30048 # Let make expand exec_prefix.
30049 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30050
30051 DEFS=-DHAVE_CONFIG_H
30052
30053 ac_libobjs=
30054 ac_ltlibobjs=
30055 U=
30056 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30057   # 1. Remove the extension, and $U if already installed.
30058   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30059   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30060   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30061   #    will be set to the directory where LIBOBJS objects are built.
30062   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30063   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30064 done
30065 LIBOBJS=$ac_libobjs
30066
30067 LTLIBOBJS=$ac_ltlibobjs
30068
30069
30070
30071
30072 : "${CONFIG_STATUS=./config.status}"
30073 ac_write_fail=0
30074 ac_clean_files_save=$ac_clean_files
30075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30077 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30078 as_write_fail=0
30079 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30080 #! $SHELL
30081 # Generated by $as_me.
30082 # Run this file to recreate the current configuration.
30083 # Compiler output produced by configure, useful for debugging
30084 # configure, is in config.log if it exists.
30085
30086 debug=false
30087 ac_cs_recheck=false
30088 ac_cs_silent=false
30089
30090 SHELL=\${CONFIG_SHELL-$SHELL}
30091 export SHELL
30092 _ASEOF
30093 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30094 ## -------------------- ##
30095 ## M4sh Initialization. ##
30096 ## -------------------- ##
30097
30098 # Be more Bourne compatible
30099 DUALCASE=1; export DUALCASE # for MKS sh
30100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30101   emulate sh
30102   NULLCMD=:
30103   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30104   # is contrary to our usage.  Disable this feature.
30105   alias -g '${1+"$@"}'='"$@"'
30106   setopt NO_GLOB_SUBST
30107 else
30108   case `(set -o) 2>/dev/null` in #(
30109   *posix*) :
30110     set -o posix ;; #(
30111   *) :
30112      ;;
30113 esac
30114 fi
30115
30116
30117 as_nl='
30118 '
30119 export as_nl
30120 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30121 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30122 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30123 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30124 # Prefer a ksh shell builtin over an external printf program on Solaris,
30125 # but without wasting forks for bash or zsh.
30126 if test -z "$BASH_VERSION$ZSH_VERSION" \
30127     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30128   as_echo='print -r --'
30129   as_echo_n='print -rn --'
30130 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30131   as_echo='printf %s\n'
30132   as_echo_n='printf %s'
30133 else
30134   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30135     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30136     as_echo_n='/usr/ucb/echo -n'
30137   else
30138     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30139     as_echo_n_body='eval
30140       arg=$1;
30141       case $arg in #(
30142       *"$as_nl"*)
30143         expr "X$arg" : "X\\(.*\\)$as_nl";
30144         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30145       esac;
30146       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30147     '
30148     export as_echo_n_body
30149     as_echo_n='sh -c $as_echo_n_body as_echo'
30150   fi
30151   export as_echo_body
30152   as_echo='sh -c $as_echo_body as_echo'
30153 fi
30154
30155 # The user is always right.
30156 if test "${PATH_SEPARATOR+set}" != set; then
30157   PATH_SEPARATOR=:
30158   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30159     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30160       PATH_SEPARATOR=';'
30161   }
30162 fi
30163
30164
30165 # IFS
30166 # We need space, tab and new line, in precisely that order.  Quoting is
30167 # there to prevent editors from complaining about space-tab.
30168 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30169 # splitting by setting IFS to empty value.)
30170 IFS=" ""        $as_nl"
30171
30172 # Find who we are.  Look in the path if we contain no directory separator.
30173 as_myself=
30174 case $0 in #((
30175   *[\\/]* ) as_myself=$0 ;;
30176   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30177 for as_dir in $PATH
30178 do
30179   IFS=$as_save_IFS
30180   test -z "$as_dir" && as_dir=.
30181     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30182   done
30183 IFS=$as_save_IFS
30184
30185      ;;
30186 esac
30187 # We did not find ourselves, most probably we were run as `sh COMMAND'
30188 # in which case we are not to be found in the path.
30189 if test "x$as_myself" = x; then
30190   as_myself=$0
30191 fi
30192 if test ! -f "$as_myself"; then
30193   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30194   exit 1
30195 fi
30196
30197 # Unset variables that we do not need and which cause bugs (e.g. in
30198 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30199 # suppresses any "Segmentation fault" message there.  '((' could
30200 # trigger a bug in pdksh 5.2.14.
30201 for as_var in BASH_ENV ENV MAIL MAILPATH
30202 do eval test x\${$as_var+set} = xset \
30203   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30204 done
30205 PS1='$ '
30206 PS2='> '
30207 PS4='+ '
30208
30209 # NLS nuisances.
30210 LC_ALL=C
30211 export LC_ALL
30212 LANGUAGE=C
30213 export LANGUAGE
30214
30215 # CDPATH.
30216 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30217
30218
30219 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30220 # ----------------------------------------
30221 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30222 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30223 # script with STATUS, using 1 if that was 0.
30224 as_fn_error ()
30225 {
30226   as_status=$1; test $as_status -eq 0 && as_status=1
30227   if test "$4"; then
30228     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30229     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30230   fi
30231   $as_echo "$as_me: error: $2" >&2
30232   as_fn_exit $as_status
30233 } # as_fn_error
30234
30235
30236 # as_fn_set_status STATUS
30237 # -----------------------
30238 # Set $? to STATUS, without forking.
30239 as_fn_set_status ()
30240 {
30241   return $1
30242 } # as_fn_set_status
30243
30244 # as_fn_exit STATUS
30245 # -----------------
30246 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30247 as_fn_exit ()
30248 {
30249   set +e
30250   as_fn_set_status $1
30251   exit $1
30252 } # as_fn_exit
30253
30254 # as_fn_unset VAR
30255 # ---------------
30256 # Portably unset VAR.
30257 as_fn_unset ()
30258 {
30259   { eval $1=; unset $1;}
30260 }
30261 as_unset=as_fn_unset
30262 # as_fn_append VAR VALUE
30263 # ----------------------
30264 # Append the text in VALUE to the end of the definition contained in VAR. Take
30265 # advantage of any shell optimizations that allow amortized linear growth over
30266 # repeated appends, instead of the typical quadratic growth present in naive
30267 # implementations.
30268 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30269   eval 'as_fn_append ()
30270   {
30271     eval $1+=\$2
30272   }'
30273 else
30274   as_fn_append ()
30275   {
30276     eval $1=\$$1\$2
30277   }
30278 fi # as_fn_append
30279
30280 # as_fn_arith ARG...
30281 # ------------------
30282 # Perform arithmetic evaluation on the ARGs, and store the result in the
30283 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30284 # must be portable across $(()) and expr.
30285 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30286   eval 'as_fn_arith ()
30287   {
30288     as_val=$(( $* ))
30289   }'
30290 else
30291   as_fn_arith ()
30292   {
30293     as_val=`expr "$@" || test $? -eq 1`
30294   }
30295 fi # as_fn_arith
30296
30297
30298 if expr a : '\(a\)' >/dev/null 2>&1 &&
30299    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30300   as_expr=expr
30301 else
30302   as_expr=false
30303 fi
30304
30305 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30306   as_basename=basename
30307 else
30308   as_basename=false
30309 fi
30310
30311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30312   as_dirname=dirname
30313 else
30314   as_dirname=false
30315 fi
30316
30317 as_me=`$as_basename -- "$0" ||
30318 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30319          X"$0" : 'X\(//\)$' \| \
30320          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30321 $as_echo X/"$0" |
30322     sed '/^.*\/\([^/][^/]*\)\/*$/{
30323             s//\1/
30324             q
30325           }
30326           /^X\/\(\/\/\)$/{
30327             s//\1/
30328             q
30329           }
30330           /^X\/\(\/\).*/{
30331             s//\1/
30332             q
30333           }
30334           s/.*/./; q'`
30335
30336 # Avoid depending upon Character Ranges.
30337 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30338 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30339 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30340 as_cr_digits='0123456789'
30341 as_cr_alnum=$as_cr_Letters$as_cr_digits
30342
30343 ECHO_C= ECHO_N= ECHO_T=
30344 case `echo -n x` in #(((((
30345 -n*)
30346   case `echo 'xy\c'` in
30347   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30348   xy)  ECHO_C='\c';;
30349   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30350        ECHO_T=' ';;
30351   esac;;
30352 *)
30353   ECHO_N='-n';;
30354 esac
30355
30356 rm -f conf$$ conf$$.exe conf$$.file
30357 if test -d conf$$.dir; then
30358   rm -f conf$$.dir/conf$$.file
30359 else
30360   rm -f conf$$.dir
30361   mkdir conf$$.dir 2>/dev/null
30362 fi
30363 if (echo >conf$$.file) 2>/dev/null; then
30364   if ln -s conf$$.file conf$$ 2>/dev/null; then
30365     as_ln_s='ln -s'
30366     # ... but there are two gotchas:
30367     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30368     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30369     # In both cases, we have to default to `cp -p'.
30370     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30371       as_ln_s='cp -p'
30372   elif ln conf$$.file conf$$ 2>/dev/null; then
30373     as_ln_s=ln
30374   else
30375     as_ln_s='cp -p'
30376   fi
30377 else
30378   as_ln_s='cp -p'
30379 fi
30380 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30381 rmdir conf$$.dir 2>/dev/null
30382
30383
30384 # as_fn_mkdir_p
30385 # -------------
30386 # Create "$as_dir" as a directory, including parents if necessary.
30387 as_fn_mkdir_p ()
30388 {
30389
30390   case $as_dir in #(
30391   -*) as_dir=./$as_dir;;
30392   esac
30393   test -d "$as_dir" || eval $as_mkdir_p || {
30394     as_dirs=
30395     while :; do
30396       case $as_dir in #(
30397       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30398       *) as_qdir=$as_dir;;
30399       esac
30400       as_dirs="'$as_qdir' $as_dirs"
30401       as_dir=`$as_dirname -- "$as_dir" ||
30402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30403          X"$as_dir" : 'X\(//\)[^/]' \| \
30404          X"$as_dir" : 'X\(//\)$' \| \
30405          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30406 $as_echo X"$as_dir" |
30407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30408             s//\1/
30409             q
30410           }
30411           /^X\(\/\/\)[^/].*/{
30412             s//\1/
30413             q
30414           }
30415           /^X\(\/\/\)$/{
30416             s//\1/
30417             q
30418           }
30419           /^X\(\/\).*/{
30420             s//\1/
30421             q
30422           }
30423           s/.*/./; q'`
30424       test -d "$as_dir" && break
30425     done
30426     test -z "$as_dirs" || eval "mkdir $as_dirs"
30427   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30428
30429
30430 } # as_fn_mkdir_p
30431 if mkdir -p . 2>/dev/null; then
30432   as_mkdir_p='mkdir -p "$as_dir"'
30433 else
30434   test -d ./-p && rmdir ./-p
30435   as_mkdir_p=false
30436 fi
30437
30438 if test -x / >/dev/null 2>&1; then
30439   as_test_x='test -x'
30440 else
30441   if ls -dL / >/dev/null 2>&1; then
30442     as_ls_L_option=L
30443   else
30444     as_ls_L_option=
30445   fi
30446   as_test_x='
30447     eval sh -c '\''
30448       if test -d "$1"; then
30449         test -d "$1/.";
30450       else
30451         case $1 in #(
30452         -*)set "./$1";;
30453         esac;
30454         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30455         ???[sx]*):;;*)false;;esac;fi
30456     '\'' sh
30457   '
30458 fi
30459 as_executable_p=$as_test_x
30460
30461 # Sed expression to map a string onto a valid CPP name.
30462 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30463
30464 # Sed expression to map a string onto a valid variable name.
30465 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30466
30467
30468 exec 6>&1
30469 ## ----------------------------------- ##
30470 ## Main body of $CONFIG_STATUS script. ##
30471 ## ----------------------------------- ##
30472 _ASEOF
30473 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30474
30475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30476 # Save the log message, to keep $0 and so on meaningful, and to
30477 # report actual input values of CONFIG_FILES etc. instead of their
30478 # values after options handling.
30479 ac_log="
30480 This file was extended by bacula $as_me 5.1.14, which was
30481 generated by GNU Autoconf 2.68.  Invocation command line was
30482
30483   CONFIG_FILES    = $CONFIG_FILES
30484   CONFIG_HEADERS  = $CONFIG_HEADERS
30485   CONFIG_LINKS    = $CONFIG_LINKS
30486   CONFIG_COMMANDS = $CONFIG_COMMANDS
30487   $ $0 $@
30488
30489 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30490 "
30491
30492 _ACEOF
30493
30494 case $ac_config_files in *"
30495 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30496 esac
30497
30498 case $ac_config_headers in *"
30499 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30500 esac
30501
30502
30503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30504 # Files that config.status was made for.
30505 config_files="$ac_config_files"
30506 config_headers="$ac_config_headers"
30507 config_commands="$ac_config_commands"
30508
30509 _ACEOF
30510
30511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30512 ac_cs_usage="\
30513 \`$as_me' instantiates files and other configuration actions
30514 from templates according to the current configuration.  Unless the files
30515 and actions are specified as TAGs, all are instantiated by default.
30516
30517 Usage: $0 [OPTION]... [TAG]...
30518
30519   -h, --help       print this help, then exit
30520   -V, --version    print version number and configuration settings, then exit
30521       --config     print configuration, then exit
30522   -q, --quiet, --silent
30523                    do not print progress messages
30524   -d, --debug      don't remove temporary files
30525       --recheck    update $as_me by reconfiguring in the same conditions
30526       --file=FILE[:TEMPLATE]
30527                    instantiate the configuration file FILE
30528       --header=FILE[:TEMPLATE]
30529                    instantiate the configuration header FILE
30530
30531 Configuration files:
30532 $config_files
30533
30534 Configuration headers:
30535 $config_headers
30536
30537 Configuration commands:
30538 $config_commands
30539
30540 Report bugs to the package provider."
30541
30542 _ACEOF
30543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30544 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30545 ac_cs_version="\\
30546 bacula config.status 5.1.14
30547 configured by $0, generated by GNU Autoconf 2.68,
30548   with options \\"\$ac_cs_config\\"
30549
30550 Copyright (C) 2010 Free Software Foundation, Inc.
30551 This config.status script is free software; the Free Software Foundation
30552 gives unlimited permission to copy, distribute and modify it."
30553
30554 ac_pwd='$ac_pwd'
30555 srcdir='$srcdir'
30556 INSTALL='$INSTALL'
30557 AWK='$AWK'
30558 test -n "\$AWK" || AWK=awk
30559 _ACEOF
30560
30561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30562 # The default lists apply if the user does not specify any file.
30563 ac_need_defaults=:
30564 while test $# != 0
30565 do
30566   case $1 in
30567   --*=?*)
30568     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30569     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30570     ac_shift=:
30571     ;;
30572   --*=)
30573     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30574     ac_optarg=
30575     ac_shift=:
30576     ;;
30577   *)
30578     ac_option=$1
30579     ac_optarg=$2
30580     ac_shift=shift
30581     ;;
30582   esac
30583
30584   case $ac_option in
30585   # Handling of the options.
30586   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30587     ac_cs_recheck=: ;;
30588   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30589     $as_echo "$ac_cs_version"; exit ;;
30590   --config | --confi | --conf | --con | --co | --c )
30591     $as_echo "$ac_cs_config"; exit ;;
30592   --debug | --debu | --deb | --de | --d | -d )
30593     debug=: ;;
30594   --file | --fil | --fi | --f )
30595     $ac_shift
30596     case $ac_optarg in
30597     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30598     '') as_fn_error $? "missing file argument" ;;
30599     esac
30600     as_fn_append CONFIG_FILES " '$ac_optarg'"
30601     ac_need_defaults=false;;
30602   --header | --heade | --head | --hea )
30603     $ac_shift
30604     case $ac_optarg in
30605     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30606     esac
30607     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30608     ac_need_defaults=false;;
30609   --he | --h)
30610     # Conflict between --help and --header
30611     as_fn_error $? "ambiguous option: \`$1'
30612 Try \`$0 --help' for more information.";;
30613   --help | --hel | -h )
30614     $as_echo "$ac_cs_usage"; exit ;;
30615   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30616   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30617     ac_cs_silent=: ;;
30618
30619   # This is an error.
30620   -*) as_fn_error $? "unrecognized option: \`$1'
30621 Try \`$0 --help' for more information." ;;
30622
30623   *) as_fn_append ac_config_targets " $1"
30624      ac_need_defaults=false ;;
30625
30626   esac
30627   shift
30628 done
30629
30630 ac_configure_extra_args=
30631
30632 if $ac_cs_silent; then
30633   exec 6>/dev/null
30634   ac_configure_extra_args="$ac_configure_extra_args --silent"
30635 fi
30636
30637 _ACEOF
30638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30639 if \$ac_cs_recheck; then
30640   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30641   shift
30642   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30643   CONFIG_SHELL='$SHELL'
30644   export CONFIG_SHELL
30645   exec "\$@"
30646 fi
30647
30648 _ACEOF
30649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30650 exec 5>>config.log
30651 {
30652   echo
30653   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30654 ## Running $as_me. ##
30655 _ASBOX
30656   $as_echo "$ac_log"
30657 } >&5
30658
30659 _ACEOF
30660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30661 #
30662 # INIT-COMMANDS
30663 #
30664
30665
30666 # The HP-UX ksh and POSIX shell print the target directory to stdout
30667 # if CDPATH is set.
30668 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30669
30670 sed_quote_subst='$sed_quote_subst'
30671 double_quote_subst='$double_quote_subst'
30672 delay_variable_subst='$delay_variable_subst'
30673 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30674 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30675 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30676 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30677 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30678 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30679 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30680 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30681 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30682 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30683 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30684 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30685 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30686 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30687 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30688 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30689 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30690 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30691 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30692 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30693 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30694 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30695 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30696 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30697 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30698 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30699 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30700 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30701 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30702 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30703 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30704 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30705 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30706 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30707 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30708 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30709 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30710 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30711 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30712 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30713 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30714 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30715 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30716 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30717 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"`'
30718 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"`'
30719 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30720 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30721 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30722 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30723 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30724 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30725 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30726 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30727 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30728 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30729 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30730 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30731 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30732 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30733 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30734 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30735 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30736 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30737 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30738 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30739 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30740 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30741 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30742 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30743 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30744 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30745 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30746 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30747 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30748 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30749 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30750 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30751 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30752 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30753 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30754 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30755 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30756 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30757 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30758 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30759 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30760 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30761 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30762 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30763 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30764 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30765 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30766 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30767 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30768 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30769 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30770 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30771 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30772 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30773 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30774 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30775 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30776 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30777 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30778 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30779 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30780 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30781 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30782 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30783 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30784 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30785 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30786 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30787 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30788 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30789 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30790 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30791 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30792 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30793 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30794 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30795 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30796 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30797 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30798 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30799 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30800 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30801 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30802 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30803 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30804 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30805 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30806 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30807 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30808 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30809 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30810 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30811 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30812 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30813 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30814 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30815 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30816 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30817 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30818 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30819 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30820 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30821 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30822 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30823 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30824 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30825 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30826 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30827 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30828 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30829 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30830 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30831 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30832 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30833 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30834 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30835 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30836 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30837 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30838 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30839 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30840 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30841 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30842 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30843 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30844
30845 LTCC='$LTCC'
30846 LTCFLAGS='$LTCFLAGS'
30847 compiler='$compiler_DEFAULT'
30848
30849 # Quote evaled strings.
30850 for var in SED \
30851 GREP \
30852 EGREP \
30853 FGREP \
30854 LD \
30855 NM \
30856 LN_S \
30857 lt_SP2NL \
30858 lt_NL2SP \
30859 reload_flag \
30860 OBJDUMP \
30861 deplibs_check_method \
30862 file_magic_cmd \
30863 AR \
30864 AR_FLAGS \
30865 STRIP \
30866 RANLIB \
30867 CC \
30868 CFLAGS \
30869 compiler \
30870 lt_cv_sys_global_symbol_pipe \
30871 lt_cv_sys_global_symbol_to_cdecl \
30872 lt_cv_sys_global_symbol_to_c_name_address \
30873 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30874 SHELL \
30875 ECHO \
30876 lt_prog_compiler_no_builtin_flag \
30877 lt_prog_compiler_wl \
30878 lt_prog_compiler_pic \
30879 lt_prog_compiler_static \
30880 lt_cv_prog_compiler_c_o \
30881 need_locks \
30882 DSYMUTIL \
30883 NMEDIT \
30884 LIPO \
30885 OTOOL \
30886 OTOOL64 \
30887 shrext_cmds \
30888 export_dynamic_flag_spec \
30889 whole_archive_flag_spec \
30890 compiler_needs_object \
30891 with_gnu_ld \
30892 allow_undefined_flag \
30893 no_undefined_flag \
30894 hardcode_libdir_flag_spec \
30895 hardcode_libdir_flag_spec_ld \
30896 hardcode_libdir_separator \
30897 fix_srcfile_path \
30898 exclude_expsyms \
30899 include_expsyms \
30900 file_list_spec \
30901 variables_saved_for_relink \
30902 libname_spec \
30903 library_names_spec \
30904 soname_spec \
30905 finish_eval \
30906 old_striplib \
30907 striplib \
30908 compiler_lib_search_dirs \
30909 predep_objects \
30910 postdep_objects \
30911 predeps \
30912 postdeps \
30913 compiler_lib_search_path \
30914 LD_CXX \
30915 compiler_CXX \
30916 lt_prog_compiler_no_builtin_flag_CXX \
30917 lt_prog_compiler_wl_CXX \
30918 lt_prog_compiler_pic_CXX \
30919 lt_prog_compiler_static_CXX \
30920 lt_cv_prog_compiler_c_o_CXX \
30921 export_dynamic_flag_spec_CXX \
30922 whole_archive_flag_spec_CXX \
30923 compiler_needs_object_CXX \
30924 with_gnu_ld_CXX \
30925 allow_undefined_flag_CXX \
30926 no_undefined_flag_CXX \
30927 hardcode_libdir_flag_spec_CXX \
30928 hardcode_libdir_flag_spec_ld_CXX \
30929 hardcode_libdir_separator_CXX \
30930 fix_srcfile_path_CXX \
30931 exclude_expsyms_CXX \
30932 include_expsyms_CXX \
30933 file_list_spec_CXX \
30934 compiler_lib_search_dirs_CXX \
30935 predep_objects_CXX \
30936 postdep_objects_CXX \
30937 predeps_CXX \
30938 postdeps_CXX \
30939 compiler_lib_search_path_CXX; do
30940     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30941     *[\\\\\\\`\\"\\\$]*)
30942       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30943       ;;
30944     *)
30945       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30946       ;;
30947     esac
30948 done
30949
30950 # Double-quote double-evaled strings.
30951 for var in reload_cmds \
30952 old_postinstall_cmds \
30953 old_postuninstall_cmds \
30954 old_archive_cmds \
30955 extract_expsyms_cmds \
30956 old_archive_from_new_cmds \
30957 old_archive_from_expsyms_cmds \
30958 archive_cmds \
30959 archive_expsym_cmds \
30960 module_cmds \
30961 module_expsym_cmds \
30962 export_symbols_cmds \
30963 prelink_cmds \
30964 postinstall_cmds \
30965 postuninstall_cmds \
30966 finish_cmds \
30967 sys_lib_search_path_spec \
30968 sys_lib_dlsearch_path_spec \
30969 old_archive_cmds_CXX \
30970 old_archive_from_new_cmds_CXX \
30971 old_archive_from_expsyms_cmds_CXX \
30972 archive_cmds_CXX \
30973 archive_expsym_cmds_CXX \
30974 module_cmds_CXX \
30975 module_expsym_cmds_CXX \
30976 export_symbols_cmds_CXX \
30977 prelink_cmds_CXX; do
30978     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30979     *[\\\\\\\`\\"\\\$]*)
30980       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30981       ;;
30982     *)
30983       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30984       ;;
30985     esac
30986 done
30987
30988 # Fix-up fallback echo if it was mangled by the above quoting rules.
30989 case \$lt_ECHO in
30990 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30991   ;;
30992 esac
30993
30994 ac_aux_dir='$ac_aux_dir'
30995 xsi_shell='$xsi_shell'
30996 lt_shell_append='$lt_shell_append'
30997
30998 # See if we are running on zsh, and set the options which allow our
30999 # commands through without removal of \ escapes INIT.
31000 if test -n "\${ZSH_VERSION+set}" ; then
31001    setopt NO_GLOB_SUBST
31002 fi
31003
31004
31005     PACKAGE='$PACKAGE'
31006     VERSION='$VERSION'
31007     TIMESTAMP='$TIMESTAMP'
31008     RM='$RM'
31009     ofile='$ofile'
31010
31011
31012
31013
31014
31015 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31016     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31017     # from automake.
31018     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31019     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31020     LINGUAS="${LINGUAS-%UNSET%}"
31021
31022
31023 _ACEOF
31024
31025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31026
31027 # Handling of arguments.
31028 for ac_config_target in $ac_config_targets
31029 do
31030   case $ac_config_target in
31031     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31032     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31033     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31034     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31035     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31036     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31037     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31038     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31039     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31040     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31041     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31042     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31043     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31044     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31045     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31046     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31047     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31048     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31049     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31050     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31051     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31052     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31053     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31054     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31055     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31056     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31057     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31058     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31059     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31060     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31061     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31062     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31063     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31064     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31065     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31066     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31067     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31068     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31069     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31070     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31071     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31072     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31073     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31074     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31075     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31076     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31077     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31078     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31079     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31080     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31081     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31082     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31083     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31084     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31085     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31086     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31087     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31088     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31089     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31090     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31091     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31092     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31093     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31094     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31095     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31096     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31097     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31098     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31099     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31100     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31101     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31102     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31103     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31104     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31105     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31106     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31107     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31108     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31109     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31110     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
31111     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
31112     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
31113     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
31114     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
31115     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
31116     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31117     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31118     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31119     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31120     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31121     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31122     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31123     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31124     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31125     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31126     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31127     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31128     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31129     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31130     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31131     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31132     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31133     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31134     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31135     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31136     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31137     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31138     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31139     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31140     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31141     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31142     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31143
31144   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31145   esac
31146 done
31147
31148
31149 # If the user did not use the arguments to specify the items to instantiate,
31150 # then the envvar interface is used.  Set only those that are not.
31151 # We use the long form for the default assignment because of an extremely
31152 # bizarre bug on SunOS 4.1.3.
31153 if $ac_need_defaults; then
31154   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31155   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31156   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31157 fi
31158
31159 # Have a temporary directory for convenience.  Make it in the build tree
31160 # simply because there is no reason against having it here, and in addition,
31161 # creating and moving files from /tmp can sometimes cause problems.
31162 # Hook for its removal unless debugging.
31163 # Note that there is a small window in which the directory will not be cleaned:
31164 # after its creation but before its name has been assigned to `$tmp'.
31165 $debug ||
31166 {
31167   tmp= ac_tmp=
31168   trap 'exit_status=$?
31169   : "${ac_tmp:=$tmp}"
31170   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31171 ' 0
31172   trap 'as_fn_exit 1' 1 2 13 15
31173 }
31174 # Create a (secure) tmp directory for tmp files.
31175
31176 {
31177   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31178   test -d "$tmp"
31179 }  ||
31180 {
31181   tmp=./conf$$-$RANDOM
31182   (umask 077 && mkdir "$tmp")
31183 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31184 ac_tmp=$tmp
31185
31186 # Set up the scripts for CONFIG_FILES section.
31187 # No need to generate them if there are no CONFIG_FILES.
31188 # This happens for instance with `./config.status config.h'.
31189 if test -n "$CONFIG_FILES"; then
31190
31191 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31192   ac_cs_awk_getline=:
31193   ac_cs_awk_pipe_init=
31194   ac_cs_awk_read_file='
31195       while ((getline aline < (F[key])) > 0)
31196         print(aline)
31197       close(F[key])'
31198   ac_cs_awk_pipe_fini=
31199 else
31200   ac_cs_awk_getline=false
31201   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31202   ac_cs_awk_read_file='
31203       print "|#_!!_#|"
31204       print "cat " F[key] " &&"
31205       '$ac_cs_awk_pipe_init
31206   # The final `:' finishes the AND list.
31207   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31208 fi
31209 ac_cr=`echo X | tr X '\015'`
31210 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31211 # But we know of no other shell where ac_cr would be empty at this
31212 # point, so we can use a bashism as a fallback.
31213 if test "x$ac_cr" = x; then
31214   eval ac_cr=\$\'\\r\'
31215 fi
31216 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31217 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31218   ac_cs_awk_cr='\\r'
31219 else
31220   ac_cs_awk_cr=$ac_cr
31221 fi
31222
31223 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31224 _ACEOF
31225
31226 # Create commands to substitute file output variables.
31227 {
31228   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31229   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31230   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31231   echo "_ACAWK" &&
31232   echo "_ACEOF"
31233 } >conf$$files.sh &&
31234 . ./conf$$files.sh ||
31235   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31236 rm -f conf$$files.sh
31237
31238 {
31239   echo "cat >conf$$subs.awk <<_ACEOF" &&
31240   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31241   echo "_ACEOF"
31242 } >conf$$subs.sh ||
31243   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31244 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31245 ac_delim='%!_!# '
31246 for ac_last_try in false false false false false :; do
31247   . ./conf$$subs.sh ||
31248     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31249
31250   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31251   if test $ac_delim_n = $ac_delim_num; then
31252     break
31253   elif $ac_last_try; then
31254     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31255   else
31256     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31257   fi
31258 done
31259 rm -f conf$$subs.sh
31260
31261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31262 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31263 _ACEOF
31264 sed -n '
31265 h
31266 s/^/S["/; s/!.*/"]=/
31267 p
31268 g
31269 s/^[^!]*!//
31270 :repl
31271 t repl
31272 s/'"$ac_delim"'$//
31273 t delim
31274 :nl
31275 h
31276 s/\(.\{148\}\)..*/\1/
31277 t more1
31278 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31279 p
31280 n
31281 b repl
31282 :more1
31283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31284 p
31285 g
31286 s/.\{148\}//
31287 t nl
31288 :delim
31289 h
31290 s/\(.\{148\}\)..*/\1/
31291 t more2
31292 s/["\\]/\\&/g; s/^/"/; s/$/"/
31293 p
31294 b
31295 :more2
31296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31297 p
31298 g
31299 s/.\{148\}//
31300 t delim
31301 ' <conf$$subs.awk | sed '
31302 /^[^""]/{
31303   N
31304   s/\n//
31305 }
31306 ' >>$CONFIG_STATUS || ac_write_fail=1
31307 rm -f conf$$subs.awk
31308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31309 _ACAWK
31310 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31311   for (key in S) S_is_set[key] = 1
31312   FS = "\a"
31313   \$ac_cs_awk_pipe_init
31314 }
31315 {
31316   line = $ 0
31317   nfields = split(line, field, "@")
31318   substed = 0
31319   len = length(field[1])
31320   for (i = 2; i < nfields; i++) {
31321     key = field[i]
31322     keylen = length(key)
31323     if (S_is_set[key]) {
31324       value = S[key]
31325       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31326       len += length(value) + length(field[++i])
31327       substed = 1
31328     } else
31329       len += 1 + keylen
31330   }
31331   if (nfields == 3 && !substed) {
31332     key = field[2]
31333     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
31334       \$ac_cs_awk_read_file
31335       next
31336     }
31337   }
31338   print line
31339 }
31340 \$ac_cs_awk_pipe_fini
31341 _ACAWK
31342 _ACEOF
31343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31344 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31345   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31346 else
31347   cat
31348 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31349   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31350 _ACEOF
31351
31352 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31353 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31354 # trailing colons and then remove the whole line if VPATH becomes empty
31355 # (actually we leave an empty line to preserve line numbers).
31356 if test "x$srcdir" = x.; then
31357   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
31358 h
31359 s///
31360 s/^/:/
31361 s/[      ]*$/:/
31362 s/:\$(srcdir):/:/g
31363 s/:\${srcdir}:/:/g
31364 s/:@srcdir@:/:/g
31365 s/^:*//
31366 s/:*$//
31367 x
31368 s/\(=[   ]*\).*/\1/
31369 G
31370 s/\n//
31371 s/^[^=]*=[       ]*$//
31372 }'
31373 fi
31374
31375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31376 fi # test -n "$CONFIG_FILES"
31377
31378 # Set up the scripts for CONFIG_HEADERS section.
31379 # No need to generate them if there are no CONFIG_HEADERS.
31380 # This happens for instance with `./config.status Makefile'.
31381 if test -n "$CONFIG_HEADERS"; then
31382 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31383 BEGIN {
31384 _ACEOF
31385
31386 # Transform confdefs.h into an awk script `defines.awk', embedded as
31387 # here-document in config.status, that substitutes the proper values into
31388 # config.h.in to produce config.h.
31389
31390 # Create a delimiter string that does not exist in confdefs.h, to ease
31391 # handling of long lines.
31392 ac_delim='%!_!# '
31393 for ac_last_try in false false :; do
31394   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31395   if test -z "$ac_tt"; then
31396     break
31397   elif $ac_last_try; then
31398     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31399   else
31400     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31401   fi
31402 done
31403
31404 # For the awk script, D is an array of macro values keyed by name,
31405 # likewise P contains macro parameters if any.  Preserve backslash
31406 # newline sequences.
31407
31408 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31409 sed -n '
31410 s/.\{148\}/&'"$ac_delim"'/g
31411 t rset
31412 :rset
31413 s/^[     ]*#[    ]*define[       ][      ]*/ /
31414 t def
31415 d
31416 :def
31417 s/\\$//
31418 t bsnl
31419 s/["\\]/\\&/g
31420 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31421 D["\1"]=" \3"/p
31422 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31423 d
31424 :bsnl
31425 s/["\\]/\\&/g
31426 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31427 D["\1"]=" \3\\\\\\n"\\/p
31428 t cont
31429 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31430 t cont
31431 d
31432 :cont
31433 n
31434 s/.\{148\}/&'"$ac_delim"'/g
31435 t clear
31436 :clear
31437 s/\\$//
31438 t bsnlc
31439 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31440 d
31441 :bsnlc
31442 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31443 b cont
31444 ' <confdefs.h | sed '
31445 s/'"$ac_delim"'/"\\\
31446 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31447
31448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31449   for (key in D) D_is_set[key] = 1
31450   FS = "\a"
31451 }
31452 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31453   line = \$ 0
31454   split(line, arg, " ")
31455   if (arg[1] == "#") {
31456     defundef = arg[2]
31457     mac1 = arg[3]
31458   } else {
31459     defundef = substr(arg[1], 2)
31460     mac1 = arg[2]
31461   }
31462   split(mac1, mac2, "(") #)
31463   macro = mac2[1]
31464   prefix = substr(line, 1, index(line, defundef) - 1)
31465   if (D_is_set[macro]) {
31466     # Preserve the white space surrounding the "#".
31467     print prefix "define", macro P[macro] D[macro]
31468     next
31469   } else {
31470     # Replace #undef with comments.  This is necessary, for example,
31471     # in the case of _POSIX_SOURCE, which is predefined and required
31472     # on some systems where configure will not decide to define it.
31473     if (defundef == "undef") {
31474       print "/*", prefix defundef, macro, "*/"
31475       next
31476     }
31477   }
31478 }
31479 { print }
31480 _ACAWK
31481 _ACEOF
31482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31483   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31484 fi # test -n "$CONFIG_HEADERS"
31485
31486
31487 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31488 shift
31489 for ac_tag
31490 do
31491   case $ac_tag in
31492   :[FHLC]) ac_mode=$ac_tag; continue;;
31493   esac
31494   case $ac_mode$ac_tag in
31495   :[FHL]*:*);;
31496   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31497   :[FH]-) ac_tag=-:-;;
31498   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31499   esac
31500   ac_save_IFS=$IFS
31501   IFS=:
31502   set x $ac_tag
31503   IFS=$ac_save_IFS
31504   shift
31505   ac_file=$1
31506   shift
31507
31508   case $ac_mode in
31509   :L) ac_source=$1;;
31510   :[FH])
31511     ac_file_inputs=
31512     for ac_f
31513     do
31514       case $ac_f in
31515       -) ac_f="$ac_tmp/stdin";;
31516       *) # Look for the file first in the build tree, then in the source tree
31517          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31518          # because $ac_f cannot contain `:'.
31519          test -f "$ac_f" ||
31520            case $ac_f in
31521            [\\/$]*) false;;
31522            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31523            esac ||
31524            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31525       esac
31526       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31527       as_fn_append ac_file_inputs " '$ac_f'"
31528     done
31529
31530     # Let's still pretend it is `configure' which instantiates (i.e., don't
31531     # use $as_me), people would be surprised to read:
31532     #    /* config.h.  Generated by config.status.  */
31533     configure_input='Generated from '`
31534           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31535         `' by configure.'
31536     if test x"$ac_file" != x-; then
31537       configure_input="$ac_file.  $configure_input"
31538       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31539 $as_echo "$as_me: creating $ac_file" >&6;}
31540     fi
31541     # Neutralize special characters interpreted by sed in replacement strings.
31542     case $configure_input in #(
31543     *\&* | *\|* | *\\* )
31544        ac_sed_conf_input=`$as_echo "$configure_input" |
31545        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31546     *) ac_sed_conf_input=$configure_input;;
31547     esac
31548
31549     case $ac_tag in
31550     *:-:* | *:-) cat >"$ac_tmp/stdin" \
31551       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31552     esac
31553     ;;
31554   esac
31555
31556   ac_dir=`$as_dirname -- "$ac_file" ||
31557 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31558          X"$ac_file" : 'X\(//\)[^/]' \| \
31559          X"$ac_file" : 'X\(//\)$' \| \
31560          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31561 $as_echo X"$ac_file" |
31562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31563             s//\1/
31564             q
31565           }
31566           /^X\(\/\/\)[^/].*/{
31567             s//\1/
31568             q
31569           }
31570           /^X\(\/\/\)$/{
31571             s//\1/
31572             q
31573           }
31574           /^X\(\/\).*/{
31575             s//\1/
31576             q
31577           }
31578           s/.*/./; q'`
31579   as_dir="$ac_dir"; as_fn_mkdir_p
31580   ac_builddir=.
31581
31582 case "$ac_dir" in
31583 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31584 *)
31585   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31586   # A ".." for each directory in $ac_dir_suffix.
31587   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31588   case $ac_top_builddir_sub in
31589   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31590   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31591   esac ;;
31592 esac
31593 ac_abs_top_builddir=$ac_pwd
31594 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31595 # for backward compatibility:
31596 ac_top_builddir=$ac_top_build_prefix
31597
31598 case $srcdir in
31599   .)  # We are building in place.
31600     ac_srcdir=.
31601     ac_top_srcdir=$ac_top_builddir_sub
31602     ac_abs_top_srcdir=$ac_pwd ;;
31603   [\\/]* | ?:[\\/]* )  # Absolute name.
31604     ac_srcdir=$srcdir$ac_dir_suffix;
31605     ac_top_srcdir=$srcdir
31606     ac_abs_top_srcdir=$srcdir ;;
31607   *) # Relative name.
31608     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31609     ac_top_srcdir=$ac_top_build_prefix$srcdir
31610     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31611 esac
31612 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31613
31614
31615   case $ac_mode in
31616   :F)
31617   #
31618   # CONFIG_FILE
31619   #
31620
31621   case $INSTALL in
31622   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31623   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31624   esac
31625 _ACEOF
31626
31627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31628 # If the template does not know about datarootdir, expand it.
31629 # FIXME: This hack should be removed a few years after 2.60.
31630 ac_datarootdir_hack=; ac_datarootdir_seen=
31631 ac_sed_dataroot='
31632 /datarootdir/ {
31633   p
31634   q
31635 }
31636 /@datadir@/p
31637 /@docdir@/p
31638 /@infodir@/p
31639 /@localedir@/p
31640 /@mandir@/p'
31641 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31642 *datarootdir*) ac_datarootdir_seen=yes;;
31643 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31644   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31645 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31646 _ACEOF
31647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31648   ac_datarootdir_hack='
31649   s&@datadir@&$datadir&g
31650   s&@docdir@&$docdir&g
31651   s&@infodir@&$infodir&g
31652   s&@localedir@&$localedir&g
31653   s&@mandir@&$mandir&g
31654   s&\\\${datarootdir}&$datarootdir&g' ;;
31655 esac
31656 _ACEOF
31657
31658 # Neutralize VPATH when `$srcdir' = `.'.
31659 # Shell code in configure.ac might set extrasub.
31660 # FIXME: do we really want to maintain this feature?
31661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31662 ac_sed_extra="$ac_vpsub
31663 $extrasub
31664 _ACEOF
31665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31666 :t
31667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31668 s|@configure_input@|$ac_sed_conf_input|;t t
31669 s&@top_builddir@&$ac_top_builddir_sub&;t t
31670 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31671 s&@srcdir@&$ac_srcdir&;t t
31672 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31673 s&@top_srcdir@&$ac_top_srcdir&;t t
31674 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31675 s&@builddir@&$ac_builddir&;t t
31676 s&@abs_builddir@&$ac_abs_builddir&;t t
31677 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31678 s&@INSTALL@&$ac_INSTALL&;t t
31679 $ac_datarootdir_hack
31680 "
31681 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31682 if $ac_cs_awk_getline; then
31683   $AWK -f "$ac_tmp/subs.awk"
31684 else
31685   $AWK -f "$ac_tmp/subs.awk" | $SHELL
31686 fi \
31687   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31688
31689 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31690   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31691   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
31692       "$ac_tmp/out"`; test -z "$ac_out"; } &&
31693   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31694 which seems to be undefined.  Please make sure it is defined" >&5
31695 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31696 which seems to be undefined.  Please make sure it is defined" >&2;}
31697
31698   rm -f "$ac_tmp/stdin"
31699   case $ac_file in
31700   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31701   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31702   esac \
31703   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31704  ;;
31705   :H)
31706   #
31707   # CONFIG_HEADER
31708   #
31709   if test x"$ac_file" != x-; then
31710     {
31711       $as_echo "/* $configure_input  */" \
31712       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31713     } >"$ac_tmp/config.h" \
31714       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31715     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31716       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31717 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31718     else
31719       rm -f "$ac_file"
31720       mv "$ac_tmp/config.h" "$ac_file" \
31721         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31722     fi
31723   else
31724     $as_echo "/* $configure_input  */" \
31725       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31726       || as_fn_error $? "could not create -" "$LINENO" 5
31727   fi
31728  ;;
31729
31730   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31731 $as_echo "$as_me: executing $ac_file commands" >&6;}
31732  ;;
31733   esac
31734
31735
31736   case $ac_file$ac_mode in
31737     "libtool":C)
31738
31739     # See if we are running on zsh, and set the options which allow our
31740     # commands through without removal of \ escapes.
31741     if test -n "${ZSH_VERSION+set}" ; then
31742       setopt NO_GLOB_SUBST
31743     fi
31744
31745     cfgfile="${ofile}T"
31746     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31747     $RM "$cfgfile"
31748
31749     cat <<_LT_EOF >> "$cfgfile"
31750 #! $SHELL
31751
31752 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31753 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31755 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31756 #
31757 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31758 #                 2006, 2007, 2008 Free Software Foundation, Inc.
31759 #   Written by Gordon Matzigkeit, 1996
31760 #
31761 #   This file is part of GNU Libtool.
31762 #
31763 # GNU Libtool is free software; you can redistribute it and/or
31764 # modify it under the terms of the GNU General Public License as
31765 # published by the Free Software Foundation; either version 2 of
31766 # the License, or (at your option) any later version.
31767 #
31768 # As a special exception to the GNU General Public License,
31769 # if you distribute this file as part of a program or library that
31770 # is built using GNU Libtool, you may include this file under the
31771 # same distribution terms that you use for the rest of that program.
31772 #
31773 # GNU Libtool is distributed in the hope that it will be useful,
31774 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31775 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31776 # GNU General Public License for more details.
31777 #
31778 # You should have received a copy of the GNU General Public License
31779 # along with GNU Libtool; see the file COPYING.  If not, a copy
31780 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31781 # obtained by writing to the Free Software Foundation, Inc.,
31782 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31783
31784
31785 # The names of the tagged configurations supported by this script.
31786 available_tags="CXX "
31787
31788 # ### BEGIN LIBTOOL CONFIG
31789
31790 # Which release of libtool.m4 was used?
31791 macro_version=$macro_version
31792 macro_revision=$macro_revision
31793
31794 # Whether or not to build shared libraries.
31795 build_libtool_libs=$enable_shared
31796
31797 # Whether or not to build static libraries.
31798 build_old_libs=$enable_static
31799
31800 # What type of objects to build.
31801 pic_mode=$pic_mode
31802
31803 # Whether or not to optimize for fast installation.
31804 fast_install=$enable_fast_install
31805
31806 # The host system.
31807 host_alias=$host_alias
31808 host=$host
31809 host_os=$host_os
31810
31811 # The build system.
31812 build_alias=$build_alias
31813 build=$build
31814 build_os=$build_os
31815
31816 # A sed program that does not truncate output.
31817 SED=$lt_SED
31818
31819 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31820 Xsed="\$SED -e 1s/^X//"
31821
31822 # A grep program that handles long lines.
31823 GREP=$lt_GREP
31824
31825 # An ERE matcher.
31826 EGREP=$lt_EGREP
31827
31828 # A literal string matcher.
31829 FGREP=$lt_FGREP
31830
31831 # A BSD- or MS-compatible name lister.
31832 NM=$lt_NM
31833
31834 # Whether we need soft or hard links.
31835 LN_S=$lt_LN_S
31836
31837 # What is the maximum length of a command?
31838 max_cmd_len=$max_cmd_len
31839
31840 # Object file suffix (normally "o").
31841 objext=$ac_objext
31842
31843 # Executable file suffix (normally "").
31844 exeext=$exeext
31845
31846 # whether the shell understands "unset".
31847 lt_unset=$lt_unset
31848
31849 # turn spaces into newlines.
31850 SP2NL=$lt_lt_SP2NL
31851
31852 # turn newlines into spaces.
31853 NL2SP=$lt_lt_NL2SP
31854
31855 # How to create reloadable object files.
31856 reload_flag=$lt_reload_flag
31857 reload_cmds=$lt_reload_cmds
31858
31859 # An object symbol dumper.
31860 OBJDUMP=$lt_OBJDUMP
31861
31862 # Method to check whether dependent libraries are shared objects.
31863 deplibs_check_method=$lt_deplibs_check_method
31864
31865 # Command to use when deplibs_check_method == "file_magic".
31866 file_magic_cmd=$lt_file_magic_cmd
31867
31868 # The archiver.
31869 AR=$lt_AR
31870 AR_FLAGS=$lt_AR_FLAGS
31871
31872 # A symbol stripping program.
31873 STRIP=$lt_STRIP
31874
31875 # Commands used to install an old-style archive.
31876 RANLIB=$lt_RANLIB
31877 old_postinstall_cmds=$lt_old_postinstall_cmds
31878 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31879
31880 # A C compiler.
31881 LTCC=$lt_CC
31882
31883 # LTCC compiler flags.
31884 LTCFLAGS=$lt_CFLAGS
31885
31886 # Take the output of nm and produce a listing of raw symbols and C names.
31887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31888
31889 # Transform the output of nm in a proper C declaration.
31890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31891
31892 # Transform the output of nm in a C name address pair.
31893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31894
31895 # Transform the output of nm in a C name address pair when lib prefix is needed.
31896 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31897
31898 # The name of the directory that contains temporary libtool files.
31899 objdir=$objdir
31900
31901 # Shell to use when invoking shell scripts.
31902 SHELL=$lt_SHELL
31903
31904 # An echo program that does not interpret backslashes.
31905 ECHO=$lt_ECHO
31906
31907 # Used to examine libraries when file_magic_cmd begins with "file".
31908 MAGIC_CMD=$MAGIC_CMD
31909
31910 # Must we lock files when doing compilation?
31911 need_locks=$lt_need_locks
31912
31913 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31914 DSYMUTIL=$lt_DSYMUTIL
31915
31916 # Tool to change global to local symbols on Mac OS X.
31917 NMEDIT=$lt_NMEDIT
31918
31919 # Tool to manipulate fat objects and archives on Mac OS X.
31920 LIPO=$lt_LIPO
31921
31922 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31923 OTOOL=$lt_OTOOL
31924
31925 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31926 OTOOL64=$lt_OTOOL64
31927
31928 # Old archive suffix (normally "a").
31929 libext=$libext
31930
31931 # Shared library suffix (normally ".so").
31932 shrext_cmds=$lt_shrext_cmds
31933
31934 # The commands to extract the exported symbol list from a shared archive.
31935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31936
31937 # Variables whose values should be saved in libtool wrapper scripts and
31938 # restored at link time.
31939 variables_saved_for_relink=$lt_variables_saved_for_relink
31940
31941 # Do we need the "lib" prefix for modules?
31942 need_lib_prefix=$need_lib_prefix
31943
31944 # Do we need a version for libraries?
31945 need_version=$need_version
31946
31947 # Library versioning type.
31948 version_type=$version_type
31949
31950 # Shared library runtime path variable.
31951 runpath_var=$runpath_var
31952
31953 # Shared library path variable.
31954 shlibpath_var=$shlibpath_var
31955
31956 # Is shlibpath searched before the hard-coded library search path?
31957 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31958
31959 # Format of library name prefix.
31960 libname_spec=$lt_libname_spec
31961
31962 # List of archive names.  First name is the real one, the rest are links.
31963 # The last name is the one that the linker finds with -lNAME
31964 library_names_spec=$lt_library_names_spec
31965
31966 # The coded name of the library, if different from the real name.
31967 soname_spec=$lt_soname_spec
31968
31969 # Command to use after installation of a shared archive.
31970 postinstall_cmds=$lt_postinstall_cmds
31971
31972 # Command to use after uninstallation of a shared archive.
31973 postuninstall_cmds=$lt_postuninstall_cmds
31974
31975 # Commands used to finish a libtool library installation in a directory.
31976 finish_cmds=$lt_finish_cmds
31977
31978 # As "finish_cmds", except a single script fragment to be evaled but
31979 # not shown.
31980 finish_eval=$lt_finish_eval
31981
31982 # Whether we should hardcode library paths into libraries.
31983 hardcode_into_libs=$hardcode_into_libs
31984
31985 # Compile-time system search path for libraries.
31986 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31987
31988 # Run-time system search path for libraries.
31989 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31990
31991 # Whether dlopen is supported.
31992 dlopen_support=$enable_dlopen
31993
31994 # Whether dlopen of programs is supported.
31995 dlopen_self=$enable_dlopen_self
31996
31997 # Whether dlopen of statically linked programs is supported.
31998 dlopen_self_static=$enable_dlopen_self_static
31999
32000 # Commands to strip libraries.
32001 old_striplib=$lt_old_striplib
32002 striplib=$lt_striplib
32003
32004
32005 # The linker used to build libraries.
32006 LD=$lt_LD
32007
32008 # Commands used to build an old-style archive.
32009 old_archive_cmds=$lt_old_archive_cmds
32010
32011 # A language specific compiler.
32012 CC=$lt_compiler
32013
32014 # Is the compiler the GNU compiler?
32015 with_gcc=$GCC
32016
32017 # Compiler flag to turn off builtin functions.
32018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32019
32020 # How to pass a linker flag through the compiler.
32021 wl=$lt_lt_prog_compiler_wl
32022
32023 # Additional compiler flags for building library objects.
32024 pic_flag=$lt_lt_prog_compiler_pic
32025
32026 # Compiler flag to prevent dynamic linking.
32027 link_static_flag=$lt_lt_prog_compiler_static
32028
32029 # Does compiler simultaneously support -c and -o options?
32030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32031
32032 # Whether or not to add -lc for building shared libraries.
32033 build_libtool_need_lc=$archive_cmds_need_lc
32034
32035 # Whether or not to disallow shared libs when runtime libs are static.
32036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32037
32038 # Compiler flag to allow reflexive dlopens.
32039 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32040
32041 # Compiler flag to generate shared objects directly from archives.
32042 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32043
32044 # Whether the compiler copes with passing no objects directly.
32045 compiler_needs_object=$lt_compiler_needs_object
32046
32047 # Create an old-style archive from a shared archive.
32048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32049
32050 # Create a temporary old-style archive to link instead of a shared archive.
32051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32052
32053 # Commands used to build a shared archive.
32054 archive_cmds=$lt_archive_cmds
32055 archive_expsym_cmds=$lt_archive_expsym_cmds
32056
32057 # Commands used to build a loadable module if different from building
32058 # a shared archive.
32059 module_cmds=$lt_module_cmds
32060 module_expsym_cmds=$lt_module_expsym_cmds
32061
32062 # Whether we are building with GNU ld or not.
32063 with_gnu_ld=$lt_with_gnu_ld
32064
32065 # Flag that allows shared libraries with undefined symbols to be built.
32066 allow_undefined_flag=$lt_allow_undefined_flag
32067
32068 # Flag that enforces no undefined symbols.
32069 no_undefined_flag=$lt_no_undefined_flag
32070
32071 # Flag to hardcode \$libdir into a binary during linking.
32072 # This must work even if \$libdir does not exist
32073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32074
32075 # If ld is used when linking, flag to hardcode \$libdir into a binary
32076 # during linking.  This must work even if \$libdir does not exist.
32077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32078
32079 # Whether we need a single "-rpath" flag with a separated argument.
32080 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32081
32082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32083 # DIR into the resulting binary.
32084 hardcode_direct=$hardcode_direct
32085
32086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32087 # DIR into the resulting binary and the resulting library dependency is
32088 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32089 # library is relocated.
32090 hardcode_direct_absolute=$hardcode_direct_absolute
32091
32092 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32093 # into the resulting binary.
32094 hardcode_minus_L=$hardcode_minus_L
32095
32096 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32097 # into the resulting binary.
32098 hardcode_shlibpath_var=$hardcode_shlibpath_var
32099
32100 # Set to "yes" if building a shared library automatically hardcodes DIR
32101 # into the library and all subsequent libraries and executables linked
32102 # against it.
32103 hardcode_automatic=$hardcode_automatic
32104
32105 # Set to yes if linker adds runtime paths of dependent libraries
32106 # to runtime path list.
32107 inherit_rpath=$inherit_rpath
32108
32109 # Whether libtool must link a program against all its dependency libraries.
32110 link_all_deplibs=$link_all_deplibs
32111
32112 # Fix the shell variable \$srcfile for the compiler.
32113 fix_srcfile_path=$lt_fix_srcfile_path
32114
32115 # Set to "yes" if exported symbols are required.
32116 always_export_symbols=$always_export_symbols
32117
32118 # The commands to list exported symbols.
32119 export_symbols_cmds=$lt_export_symbols_cmds
32120
32121 # Symbols that should not be listed in the preloaded symbols.
32122 exclude_expsyms=$lt_exclude_expsyms
32123
32124 # Symbols that must always be exported.
32125 include_expsyms=$lt_include_expsyms
32126
32127 # Commands necessary for linking programs (against libraries) with templates.
32128 prelink_cmds=$lt_prelink_cmds
32129
32130 # Specify filename containing input files.
32131 file_list_spec=$lt_file_list_spec
32132
32133 # How to hardcode a shared library path into an executable.
32134 hardcode_action=$hardcode_action
32135
32136 # The directories searched by this compiler when creating a shared library.
32137 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32138
32139 # Dependencies to place before and after the objects being linked to
32140 # create a shared library.
32141 predep_objects=$lt_predep_objects
32142 postdep_objects=$lt_postdep_objects
32143 predeps=$lt_predeps
32144 postdeps=$lt_postdeps
32145
32146 # The library search path used internally by the compiler when linking
32147 # a shared library.
32148 compiler_lib_search_path=$lt_compiler_lib_search_path
32149
32150 # ### END LIBTOOL CONFIG
32151
32152 _LT_EOF
32153
32154   case $host_os in
32155   aix3*)
32156     cat <<\_LT_EOF >> "$cfgfile"
32157 # AIX sometimes has problems with the GCC collect2 program.  For some
32158 # reason, if we set the COLLECT_NAMES environment variable, the problems
32159 # vanish in a puff of smoke.
32160 if test "X${COLLECT_NAMES+set}" != Xset; then
32161   COLLECT_NAMES=
32162   export COLLECT_NAMES
32163 fi
32164 _LT_EOF
32165     ;;
32166   esac
32167
32168
32169 ltmain="$ac_aux_dir/ltmain.sh"
32170
32171
32172   # We use sed instead of cat because bash on DJGPP gets confused if
32173   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32174   # text mode, it properly converts lines to CR/LF.  This bash problem
32175   # is reportedly fixed, but why not run on old versions too?
32176   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
32177     || (rm -f "$cfgfile"; exit 1)
32178
32179   case $xsi_shell in
32180   yes)
32181     cat << \_LT_EOF >> "$cfgfile"
32182
32183 # func_dirname file append nondir_replacement
32184 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32185 # otherwise set result to NONDIR_REPLACEMENT.
32186 func_dirname ()
32187 {
32188   case ${1} in
32189     */*) func_dirname_result="${1%/*}${2}" ;;
32190     *  ) func_dirname_result="${3}" ;;
32191   esac
32192 }
32193
32194 # func_basename file
32195 func_basename ()
32196 {
32197   func_basename_result="${1##*/}"
32198 }
32199
32200 # func_dirname_and_basename file append nondir_replacement
32201 # perform func_basename and func_dirname in a single function
32202 # call:
32203 #   dirname:  Compute the dirname of FILE.  If nonempty,
32204 #             add APPEND to the result, otherwise set result
32205 #             to NONDIR_REPLACEMENT.
32206 #             value returned in "$func_dirname_result"
32207 #   basename: Compute filename of FILE.
32208 #             value retuned in "$func_basename_result"
32209 # Implementation must be kept synchronized with func_dirname
32210 # and func_basename. For efficiency, we do not delegate to
32211 # those functions but instead duplicate the functionality here.
32212 func_dirname_and_basename ()
32213 {
32214   case ${1} in
32215     */*) func_dirname_result="${1%/*}${2}" ;;
32216     *  ) func_dirname_result="${3}" ;;
32217   esac
32218   func_basename_result="${1##*/}"
32219 }
32220
32221 # func_stripname prefix suffix name
32222 # strip PREFIX and SUFFIX off of NAME.
32223 # PREFIX and SUFFIX must not contain globbing or regex special
32224 # characters, hashes, percent signs, but SUFFIX may contain a leading
32225 # dot (in which case that matches only a dot).
32226 func_stripname ()
32227 {
32228   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32229   # positional parameters, so assign one to ordinary parameter first.
32230   func_stripname_result=${3}
32231   func_stripname_result=${func_stripname_result#"${1}"}
32232   func_stripname_result=${func_stripname_result%"${2}"}
32233 }
32234
32235 # func_opt_split
32236 func_opt_split ()
32237 {
32238   func_opt_split_opt=${1%%=*}
32239   func_opt_split_arg=${1#*=}
32240 }
32241
32242 # func_lo2o object
32243 func_lo2o ()
32244 {
32245   case ${1} in
32246     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32247     *)    func_lo2o_result=${1} ;;
32248   esac
32249 }
32250
32251 # func_xform libobj-or-source
32252 func_xform ()
32253 {
32254   func_xform_result=${1%.*}.lo
32255 }
32256
32257 # func_arith arithmetic-term...
32258 func_arith ()
32259 {
32260   func_arith_result=$(( $* ))
32261 }
32262
32263 # func_len string
32264 # STRING may not start with a hyphen.
32265 func_len ()
32266 {
32267   func_len_result=${#1}
32268 }
32269
32270 _LT_EOF
32271     ;;
32272   *) # Bourne compatible functions.
32273     cat << \_LT_EOF >> "$cfgfile"
32274
32275 # func_dirname file append nondir_replacement
32276 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32277 # otherwise set result to NONDIR_REPLACEMENT.
32278 func_dirname ()
32279 {
32280   # Extract subdirectory from the argument.
32281   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32282   if test "X$func_dirname_result" = "X${1}"; then
32283     func_dirname_result="${3}"
32284   else
32285     func_dirname_result="$func_dirname_result${2}"
32286   fi
32287 }
32288
32289 # func_basename file
32290 func_basename ()
32291 {
32292   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32293 }
32294
32295
32296 # func_stripname prefix suffix name
32297 # strip PREFIX and SUFFIX off of NAME.
32298 # PREFIX and SUFFIX must not contain globbing or regex special
32299 # characters, hashes, percent signs, but SUFFIX may contain a leading
32300 # dot (in which case that matches only a dot).
32301 # func_strip_suffix prefix name
32302 func_stripname ()
32303 {
32304   case ${2} in
32305     .*) func_stripname_result=`$ECHO "X${3}" \
32306            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32307     *)  func_stripname_result=`$ECHO "X${3}" \
32308            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32309   esac
32310 }
32311
32312 # sed scripts:
32313 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32314 my_sed_long_arg='1s/^-[^=]*=//'
32315
32316 # func_opt_split
32317 func_opt_split ()
32318 {
32319   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32320   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32321 }
32322
32323 # func_lo2o object
32324 func_lo2o ()
32325 {
32326   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32327 }
32328
32329 # func_xform libobj-or-source
32330 func_xform ()
32331 {
32332   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32333 }
32334
32335 # func_arith arithmetic-term...
32336 func_arith ()
32337 {
32338   func_arith_result=`expr "$@"`
32339 }
32340
32341 # func_len string
32342 # STRING may not start with a hyphen.
32343 func_len ()
32344 {
32345   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32346 }
32347
32348 _LT_EOF
32349 esac
32350
32351 case $lt_shell_append in
32352   yes)
32353     cat << \_LT_EOF >> "$cfgfile"
32354
32355 # func_append var value
32356 # Append VALUE to the end of shell variable VAR.
32357 func_append ()
32358 {
32359   eval "$1+=\$2"
32360 }
32361 _LT_EOF
32362     ;;
32363   *)
32364     cat << \_LT_EOF >> "$cfgfile"
32365
32366 # func_append var value
32367 # Append VALUE to the end of shell variable VAR.
32368 func_append ()
32369 {
32370   eval "$1=\$$1\$2"
32371 }
32372
32373 _LT_EOF
32374     ;;
32375   esac
32376
32377
32378   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32379     || (rm -f "$cfgfile"; exit 1)
32380
32381   mv -f "$cfgfile" "$ofile" ||
32382     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32383   chmod +x "$ofile"
32384
32385
32386     cat <<_LT_EOF >> "$ofile"
32387
32388 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32389
32390 # The linker used to build libraries.
32391 LD=$lt_LD_CXX
32392
32393 # Commands used to build an old-style archive.
32394 old_archive_cmds=$lt_old_archive_cmds_CXX
32395
32396 # A language specific compiler.
32397 CC=$lt_compiler_CXX
32398
32399 # Is the compiler the GNU compiler?
32400 with_gcc=$GCC_CXX
32401
32402 # Compiler flag to turn off builtin functions.
32403 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32404
32405 # How to pass a linker flag through the compiler.
32406 wl=$lt_lt_prog_compiler_wl_CXX
32407
32408 # Additional compiler flags for building library objects.
32409 pic_flag=$lt_lt_prog_compiler_pic_CXX
32410
32411 # Compiler flag to prevent dynamic linking.
32412 link_static_flag=$lt_lt_prog_compiler_static_CXX
32413
32414 # Does compiler simultaneously support -c and -o options?
32415 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32416
32417 # Whether or not to add -lc for building shared libraries.
32418 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32419
32420 # Whether or not to disallow shared libs when runtime libs are static.
32421 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32422
32423 # Compiler flag to allow reflexive dlopens.
32424 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32425
32426 # Compiler flag to generate shared objects directly from archives.
32427 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32428
32429 # Whether the compiler copes with passing no objects directly.
32430 compiler_needs_object=$lt_compiler_needs_object_CXX
32431
32432 # Create an old-style archive from a shared archive.
32433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32434
32435 # Create a temporary old-style archive to link instead of a shared archive.
32436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32437
32438 # Commands used to build a shared archive.
32439 archive_cmds=$lt_archive_cmds_CXX
32440 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32441
32442 # Commands used to build a loadable module if different from building
32443 # a shared archive.
32444 module_cmds=$lt_module_cmds_CXX
32445 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32446
32447 # Whether we are building with GNU ld or not.
32448 with_gnu_ld=$lt_with_gnu_ld_CXX
32449
32450 # Flag that allows shared libraries with undefined symbols to be built.
32451 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32452
32453 # Flag that enforces no undefined symbols.
32454 no_undefined_flag=$lt_no_undefined_flag_CXX
32455
32456 # Flag to hardcode \$libdir into a binary during linking.
32457 # This must work even if \$libdir does not exist
32458 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32459
32460 # If ld is used when linking, flag to hardcode \$libdir into a binary
32461 # during linking.  This must work even if \$libdir does not exist.
32462 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32463
32464 # Whether we need a single "-rpath" flag with a separated argument.
32465 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32466
32467 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32468 # DIR into the resulting binary.
32469 hardcode_direct=$hardcode_direct_CXX
32470
32471 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32472 # DIR into the resulting binary and the resulting library dependency is
32473 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32474 # library is relocated.
32475 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32476
32477 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32478 # into the resulting binary.
32479 hardcode_minus_L=$hardcode_minus_L_CXX
32480
32481 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32482 # into the resulting binary.
32483 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32484
32485 # Set to "yes" if building a shared library automatically hardcodes DIR
32486 # into the library and all subsequent libraries and executables linked
32487 # against it.
32488 hardcode_automatic=$hardcode_automatic_CXX
32489
32490 # Set to yes if linker adds runtime paths of dependent libraries
32491 # to runtime path list.
32492 inherit_rpath=$inherit_rpath_CXX
32493
32494 # Whether libtool must link a program against all its dependency libraries.
32495 link_all_deplibs=$link_all_deplibs_CXX
32496
32497 # Fix the shell variable \$srcfile for the compiler.
32498 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32499
32500 # Set to "yes" if exported symbols are required.
32501 always_export_symbols=$always_export_symbols_CXX
32502
32503 # The commands to list exported symbols.
32504 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32505
32506 # Symbols that should not be listed in the preloaded symbols.
32507 exclude_expsyms=$lt_exclude_expsyms_CXX
32508
32509 # Symbols that must always be exported.
32510 include_expsyms=$lt_include_expsyms_CXX
32511
32512 # Commands necessary for linking programs (against libraries) with templates.
32513 prelink_cmds=$lt_prelink_cmds_CXX
32514
32515 # Specify filename containing input files.
32516 file_list_spec=$lt_file_list_spec_CXX
32517
32518 # How to hardcode a shared library path into an executable.
32519 hardcode_action=$hardcode_action_CXX
32520
32521 # The directories searched by this compiler when creating a shared library.
32522 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32523
32524 # Dependencies to place before and after the objects being linked to
32525 # create a shared library.
32526 predep_objects=$lt_predep_objects_CXX
32527 postdep_objects=$lt_postdep_objects_CXX
32528 predeps=$lt_predeps_CXX
32529 postdeps=$lt_postdeps_CXX
32530
32531 # The library search path used internally by the compiler when linking
32532 # a shared library.
32533 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32534
32535 # ### END LIBTOOL TAG CONFIG: CXX
32536 _LT_EOF
32537
32538  ;;
32539     "default-1":C)
32540     for ac_file in $CONFIG_FILES; do
32541       # Support "outfile[:infile[:infile...]]"
32542       case "$ac_file" in
32543         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32544       esac
32545       # PO directories have a Makefile.in generated from Makefile.in.in.
32546       case "$ac_file" in */Makefile.in)
32547         # Adjust a relative srcdir.
32548         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32549         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32550         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32551         # In autoconf-2.13 it is called $ac_given_srcdir.
32552         # In autoconf-2.50 it is called $srcdir.
32553         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32554         case "$ac_given_srcdir" in
32555           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32556           /*) top_srcdir="$ac_given_srcdir" ;;
32557           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32558         esac
32559         # Treat a directory as a PO directory if and only if it has a
32560         # POTFILES.in file. This allows packages to have multiple PO
32561         # directories under different names or in different locations.
32562         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32563           rm -f "$ac_dir/POTFILES"
32564           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32565           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32566           POMAKEFILEDEPS="POTFILES.in"
32567           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32568           # on $ac_dir but don't depend on user-specified configuration
32569           # parameters.
32570           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32571             # The LINGUAS file contains the set of available languages.
32572             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32573               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32574             fi
32575             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32576             # Hide the ALL_LINGUAS assigment from automake.
32577             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32578             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32579           else
32580             # The set of available languages was given in configure.in.
32581             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32582           fi
32583           # Compute POFILES
32584           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32585           # Compute UPDATEPOFILES
32586           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32587           # Compute DUMMYPOFILES
32588           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32589           # Compute GMOFILES
32590           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32591           case "$ac_given_srcdir" in
32592             .) srcdirpre= ;;
32593             *) srcdirpre='$(srcdir)/' ;;
32594           esac
32595           POFILES=
32596           UPDATEPOFILES=
32597           DUMMYPOFILES=
32598           GMOFILES=
32599           for lang in $ALL_LINGUAS; do
32600             POFILES="$POFILES $srcdirpre$lang.po"
32601             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32602             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32603             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32604           done
32605           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32606           # environment variable.
32607           INST_LINGUAS=
32608           if test -n "$ALL_LINGUAS"; then
32609             for presentlang in $ALL_LINGUAS; do
32610               useit=no
32611               if test "%UNSET%" != "$LINGUAS"; then
32612                 desiredlanguages="$LINGUAS"
32613               else
32614                 desiredlanguages="$ALL_LINGUAS"
32615               fi
32616               for desiredlang in $desiredlanguages; do
32617                 # Use the presentlang catalog if desiredlang is
32618                 #   a. equal to presentlang, or
32619                 #   b. a variant of presentlang (because in this case,
32620                 #      presentlang can be used as a fallback for messages
32621                 #      which are not translated in the desiredlang catalog).
32622                 case "$desiredlang" in
32623                   "$presentlang"*) useit=yes;;
32624                 esac
32625               done
32626               if test $useit = yes; then
32627                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32628               fi
32629             done
32630           fi
32631           CATALOGS=
32632           if test -n "$INST_LINGUAS"; then
32633             for lang in $INST_LINGUAS; do
32634               CATALOGS="$CATALOGS $lang.gmo"
32635             done
32636           fi
32637           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32638           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"
32639           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32640             if test -f "$f"; then
32641               case "$f" in
32642                 *.orig | *.bak | *~) ;;
32643                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32644               esac
32645             fi
32646           done
32647         fi
32648         ;;
32649       esac
32650     done ;;
32651     "default":C)
32652  ;;
32653
32654   esac
32655 done # for ac_tag
32656
32657
32658 as_fn_exit 0
32659 _ACEOF
32660 ac_clean_files=$ac_clean_files_save
32661
32662 test $ac_write_fail = 0 ||
32663   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32664
32665
32666 # configure is writing to config.log, and then calls config.status.
32667 # config.status does its own redirection, appending to config.log.
32668 # Unfortunately, on DOS this fails, as config.log is still kept open
32669 # by configure, so config.status won't be able to write to it; its
32670 # output is simply discarded.  So we exec the FD to /dev/null,
32671 # effectively closing config.log, so it can be properly (re)opened and
32672 # appended to by config.status.  When coming back to configure, we
32673 # need to make the FD available again.
32674 if test "$no_create" != yes; then
32675   ac_cs_success=:
32676   ac_config_status_args=
32677   test "$silent" = yes &&
32678     ac_config_status_args="$ac_config_status_args --quiet"
32679   exec 5>/dev/null
32680   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32681   exec 5>>config.log
32682   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32683   # would make configure fail if this is the last instruction.
32684   $ac_cs_success || as_fn_exit 1
32685 fi
32686 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32687   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32688 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32689 fi
32690
32691
32692 if test "${support_bat}" = "yes" ; then
32693    if test "x$QMAKE" = "xnone"; then
32694       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32695    fi
32696
32697    cd src/qt-console
32698    echo "Creating bat Makefile"
32699    touch bat
32700    chmod 755 bat
32701    rm -f Makefile
32702    $QMAKE
32703    ${MAKE:-make} clean
32704    cd ${BUILD_DIR}
32705 fi
32706
32707 if test X"$GCC" = "Xyes" ; then
32708   echo "Doing make of dependencies"
32709   ${MAKE:-make} depend
32710 fi
32711
32712 cd src/qt-console
32713 chmod 755 install_conf_file build-depkgs-qt-console
32714 cd ${BUILD_DIR}
32715
32716 cd scripts
32717 chmod 755 bacula btraceback mtx-changer
32718 chmod 755 dvd-handler dvd-simulator
32719 chmod 755 bconsole mtx-changer devel_bacula logrotate
32720 cd ..
32721
32722 c=updatedb
32723 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
32724 chmod 755 $c/update_postgresql_tables_10_to_11
32725 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
32726 chmod 755 $c/update_postgresql_tables_11_to_12
32727
32728
32729 c=src/cats
32730
32731 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32732 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32733
32734 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32735 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32736
32737 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32738 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32739
32740 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32741 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32742
32743 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
32744 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
32745
32746
32747 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
32748 chmod 755 $c/sqlite
32749 chmod 755 $c/mysql
32750
32751 chmod 755 src/win32/build-depkgs-mingw32
32752
32753 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32754    largefile_support="yes"
32755 fi
32756
32757 if test X"$GCC" = "Xyes" ; then
32758                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32759    if test "x${CCVERSION}" = "x" ; then
32760       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32761    fi
32762    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32763    if test x"${CXXVERSION}" = x ; then
32764       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32765    fi
32766 fi
32767
32768 # clean up any old junk
32769 echo " "
32770 echo "Cleaning up"
32771 echo " "
32772 ${MAKE:-make} clean
32773
32774 echo "
32775 Configuration on `date`:
32776
32777    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32778    Bacula version:           ${BACULA} ${VERSION} (${DATE})
32779    Source code location:     ${srcdir}
32780    Install binaries:         ${sbindir}
32781    Install libraries:        ${libdir}
32782    Install config files:     ${sysconfdir}
32783    Scripts directory:        ${scriptdir}
32784    Archive directory:        ${archivedir}
32785    Working directory:        ${working_dir}
32786    PID directory:            ${piddir}
32787    Subsys directory:         ${subsysdir}
32788    Man directory:            ${mandir}
32789    Data directory:           ${datarootdir}
32790    Plugin directory:         ${plugindir}
32791    C Compiler:               ${CC} ${CCVERSION}
32792    C++ Compiler:             ${CXX} ${CXXVERSION}
32793    Compiler flags:           ${WCFLAGS} ${CFLAGS}
32794    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
32795    Libraries:                ${LIBS}
32796    Statically Linked Tools:  ${support_static_tools}
32797    Statically Linked FD:     ${support_static_fd}
32798    Statically Linked SD:     ${support_static_sd}
32799    Statically Linked DIR:    ${support_static_dir}
32800    Statically Linked CONS:   ${support_static_cons}
32801    Database backends:        ${db_backends}
32802    Database port:            ${db_port}
32803    Database name:            ${db_name}
32804    Database user:            ${db_user}
32805
32806    Job Output Email:         ${job_email}
32807    Traceback Email:          ${dump_email}
32808    SMTP Host Address:        ${smtp_host}
32809
32810    Director Port:            ${dir_port}
32811    File daemon Port:         ${fd_port}
32812    Storage daemon Port:      ${sd_port}
32813
32814    Director User:            ${dir_user}
32815    Director Group:           ${dir_group}
32816    Storage Daemon User:      ${sd_user}
32817    Storage DaemonGroup:      ${sd_group}
32818    File Daemon User:         ${fd_user}
32819    File Daemon Group:        ${fd_group}
32820
32821    Large file support:      $largefile_support
32822    Bacula conio support:    ${got_conio} ${CONS_LIBS}
32823    readline support:        ${got_readline} ${PRTREADLINE_SRC}
32824    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
32825    TLS support:             ${support_tls}
32826    Encryption support:      ${support_crypto}
32827    ZLIB support:            ${have_zlib}
32828    enable-smartalloc:       ${support_smartalloc}
32829    enable-lockmgr:          ${support_lockmgr}
32830    bat support:             ${support_bat}
32831    enable-gnome:            ${support_gnome} ${gnome_version}
32832    enable-bwx-console:      ${support_wx_console} ${wx_version}
32833    enable-tray-monitor:     ${support_tray_monitor}
32834    client-only:             ${build_client_only}
32835    build-dird:              ${build_dird}
32836    build-stored:            ${build_stored}
32837    Plugin support:          ${have_plugins}
32838    AFS support:             ${have_afs}
32839    ACL support:             ${have_acl}
32840    XATTR support:           ${have_xattr}
32841    Python support:          ${support_python} ${PYTHON_LIBS}
32842    Batch insert enabled:    ${support_batch_insert}
32843
32844   " > config.out
32845
32846 # create a small shell script useful for support with
32847 # configure options and config.out info
32848 cat > scripts/bacula_config << EOF
32849 #!/bin/sh
32850 cat << __EOC__
32851 $ $0 $ac_configure_args
32852 EOF
32853 cat config.out >> scripts/bacula_config
32854 echo __EOC__ >> scripts/bacula_config
32855 chmod 755 scripts/bacula_config
32856
32857 cat config.out