]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add scripts/bacula_config script that displays configure options and results
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # 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 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$?; test $as_status -eq 0 && as_status=1
367   if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370   fi
371   $as_echo "$as_me: error: $1" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="src/version.h"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_header_list=
744 ac_subst_vars='LTLIBOBJS
745 DISTVER
746 DISTNAME
747 MACOSX
748 WIN32
749 PSCMD
750 TAPEDRIVE
751 OBJLIST
752 WRAPLIBS
753 WLDFLAGS
754 WCFLAGS
755 DB_LIBS
756 DLIB
757 DINCLUDE
758 DEBUG
759 FDLIBS
760 CAP_LIBS
761 LIBOBJS
762 X_EXTRA_LIBS
763 X_LIBS
764 X_PRE_LIBS
765 X_CFLAGS
766 XMKMF
767 GETCONF
768 DB_TYPE
769 cats
770 DB_PROG_LIB
771 DB_PROG
772 uncomment_dbi
773 DBI_DBD_DRIVERDIR
774 SQL_BINDIR
775 SQL_INCLUDE
776 SQL_LFLAGS
777 SBINPERM
778 fd_group
779 fd_user
780 sd_group
781 sd_user
782 dir_group
783 dir_user
784 db_port
785 db_password
786 db_user
787 db_name
788 mon_sd_password
789 mon_fd_password
790 mon_dir_password
791 sd_password
792 fd_password
793 dir_password
794 sd_port
795 fd_port
796 dir_port
797 baseport
798 subsysdir
799 piddir
800 smtp_host
801 job_email
802 dump_email
803 plugindir
804 logdir
805 bsrdir
806 scriptdir
807 hostname
808 basename
809 archivedir
810 working_dir
811 OPENSSL_INC
812 OPENSSL_LIBS
813 PYTHON_INCDIR
814 PYTHON_LIBS
815 READLINE_SRC
816 CONS_LDFLAGS
817 CONS_LIBS
818 CONS_SRC
819 CONS_OBJ
820 CONS_INC
821 STORED_DIR
822 DIR_TOOLS
823 DIRD_DIR
824 ALL_DIRS
825 STATIC_WX_CONS
826 STATIC_GNOME_CONS
827 STATIC_CONS
828 STATIC_DIR
829 STATIC_SD
830 STATIC_FD
831 TTOOL_LDFLAGS
832 TRAY_MONITOR_DIR
833 TRAY_MONITOR_LDFLAGS
834 TRAY_MONITOR_CPPFLAGS
835 WX_DIR
836 WXCONS_LDFLAGS
837 WXCONS_CPPFLAGS
838 QWT
839 QWT_LIB
840 QWT_LDFLAGS
841 QWT_INC
842 BAT_DIR
843 INTL_LIBTOOL_SUFFIX_PREFIX
844 INTLOBJS
845 GENCAT
846 INSTOBJEXT
847 DATADIRNAME
848 CATOBJEXT
849 USE_INCLUDED_LIBINTL
850 BUILD_INCLUDED_LIBINTL
851 INTLBISON
852 HAVE_WPRINTF
853 HAVE_SNPRINTF
854 HAVE_ASPRINTF
855 HAVE_POSIX_PRINTF
856 GLIBC21
857 ALLOCA
858 GLIBC2
859 POSUB
860 LTLIBINTL
861 LIBINTL
862 INTLLIBS
863 LTLIBICONV
864 LIBICONV
865 INTL_MACOSX_LIBS
866 MSGMERGE
867 XGETTEXT
868 GMSGFMT
869 MSGFMT
870 USE_NLS
871 MKINSTALLDIRS
872 SET_MAKE
873 HAVE_DARWIN_OS_FALSE
874 HAVE_DARWIN_OS_TRUE
875 HAVE_IRIX_OS_FALSE
876 HAVE_IRIX_OS_TRUE
877 HAVE_SGI_OS_FALSE
878 HAVE_SGI_OS_TRUE
879 HAVE_BSDI_OS_FALSE
880 HAVE_BSDI_OS_TRUE
881 HAVE_OPENBSD_OS_FALSE
882 HAVE_OPENBSD_OS_TRUE
883 HAVE_NETBSD_OS_FALSE
884 HAVE_NETBSD_OS_TRUE
885 HAVE_FREEBSD_OS_FALSE
886 HAVE_FREEBSD_OS_TRUE
887 HAVE_LINUX_OS_FALSE
888 HAVE_LINUX_OS_TRUE
889 HAVE_HPUX_OS_FALSE
890 HAVE_HPUX_OS_TRUE
891 HAVE_AIX_OS_FALSE
892 HAVE_AIX_OS_TRUE
893 HAVE_OSF1_OS_FALSE
894 HAVE_OSF1_OS_TRUE
895 HAVE_SUN_OS_FALSE
896 HAVE_SUN_OS_TRUE
897 INCLUDE_UNINSTALL_TARGET
898 INCLUDE_INSTALL_TARGET
899 QMAKE_LIBTOOL
900 LIBTOOL_CLEAN_TARGET
901 LIBTOOL_UNINSTALL_TARGET
902 LIBTOOL_INSTALL_TARGET
903 DEFAULT_SHARED_OBJECT_TYPE
904 DEFAULT_ARCHIVE_TYPE
905 DEFAULT_OBJECT_TYPE
906 CXXCPP
907 OTOOL64
908 OTOOL
909 LIPO
910 NMEDIT
911 DSYMUTIL
912 lt_ECHO
913 RANLIB
914 STRIP
915 OBJDUMP
916 LN_S
917 NM
918 ac_ct_DUMPBIN
919 DUMPBIN
920 LD
921 FGREP
922 host_os
923 host_vendor
924 host_cpu
925 host
926 build_os
927 build_vendor
928 build_cpu
929 build
930 LIBTOOL
931 LOCAL_DEFS
932 LOCAL_LDFLAGS
933 LOCAL_CFLAGS
934 LOCAL_LIBS
935 MAKE_SHELL
936 ARFLAGS
937 AWK
938 PIDOF
939 CDRECORD
940 WXFLAGS
941 WXCONFIG
942 GMAKE
943 QMAKEQT4
944 QMAKE
945 PKGCONFIG
946 DVDRWFORMAT
947 DVDRWMEDIAINFO
948 GROWISOFS
949 PYTHON
950 MKISOFS
951 DD
952 MTX
953 OPENSSL
954 AR
955 TBL
956 CMP
957 ECHO
958 SED
959 CP
960 REMOVE
961 MV
962 INSTALL_DATA
963 INSTALL_SCRIPT
964 INSTALL_PROGRAM
965 EGREP
966 GREP
967 CPP
968 ac_ct_CXX
969 CXXFLAGS
970 CXX
971 OBJEXT
972 EXEEXT
973 ac_ct_CC
974 CPPFLAGS
975 LDFLAGS
976 CFLAGS
977 CC
978 post_host
979 BACULA
980 LSMDATE
981 DATE
982 VERSION
983 FALSEPRG
984 TRUEPRG
985 WIN32TOPDIR
986 WIN32MAINDIR
987 WIN32BUILDDIR
988 TOP_DIR
989 BUILD_DIR
990 target_alias
991 host_alias
992 build_alias
993 LIBS
994 ECHO_T
995 ECHO_N
996 ECHO_C
997 DEFS
998 mandir
999 localedir
1000 libdir
1001 psdir
1002 pdfdir
1003 dvidir
1004 htmldir
1005 infodir
1006 docdir
1007 oldincludedir
1008 includedir
1009 localstatedir
1010 sharedstatedir
1011 sysconfdir
1012 datadir
1013 datarootdir
1014 libexecdir
1015 sbindir
1016 bindir
1017 program_transform_name
1018 prefix
1019 exec_prefix
1020 PACKAGE_URL
1021 PACKAGE_BUGREPORT
1022 PACKAGE_STRING
1023 PACKAGE_VERSION
1024 PACKAGE_TARNAME
1025 PACKAGE_NAME
1026 PATH_SEPARATOR
1027 SHELL'
1028 ac_subst_files='MCOMMON'
1029 ac_user_opts='
1030 enable_option_checking
1031 enable_libtool
1032 enable_shared
1033 enable_static
1034 with_pic
1035 enable_fast_install
1036 with_gnu_ld
1037 enable_libtool_lock
1038 enable_includes
1039 enable_nls
1040 enable_rpath
1041 with_libiconv_prefix
1042 with_libintl_prefix
1043 with_included_gettext
1044 enable_gnome
1045 enable_bat
1046 with_qwt
1047 enable_bwx_console
1048 enable_tray_monitor
1049 enable_smartalloc
1050 enable_lockmgr
1051 enable_static_tools
1052 enable_static_fd
1053 enable_static_sd
1054 enable_static_dir
1055 enable_static_cons
1056 enable_client_only
1057 enable_build_dird
1058 enable_build_stored
1059 enable_conio
1060 enable_ipv6
1061 enable_readline
1062 with_readline
1063 with_python
1064 with_tcp_wrappers
1065 with_openssl
1066 with_working_dir
1067 with_archivedir
1068 with_basename
1069 with_hostname
1070 with_scriptdir
1071 with_bsrdir
1072 with_logdir
1073 with_plugindir
1074 with_dump_email
1075 with_job_email
1076 with_smtp_host
1077 with_pid_dir
1078 with_subsys_dir
1079 with_baseport
1080 with_dir_password
1081 with_fd_password
1082 with_sd_password
1083 with_mon_dir_password
1084 with_mon_fd_password
1085 with_mon_sd_password
1086 with_db_name
1087 with_db_user
1088 with_db_password
1089 with_db_port
1090 with_dir_user
1091 with_dir_group
1092 with_sd_user
1093 with_sd_group
1094 with_fd_user
1095 with_fd_group
1096 with_sbin_perm
1097 with_postgresql
1098 with_mysql
1099 with_embedded_mysql
1100 with_sqlite3
1101 with_dbi
1102 with_dbi_driver
1103 enable_batch_insert
1104 enable_largefile
1105 with_x
1106 enable_acl
1107 enable_xattr
1108 '
1109       ac_precious_vars='build_alias
1110 host_alias
1111 target_alias
1112 CC
1113 CFLAGS
1114 LDFLAGS
1115 LIBS
1116 CPPFLAGS
1117 CXX
1118 CXXFLAGS
1119 CCC
1120 CPP
1121 WXCONFIG
1122 WXFLAGS
1123 CXXCPP
1124 XMKMF'
1125
1126
1127 # Initialize some variables set by options.
1128 ac_init_help=
1129 ac_init_version=false
1130 ac_unrecognized_opts=
1131 ac_unrecognized_sep=
1132 # The variables have the same names as the options, with
1133 # dashes changed to underlines.
1134 cache_file=/dev/null
1135 exec_prefix=NONE
1136 no_create=
1137 no_recursion=
1138 prefix=NONE
1139 program_prefix=NONE
1140 program_suffix=NONE
1141 program_transform_name=s,x,x,
1142 silent=
1143 site=
1144 srcdir=
1145 verbose=
1146 x_includes=NONE
1147 x_libraries=NONE
1148
1149 # Installation directory options.
1150 # These are left unexpanded so users can "make install exec_prefix=/foo"
1151 # and all the variables that are supposed to be based on exec_prefix
1152 # by default will actually change.
1153 # Use braces instead of parens because sh, perl, etc. also accept them.
1154 # (The list follows the same order as the GNU Coding Standards.)
1155 bindir='${exec_prefix}/bin'
1156 sbindir='${exec_prefix}/sbin'
1157 libexecdir='${exec_prefix}/libexec'
1158 datarootdir='${prefix}/share'
1159 datadir='${datarootdir}'
1160 sysconfdir='${prefix}/etc'
1161 sharedstatedir='${prefix}/com'
1162 localstatedir='${prefix}/var'
1163 includedir='${prefix}/include'
1164 oldincludedir='/usr/include'
1165 docdir='${datarootdir}/doc/${PACKAGE}'
1166 infodir='${datarootdir}/info'
1167 htmldir='${docdir}'
1168 dvidir='${docdir}'
1169 pdfdir='${docdir}'
1170 psdir='${docdir}'
1171 libdir='${exec_prefix}/lib'
1172 localedir='${datarootdir}/locale'
1173 mandir='${datarootdir}/man'
1174
1175 ac_prev=
1176 ac_dashdash=
1177 for ac_option
1178 do
1179   # If the previous option needs an argument, assign it.
1180   if test -n "$ac_prev"; then
1181     eval $ac_prev=\$ac_option
1182     ac_prev=
1183     continue
1184   fi
1185
1186   case $ac_option in
1187   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1188   *)    ac_optarg=yes ;;
1189   esac
1190
1191   # Accept the important Cygnus configure options, so we can diagnose typos.
1192
1193   case $ac_dashdash$ac_option in
1194   --)
1195     ac_dashdash=yes ;;
1196
1197   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1198     ac_prev=bindir ;;
1199   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1200     bindir=$ac_optarg ;;
1201
1202   -build | --build | --buil | --bui | --bu)
1203     ac_prev=build_alias ;;
1204   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1205     build_alias=$ac_optarg ;;
1206
1207   -cache-file | --cache-file | --cache-fil | --cache-fi \
1208   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1209     ac_prev=cache_file ;;
1210   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1211   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1212     cache_file=$ac_optarg ;;
1213
1214   --config-cache | -C)
1215     cache_file=config.cache ;;
1216
1217   -datadir | --datadir | --datadi | --datad)
1218     ac_prev=datadir ;;
1219   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1220     datadir=$ac_optarg ;;
1221
1222   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1223   | --dataroo | --dataro | --datar)
1224     ac_prev=datarootdir ;;
1225   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1226   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1227     datarootdir=$ac_optarg ;;
1228
1229   -disable-* | --disable-*)
1230     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1231     # Reject names that are not valid shell variable names.
1232     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233       as_fn_error "invalid feature name: $ac_useropt"
1234     ac_useropt_orig=$ac_useropt
1235     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236     case $ac_user_opts in
1237       *"
1238 "enable_$ac_useropt"
1239 "*) ;;
1240       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1241          ac_unrecognized_sep=', ';;
1242     esac
1243     eval enable_$ac_useropt=no ;;
1244
1245   -docdir | --docdir | --docdi | --doc | --do)
1246     ac_prev=docdir ;;
1247   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1248     docdir=$ac_optarg ;;
1249
1250   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1251     ac_prev=dvidir ;;
1252   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1253     dvidir=$ac_optarg ;;
1254
1255   -enable-* | --enable-*)
1256     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259       as_fn_error "invalid feature name: $ac_useropt"
1260     ac_useropt_orig=$ac_useropt
1261     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262     case $ac_user_opts in
1263       *"
1264 "enable_$ac_useropt"
1265 "*) ;;
1266       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1267          ac_unrecognized_sep=', ';;
1268     esac
1269     eval enable_$ac_useropt=\$ac_optarg ;;
1270
1271   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1272   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1273   | --exec | --exe | --ex)
1274     ac_prev=exec_prefix ;;
1275   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1276   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1277   | --exec=* | --exe=* | --ex=*)
1278     exec_prefix=$ac_optarg ;;
1279
1280   -gas | --gas | --ga | --g)
1281     # Obsolete; use --with-gas.
1282     with_gas=yes ;;
1283
1284   -help | --help | --hel | --he | -h)
1285     ac_init_help=long ;;
1286   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1287     ac_init_help=recursive ;;
1288   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1289     ac_init_help=short ;;
1290
1291   -host | --host | --hos | --ho)
1292     ac_prev=host_alias ;;
1293   -host=* | --host=* | --hos=* | --ho=*)
1294     host_alias=$ac_optarg ;;
1295
1296   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1297     ac_prev=htmldir ;;
1298   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1299   | --ht=*)
1300     htmldir=$ac_optarg ;;
1301
1302   -includedir | --includedir | --includedi | --included | --include \
1303   | --includ | --inclu | --incl | --inc)
1304     ac_prev=includedir ;;
1305   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1306   | --includ=* | --inclu=* | --incl=* | --inc=*)
1307     includedir=$ac_optarg ;;
1308
1309   -infodir | --infodir | --infodi | --infod | --info | --inf)
1310     ac_prev=infodir ;;
1311   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1312     infodir=$ac_optarg ;;
1313
1314   -libdir | --libdir | --libdi | --libd)
1315     ac_prev=libdir ;;
1316   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1317     libdir=$ac_optarg ;;
1318
1319   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1320   | --libexe | --libex | --libe)
1321     ac_prev=libexecdir ;;
1322   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1323   | --libexe=* | --libex=* | --libe=*)
1324     libexecdir=$ac_optarg ;;
1325
1326   -localedir | --localedir | --localedi | --localed | --locale)
1327     ac_prev=localedir ;;
1328   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1329     localedir=$ac_optarg ;;
1330
1331   -localstatedir | --localstatedir | --localstatedi | --localstated \
1332   | --localstate | --localstat | --localsta | --localst | --locals)
1333     ac_prev=localstatedir ;;
1334   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1335   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1336     localstatedir=$ac_optarg ;;
1337
1338   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1339     ac_prev=mandir ;;
1340   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1341     mandir=$ac_optarg ;;
1342
1343   -nfp | --nfp | --nf)
1344     # Obsolete; use --without-fp.
1345     with_fp=no ;;
1346
1347   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1348   | --no-cr | --no-c | -n)
1349     no_create=yes ;;
1350
1351   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1352   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1353     no_recursion=yes ;;
1354
1355   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1356   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1357   | --oldin | --oldi | --old | --ol | --o)
1358     ac_prev=oldincludedir ;;
1359   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1360   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1361   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1362     oldincludedir=$ac_optarg ;;
1363
1364   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1365     ac_prev=prefix ;;
1366   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1367     prefix=$ac_optarg ;;
1368
1369   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1370   | --program-pre | --program-pr | --program-p)
1371     ac_prev=program_prefix ;;
1372   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1373   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1374     program_prefix=$ac_optarg ;;
1375
1376   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1377   | --program-suf | --program-su | --program-s)
1378     ac_prev=program_suffix ;;
1379   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1380   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1381     program_suffix=$ac_optarg ;;
1382
1383   -program-transform-name | --program-transform-name \
1384   | --program-transform-nam | --program-transform-na \
1385   | --program-transform-n | --program-transform- \
1386   | --program-transform | --program-transfor \
1387   | --program-transfo | --program-transf \
1388   | --program-trans | --program-tran \
1389   | --progr-tra | --program-tr | --program-t)
1390     ac_prev=program_transform_name ;;
1391   -program-transform-name=* | --program-transform-name=* \
1392   | --program-transform-nam=* | --program-transform-na=* \
1393   | --program-transform-n=* | --program-transform-=* \
1394   | --program-transform=* | --program-transfor=* \
1395   | --program-transfo=* | --program-transf=* \
1396   | --program-trans=* | --program-tran=* \
1397   | --progr-tra=* | --program-tr=* | --program-t=*)
1398     program_transform_name=$ac_optarg ;;
1399
1400   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1401     ac_prev=pdfdir ;;
1402   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1403     pdfdir=$ac_optarg ;;
1404
1405   -psdir | --psdir | --psdi | --psd | --ps)
1406     ac_prev=psdir ;;
1407   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1408     psdir=$ac_optarg ;;
1409
1410   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1411   | -silent | --silent | --silen | --sile | --sil)
1412     silent=yes ;;
1413
1414   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1415     ac_prev=sbindir ;;
1416   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1417   | --sbi=* | --sb=*)
1418     sbindir=$ac_optarg ;;
1419
1420   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1421   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1422   | --sharedst | --shareds | --shared | --share | --shar \
1423   | --sha | --sh)
1424     ac_prev=sharedstatedir ;;
1425   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1426   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1427   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1428   | --sha=* | --sh=*)
1429     sharedstatedir=$ac_optarg ;;
1430
1431   -site | --site | --sit)
1432     ac_prev=site ;;
1433   -site=* | --site=* | --sit=*)
1434     site=$ac_optarg ;;
1435
1436   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1437     ac_prev=srcdir ;;
1438   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1439     srcdir=$ac_optarg ;;
1440
1441   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1442   | --syscon | --sysco | --sysc | --sys | --sy)
1443     ac_prev=sysconfdir ;;
1444   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1445   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1446     sysconfdir=$ac_optarg ;;
1447
1448   -target | --target | --targe | --targ | --tar | --ta | --t)
1449     ac_prev=target_alias ;;
1450   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1451     target_alias=$ac_optarg ;;
1452
1453   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1454     verbose=yes ;;
1455
1456   -version | --version | --versio | --versi | --vers | -V)
1457     ac_init_version=: ;;
1458
1459   -with-* | --with-*)
1460     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1461     # Reject names that are not valid shell variable names.
1462     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1463       as_fn_error "invalid package name: $ac_useropt"
1464     ac_useropt_orig=$ac_useropt
1465     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1466     case $ac_user_opts in
1467       *"
1468 "with_$ac_useropt"
1469 "*) ;;
1470       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1471          ac_unrecognized_sep=', ';;
1472     esac
1473     eval with_$ac_useropt=\$ac_optarg ;;
1474
1475   -without-* | --without-*)
1476     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1477     # Reject names that are not valid shell variable names.
1478     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1479       as_fn_error "invalid package name: $ac_useropt"
1480     ac_useropt_orig=$ac_useropt
1481     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1482     case $ac_user_opts in
1483       *"
1484 "with_$ac_useropt"
1485 "*) ;;
1486       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1487          ac_unrecognized_sep=', ';;
1488     esac
1489     eval with_$ac_useropt=no ;;
1490
1491   --x)
1492     # Obsolete; use --with-x.
1493     with_x=yes ;;
1494
1495   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1496   | --x-incl | --x-inc | --x-in | --x-i)
1497     ac_prev=x_includes ;;
1498   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1499   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1500     x_includes=$ac_optarg ;;
1501
1502   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1503   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1504     ac_prev=x_libraries ;;
1505   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1506   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1507     x_libraries=$ac_optarg ;;
1508
1509   -*) as_fn_error "unrecognized option: \`$ac_option'
1510 Try \`$0 --help' for more information."
1511     ;;
1512
1513   *=*)
1514     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1515     # Reject names that are not valid shell variable names.
1516     case $ac_envvar in #(
1517       '' | [0-9]* | *[!_$as_cr_alnum]* )
1518       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1519     esac
1520     eval $ac_envvar=\$ac_optarg
1521     export $ac_envvar ;;
1522
1523   *)
1524     # FIXME: should be removed in autoconf 3.0.
1525     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1526     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1527       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1528     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1529     ;;
1530
1531   esac
1532 done
1533
1534 if test -n "$ac_prev"; then
1535   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1536   as_fn_error "missing argument to $ac_option"
1537 fi
1538
1539 if test -n "$ac_unrecognized_opts"; then
1540   case $enable_option_checking in
1541     no) ;;
1542     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1543     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1544   esac
1545 fi
1546
1547 # Check all directory arguments for consistency.
1548 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1549                 datadir sysconfdir sharedstatedir localstatedir includedir \
1550                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1551                 libdir localedir mandir
1552 do
1553   eval ac_val=\$$ac_var
1554   # Remove trailing slashes.
1555   case $ac_val in
1556     */ )
1557       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1558       eval $ac_var=\$ac_val;;
1559   esac
1560   # Be sure to have absolute directory names.
1561   case $ac_val in
1562     [\\/$]* | ?:[\\/]* )  continue;;
1563     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1564   esac
1565   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1566 done
1567
1568 # There might be people who depend on the old broken behavior: `$host'
1569 # used to hold the argument of --host etc.
1570 # FIXME: To remove some day.
1571 build=$build_alias
1572 host=$host_alias
1573 target=$target_alias
1574
1575 # FIXME: To remove some day.
1576 if test "x$host_alias" != x; then
1577   if test "x$build_alias" = x; then
1578     cross_compiling=maybe
1579     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1580     If a cross compiler is detected then cross compile mode will be used." >&2
1581   elif test "x$build_alias" != "x$host_alias"; then
1582     cross_compiling=yes
1583   fi
1584 fi
1585
1586 ac_tool_prefix=
1587 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1588
1589 test "$silent" = yes && exec 6>/dev/null
1590
1591
1592 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1593 ac_ls_di=`ls -di .` &&
1594 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1595   as_fn_error "working directory cannot be determined"
1596 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1597   as_fn_error "pwd does not report name of working directory"
1598
1599
1600 # Find the source files, if location was not specified.
1601 if test -z "$srcdir"; then
1602   ac_srcdir_defaulted=yes
1603   # Try the directory containing this script, then the parent directory.
1604   ac_confdir=`$as_dirname -- "$as_myself" ||
1605 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1606          X"$as_myself" : 'X\(//\)[^/]' \| \
1607          X"$as_myself" : 'X\(//\)$' \| \
1608          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1609 $as_echo X"$as_myself" |
1610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1611             s//\1/
1612             q
1613           }
1614           /^X\(\/\/\)[^/].*/{
1615             s//\1/
1616             q
1617           }
1618           /^X\(\/\/\)$/{
1619             s//\1/
1620             q
1621           }
1622           /^X\(\/\).*/{
1623             s//\1/
1624             q
1625           }
1626           s/.*/./; q'`
1627   srcdir=$ac_confdir
1628   if test ! -r "$srcdir/$ac_unique_file"; then
1629     srcdir=..
1630   fi
1631 else
1632   ac_srcdir_defaulted=no
1633 fi
1634 if test ! -r "$srcdir/$ac_unique_file"; then
1635   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1636   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1637 fi
1638 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1639 ac_abs_confdir=`(
1640         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1641         pwd)`
1642 # When building in place, set srcdir=.
1643 if test "$ac_abs_confdir" = "$ac_pwd"; then
1644   srcdir=.
1645 fi
1646 # Remove unnecessary trailing slashes from srcdir.
1647 # Double slashes in file names in object file debugging info
1648 # mess up M-x gdb in Emacs.
1649 case $srcdir in
1650 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1651 esac
1652 for ac_var in $ac_precious_vars; do
1653   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1654   eval ac_env_${ac_var}_value=\$${ac_var}
1655   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1656   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1657 done
1658
1659 #
1660 # Report the --help message.
1661 #
1662 if test "$ac_init_help" = "long"; then
1663   # Omit some internal or obsolete options to make the list less imposing.
1664   # This message is too long to be a string in the A/UX 3.1 sh.
1665   cat <<_ACEOF
1666 \`configure' configures this package to adapt to many kinds of systems.
1667
1668 Usage: $0 [OPTION]... [VAR=VALUE]...
1669
1670 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1671 VAR=VALUE.  See below for descriptions of some of the useful variables.
1672
1673 Defaults for the options are specified in brackets.
1674
1675 Configuration:
1676   -h, --help              display this help and exit
1677       --help=short        display options specific to this package
1678       --help=recursive    display the short help of all the included packages
1679   -V, --version           display version information and exit
1680   -q, --quiet, --silent   do not print \`checking...' messages
1681       --cache-file=FILE   cache test results in FILE [disabled]
1682   -C, --config-cache      alias for \`--cache-file=config.cache'
1683   -n, --no-create         do not create output files
1684       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1685
1686 Installation directories:
1687   --prefix=PREFIX         install architecture-independent files in PREFIX
1688                           [$ac_default_prefix]
1689   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1690                           [PREFIX]
1691
1692 By default, \`make install' will install all the files in
1693 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1694 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1695 for instance \`--prefix=\$HOME'.
1696
1697 For better control, use the options below.
1698
1699 Fine tuning of the installation directories:
1700   --bindir=DIR            user executables [EPREFIX/bin]
1701   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1702   --libexecdir=DIR        program executables [EPREFIX/libexec]
1703   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1704   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1705   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1706   --libdir=DIR            object code libraries [EPREFIX/lib]
1707   --includedir=DIR        C header files [PREFIX/include]
1708   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1709   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1710   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1711   --infodir=DIR           info documentation [DATAROOTDIR/info]
1712   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1713   --mandir=DIR            man documentation [DATAROOTDIR/man]
1714   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1715   --htmldir=DIR           html documentation [DOCDIR]
1716   --dvidir=DIR            dvi documentation [DOCDIR]
1717   --pdfdir=DIR            pdf documentation [DOCDIR]
1718   --psdir=DIR             ps documentation [DOCDIR]
1719 _ACEOF
1720
1721   cat <<\_ACEOF
1722
1723 X features:
1724   --x-includes=DIR    X include files are in DIR
1725   --x-libraries=DIR   X library files are in DIR
1726
1727 System types:
1728   --build=BUILD     configure for building on BUILD [guessed]
1729   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1730 _ACEOF
1731 fi
1732
1733 if test -n "$ac_init_help"; then
1734
1735   cat <<\_ACEOF
1736
1737 Optional Features:
1738   --disable-option-checking  ignore unrecognized --enable/--with options
1739   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1740   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1741   --enable-libtool        enable building using GNU libtool [default=yes]
1742   --enable-shared[=PKGS]  build shared libraries [default=yes]
1743   --enable-static[=PKGS]  build static libraries [default=no]
1744   --enable-fast-install[=PKGS]
1745                           optimize for fast installation [default=yes]
1746   --disable-libtool-lock  avoid locking (might break parallel builds)
1747   --enable-includes       enable installing of include files [default=no]
1748   --disable-nls           do not use Native Language Support
1749   --disable-rpath         do not hardcode runtime library paths
1750   --enable-gnome          enable build of bgnome-console GUI [default=no]
1751   --enable-bat            enable build of bat Qt4 GUI [default=no]
1752   --enable-bwx-console    enable build of wxWidgets console [default=no]
1753   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1754                           KDE [default=no]
1755   --enable-smartalloc     enable smartalloc debugging support [default=no]
1756   --enable-lockmgr        enable lock manager support [default=no]
1757   --enable-static-tools   enable static tape tools [default=no]
1758   --enable-static-fd      enable static File daemon [default=no]
1759   --enable-static-sd      enable static Storage daemon [default=no]
1760   --enable-static-dir     enable static Director [default=no]
1761   --enable-static-cons    enable static Console [default=no]
1762   --enable-client-only    build client (File daemon) only [default=no]
1763   --enable-build-dird     enable building of dird (Director) [default=yes]
1764   --enable-build-stored   enable building of stored (Storage daemon)
1765                           [default=yes]
1766   --disable-conio         disable conio support [default=no]
1767   --enable-ipv6           enable ipv6 support [default=yes]
1768   --disable-readline      disable readline support [default=yes]
1769   --enable-batch-insert   enable the DB batch insert code [default=no]
1770   --disable-largefile     omit support for large files
1771   --disable-acl           disable acl support [default=auto]
1772   --disable-xattr         disable xattr support [default=auto]
1773
1774 Optional Packages:
1775   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1776   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1777   --with-pic              try to use only PIC/non-PIC objects [default=use
1778                           both]
1779   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1780   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1781   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1782   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1783   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1784   --without-libintl-prefix     don't search for libintl in includedir and libdir
1785   --with-included-gettext use the GNU gettext library included here
1786   --with-qwt[=DIR]        specify qwt library directory
1787   --with-readline[=DIR]   specify readline library directory
1788   --with-python[=DIR]     Include Python support. DIR is the Python base
1789                           install directory, default is to search through a
1790                           number of common places for the Python files.
1791   --with-tcp-wrappers[=DIR]
1792                           enable tcpwrappers support
1793   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1794   --with-working-dir=PATH specify path of Bacula working directory
1795   --with-archivedir=PATH  specify path of SD archive directory
1796   --with-basename=RESNAME specify base resource name for daemons
1797   --with-hostname=RESNAME specify host name for daemons
1798   --with-scriptdir=PATH   specify path of Bacula scripts directory
1799   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1800   --with-logdir=PATH      specify path of Bacula logs directory
1801   --with-plugindir=PATH   specify path of Bacula plugins directory
1802   --with-dump-email=EMAIL dump email address
1803   --with-job-email=EMAIL  job output email address
1804   --with-smtp-host=HOST   SMTP mail host address
1805   --with-pid-dir=PATH     specify location of Bacula pid files
1806   --with-subsys-dir=PATH  specify location of Bacula subsys file
1807   --with-baseport=PORT    specify base port address for daemons
1808   --with-dir-password=PASSWORD
1809                           specify Director's password
1810   --with-fd-password=PASSWORD
1811                           specify Client's password
1812   --with-sd-password=PASSWORD
1813                           specify Storage daemon's password
1814   --with-mon-dir-password=PASSWORD
1815                           specify Director's password used by the monitor
1816   --with-mon-fd-password=PASSWORD
1817                           specify Client's password used by the monitor
1818   --with-mon-sd-password=PASSWORD
1819                           specify Storage daemon's password used by the
1820                           monitor
1821   --with-db-name=DBNAME   specify database name [default=bacula]
1822   --with-db-user=UNAME    specify database user [default=bacula]
1823   --with-db-password=PWD  specify database password [default=*none*]
1824   --with-db-port=DBPORT   specify a database port [default=null]
1825   --with-dir-user=USER    specify user for Director daemon
1826   --with-dir-group=GROUP  specify group for Director daemon
1827   --with-sd-user=USER     specify user for Storage daemon
1828   --with-sd-group=GROUP   specify group for Storage daemon
1829   --with-fd-user=USER     specify user for File daemon
1830   --with-fd-group=GROUP   specify group for File daemon
1831   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0754]
1832   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1833                           base install directory, [default=/usr/local/pgsql]
1834   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1835                           directory, default is to search through a number of
1836                           common places for the MySQL files.
1837   --with-embedded-mysql[=DIR]
1838                           Include MySQL support. DIR is the MySQL base install
1839                           directory, default is to search through a number of
1840                           common places for the MySQL files.
1841   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1842                           install directory, default is to search through a
1843                           number of common places for the SQLite3 files.
1844   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1845                           directory, default is to search through a number of
1846                           common places for the DBI files.
1847   --with-dbi-driver[=DRIVER]
1848                           Suport for DBI driver. DRIVER is the one DBI driver
1849                           like Mysql, Postgresql, others. Default is to not
1850                           configure any driver.
1851   --with-x                use the X Window System
1852
1853 Some influential environment variables:
1854   CC          C compiler command
1855   CFLAGS      C compiler flags
1856   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1857               nonstandard directory <lib dir>
1858   LIBS        libraries to pass to the linker, e.g. -l<library>
1859   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1860               you have headers in a nonstandard directory <include dir>
1861   CXX         C++ compiler command
1862   CXXFLAGS    C++ compiler flags
1863   CPP         C preprocessor
1864   WXCONFIG    wx-config command. On some systems, you must set it to
1865               wx-config-2.6 to use wxWidgets 2.6.
1866   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1867   CXXCPP      C++ preprocessor
1868   XMKMF       Path to xmkmf, Makefile generator for X Window System
1869
1870 Use these variables to override the choices made by `configure' or to help
1871 it to find libraries and programs with nonstandard names/locations.
1872
1873 Report bugs to the package provider.
1874 _ACEOF
1875 ac_status=$?
1876 fi
1877
1878 if test "$ac_init_help" = "recursive"; then
1879   # If there are subdirs, report their specific --help.
1880   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1881     test -d "$ac_dir" ||
1882       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1883       continue
1884     ac_builddir=.
1885
1886 case "$ac_dir" in
1887 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1888 *)
1889   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1890   # A ".." for each directory in $ac_dir_suffix.
1891   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1892   case $ac_top_builddir_sub in
1893   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1894   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1895   esac ;;
1896 esac
1897 ac_abs_top_builddir=$ac_pwd
1898 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1899 # for backward compatibility:
1900 ac_top_builddir=$ac_top_build_prefix
1901
1902 case $srcdir in
1903   .)  # We are building in place.
1904     ac_srcdir=.
1905     ac_top_srcdir=$ac_top_builddir_sub
1906     ac_abs_top_srcdir=$ac_pwd ;;
1907   [\\/]* | ?:[\\/]* )  # Absolute name.
1908     ac_srcdir=$srcdir$ac_dir_suffix;
1909     ac_top_srcdir=$srcdir
1910     ac_abs_top_srcdir=$srcdir ;;
1911   *) # Relative name.
1912     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1913     ac_top_srcdir=$ac_top_build_prefix$srcdir
1914     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1915 esac
1916 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1917
1918     cd "$ac_dir" || { ac_status=$?; continue; }
1919     # Check for guested configure.
1920     if test -f "$ac_srcdir/configure.gnu"; then
1921       echo &&
1922       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1923     elif test -f "$ac_srcdir/configure"; then
1924       echo &&
1925       $SHELL "$ac_srcdir/configure" --help=recursive
1926     else
1927       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1928     fi || ac_status=$?
1929     cd "$ac_pwd" || { ac_status=$?; break; }
1930   done
1931 fi
1932
1933 test -n "$ac_init_help" && exit $ac_status
1934 if $ac_init_version; then
1935   cat <<\_ACEOF
1936 configure
1937 generated by GNU Autoconf 2.65
1938
1939 Copyright (C) 2009 Free Software Foundation, Inc.
1940 This configure script is free software; the Free Software Foundation
1941 gives unlimited permission to copy, distribute and modify it.
1942 _ACEOF
1943   exit
1944 fi
1945
1946 ## ------------------------ ##
1947 ## Autoconf initialization. ##
1948 ## ------------------------ ##
1949
1950 # ac_fn_c_try_compile LINENO
1951 # --------------------------
1952 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_c_try_compile ()
1954 {
1955   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956   rm -f conftest.$ac_objext
1957   if { { ac_try="$ac_compile"
1958 case "(($ac_try" in
1959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960   *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964   (eval "$ac_compile") 2>conftest.err
1965   ac_status=$?
1966   if test -s conftest.err; then
1967     grep -v '^ *+' conftest.err >conftest.er1
1968     cat conftest.er1 >&5
1969     mv -f conftest.er1 conftest.err
1970   fi
1971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972   test $ac_status = 0; } && {
1973          test -z "$ac_c_werror_flag" ||
1974          test ! -s conftest.err
1975        } && test -s conftest.$ac_objext; then :
1976   ac_retval=0
1977 else
1978   $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981         ac_retval=1
1982 fi
1983   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984   as_fn_set_status $ac_retval
1985
1986 } # ac_fn_c_try_compile
1987
1988 # ac_fn_cxx_try_compile LINENO
1989 # ----------------------------
1990 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_cxx_try_compile ()
1992 {
1993   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994   rm -f conftest.$ac_objext
1995   if { { ac_try="$ac_compile"
1996 case "(($ac_try" in
1997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998   *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002   (eval "$ac_compile") 2>conftest.err
2003   ac_status=$?
2004   if test -s conftest.err; then
2005     grep -v '^ *+' conftest.err >conftest.er1
2006     cat conftest.er1 >&5
2007     mv -f conftest.er1 conftest.err
2008   fi
2009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010   test $ac_status = 0; } && {
2011          test -z "$ac_cxx_werror_flag" ||
2012          test ! -s conftest.err
2013        } && test -s conftest.$ac_objext; then :
2014   ac_retval=0
2015 else
2016   $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2018
2019         ac_retval=1
2020 fi
2021   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022   as_fn_set_status $ac_retval
2023
2024 } # ac_fn_cxx_try_compile
2025
2026 # ac_fn_c_try_cpp LINENO
2027 # ----------------------
2028 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_c_try_cpp ()
2030 {
2031   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032   if { { ac_try="$ac_cpp conftest.$ac_ext"
2033 case "(($ac_try" in
2034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035   *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2040   ac_status=$?
2041   if test -s conftest.err; then
2042     grep -v '^ *+' conftest.err >conftest.er1
2043     cat conftest.er1 >&5
2044     mv -f conftest.er1 conftest.err
2045   fi
2046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047   test $ac_status = 0; } >/dev/null && {
2048          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2049          test ! -s conftest.err
2050        }; then :
2051   ac_retval=0
2052 else
2053   $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2055
2056     ac_retval=1
2057 fi
2058   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059   as_fn_set_status $ac_retval
2060
2061 } # ac_fn_c_try_cpp
2062
2063 # ac_fn_c_try_link LINENO
2064 # -----------------------
2065 # Try to link conftest.$ac_ext, and return whether this succeeded.
2066 ac_fn_c_try_link ()
2067 {
2068   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069   rm -f conftest.$ac_objext conftest$ac_exeext
2070   if { { ac_try="$ac_link"
2071 case "(($ac_try" in
2072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073   *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077   (eval "$ac_link") 2>conftest.err
2078   ac_status=$?
2079   if test -s conftest.err; then
2080     grep -v '^ *+' conftest.err >conftest.er1
2081     cat conftest.er1 >&5
2082     mv -f conftest.er1 conftest.err
2083   fi
2084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085   test $ac_status = 0; } && {
2086          test -z "$ac_c_werror_flag" ||
2087          test ! -s conftest.err
2088        } && test -s conftest$ac_exeext && {
2089          test "$cross_compiling" = yes ||
2090          $as_test_x conftest$ac_exeext
2091        }; then :
2092   ac_retval=0
2093 else
2094   $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097         ac_retval=1
2098 fi
2099   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2100   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2101   # interfere with the next link command; also delete a directory that is
2102   # left behind by Apple's compiler.  We do this before executing the actions.
2103   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2104   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105   as_fn_set_status $ac_retval
2106
2107 } # ac_fn_c_try_link
2108
2109 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2110 # -------------------------------------------------------
2111 # Tests whether HEADER exists and can be compiled using the include files in
2112 # INCLUDES, setting the cache variable VAR accordingly.
2113 ac_fn_c_check_header_compile ()
2114 {
2115   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117 $as_echo_n "checking for $2... " >&6; }
2118 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2119   $as_echo_n "(cached) " >&6
2120 else
2121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 $4
2124 #include <$2>
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127   eval "$3=yes"
2128 else
2129   eval "$3=no"
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 eval ac_res=\$$3
2134                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137
2138 } # ac_fn_c_check_header_compile
2139
2140 # ac_fn_c_try_run LINENO
2141 # ----------------------
2142 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2143 # that executables *can* be run.
2144 ac_fn_c_try_run ()
2145 {
2146   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147   if { { ac_try="$ac_link"
2148 case "(($ac_try" in
2149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150   *) ac_try_echo=$ac_try;;
2151 esac
2152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153 $as_echo "$ac_try_echo"; } >&5
2154   (eval "$ac_link") 2>&5
2155   ac_status=$?
2156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2158   { { case "(($ac_try" in
2159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160   *) ac_try_echo=$ac_try;;
2161 esac
2162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163 $as_echo "$ac_try_echo"; } >&5
2164   (eval "$ac_try") 2>&5
2165   ac_status=$?
2166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167   test $ac_status = 0; }; }; then :
2168   ac_retval=0
2169 else
2170   $as_echo "$as_me: program exited with status $ac_status" >&5
2171        $as_echo "$as_me: failed program was:" >&5
2172 sed 's/^/| /' conftest.$ac_ext >&5
2173
2174        ac_retval=$ac_status
2175 fi
2176   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2177   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2178   as_fn_set_status $ac_retval
2179
2180 } # ac_fn_c_try_run
2181
2182 # ac_fn_c_check_func LINENO FUNC VAR
2183 # ----------------------------------
2184 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2185 ac_fn_c_check_func ()
2186 {
2187   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2191   $as_echo_n "(cached) " >&6
2192 else
2193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h.  */
2195 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2197 #define $2 innocuous_$2
2198
2199 /* System header to define __stub macros and hopefully few prototypes,
2200     which can conflict with char $2 (); below.
2201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2202     <limits.h> exists even on freestanding compilers.  */
2203
2204 #ifdef __STDC__
2205 # include <limits.h>
2206 #else
2207 # include <assert.h>
2208 #endif
2209
2210 #undef $2
2211
2212 /* Override any GCC internal prototype to avoid an error.
2213    Use char because int might match the return type of a GCC
2214    builtin and then its argument prototype would still apply.  */
2215 #ifdef __cplusplus
2216 extern "C"
2217 #endif
2218 char $2 ();
2219 /* The GNU C library defines this for functions which it implements
2220     to always fail with ENOSYS.  Some functions are actually named
2221     something starting with __ and the normal name is an alias.  */
2222 #if defined __stub_$2 || defined __stub___$2
2223 choke me
2224 #endif
2225
2226 int
2227 main ()
2228 {
2229 return $2 ();
2230   ;
2231   return 0;
2232 }
2233 _ACEOF
2234 if ac_fn_c_try_link "$LINENO"; then :
2235   eval "$3=yes"
2236 else
2237   eval "$3=no"
2238 fi
2239 rm -f core conftest.err conftest.$ac_objext \
2240     conftest$ac_exeext conftest.$ac_ext
2241 fi
2242 eval ac_res=\$$3
2243                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246
2247 } # ac_fn_c_check_func
2248
2249 # ac_fn_cxx_try_cpp LINENO
2250 # ------------------------
2251 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2252 ac_fn_cxx_try_cpp ()
2253 {
2254   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255   if { { ac_try="$ac_cpp conftest.$ac_ext"
2256 case "(($ac_try" in
2257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2258   *) ac_try_echo=$ac_try;;
2259 esac
2260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2261 $as_echo "$ac_try_echo"; } >&5
2262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2263   ac_status=$?
2264   if test -s conftest.err; then
2265     grep -v '^ *+' conftest.err >conftest.er1
2266     cat conftest.er1 >&5
2267     mv -f conftest.er1 conftest.err
2268   fi
2269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2270   test $ac_status = 0; } >/dev/null && {
2271          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2272          test ! -s conftest.err
2273        }; then :
2274   ac_retval=0
2275 else
2276   $as_echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279     ac_retval=1
2280 fi
2281   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2282   as_fn_set_status $ac_retval
2283
2284 } # ac_fn_cxx_try_cpp
2285
2286 # ac_fn_cxx_try_link LINENO
2287 # -------------------------
2288 # Try to link conftest.$ac_ext, and return whether this succeeded.
2289 ac_fn_cxx_try_link ()
2290 {
2291   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292   rm -f conftest.$ac_objext conftest$ac_exeext
2293   if { { ac_try="$ac_link"
2294 case "(($ac_try" in
2295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296   *) ac_try_echo=$ac_try;;
2297 esac
2298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299 $as_echo "$ac_try_echo"; } >&5
2300   (eval "$ac_link") 2>conftest.err
2301   ac_status=$?
2302   if test -s conftest.err; then
2303     grep -v '^ *+' conftest.err >conftest.er1
2304     cat conftest.er1 >&5
2305     mv -f conftest.er1 conftest.err
2306   fi
2307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2308   test $ac_status = 0; } && {
2309          test -z "$ac_cxx_werror_flag" ||
2310          test ! -s conftest.err
2311        } && test -s conftest$ac_exeext && {
2312          test "$cross_compiling" = yes ||
2313          $as_test_x conftest$ac_exeext
2314        }; then :
2315   ac_retval=0
2316 else
2317   $as_echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2319
2320         ac_retval=1
2321 fi
2322   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2323   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2324   # interfere with the next link command; also delete a directory that is
2325   # left behind by Apple's compiler.  We do this before executing the actions.
2326   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2327   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2328   as_fn_set_status $ac_retval
2329
2330 } # ac_fn_cxx_try_link
2331
2332 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2333 # -------------------------------------------
2334 # Tests whether TYPE exists after having included INCLUDES, setting cache
2335 # variable VAR accordingly.
2336 ac_fn_c_check_type ()
2337 {
2338   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2342   $as_echo_n "(cached) " >&6
2343 else
2344   eval "$3=no"
2345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h.  */
2347 $4
2348 int
2349 main ()
2350 {
2351 if (sizeof ($2))
2352          return 0;
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 if ac_fn_c_try_compile "$LINENO"; then :
2358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h.  */
2360 $4
2361 int
2362 main ()
2363 {
2364 if (sizeof (($2)))
2365             return 0;
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 if ac_fn_c_try_compile "$LINENO"; then :
2371
2372 else
2373   eval "$3=yes"
2374 fi
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 fi
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 fi
2379 eval ac_res=\$$3
2380                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2383
2384 } # ac_fn_c_check_type
2385
2386 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2387 # -------------------------------------------------------
2388 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2389 # the include files in INCLUDES and setting the cache variable VAR
2390 # accordingly.
2391 ac_fn_c_check_header_mongrel ()
2392 {
2393   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396 $as_echo_n "checking for $2... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398   $as_echo_n "(cached) " >&6
2399 fi
2400 eval ac_res=\$$3
2401                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402 $as_echo "$ac_res" >&6; }
2403 else
2404   # Is the header compilable?
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2406 $as_echo_n "checking $2 usability... " >&6; }
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h.  */
2409 $4
2410 #include <$2>
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413   ac_header_compiler=yes
2414 else
2415   ac_header_compiler=no
2416 fi
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2419 $as_echo "$ac_header_compiler" >&6; }
2420
2421 # Is the header present?
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2423 $as_echo_n "checking $2 presence... " >&6; }
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h.  */
2426 #include <$2>
2427 _ACEOF
2428 if ac_fn_c_try_cpp "$LINENO"; then :
2429   ac_header_preproc=yes
2430 else
2431   ac_header_preproc=no
2432 fi
2433 rm -f conftest.err conftest.$ac_ext
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2435 $as_echo "$ac_header_preproc" >&6; }
2436
2437 # So?  What about this header?
2438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2439   yes:no: )
2440     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2441 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2442     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2443 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2444     ;;
2445   no:yes:* )
2446     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2447 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2448     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2449 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2450     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2451 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2452     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2453 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2454     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2455 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2456     ;;
2457 esac
2458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2459 $as_echo_n "checking for $2... " >&6; }
2460 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2461   $as_echo_n "(cached) " >&6
2462 else
2463   eval "$3=\$ac_header_compiler"
2464 fi
2465 eval ac_res=\$$3
2466                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2467 $as_echo "$ac_res" >&6; }
2468 fi
2469   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2470
2471 } # ac_fn_c_check_header_mongrel
2472
2473 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2474 # --------------------------------------------
2475 # Tries to find the compile-time value of EXPR in a program that includes
2476 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2477 # computed
2478 ac_fn_c_compute_int ()
2479 {
2480   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481   if test "$cross_compiling" = yes; then
2482     # Depending upon the size, compute the lo and hi bounds.
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h.  */
2485 $4
2486 int
2487 main ()
2488 {
2489 static int test_array [1 - 2 * !(($2) >= 0)];
2490 test_array [0] = 0
2491
2492   ;
2493   return 0;
2494 }
2495 _ACEOF
2496 if ac_fn_c_try_compile "$LINENO"; then :
2497   ac_lo=0 ac_mid=0
2498   while :; do
2499     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h.  */
2501 $4
2502 int
2503 main ()
2504 {
2505 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2506 test_array [0] = 0
2507
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 if ac_fn_c_try_compile "$LINENO"; then :
2513   ac_hi=$ac_mid; break
2514 else
2515   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2516                         if test $ac_lo -le $ac_mid; then
2517                           ac_lo= ac_hi=
2518                           break
2519                         fi
2520                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2521 fi
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523   done
2524 else
2525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h.  */
2527 $4
2528 int
2529 main ()
2530 {
2531 static int test_array [1 - 2 * !(($2) < 0)];
2532 test_array [0] = 0
2533
2534   ;
2535   return 0;
2536 }
2537 _ACEOF
2538 if ac_fn_c_try_compile "$LINENO"; then :
2539   ac_hi=-1 ac_mid=-1
2540   while :; do
2541     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h.  */
2543 $4
2544 int
2545 main ()
2546 {
2547 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2548 test_array [0] = 0
2549
2550   ;
2551   return 0;
2552 }
2553 _ACEOF
2554 if ac_fn_c_try_compile "$LINENO"; then :
2555   ac_lo=$ac_mid; break
2556 else
2557   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2558                         if test $ac_mid -le $ac_hi; then
2559                           ac_lo= ac_hi=
2560                           break
2561                         fi
2562                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2563 fi
2564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565   done
2566 else
2567   ac_lo= ac_hi=
2568 fi
2569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570 fi
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 # Binary search between lo and hi bounds.
2573 while test "x$ac_lo" != "x$ac_hi"; do
2574   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h.  */
2577 $4
2578 int
2579 main ()
2580 {
2581 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2582 test_array [0] = 0
2583
2584   ;
2585   return 0;
2586 }
2587 _ACEOF
2588 if ac_fn_c_try_compile "$LINENO"; then :
2589   ac_hi=$ac_mid
2590 else
2591   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2592 fi
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 done
2595 case $ac_lo in #((
2596 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2597 '') ac_retval=1 ;;
2598 esac
2599   else
2600     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h.  */
2602 $4
2603 static long int longval () { return $2; }
2604 static unsigned long int ulongval () { return $2; }
2605 #include <stdio.h>
2606 #include <stdlib.h>
2607 int
2608 main ()
2609 {
2610
2611   FILE *f = fopen ("conftest.val", "w");
2612   if (! f)
2613     return 1;
2614   if (($2) < 0)
2615     {
2616       long int i = longval ();
2617       if (i != ($2))
2618         return 1;
2619       fprintf (f, "%ld", i);
2620     }
2621   else
2622     {
2623       unsigned long int i = ulongval ();
2624       if (i != ($2))
2625         return 1;
2626       fprintf (f, "%lu", i);
2627     }
2628   /* Do not output a trailing newline, as this causes \r\n confusion
2629      on some platforms.  */
2630   return ferror (f) || fclose (f) != 0;
2631
2632   ;
2633   return 0;
2634 }
2635 _ACEOF
2636 if ac_fn_c_try_run "$LINENO"; then :
2637   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2638 else
2639   ac_retval=1
2640 fi
2641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2642   conftest.$ac_objext conftest.beam conftest.$ac_ext
2643 rm -f conftest.val
2644
2645   fi
2646   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2647   as_fn_set_status $ac_retval
2648
2649 } # ac_fn_c_compute_int
2650
2651 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2652 # ----------------------------------------------------
2653 # Tries to find if the field MEMBER exists in type AGGR, after including
2654 # INCLUDES, setting cache variable VAR accordingly.
2655 ac_fn_c_check_member ()
2656 {
2657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2659 $as_echo_n "checking for $2.$3... " >&6; }
2660 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2661   $as_echo_n "(cached) " >&6
2662 else
2663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h.  */
2665 $5
2666 int
2667 main ()
2668 {
2669 static $2 ac_aggr;
2670 if (ac_aggr.$3)
2671 return 0;
2672   ;
2673   return 0;
2674 }
2675 _ACEOF
2676 if ac_fn_c_try_compile "$LINENO"; then :
2677   eval "$4=yes"
2678 else
2679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h.  */
2681 $5
2682 int
2683 main ()
2684 {
2685 static $2 ac_aggr;
2686 if (sizeof ac_aggr.$3)
2687 return 0;
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 if ac_fn_c_try_compile "$LINENO"; then :
2693   eval "$4=yes"
2694 else
2695   eval "$4=no"
2696 fi
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 fi
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 fi
2701 eval ac_res=\$$4
2702                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2703 $as_echo "$ac_res" >&6; }
2704   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2705
2706 } # ac_fn_c_check_member
2707
2708 # ac_fn_c_check_decl LINENO SYMBOL VAR
2709 # ------------------------------------
2710 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2711 ac_fn_c_check_decl ()
2712 {
2713   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2715 $as_echo_n "checking whether $2 is declared... " >&6; }
2716 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2717   $as_echo_n "(cached) " >&6
2718 else
2719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h.  */
2721 $4
2722 int
2723 main ()
2724 {
2725 #ifndef $2
2726   (void) $2;
2727 #endif
2728
2729   ;
2730   return 0;
2731 }
2732 _ACEOF
2733 if ac_fn_c_try_compile "$LINENO"; then :
2734   eval "$3=yes"
2735 else
2736   eval "$3=no"
2737 fi
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 fi
2740 eval ac_res=\$$3
2741                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2744
2745 } # ac_fn_c_check_decl
2746
2747 # ac_fn_cxx_try_run LINENO
2748 # ------------------------
2749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2750 # that executables *can* be run.
2751 ac_fn_cxx_try_run ()
2752 {
2753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2754   if { { ac_try="$ac_link"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760 $as_echo "$ac_try_echo"; } >&5
2761   (eval "$ac_link") 2>&5
2762   ac_status=$?
2763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2764   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2765   { { case "(($ac_try" in
2766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767   *) ac_try_echo=$ac_try;;
2768 esac
2769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2770 $as_echo "$ac_try_echo"; } >&5
2771   (eval "$ac_try") 2>&5
2772   ac_status=$?
2773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2774   test $ac_status = 0; }; }; then :
2775   ac_retval=0
2776 else
2777   $as_echo "$as_me: program exited with status $ac_status" >&5
2778        $as_echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781        ac_retval=$ac_status
2782 fi
2783   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2784   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2785   as_fn_set_status $ac_retval
2786
2787 } # ac_fn_cxx_try_run
2788 cat >config.log <<_ACEOF
2789 This file contains any messages produced by compilers while
2790 running configure, to aid debugging if configure makes a mistake.
2791
2792 It was created by $as_me, which was
2793 generated by GNU Autoconf 2.65.  Invocation command line was
2794
2795   $ $0 $@
2796
2797 _ACEOF
2798 exec 5>>config.log
2799 {
2800 cat <<_ASUNAME
2801 ## --------- ##
2802 ## Platform. ##
2803 ## --------- ##
2804
2805 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2806 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2807 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2808 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2809 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2810
2811 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2812 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2813
2814 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2815 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2816 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2817 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2818 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2819 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2820 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2821
2822 _ASUNAME
2823
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829     $as_echo "PATH: $as_dir"
2830   done
2831 IFS=$as_save_IFS
2832
2833 } >&5
2834
2835 cat >&5 <<_ACEOF
2836
2837
2838 ## ----------- ##
2839 ## Core tests. ##
2840 ## ----------- ##
2841
2842 _ACEOF
2843
2844
2845 # Keep a trace of the command line.
2846 # Strip out --no-create and --no-recursion so they do not pile up.
2847 # Strip out --silent because we don't want to record it for future runs.
2848 # Also quote any args containing shell meta-characters.
2849 # Make two passes to allow for proper duplicate-argument suppression.
2850 ac_configure_args=
2851 ac_configure_args0=
2852 ac_configure_args1=
2853 ac_must_keep_next=false
2854 for ac_pass in 1 2
2855 do
2856   for ac_arg
2857   do
2858     case $ac_arg in
2859     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2860     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2861     | -silent | --silent | --silen | --sile | --sil)
2862       continue ;;
2863     *\'*)
2864       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2865     esac
2866     case $ac_pass in
2867     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2868     2)
2869       as_fn_append ac_configure_args1 " '$ac_arg'"
2870       if test $ac_must_keep_next = true; then
2871         ac_must_keep_next=false # Got value, back to normal.
2872       else
2873         case $ac_arg in
2874           *=* | --config-cache | -C | -disable-* | --disable-* \
2875           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2876           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2877           | -with-* | --with-* | -without-* | --without-* | --x)
2878             case "$ac_configure_args0 " in
2879               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2880             esac
2881             ;;
2882           -* ) ac_must_keep_next=true ;;
2883         esac
2884       fi
2885       as_fn_append ac_configure_args " '$ac_arg'"
2886       ;;
2887     esac
2888   done
2889 done
2890 { ac_configure_args0=; unset ac_configure_args0;}
2891 { ac_configure_args1=; unset ac_configure_args1;}
2892
2893 # When interrupted or exit'd, cleanup temporary files, and complete
2894 # config.log.  We remove comments because anyway the quotes in there
2895 # would cause problems or look ugly.
2896 # WARNING: Use '\'' to represent an apostrophe within the trap.
2897 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2898 trap 'exit_status=$?
2899   # Save into config.log some information that might help in debugging.
2900   {
2901     echo
2902
2903     cat <<\_ASBOX
2904 ## ---------------- ##
2905 ## Cache variables. ##
2906 ## ---------------- ##
2907 _ASBOX
2908     echo
2909     # The following way of writing the cache mishandles newlines in values,
2910 (
2911   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2912     eval ac_val=\$$ac_var
2913     case $ac_val in #(
2914     *${as_nl}*)
2915       case $ac_var in #(
2916       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2917 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2918       esac
2919       case $ac_var in #(
2920       _ | IFS | as_nl) ;; #(
2921       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2922       *) { eval $ac_var=; unset $ac_var;} ;;
2923       esac ;;
2924     esac
2925   done
2926   (set) 2>&1 |
2927     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2928     *${as_nl}ac_space=\ *)
2929       sed -n \
2930         "s/'\''/'\''\\\\'\'''\''/g;
2931           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2932       ;; #(
2933     *)
2934       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2935       ;;
2936     esac |
2937     sort
2938 )
2939     echo
2940
2941     cat <<\_ASBOX
2942 ## ----------------- ##
2943 ## Output variables. ##
2944 ## ----------------- ##
2945 _ASBOX
2946     echo
2947     for ac_var in $ac_subst_vars
2948     do
2949       eval ac_val=\$$ac_var
2950       case $ac_val in
2951       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2952       esac
2953       $as_echo "$ac_var='\''$ac_val'\''"
2954     done | sort
2955     echo
2956
2957     if test -n "$ac_subst_files"; then
2958       cat <<\_ASBOX
2959 ## ------------------- ##
2960 ## File substitutions. ##
2961 ## ------------------- ##
2962 _ASBOX
2963       echo
2964       for ac_var in $ac_subst_files
2965       do
2966         eval ac_val=\$$ac_var
2967         case $ac_val in
2968         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2969         esac
2970         $as_echo "$ac_var='\''$ac_val'\''"
2971       done | sort
2972       echo
2973     fi
2974
2975     if test -s confdefs.h; then
2976       cat <<\_ASBOX
2977 ## ----------- ##
2978 ## confdefs.h. ##
2979 ## ----------- ##
2980 _ASBOX
2981       echo
2982       cat confdefs.h
2983       echo
2984     fi
2985     test "$ac_signal" != 0 &&
2986       $as_echo "$as_me: caught signal $ac_signal"
2987     $as_echo "$as_me: exit $exit_status"
2988   } >&5
2989   rm -f core *.core core.conftest.* &&
2990     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2991     exit $exit_status
2992 ' 0
2993 for ac_signal in 1 2 13 15; do
2994   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2995 done
2996 ac_signal=0
2997
2998 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2999 rm -f -r conftest* confdefs.h
3000
3001 $as_echo "/* confdefs.h */" > confdefs.h
3002
3003 # Predefined preprocessor variables.
3004
3005 cat >>confdefs.h <<_ACEOF
3006 #define PACKAGE_NAME "$PACKAGE_NAME"
3007 _ACEOF
3008
3009 cat >>confdefs.h <<_ACEOF
3010 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3011 _ACEOF
3012
3013 cat >>confdefs.h <<_ACEOF
3014 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3015 _ACEOF
3016
3017 cat >>confdefs.h <<_ACEOF
3018 #define PACKAGE_STRING "$PACKAGE_STRING"
3019 _ACEOF
3020
3021 cat >>confdefs.h <<_ACEOF
3022 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3023 _ACEOF
3024
3025 cat >>confdefs.h <<_ACEOF
3026 #define PACKAGE_URL "$PACKAGE_URL"
3027 _ACEOF
3028
3029
3030 # Let the site file select an alternate cache file if it wants to.
3031 # Prefer an explicitly selected file to automatically selected ones.
3032 ac_site_file1=NONE
3033 ac_site_file2=NONE
3034 if test -n "$CONFIG_SITE"; then
3035   ac_site_file1=$CONFIG_SITE
3036 elif test "x$prefix" != xNONE; then
3037   ac_site_file1=$prefix/share/config.site
3038   ac_site_file2=$prefix/etc/config.site
3039 else
3040   ac_site_file1=$ac_default_prefix/share/config.site
3041   ac_site_file2=$ac_default_prefix/etc/config.site
3042 fi
3043 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3044 do
3045   test "x$ac_site_file" = xNONE && continue
3046   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3047     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3048 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3049     sed 's/^/| /' "$ac_site_file" >&5
3050     . "$ac_site_file"
3051   fi
3052 done
3053
3054 if test -r "$cache_file"; then
3055   # Some versions of bash will fail to source /dev/null (special files
3056   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3057   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3058     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3059 $as_echo "$as_me: loading cache $cache_file" >&6;}
3060     case $cache_file in
3061       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3062       *)                      . "./$cache_file";;
3063     esac
3064   fi
3065 else
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3067 $as_echo "$as_me: creating cache $cache_file" >&6;}
3068   >$cache_file
3069 fi
3070
3071 as_fn_append ac_header_list " stdlib.h"
3072 as_fn_append ac_header_list " unistd.h"
3073 as_fn_append ac_header_list " sys/param.h"
3074 # Check that the precious variables saved in the cache have kept the same
3075 # value.
3076 ac_cache_corrupted=false
3077 for ac_var in $ac_precious_vars; do
3078   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3079   eval ac_new_set=\$ac_env_${ac_var}_set
3080   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3081   eval ac_new_val=\$ac_env_${ac_var}_value
3082   case $ac_old_set,$ac_new_set in
3083     set,)
3084       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3085 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3086       ac_cache_corrupted=: ;;
3087     ,set)
3088       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3089 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3090       ac_cache_corrupted=: ;;
3091     ,);;
3092     *)
3093       if test "x$ac_old_val" != "x$ac_new_val"; then
3094         # differences in whitespace do not lead to failure.
3095         ac_old_val_w=`echo x $ac_old_val`
3096         ac_new_val_w=`echo x $ac_new_val`
3097         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3098           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3099 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3100           ac_cache_corrupted=:
3101         else
3102           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3103 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3104           eval $ac_var=\$ac_old_val
3105         fi
3106         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3107 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3108         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3109 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3110       fi;;
3111   esac
3112   # Pass precious variables to config.status.
3113   if test "$ac_new_set" = set; then
3114     case $ac_new_val in
3115     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3116     *) ac_arg=$ac_var=$ac_new_val ;;
3117     esac
3118     case " $ac_configure_args " in
3119       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3120       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3121     esac
3122   fi
3123 done
3124 if $ac_cache_corrupted; then
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3128 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3129   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3130 fi
3131 ## -------------------- ##
3132 ## Main body of script. ##
3133 ## -------------------- ##
3134
3135 ac_ext=c
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140
3141
3142 BUILD_DIR=`pwd`
3143 cd ..
3144 TOP_DIR=`pwd`
3145 cd ${BUILD_DIR}
3146
3147
3148 ac_aux_dir=
3149 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3150   for ac_t in install-sh install.sh shtool; do
3151     if test -f "$ac_dir/$ac_t"; then
3152       ac_aux_dir=$ac_dir
3153       ac_install_sh="$ac_aux_dir/$ac_t -c"
3154       break 2
3155     fi
3156   done
3157 done
3158 if test -z "$ac_aux_dir"; then
3159   as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3160 fi
3161
3162 # These three variables are undocumented and unsupported,
3163 # and are intended to be withdrawn in a future Autoconf release.
3164 # They can cause serious problems if a builder's source tree is in a directory
3165 # whose full name contains unusual characters.
3166 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3167 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3168 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3169
3170
3171 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3172
3173
3174 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3175 WIN32MAINDIR=${BUILD_DIR}
3176 WIN32TOPDIR=${TOP_DIR}
3177
3178
3179
3180
3181
3182
3183
3184 for ac_prog in true
3185 do
3186   # Extract the first word of "$ac_prog", so it can be a program name with args.
3187 set dummy $ac_prog; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3191   $as_echo_n "(cached) " >&6
3192 else
3193   case $TRUEPRG in
3194   [\\/]* | ?:[\\/]*)
3195   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3196   ;;
3197   *)
3198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201   IFS=$as_save_IFS
3202   test -z "$as_dir" && as_dir=.
3203     for ac_exec_ext in '' $ac_executable_extensions; do
3204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207     break 2
3208   fi
3209 done
3210   done
3211 IFS=$as_save_IFS
3212
3213   ;;
3214 esac
3215 fi
3216 TRUEPRG=$ac_cv_path_TRUEPRG
3217 if test -n "$TRUEPRG"; then
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3219 $as_echo "$TRUEPRG" >&6; }
3220 else
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225
3226   test -n "$TRUEPRG" && break
3227 done
3228 test -n "$TRUEPRG" || TRUEPRG=":"
3229
3230 for ac_prog in false
3231 do
3232   # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy $ac_prog; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3237   $as_echo_n "(cached) " >&6
3238 else
3239   case $FALSEPRG in
3240   [\\/]* | ?:[\\/]*)
3241   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3242   ;;
3243   *)
3244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247   IFS=$as_save_IFS
3248   test -z "$as_dir" && as_dir=.
3249     for ac_exec_ext in '' $ac_executable_extensions; do
3250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253     break 2
3254   fi
3255 done
3256   done
3257 IFS=$as_save_IFS
3258
3259   ;;
3260 esac
3261 fi
3262 FALSEPRG=$ac_cv_path_FALSEPRG
3263 if test -n "$FALSEPRG"; then
3264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3265 $as_echo "$FALSEPRG" >&6; }
3266 else
3267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 fi
3270
3271
3272   test -n "$FALSEPRG" && break
3273 done
3274 test -n "$FALSEPRG" || FALSEPRG=":"
3275
3276
3277
3278 post_host=
3279 if test "x$BACULA" != x; then
3280    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3281 fi
3282 BACULA=${BACULA:-Bacula}
3283 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3284 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3285 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3286 echo "configuring for ${BACULA} $VERSION ($DATE)"
3287
3288
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 if test -n "$ac_tool_prefix"; then
3295   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3296 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if test "${ac_cv_prog_CC+set}" = set; then :
3300   $as_echo_n "(cached) " >&6
3301 else
3302   if test -n "$CC"; then
3303   ac_cv_prog_CC="$CC" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308   IFS=$as_save_IFS
3309   test -z "$as_dir" && as_dir=.
3310     for ac_exec_ext in '' $ac_executable_extensions; do
3311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3314     break 2
3315   fi
3316 done
3317   done
3318 IFS=$as_save_IFS
3319
3320 fi
3321 fi
3322 CC=$ac_cv_prog_CC
3323 if test -n "$CC"; then
3324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325 $as_echo "$CC" >&6; }
3326 else
3327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3329 fi
3330
3331
3332 fi
3333 if test -z "$ac_cv_prog_CC"; then
3334   ac_ct_CC=$CC
3335   # Extract the first word of "gcc", so it can be a program name with args.
3336 set dummy gcc; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3340   $as_echo_n "(cached) " >&6
3341 else
3342   if test -n "$ac_ct_CC"; then
3343   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350     for ac_exec_ext in '' $ac_executable_extensions; do
3351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352     ac_cv_prog_ac_ct_CC="gcc"
3353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354     break 2
3355   fi
3356 done
3357   done
3358 IFS=$as_save_IFS
3359
3360 fi
3361 fi
3362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3363 if test -n "$ac_ct_CC"; then
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3365 $as_echo "$ac_ct_CC" >&6; }
3366 else
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3370
3371   if test "x$ac_ct_CC" = x; then
3372     CC=""
3373   else
3374     case $cross_compiling:$ac_tool_warned in
3375 yes:)
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3378 ac_tool_warned=yes ;;
3379 esac
3380     CC=$ac_ct_CC
3381   fi
3382 else
3383   CC="$ac_cv_prog_CC"
3384 fi
3385
3386 if test -z "$CC"; then
3387           if test -n "$ac_tool_prefix"; then
3388     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3389 set dummy ${ac_tool_prefix}cc; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if test "${ac_cv_prog_CC+set}" = set; then :
3393   $as_echo_n "(cached) " >&6
3394 else
3395   if test -n "$CC"; then
3396   ac_cv_prog_CC="$CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401   IFS=$as_save_IFS
3402   test -z "$as_dir" && as_dir=.
3403     for ac_exec_ext in '' $ac_executable_extensions; do
3404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405     ac_cv_prog_CC="${ac_tool_prefix}cc"
3406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407     break 2
3408   fi
3409 done
3410   done
3411 IFS=$as_save_IFS
3412
3413 fi
3414 fi
3415 CC=$ac_cv_prog_CC
3416 if test -n "$CC"; then
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3419 else
3420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3422 fi
3423
3424
3425   fi
3426 fi
3427 if test -z "$CC"; then
3428   # Extract the first word of "cc", so it can be a program name with args.
3429 set dummy cc; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_CC+set}" = set; then :
3433   $as_echo_n "(cached) " >&6
3434 else
3435   if test -n "$CC"; then
3436   ac_cv_prog_CC="$CC" # Let the user override the test.
3437 else
3438   ac_prog_rejected=no
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442   IFS=$as_save_IFS
3443   test -z "$as_dir" && as_dir=.
3444     for ac_exec_ext in '' $ac_executable_extensions; do
3445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3446     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3447        ac_prog_rejected=yes
3448        continue
3449      fi
3450     ac_cv_prog_CC="cc"
3451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452     break 2
3453   fi
3454 done
3455   done
3456 IFS=$as_save_IFS
3457
3458 if test $ac_prog_rejected = yes; then
3459   # We found a bogon in the path, so make sure we never use it.
3460   set dummy $ac_cv_prog_CC
3461   shift
3462   if test $# != 0; then
3463     # We chose a different compiler from the bogus one.
3464     # However, it has the same basename, so the bogon will be chosen
3465     # first if we set CC to just the basename; use the full file name.
3466     shift
3467     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3468   fi
3469 fi
3470 fi
3471 fi
3472 CC=$ac_cv_prog_CC
3473 if test -n "$CC"; then
3474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475 $as_echo "$CC" >&6; }
3476 else
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3479 fi
3480
3481
3482 fi
3483 if test -z "$CC"; then
3484   if test -n "$ac_tool_prefix"; then
3485   for ac_prog in cl.exe
3486   do
3487     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 $as_echo_n "checking for $ac_word... " >&6; }
3491 if test "${ac_cv_prog_CC+set}" = set; then :
3492   $as_echo_n "(cached) " >&6
3493 else
3494   if test -n "$CC"; then
3495   ac_cv_prog_CC="$CC" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500   IFS=$as_save_IFS
3501   test -z "$as_dir" && as_dir=.
3502     for ac_exec_ext in '' $ac_executable_extensions; do
3503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3504     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506     break 2
3507   fi
3508 done
3509   done
3510 IFS=$as_save_IFS
3511
3512 fi
3513 fi
3514 CC=$ac_cv_prog_CC
3515 if test -n "$CC"; then
3516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3517 $as_echo "$CC" >&6; }
3518 else
3519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3521 fi
3522
3523
3524     test -n "$CC" && break
3525   done
3526 fi
3527 if test -z "$CC"; then
3528   ac_ct_CC=$CC
3529   for ac_prog in cl.exe
3530 do
3531   # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3536   $as_echo_n "(cached) " >&6
3537 else
3538   if test -n "$ac_ct_CC"; then
3539   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544   IFS=$as_save_IFS
3545   test -z "$as_dir" && as_dir=.
3546     for ac_exec_ext in '' $ac_executable_extensions; do
3547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548     ac_cv_prog_ac_ct_CC="$ac_prog"
3549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550     break 2
3551   fi
3552 done
3553   done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 $as_echo "$ac_ct_CC" >&6; }
3562 else
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 fi
3566
3567
3568   test -n "$ac_ct_CC" && break
3569 done
3570
3571   if test "x$ac_ct_CC" = x; then
3572     CC=""
3573   else
3574     case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580     CC=$ac_ct_CC
3581   fi
3582 fi
3583
3584 fi
3585
3586
3587 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error "no acceptable C compiler found in \$PATH
3590 See \`config.log' for more details." "$LINENO" 5; }
3591
3592 # Provide some information about the compiler.
3593 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3594 set X $ac_compile
3595 ac_compiler=$2
3596 for ac_option in --version -v -V -qversion; do
3597   { { ac_try="$ac_compiler $ac_option >&5"
3598 case "(($ac_try" in
3599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600   *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3605   ac_status=$?
3606   if test -s conftest.err; then
3607     sed '10a\
3608 ... rest of stderr output deleted ...
3609          10q' conftest.err >conftest.er1
3610     cat conftest.er1 >&5
3611   fi
3612   rm -f conftest.er1 conftest.err
3613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614   test $ac_status = 0; }
3615 done
3616
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h.  */
3619
3620 int
3621 main ()
3622 {
3623
3624   ;
3625   return 0;
3626 }
3627 _ACEOF
3628 ac_clean_files_save=$ac_clean_files
3629 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3630 # Try to create an executable without -o first, disregard a.out.
3631 # It will help us diagnose broken compilers, and finding out an intuition
3632 # of exeext.
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3634 $as_echo_n "checking whether the C compiler works... " >&6; }
3635 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3636
3637 # The possible output files:
3638 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3639
3640 ac_rmfiles=
3641 for ac_file in $ac_files
3642 do
3643   case $ac_file in
3644     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3645     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3646   esac
3647 done
3648 rm -f $ac_rmfiles
3649
3650 if { { ac_try="$ac_link_default"
3651 case "(($ac_try" in
3652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653   *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657   (eval "$ac_link_default") 2>&5
3658   ac_status=$?
3659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660   test $ac_status = 0; }; then :
3661   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3662 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3663 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3664 # so that the user can short-circuit this test for compilers unknown to
3665 # Autoconf.
3666 for ac_file in $ac_files ''
3667 do
3668   test -f "$ac_file" || continue
3669   case $ac_file in
3670     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3671         ;;
3672     [ab].out )
3673         # We found the default executable, but exeext='' is most
3674         # certainly right.
3675         break;;
3676     *.* )
3677         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3678         then :; else
3679            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3680         fi
3681         # We set ac_cv_exeext here because the later test for it is not
3682         # safe: cross compilers may not add the suffix if given an `-o'
3683         # argument, so we may need to know it at that point already.
3684         # Even if this section looks crufty: it has the advantage of
3685         # actually working.
3686         break;;
3687     * )
3688         break;;
3689   esac
3690 done
3691 test "$ac_cv_exeext" = no && ac_cv_exeext=
3692
3693 else
3694   ac_file=''
3695 fi
3696 if test -z "$ac_file"; then :
3697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 $as_echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 { as_fn_set_status 77
3705 as_fn_error "C compiler cannot create executables
3706 See \`config.log' for more details." "$LINENO" 5; }; }
3707 else
3708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3709 $as_echo "yes" >&6; }
3710 fi
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3712 $as_echo_n "checking for C compiler default output file name... " >&6; }
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3714 $as_echo "$ac_file" >&6; }
3715 ac_exeext=$ac_cv_exeext
3716
3717 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3718 ac_clean_files=$ac_clean_files_save
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3720 $as_echo_n "checking for suffix of executables... " >&6; }
3721 if { { ac_try="$ac_link"
3722 case "(($ac_try" in
3723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724   *) ac_try_echo=$ac_try;;
3725 esac
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728   (eval "$ac_link") 2>&5
3729   ac_status=$?
3730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731   test $ac_status = 0; }; then :
3732   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3733 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3734 # work properly (i.e., refer to `conftest.exe'), while it won't with
3735 # `rm'.
3736 for ac_file in conftest.exe conftest conftest.*; do
3737   test -f "$ac_file" || continue
3738   case $ac_file in
3739     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3741           break;;
3742     * ) break;;
3743   esac
3744 done
3745 else
3746   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error "cannot compute suffix of executables: cannot compile and link
3749 See \`config.log' for more details." "$LINENO" 5; }
3750 fi
3751 rm -f conftest conftest$ac_cv_exeext
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3753 $as_echo "$ac_cv_exeext" >&6; }
3754
3755 rm -f conftest.$ac_ext
3756 EXEEXT=$ac_cv_exeext
3757 ac_exeext=$EXEEXT
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h.  */
3760 #include <stdio.h>
3761 int
3762 main ()
3763 {
3764 FILE *f = fopen ("conftest.out", "w");
3765  return ferror (f) || fclose (f) != 0;
3766
3767   ;
3768   return 0;
3769 }
3770 _ACEOF
3771 ac_clean_files="$ac_clean_files conftest.out"
3772 # Check that the compiler produces executables we can run.  If not, either
3773 # the compiler is broken, or we cross compile.
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3775 $as_echo_n "checking whether we are cross compiling... " >&6; }
3776 if test "$cross_compiling" != yes; then
3777   { { ac_try="$ac_link"
3778 case "(($ac_try" in
3779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780   *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784   (eval "$ac_link") 2>&5
3785   ac_status=$?
3786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787   test $ac_status = 0; }
3788   if { ac_try='./conftest$ac_cv_exeext'
3789   { { case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795   (eval "$ac_try") 2>&5
3796   ac_status=$?
3797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798   test $ac_status = 0; }; }; then
3799     cross_compiling=no
3800   else
3801     if test "$cross_compiling" = maybe; then
3802         cross_compiling=yes
3803     else
3804         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806 as_fn_error "cannot run C compiled programs.
3807 If you meant to cross compile, use \`--host'.
3808 See \`config.log' for more details." "$LINENO" 5; }
3809     fi
3810   fi
3811 fi
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3813 $as_echo "$cross_compiling" >&6; }
3814
3815 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3816 ac_clean_files=$ac_clean_files_save
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3818 $as_echo_n "checking for suffix of object files... " >&6; }
3819 if test "${ac_cv_objext+set}" = set; then :
3820   $as_echo_n "(cached) " >&6
3821 else
3822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h.  */
3824
3825 int
3826 main ()
3827 {
3828
3829   ;
3830   return 0;
3831 }
3832 _ACEOF
3833 rm -f conftest.o conftest.obj
3834 if { { ac_try="$ac_compile"
3835 case "(($ac_try" in
3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837   *) ac_try_echo=$ac_try;;
3838 esac
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841   (eval "$ac_compile") 2>&5
3842   ac_status=$?
3843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844   test $ac_status = 0; }; then :
3845   for ac_file in conftest.o conftest.obj conftest.*; do
3846   test -f "$ac_file" || continue;
3847   case $ac_file in
3848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3849     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3850        break;;
3851   esac
3852 done
3853 else
3854   $as_echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3856
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 as_fn_error "cannot compute suffix of object files: cannot compile
3860 See \`config.log' for more details." "$LINENO" 5; }
3861 fi
3862 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3863 fi
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3865 $as_echo "$ac_cv_objext" >&6; }
3866 OBJEXT=$ac_cv_objext
3867 ac_objext=$OBJEXT
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3869 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3870 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h.  */
3875
3876 int
3877 main ()
3878 {
3879 #ifndef __GNUC__
3880        choke me
3881 #endif
3882
3883   ;
3884   return 0;
3885 }
3886 _ACEOF
3887 if ac_fn_c_try_compile "$LINENO"; then :
3888   ac_compiler_gnu=yes
3889 else
3890   ac_compiler_gnu=no
3891 fi
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3894
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3897 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3898 if test $ac_compiler_gnu = yes; then
3899   GCC=yes
3900 else
3901   GCC=
3902 fi
3903 ac_test_CFLAGS=${CFLAGS+set}
3904 ac_save_CFLAGS=$CFLAGS
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3906 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3907 if test "${ac_cv_prog_cc_g+set}" = set; then :
3908   $as_echo_n "(cached) " >&6
3909 else
3910   ac_save_c_werror_flag=$ac_c_werror_flag
3911    ac_c_werror_flag=yes
3912    ac_cv_prog_cc_g=no
3913    CFLAGS="-g"
3914    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h.  */
3916
3917 int
3918 main ()
3919 {
3920
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926   ac_cv_prog_cc_g=yes
3927 else
3928   CFLAGS=""
3929       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h.  */
3931
3932 int
3933 main ()
3934 {
3935
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941
3942 else
3943   ac_c_werror_flag=$ac_save_c_werror_flag
3944          CFLAGS="-g"
3945          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h.  */
3947
3948 int
3949 main ()
3950 {
3951
3952   ;
3953   return 0;
3954 }
3955 _ACEOF
3956 if ac_fn_c_try_compile "$LINENO"; then :
3957   ac_cv_prog_cc_g=yes
3958 fi
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 fi
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 fi
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964    ac_c_werror_flag=$ac_save_c_werror_flag
3965 fi
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3967 $as_echo "$ac_cv_prog_cc_g" >&6; }
3968 if test "$ac_test_CFLAGS" = set; then
3969   CFLAGS=$ac_save_CFLAGS
3970 elif test $ac_cv_prog_cc_g = yes; then
3971   if test "$GCC" = yes; then
3972     CFLAGS="-g -O2"
3973   else
3974     CFLAGS="-g"
3975   fi
3976 else
3977   if test "$GCC" = yes; then
3978     CFLAGS="-O2"
3979   else
3980     CFLAGS=
3981   fi
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3984 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3985 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   ac_cv_prog_cc_c89=no
3989 ac_save_CC=$CC
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h.  */
3992 #include <stdarg.h>
3993 #include <stdio.h>
3994 #include <sys/types.h>
3995 #include <sys/stat.h>
3996 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3997 struct buf { int x; };
3998 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3999 static char *e (p, i)
4000      char **p;
4001      int i;
4002 {
4003   return p[i];
4004 }
4005 static char *f (char * (*g) (char **, int), char **p, ...)
4006 {
4007   char *s;
4008   va_list v;
4009   va_start (v,p);
4010   s = g (p, va_arg (v,int));
4011   va_end (v);
4012   return s;
4013 }
4014
4015 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4016    function prototypes and stuff, but not '\xHH' hex character constants.
4017    These don't provoke an error unfortunately, instead are silently treated
4018    as 'x'.  The following induces an error, until -std is added to get
4019    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4020    array size at least.  It's necessary to write '\x00'==0 to get something
4021    that's true only with -std.  */
4022 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4023
4024 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4025    inside strings and character constants.  */
4026 #define FOO(x) 'x'
4027 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4028
4029 int test (int i, double x);
4030 struct s1 {int (*f) (int a);};
4031 struct s2 {int (*f) (double a);};
4032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4033 int argc;
4034 char **argv;
4035 int
4036 main ()
4037 {
4038 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4039   ;
4040   return 0;
4041 }
4042 _ACEOF
4043 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4044         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4045 do
4046   CC="$ac_save_CC $ac_arg"
4047   if ac_fn_c_try_compile "$LINENO"; then :
4048   ac_cv_prog_cc_c89=$ac_arg
4049 fi
4050 rm -f core conftest.err conftest.$ac_objext
4051   test "x$ac_cv_prog_cc_c89" != "xno" && break
4052 done
4053 rm -f conftest.$ac_ext
4054 CC=$ac_save_CC
4055
4056 fi
4057 # AC_CACHE_VAL
4058 case "x$ac_cv_prog_cc_c89" in
4059   x)
4060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4061 $as_echo "none needed" >&6; } ;;
4062   xno)
4063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4064 $as_echo "unsupported" >&6; } ;;
4065   *)
4066     CC="$CC $ac_cv_prog_cc_c89"
4067     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4068 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4069 esac
4070 if test "x$ac_cv_prog_cc_c89" != xno; then :
4071
4072 fi
4073
4074 ac_ext=c
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079
4080 ac_ext=cpp
4081 ac_cpp='$CXXCPP $CPPFLAGS'
4082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4085 if test -z "$CXX"; then
4086   if test -n "$CCC"; then
4087     CXX=$CCC
4088   else
4089     if test -n "$ac_tool_prefix"; then
4090   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4091   do
4092     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4093 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095 $as_echo_n "checking for $ac_word... " >&6; }
4096 if test "${ac_cv_prog_CXX+set}" = set; then :
4097   $as_echo_n "(cached) " >&6
4098 else
4099   if test -n "$CXX"; then
4100   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4104 do
4105   IFS=$as_save_IFS
4106   test -z "$as_dir" && as_dir=.
4107     for ac_exec_ext in '' $ac_executable_extensions; do
4108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111     break 2
4112   fi
4113 done
4114   done
4115 IFS=$as_save_IFS
4116
4117 fi
4118 fi
4119 CXX=$ac_cv_prog_CXX
4120 if test -n "$CXX"; then
4121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4122 $as_echo "$CXX" >&6; }
4123 else
4124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4126 fi
4127
4128
4129     test -n "$CXX" && break
4130   done
4131 fi
4132 if test -z "$CXX"; then
4133   ac_ct_CXX=$CXX
4134   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4135 do
4136   # Extract the first word of "$ac_prog", so it can be a program name with args.
4137 set dummy $ac_prog; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4141   $as_echo_n "(cached) " >&6
4142 else
4143   if test -n "$ac_ct_CXX"; then
4144   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149   IFS=$as_save_IFS
4150   test -z "$as_dir" && as_dir=.
4151     for ac_exec_ext in '' $ac_executable_extensions; do
4152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4153     ac_cv_prog_ac_ct_CXX="$ac_prog"
4154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155     break 2
4156   fi
4157 done
4158   done
4159 IFS=$as_save_IFS
4160
4161 fi
4162 fi
4163 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4164 if test -n "$ac_ct_CXX"; then
4165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4166 $as_echo "$ac_ct_CXX" >&6; }
4167 else
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4170 fi
4171
4172
4173   test -n "$ac_ct_CXX" && break
4174 done
4175
4176   if test "x$ac_ct_CXX" = x; then
4177     CXX="g++"
4178   else
4179     case $cross_compiling:$ac_tool_warned in
4180 yes:)
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4183 ac_tool_warned=yes ;;
4184 esac
4185     CXX=$ac_ct_CXX
4186   fi
4187 fi
4188
4189   fi
4190 fi
4191 # Provide some information about the compiler.
4192 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4193 set X $ac_compile
4194 ac_compiler=$2
4195 for ac_option in --version -v -V -qversion; do
4196   { { ac_try="$ac_compiler $ac_option >&5"
4197 case "(($ac_try" in
4198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199   *) ac_try_echo=$ac_try;;
4200 esac
4201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4202 $as_echo "$ac_try_echo"; } >&5
4203   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4204   ac_status=$?
4205   if test -s conftest.err; then
4206     sed '10a\
4207 ... rest of stderr output deleted ...
4208          10q' conftest.err >conftest.er1
4209     cat conftest.er1 >&5
4210   fi
4211   rm -f conftest.er1 conftest.err
4212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4213   test $ac_status = 0; }
4214 done
4215
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4217 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4218 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4219   $as_echo_n "(cached) " >&6
4220 else
4221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h.  */
4223
4224 int
4225 main ()
4226 {
4227 #ifndef __GNUC__
4228        choke me
4229 #endif
4230
4231   ;
4232   return 0;
4233 }
4234 _ACEOF
4235 if ac_fn_cxx_try_compile "$LINENO"; then :
4236   ac_compiler_gnu=yes
4237 else
4238   ac_compiler_gnu=no
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4242
4243 fi
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4245 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4246 if test $ac_compiler_gnu = yes; then
4247   GXX=yes
4248 else
4249   GXX=
4250 fi
4251 ac_test_CXXFLAGS=${CXXFLAGS+set}
4252 ac_save_CXXFLAGS=$CXXFLAGS
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4254 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4255 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4256   $as_echo_n "(cached) " >&6
4257 else
4258   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4259    ac_cxx_werror_flag=yes
4260    ac_cv_prog_cxx_g=no
4261    CXXFLAGS="-g"
4262    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h.  */
4264
4265 int
4266 main ()
4267 {
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 if ac_fn_cxx_try_compile "$LINENO"; then :
4274   ac_cv_prog_cxx_g=yes
4275 else
4276   CXXFLAGS=""
4277       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h.  */
4279
4280 int
4281 main ()
4282 {
4283
4284   ;
4285   return 0;
4286 }
4287 _ACEOF
4288 if ac_fn_cxx_try_compile "$LINENO"; then :
4289
4290 else
4291   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4292          CXXFLAGS="-g"
4293          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h.  */
4295
4296 int
4297 main ()
4298 {
4299
4300   ;
4301   return 0;
4302 }
4303 _ACEOF
4304 if ac_fn_cxx_try_compile "$LINENO"; then :
4305   ac_cv_prog_cxx_g=yes
4306 fi
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 fi
4309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4315 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4316 if test "$ac_test_CXXFLAGS" = set; then
4317   CXXFLAGS=$ac_save_CXXFLAGS
4318 elif test $ac_cv_prog_cxx_g = yes; then
4319   if test "$GXX" = yes; then
4320     CXXFLAGS="-g -O2"
4321   else
4322     CXXFLAGS="-g"
4323   fi
4324 else
4325   if test "$GXX" = yes; then
4326     CXXFLAGS="-O2"
4327   else
4328     CXXFLAGS=
4329   fi
4330 fi
4331 ac_ext=c
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336
4337 if test "x$CC" != xcc; then
4338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4339 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4340 else
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4342 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4343 fi
4344 set dummy $CC; ac_cc=`$as_echo "$2" |
4345                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4346 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4347   $as_echo_n "(cached) " >&6
4348 else
4349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h.  */
4351
4352 int
4353 main ()
4354 {
4355
4356   ;
4357   return 0;
4358 }
4359 _ACEOF
4360 # Make sure it works both with $CC and with simple cc.
4361 # We do the test twice because some compilers refuse to overwrite an
4362 # existing .o file with -o, though they will create one.
4363 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4364 rm -f conftest2.*
4365 if { { case "(($ac_try" in
4366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367   *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370 $as_echo "$ac_try_echo"; } >&5
4371   (eval "$ac_try") 2>&5
4372   ac_status=$?
4373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374   test $ac_status = 0; } &&
4375    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380 $as_echo "$ac_try_echo"; } >&5
4381   (eval "$ac_try") 2>&5
4382   ac_status=$?
4383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384   test $ac_status = 0; };
4385 then
4386   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4387   if test "x$CC" != xcc; then
4388     # Test first that cc exists at all.
4389     if { ac_try='cc -c conftest.$ac_ext >&5'
4390   { { case "(($ac_try" in
4391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392   *) ac_try_echo=$ac_try;;
4393 esac
4394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4395 $as_echo "$ac_try_echo"; } >&5
4396   (eval "$ac_try") 2>&5
4397   ac_status=$?
4398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4399   test $ac_status = 0; }; }; then
4400       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4401       rm -f conftest2.*
4402       if { { case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408   (eval "$ac_try") 2>&5
4409   ac_status=$?
4410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411   test $ac_status = 0; } &&
4412          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418   (eval "$ac_try") 2>&5
4419   ac_status=$?
4420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421   test $ac_status = 0; };
4422       then
4423         # cc works too.
4424         :
4425       else
4426         # cc exists but doesn't like -o.
4427         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4428       fi
4429     fi
4430   fi
4431 else
4432   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4433 fi
4434 rm -f core conftest*
4435
4436 fi
4437 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4439 $as_echo "yes" >&6; }
4440 else
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 $as_echo "no" >&6; }
4443
4444 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4445
4446 fi
4447
4448 ac_ext=c
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4455 # On Suns, sometimes $CPP names a directory.
4456 if test -n "$CPP" && test -d "$CPP"; then
4457   CPP=
4458 fi
4459 if test -z "$CPP"; then
4460   if test "${ac_cv_prog_CPP+set}" = set; then :
4461   $as_echo_n "(cached) " >&6
4462 else
4463       # Double quotes because CPP needs to be expanded
4464     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4465     do
4466       ac_preproc_ok=false
4467 for ac_c_preproc_warn_flag in '' yes
4468 do
4469   # Use a header file that comes with gcc, so configuring glibc
4470   # with a fresh cross-compiler works.
4471   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4472   # <limits.h> exists even on freestanding compilers.
4473   # On the NeXT, cc -E runs the code through the compiler's parser,
4474   # not just through cpp. "Syntax error" is here to catch this case.
4475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h.  */
4477 #ifdef __STDC__
4478 # include <limits.h>
4479 #else
4480 # include <assert.h>
4481 #endif
4482                      Syntax error
4483 _ACEOF
4484 if ac_fn_c_try_cpp "$LINENO"; then :
4485
4486 else
4487   # Broken: fails on valid input.
4488 continue
4489 fi
4490 rm -f conftest.err conftest.$ac_ext
4491
4492   # OK, works on sane cases.  Now check whether nonexistent headers
4493   # can be detected and how.
4494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h.  */
4496 #include <ac_nonexistent.h>
4497 _ACEOF
4498 if ac_fn_c_try_cpp "$LINENO"; then :
4499   # Broken: success on invalid input.
4500 continue
4501 else
4502   # Passes both tests.
4503 ac_preproc_ok=:
4504 break
4505 fi
4506 rm -f conftest.err conftest.$ac_ext
4507
4508 done
4509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4510 rm -f conftest.err conftest.$ac_ext
4511 if $ac_preproc_ok; then :
4512   break
4513 fi
4514
4515     done
4516     ac_cv_prog_CPP=$CPP
4517
4518 fi
4519   CPP=$ac_cv_prog_CPP
4520 else
4521   ac_cv_prog_CPP=$CPP
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4524 $as_echo "$CPP" >&6; }
4525 ac_preproc_ok=false
4526 for ac_c_preproc_warn_flag in '' yes
4527 do
4528   # Use a header file that comes with gcc, so configuring glibc
4529   # with a fresh cross-compiler works.
4530   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531   # <limits.h> exists even on freestanding compilers.
4532   # On the NeXT, cc -E runs the code through the compiler's parser,
4533   # not just through cpp. "Syntax error" is here to catch this case.
4534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h.  */
4536 #ifdef __STDC__
4537 # include <limits.h>
4538 #else
4539 # include <assert.h>
4540 #endif
4541                      Syntax error
4542 _ACEOF
4543 if ac_fn_c_try_cpp "$LINENO"; then :
4544
4545 else
4546   # Broken: fails on valid input.
4547 continue
4548 fi
4549 rm -f conftest.err conftest.$ac_ext
4550
4551   # OK, works on sane cases.  Now check whether nonexistent headers
4552   # can be detected and how.
4553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h.  */
4555 #include <ac_nonexistent.h>
4556 _ACEOF
4557 if ac_fn_c_try_cpp "$LINENO"; then :
4558   # Broken: success on invalid input.
4559 continue
4560 else
4561   # Passes both tests.
4562 ac_preproc_ok=:
4563 break
4564 fi
4565 rm -f conftest.err conftest.$ac_ext
4566
4567 done
4568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4569 rm -f conftest.err conftest.$ac_ext
4570 if $ac_preproc_ok; then :
4571
4572 else
4573   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4576 See \`config.log' for more details." "$LINENO" 5; }
4577 fi
4578
4579 ac_ext=c
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4584
4585
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4587 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4588 if test "${ac_cv_path_GREP+set}" = set; then :
4589   $as_echo_n "(cached) " >&6
4590 else
4591   if test -z "$GREP"; then
4592   ac_path_GREP_found=false
4593   # Loop through the user's path and test for each of PROGNAME-LIST
4594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4596 do
4597   IFS=$as_save_IFS
4598   test -z "$as_dir" && as_dir=.
4599     for ac_prog in grep ggrep; do
4600     for ac_exec_ext in '' $ac_executable_extensions; do
4601       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4602       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4603 # Check for GNU ac_path_GREP and select it if it is found.
4604   # Check for GNU $ac_path_GREP
4605 case `"$ac_path_GREP" --version 2>&1` in
4606 *GNU*)
4607   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4608 *)
4609   ac_count=0
4610   $as_echo_n 0123456789 >"conftest.in"
4611   while :
4612   do
4613     cat "conftest.in" "conftest.in" >"conftest.tmp"
4614     mv "conftest.tmp" "conftest.in"
4615     cp "conftest.in" "conftest.nl"
4616     $as_echo 'GREP' >> "conftest.nl"
4617     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4618     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4619     as_fn_arith $ac_count + 1 && ac_count=$as_val
4620     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4621       # Best one so far, save it but keep looking for a better one
4622       ac_cv_path_GREP="$ac_path_GREP"
4623       ac_path_GREP_max=$ac_count
4624     fi
4625     # 10*(2^10) chars as input seems more than enough
4626     test $ac_count -gt 10 && break
4627   done
4628   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4629 esac
4630
4631       $ac_path_GREP_found && break 3
4632     done
4633   done
4634   done
4635 IFS=$as_save_IFS
4636   if test -z "$ac_cv_path_GREP"; then
4637     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4638   fi
4639 else
4640   ac_cv_path_GREP=$GREP
4641 fi
4642
4643 fi
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4645 $as_echo "$ac_cv_path_GREP" >&6; }
4646  GREP="$ac_cv_path_GREP"
4647
4648
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4650 $as_echo_n "checking for egrep... " >&6; }
4651 if test "${ac_cv_path_EGREP+set}" = set; then :
4652   $as_echo_n "(cached) " >&6
4653 else
4654   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4655    then ac_cv_path_EGREP="$GREP -E"
4656    else
4657      if test -z "$EGREP"; then
4658   ac_path_EGREP_found=false
4659   # Loop through the user's path and test for each of PROGNAME-LIST
4660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665     for ac_prog in egrep; do
4666     for ac_exec_ext in '' $ac_executable_extensions; do
4667       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4668       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4669 # Check for GNU ac_path_EGREP and select it if it is found.
4670   # Check for GNU $ac_path_EGREP
4671 case `"$ac_path_EGREP" --version 2>&1` in
4672 *GNU*)
4673   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4674 *)
4675   ac_count=0
4676   $as_echo_n 0123456789 >"conftest.in"
4677   while :
4678   do
4679     cat "conftest.in" "conftest.in" >"conftest.tmp"
4680     mv "conftest.tmp" "conftest.in"
4681     cp "conftest.in" "conftest.nl"
4682     $as_echo 'EGREP' >> "conftest.nl"
4683     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685     as_fn_arith $ac_count + 1 && ac_count=$as_val
4686     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4687       # Best one so far, save it but keep looking for a better one
4688       ac_cv_path_EGREP="$ac_path_EGREP"
4689       ac_path_EGREP_max=$ac_count
4690     fi
4691     # 10*(2^10) chars as input seems more than enough
4692     test $ac_count -gt 10 && break
4693   done
4694   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695 esac
4696
4697       $ac_path_EGREP_found && break 3
4698     done
4699   done
4700   done
4701 IFS=$as_save_IFS
4702   if test -z "$ac_cv_path_EGREP"; then
4703     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4704   fi
4705 else
4706   ac_cv_path_EGREP=$EGREP
4707 fi
4708
4709    fi
4710 fi
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4712 $as_echo "$ac_cv_path_EGREP" >&6; }
4713  EGREP="$ac_cv_path_EGREP"
4714
4715
4716 if test $ac_cv_c_compiler_gnu = yes; then
4717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4718 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4719 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722     ac_pattern="Autoconf.*'x'"
4723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h.  */
4725 #include <sgtty.h>
4726 Autoconf TIOCGETP
4727 _ACEOF
4728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4729   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4730   ac_cv_prog_gcc_traditional=yes
4731 else
4732   ac_cv_prog_gcc_traditional=no
4733 fi
4734 rm -f conftest*
4735
4736
4737   if test $ac_cv_prog_gcc_traditional = no; then
4738     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h.  */
4740 #include <termio.h>
4741 Autoconf TCGETA
4742 _ACEOF
4743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4744   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4745   ac_cv_prog_gcc_traditional=yes
4746 fi
4747 rm -f conftest*
4748
4749   fi
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4752 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4753   if test $ac_cv_prog_gcc_traditional = yes; then
4754     CC="$CC -traditional"
4755   fi
4756 fi
4757
4758 BASECC=`basename $CC`
4759 have_gcc=no
4760 if test "x$BASECC" = xgcc; then
4761    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4762
4763    have_gcc=yes
4764 fi
4765 # Extract the first word of "$CXX", so it can be a program name with args.
4766 set dummy $CXX; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_path_CXX+set}" = set; then :
4770   $as_echo_n "(cached) " >&6
4771 else
4772   case $CXX in
4773   [\\/]* | ?:[\\/]*)
4774   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4775   ;;
4776   *)
4777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780   IFS=$as_save_IFS
4781   test -z "$as_dir" && as_dir=.
4782     for ac_exec_ext in '' $ac_executable_extensions; do
4783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4786     break 2
4787   fi
4788 done
4789   done
4790 IFS=$as_save_IFS
4791
4792   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4793   ;;
4794 esac
4795 fi
4796 CXX=$ac_cv_path_CXX
4797 if test -n "$CXX"; then
4798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4799 $as_echo "$CXX" >&6; }
4800 else
4801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4803 fi
4804
4805
4806 if test ! -e $CXX; then
4807    as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4808 fi
4809
4810 # Find a good install program.  We prefer a C program (faster),
4811 # so one script is as good as another.  But avoid the broken or
4812 # incompatible versions:
4813 # SysV /etc/install, /usr/sbin/install
4814 # SunOS /usr/etc/install
4815 # IRIX /sbin/install
4816 # AIX /bin/install
4817 # AmigaOS /C/install, which installs bootblocks on floppy discs
4818 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4819 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4820 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4821 # OS/2's system install, which has a completely different semantic
4822 # ./install, which can be erroneously created by make from ./install.sh.
4823 # Reject install programs that cannot install multiple files.
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4825 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4826 if test -z "$INSTALL"; then
4827 if test "${ac_cv_path_install+set}" = set; then :
4828   $as_echo_n "(cached) " >&6
4829 else
4830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833   IFS=$as_save_IFS
4834   test -z "$as_dir" && as_dir=.
4835     # Account for people who put trailing slashes in PATH elements.
4836 case $as_dir/ in #((
4837   ./ | .// | /[cC]/* | \
4838   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4839   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4840   /usr/ucb/* ) ;;
4841   *)
4842     # OSF1 and SCO ODT 3.0 have their own names for install.
4843     # Don't use installbsd from OSF since it installs stuff as root
4844     # by default.
4845     for ac_prog in ginstall scoinst install; do
4846       for ac_exec_ext in '' $ac_executable_extensions; do
4847         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4848           if test $ac_prog = install &&
4849             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4850             # AIX install.  It has an incompatible calling convention.
4851             :
4852           elif test $ac_prog = install &&
4853             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4854             # program-specific install script used by HP pwplus--don't use.
4855             :
4856           else
4857             rm -rf conftest.one conftest.two conftest.dir
4858             echo one > conftest.one
4859             echo two > conftest.two
4860             mkdir conftest.dir
4861             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4862               test -s conftest.one && test -s conftest.two &&
4863               test -s conftest.dir/conftest.one &&
4864               test -s conftest.dir/conftest.two
4865             then
4866               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4867               break 3
4868             fi
4869           fi
4870         fi
4871       done
4872     done
4873     ;;
4874 esac
4875
4876   done
4877 IFS=$as_save_IFS
4878
4879 rm -rf conftest.one conftest.two conftest.dir
4880
4881 fi
4882   if test "${ac_cv_path_install+set}" = set; then
4883     INSTALL=$ac_cv_path_install
4884   else
4885     # As a last resort, use the slow shell script.  Don't cache a
4886     # value for INSTALL within a source directory, because that will
4887     # break other packages using the cache if that directory is
4888     # removed, or if the value is a relative name.
4889     INSTALL=$ac_install_sh
4890   fi
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4893 $as_echo "$INSTALL" >&6; }
4894
4895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4896 # It thinks the first close brace ends the variable substitution.
4897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4898
4899 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4900
4901 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4902
4903 # Extract the first word of "mv", so it can be a program name with args.
4904 set dummy mv; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_path_MV+set}" = set; then :
4908   $as_echo_n "(cached) " >&6
4909 else
4910   case $MV in
4911   [\\/]* | ?:[\\/]*)
4912   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4913   ;;
4914   *)
4915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918   IFS=$as_save_IFS
4919   test -z "$as_dir" && as_dir=.
4920     for ac_exec_ext in '' $ac_executable_extensions; do
4921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924     break 2
4925   fi
4926 done
4927   done
4928 IFS=$as_save_IFS
4929
4930   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4931   ;;
4932 esac
4933 fi
4934 MV=$ac_cv_path_MV
4935 if test -n "$MV"; then
4936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4937 $as_echo "$MV" >&6; }
4938 else
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4941 fi
4942
4943
4944 # Extract the first word of "rm", so it can be a program name with args.
4945 set dummy rm; ac_word=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if test "${ac_cv_path_REMOVE+set}" = set; then :
4949   $as_echo_n "(cached) " >&6
4950 else
4951   case $REMOVE in
4952   [\\/]* | ?:[\\/]*)
4953   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4954   ;;
4955   *)
4956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 for as_dir in $PATH
4958 do
4959   IFS=$as_save_IFS
4960   test -z "$as_dir" && as_dir=.
4961     for ac_exec_ext in '' $ac_executable_extensions; do
4962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4965     break 2
4966   fi
4967 done
4968   done
4969 IFS=$as_save_IFS
4970
4971   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4972   ;;
4973 esac
4974 fi
4975 REMOVE=$ac_cv_path_REMOVE
4976 if test -n "$REMOVE"; then
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4978 $as_echo "$REMOVE" >&6; }
4979 else
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4982 fi
4983
4984
4985 # Extract the first word of "cp", so it can be a program name with args.
4986 set dummy cp; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if test "${ac_cv_path_CP+set}" = set; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   case $CP in
4993   [\\/]* | ?:[\\/]*)
4994   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4995   ;;
4996   *)
4997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
4999 do
5000   IFS=$as_save_IFS
5001   test -z "$as_dir" && as_dir=.
5002     for ac_exec_ext in '' $ac_executable_extensions; do
5003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5004     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006     break 2
5007   fi
5008 done
5009   done
5010 IFS=$as_save_IFS
5011
5012   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5013   ;;
5014 esac
5015 fi
5016 CP=$ac_cv_path_CP
5017 if test -n "$CP"; then
5018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5019 $as_echo "$CP" >&6; }
5020 else
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 fi
5024
5025
5026 # Extract the first word of "sed", so it can be a program name with args.
5027 set dummy sed; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if test "${ac_cv_path_SED+set}" = set; then :
5031   $as_echo_n "(cached) " >&6
5032 else
5033   case $SED in
5034   [\\/]* | ?:[\\/]*)
5035   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5036   ;;
5037   *)
5038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041   IFS=$as_save_IFS
5042   test -z "$as_dir" && as_dir=.
5043     for ac_exec_ext in '' $ac_executable_extensions; do
5044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047     break 2
5048   fi
5049 done
5050   done
5051 IFS=$as_save_IFS
5052
5053   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5054   ;;
5055 esac
5056 fi
5057 SED=$ac_cv_path_SED
5058 if test -n "$SED"; then
5059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5060 $as_echo "$SED" >&6; }
5061 else
5062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5064 fi
5065
5066
5067 # Extract the first word of "echo", so it can be a program name with args.
5068 set dummy echo; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if test "${ac_cv_path_ECHO+set}" = set; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074   case $ECHO in
5075   [\\/]* | ?:[\\/]*)
5076   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5077   ;;
5078   *)
5079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5081 do
5082   IFS=$as_save_IFS
5083   test -z "$as_dir" && as_dir=.
5084     for ac_exec_ext in '' $ac_executable_extensions; do
5085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088     break 2
5089   fi
5090 done
5091   done
5092 IFS=$as_save_IFS
5093
5094   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5095   ;;
5096 esac
5097 fi
5098 ECHO=$ac_cv_path_ECHO
5099 if test -n "$ECHO"; then
5100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5101 $as_echo "$ECHO" >&6; }
5102 else
5103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106
5107
5108 # Extract the first word of "cmp", so it can be a program name with args.
5109 set dummy cmp; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if test "${ac_cv_path_CMP+set}" = set; then :
5113   $as_echo_n "(cached) " >&6
5114 else
5115   case $CMP in
5116   [\\/]* | ?:[\\/]*)
5117   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5118   ;;
5119   *)
5120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5122 do
5123   IFS=$as_save_IFS
5124   test -z "$as_dir" && as_dir=.
5125     for ac_exec_ext in '' $ac_executable_extensions; do
5126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129     break 2
5130   fi
5131 done
5132   done
5133 IFS=$as_save_IFS
5134
5135   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5136   ;;
5137 esac
5138 fi
5139 CMP=$ac_cv_path_CMP
5140 if test -n "$CMP"; then
5141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5142 $as_echo "$CMP" >&6; }
5143 else
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148
5149 # Extract the first word of "tbl", so it can be a program name with args.
5150 set dummy tbl; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if test "${ac_cv_path_TBL+set}" = set; then :
5154   $as_echo_n "(cached) " >&6
5155 else
5156   case $TBL in
5157   [\\/]* | ?:[\\/]*)
5158   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5159   ;;
5160   *)
5161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 for as_dir in $PATH
5163 do
5164   IFS=$as_save_IFS
5165   test -z "$as_dir" && as_dir=.
5166     for ac_exec_ext in '' $ac_executable_extensions; do
5167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170     break 2
5171   fi
5172 done
5173   done
5174 IFS=$as_save_IFS
5175
5176   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5177   ;;
5178 esac
5179 fi
5180 TBL=$ac_cv_path_TBL
5181 if test -n "$TBL"; then
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5183 $as_echo "$TBL" >&6; }
5184 else
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188
5189
5190 # Extract the first word of "ar", so it can be a program name with args.
5191 set dummy ar; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if test "${ac_cv_path_AR+set}" = set; then :
5195   $as_echo_n "(cached) " >&6
5196 else
5197   case $AR in
5198   [\\/]* | ?:[\\/]*)
5199   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5200   ;;
5201   *)
5202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205   IFS=$as_save_IFS
5206   test -z "$as_dir" && as_dir=.
5207     for ac_exec_ext in '' $ac_executable_extensions; do
5208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211     break 2
5212   fi
5213 done
5214   done
5215 IFS=$as_save_IFS
5216
5217   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5218   ;;
5219 esac
5220 fi
5221 AR=$ac_cv_path_AR
5222 if test -n "$AR"; then
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5224 $as_echo "$AR" >&6; }
5225 else
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228 fi
5229
5230
5231 # Extract the first word of "openssl", so it can be a program name with args.
5232 set dummy openssl; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5236   $as_echo_n "(cached) " >&6
5237 else
5238   case $OPENSSL in
5239   [\\/]* | ?:[\\/]*)
5240   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5241   ;;
5242   *)
5243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246   IFS=$as_save_IFS
5247   test -z "$as_dir" && as_dir=.
5248     for ac_exec_ext in '' $ac_executable_extensions; do
5249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252     break 2
5253   fi
5254 done
5255   done
5256 IFS=$as_save_IFS
5257
5258   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5259   ;;
5260 esac
5261 fi
5262 OPENSSL=$ac_cv_path_OPENSSL
5263 if test -n "$OPENSSL"; then
5264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5265 $as_echo "$OPENSSL" >&6; }
5266 else
5267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 fi
5270
5271
5272 # Extract the first word of "mtx", so it can be a program name with args.
5273 set dummy mtx; ac_word=$2
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275 $as_echo_n "checking for $ac_word... " >&6; }
5276 if test "${ac_cv_path_MTX+set}" = set; then :
5277   $as_echo_n "(cached) " >&6
5278 else
5279   case $MTX in
5280   [\\/]* | ?:[\\/]*)
5281   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5282   ;;
5283   *)
5284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5286 do
5287   IFS=$as_save_IFS
5288   test -z "$as_dir" && as_dir=.
5289     for ac_exec_ext in '' $ac_executable_extensions; do
5290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293     break 2
5294   fi
5295 done
5296   done
5297 IFS=$as_save_IFS
5298
5299   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5300   ;;
5301 esac
5302 fi
5303 MTX=$ac_cv_path_MTX
5304 if test -n "$MTX"; then
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5306 $as_echo "$MTX" >&6; }
5307 else
5308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5310 fi
5311
5312
5313 # Extract the first word of "dd", so it can be a program name with args.
5314 set dummy dd; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if test "${ac_cv_path_DD+set}" = set; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   case $DD in
5321   [\\/]* | ?:[\\/]*)
5322   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5323   ;;
5324   *)
5325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328   IFS=$as_save_IFS
5329   test -z "$as_dir" && as_dir=.
5330     for ac_exec_ext in '' $ac_executable_extensions; do
5331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334     break 2
5335   fi
5336 done
5337   done
5338 IFS=$as_save_IFS
5339
5340   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5341   ;;
5342 esac
5343 fi
5344 DD=$ac_cv_path_DD
5345 if test -n "$DD"; then
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5347 $as_echo "$DD" >&6; }
5348 else
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5351 fi
5352
5353
5354 # Extract the first word of "mkisofs", so it can be a program name with args.
5355 set dummy mkisofs; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5359   $as_echo_n "(cached) " >&6
5360 else
5361   case $MKISOFS in
5362   [\\/]* | ?:[\\/]*)
5363   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5364   ;;
5365   *)
5366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369   IFS=$as_save_IFS
5370   test -z "$as_dir" && as_dir=.
5371     for ac_exec_ext in '' $ac_executable_extensions; do
5372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375     break 2
5376   fi
5377 done
5378   done
5379 IFS=$as_save_IFS
5380
5381   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5382   ;;
5383 esac
5384 fi
5385 MKISOFS=$ac_cv_path_MKISOFS
5386 if test -n "$MKISOFS"; then
5387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5388 $as_echo "$MKISOFS" >&6; }
5389 else
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5391 $as_echo "no" >&6; }
5392 fi
5393
5394
5395 # Extract the first word of "python", so it can be a program name with args.
5396 set dummy python; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_path_PYTHON+set}" = set; then :
5400   $as_echo_n "(cached) " >&6
5401 else
5402   case $PYTHON in
5403   [\\/]* | ?:[\\/]*)
5404   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5405   ;;
5406   *)
5407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410   IFS=$as_save_IFS
5411   test -z "$as_dir" && as_dir=.
5412     for ac_exec_ext in '' $ac_executable_extensions; do
5413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416     break 2
5417   fi
5418 done
5419   done
5420 IFS=$as_save_IFS
5421
5422   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5423   ;;
5424 esac
5425 fi
5426 PYTHON=$ac_cv_path_PYTHON
5427 if test -n "$PYTHON"; then
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5429 $as_echo "$PYTHON" >&6; }
5430 else
5431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5433 fi
5434
5435
5436 # Extract the first word of "growisofs", so it can be a program name with args.
5437 set dummy growisofs; ac_word=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; }
5440 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5441   $as_echo_n "(cached) " >&6
5442 else
5443   case $GROWISOFS in
5444   [\\/]* | ?:[\\/]*)
5445   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5446   ;;
5447   *)
5448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5450 do
5451   IFS=$as_save_IFS
5452   test -z "$as_dir" && as_dir=.
5453     for ac_exec_ext in '' $ac_executable_extensions; do
5454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457     break 2
5458   fi
5459 done
5460   done
5461 IFS=$as_save_IFS
5462
5463   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5464   ;;
5465 esac
5466 fi
5467 GROWISOFS=$ac_cv_path_GROWISOFS
5468 if test -n "$GROWISOFS"; then
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5470 $as_echo "$GROWISOFS" >&6; }
5471 else
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5474 fi
5475
5476
5477 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5478 set dummy dvd+rw-mediainfo; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5482   $as_echo_n "(cached) " >&6
5483 else
5484   case $DVDRWMEDIAINFO in
5485   [\\/]* | ?:[\\/]*)
5486   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5487   ;;
5488   *)
5489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5491 do
5492   IFS=$as_save_IFS
5493   test -z "$as_dir" && as_dir=.
5494     for ac_exec_ext in '' $ac_executable_extensions; do
5495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498     break 2
5499   fi
5500 done
5501   done
5502 IFS=$as_save_IFS
5503
5504   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5505   ;;
5506 esac
5507 fi
5508 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5509 if test -n "$DVDRWMEDIAINFO"; then
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5511 $as_echo "$DVDRWMEDIAINFO" >&6; }
5512 else
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516
5517
5518 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5519 set dummy dvd+rw-format; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   case $DVDRWFORMAT in
5526   [\\/]* | ?:[\\/]*)
5527   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5528   ;;
5529   *)
5530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 for as_dir in $PATH
5532 do
5533   IFS=$as_save_IFS
5534   test -z "$as_dir" && as_dir=.
5535     for ac_exec_ext in '' $ac_executable_extensions; do
5536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5537     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5539     break 2
5540   fi
5541 done
5542   done
5543 IFS=$as_save_IFS
5544
5545   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5546   ;;
5547 esac
5548 fi
5549 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5550 if test -n "$DVDRWFORMAT"; then
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5552 $as_echo "$DVDRWFORMAT" >&6; }
5553 else
5554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5556 fi
5557
5558
5559 # Extract the first word of "pkg-config", so it can be a program name with args.
5560 set dummy pkg-config; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5564   $as_echo_n "(cached) " >&6
5565 else
5566   case $PKGCONFIG in
5567   [\\/]* | ?:[\\/]*)
5568   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5569   ;;
5570   *)
5571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 for as_dir in $PATH
5573 do
5574   IFS=$as_save_IFS
5575   test -z "$as_dir" && as_dir=.
5576     for ac_exec_ext in '' $ac_executable_extensions; do
5577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580     break 2
5581   fi
5582 done
5583   done
5584 IFS=$as_save_IFS
5585
5586   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5587   ;;
5588 esac
5589 fi
5590 PKGCONFIG=$ac_cv_path_PKGCONFIG
5591 if test -n "$PKGCONFIG"; then
5592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5593 $as_echo "$PKGCONFIG" >&6; }
5594 else
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5597 fi
5598
5599
5600 # Extract the first word of "qmake", so it can be a program name with args.
5601 set dummy qmake; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if test "${ac_cv_path_QMAKE+set}" = set; then :
5605   $as_echo_n "(cached) " >&6
5606 else
5607   case $QMAKE in
5608   [\\/]* | ?:[\\/]*)
5609   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5610   ;;
5611   *)
5612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617     for ac_exec_ext in '' $ac_executable_extensions; do
5618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621     break 2
5622   fi
5623 done
5624   done
5625 IFS=$as_save_IFS
5626
5627   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5628   ;;
5629 esac
5630 fi
5631 QMAKE=$ac_cv_path_QMAKE
5632 if test -n "$QMAKE"; then
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5634 $as_echo "$QMAKE" >&6; }
5635 else
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640
5641 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5642 set dummy qmake-qt4; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if test "${ac_cv_path_QMAKEQT4+set}" = set; then :
5646   $as_echo_n "(cached) " >&6
5647 else
5648   case $QMAKEQT4 in
5649   [\\/]* | ?:[\\/]*)
5650   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5651   ;;
5652   *)
5653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5655 do
5656   IFS=$as_save_IFS
5657   test -z "$as_dir" && as_dir=.
5658     for ac_exec_ext in '' $ac_executable_extensions; do
5659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5660     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662     break 2
5663   fi
5664 done
5665   done
5666 IFS=$as_save_IFS
5667
5668   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5669   ;;
5670 esac
5671 fi
5672 QMAKEQT4=$ac_cv_path_QMAKEQT4
5673 if test -n "$QMAKEQT4"; then
5674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKEQT4" >&5
5675 $as_echo "$QMAKEQT4" >&6; }
5676 else
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5679 fi
5680
5681
5682 # Extract the first word of "gmake", so it can be a program name with args.
5683 set dummy gmake; ac_word=$2
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685 $as_echo_n "checking for $ac_word... " >&6; }
5686 if test "${ac_cv_path_GMAKE+set}" = set; then :
5687   $as_echo_n "(cached) " >&6
5688 else
5689   case $GMAKE in
5690   [\\/]* | ?:[\\/]*)
5691   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5692   ;;
5693   *)
5694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697   IFS=$as_save_IFS
5698   test -z "$as_dir" && as_dir=.
5699     for ac_exec_ext in '' $ac_executable_extensions; do
5700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5701     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703     break 2
5704   fi
5705 done
5706   done
5707 IFS=$as_save_IFS
5708
5709   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5710   ;;
5711 esac
5712 fi
5713 GMAKE=$ac_cv_path_GMAKE
5714 if test -n "$GMAKE"; then
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5716 $as_echo "$GMAKE" >&6; }
5717 else
5718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719 $as_echo "no" >&6; }
5720 fi
5721
5722
5723
5724 if test "x$WXCONFIG" = x; then
5725    WXCONFIG=wx-config
5726 fi
5727 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5728 set dummy ${WXCONFIG}; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   case $WXCONFIG in
5735   [\\/]* | ?:[\\/]*)
5736   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5737   ;;
5738   *)
5739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5741 do
5742   IFS=$as_save_IFS
5743   test -z "$as_dir" && as_dir=.
5744     for ac_exec_ext in '' $ac_executable_extensions; do
5745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5746     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5748     break 2
5749   fi
5750 done
5751   done
5752 IFS=$as_save_IFS
5753
5754   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5755   ;;
5756 esac
5757 fi
5758 WXCONFIG=$ac_cv_path_WXCONFIG
5759 if test -n "$WXCONFIG"; then
5760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5761 $as_echo "$WXCONFIG" >&6; }
5762 else
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5765 fi
5766
5767
5768
5769 # Extract the first word of "cdrecord", so it can be a program name with args.
5770 set dummy cdrecord; ac_word=$2
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 $as_echo_n "checking for $ac_word... " >&6; }
5773 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5774   $as_echo_n "(cached) " >&6
5775 else
5776   case $CDRECORD in
5777   [\\/]* | ?:[\\/]*)
5778   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5779   ;;
5780   *)
5781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 for as_dir in $PATH
5783 do
5784   IFS=$as_save_IFS
5785   test -z "$as_dir" && as_dir=.
5786     for ac_exec_ext in '' $ac_executable_extensions; do
5787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5790     break 2
5791   fi
5792 done
5793   done
5794 IFS=$as_save_IFS
5795
5796   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5797   ;;
5798 esac
5799 fi
5800 CDRECORD=$ac_cv_path_CDRECORD
5801 if test -n "$CDRECORD"; then
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5803 $as_echo "$CDRECORD" >&6; }
5804 else
5805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5807 fi
5808
5809
5810 # Extract the first word of "pidof", so it can be a program name with args.
5811 set dummy pidof; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if test "${ac_cv_path_PIDOF+set}" = set; then :
5815   $as_echo_n "(cached) " >&6
5816 else
5817   case $PIDOF in
5818   [\\/]* | ?:[\\/]*)
5819   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5820   ;;
5821   *)
5822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825   IFS=$as_save_IFS
5826   test -z "$as_dir" && as_dir=.
5827     for ac_exec_ext in '' $ac_executable_extensions; do
5828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831     break 2
5832   fi
5833 done
5834   done
5835 IFS=$as_save_IFS
5836
5837   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5838   ;;
5839 esac
5840 fi
5841 PIDOF=$ac_cv_path_PIDOF
5842 if test -n "$PIDOF"; then
5843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5844 $as_echo "$PIDOF" >&6; }
5845 else
5846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5848 fi
5849
5850
5851 for ac_prog in gawk mawk nawk awk
5852 do
5853   # Extract the first word of "$ac_prog", so it can be a program name with args.
5854 set dummy $ac_prog; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if test "${ac_cv_prog_AWK+set}" = set; then :
5858   $as_echo_n "(cached) " >&6
5859 else
5860   if test -n "$AWK"; then
5861   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866   IFS=$as_save_IFS
5867   test -z "$as_dir" && as_dir=.
5868     for ac_exec_ext in '' $ac_executable_extensions; do
5869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870     ac_cv_prog_AWK="$ac_prog"
5871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872     break 2
5873   fi
5874 done
5875   done
5876 IFS=$as_save_IFS
5877
5878 fi
5879 fi
5880 AWK=$ac_cv_prog_AWK
5881 if test -n "$AWK"; then
5882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5883 $as_echo "$AWK" >&6; }
5884 else
5885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5887 fi
5888
5889
5890   test -n "$AWK" && break
5891 done
5892
5893 # Some AWK programs fail, so test it and warn the user
5894 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5895       { if ((prog == $2) || (("(" prog ")") == $2) ||
5896       (("" prog "") == $2) ||
5897       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5898 else
5899   as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5900    The regex engine of $AWK is too broken to be used you
5901    might want to install GNU AWK.
5902    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5903 fi
5904 THE_AWK=$AWK
5905 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5906 set dummy $THE_AWK; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if test "${ac_cv_path_AWK+set}" = set; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912   case $AWK in
5913   [\\/]* | ?:[\\/]*)
5914   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5915   ;;
5916   *)
5917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920   IFS=$as_save_IFS
5921   test -z "$as_dir" && as_dir=.
5922     for ac_exec_ext in '' $ac_executable_extensions; do
5923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926     break 2
5927   fi
5928 done
5929   done
5930 IFS=$as_save_IFS
5931
5932   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5933   ;;
5934 esac
5935 fi
5936 AWK=$ac_cv_path_AWK
5937 if test -n "$AWK"; then
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5939 $as_echo "$AWK" >&6; }
5940 else
5941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5943 fi
5944
5945
5946
5947
5948 test -n "$ARFLAG" || ARFLAGS="cr"
5949
5950
5951 MAKE_SHELL=/bin/sh
5952
5953
5954
5955
5956
5957
5958
5959 use_libtool=yes
5960 # Check whether --enable-libtool was given.
5961 if test "${enable_libtool+set}" = set; then :
5962   enableval=$enable_libtool;
5963        if test x$enableval = xno; then
5964           use_libtool=no
5965        fi
5966
5967
5968 fi
5969
5970 case `pwd` in
5971   *\ * | *\     *)
5972     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5973 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5974 esac
5975
5976
5977
5978 macro_version='2.2.6'
5979 macro_revision='1.3012'
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993 ltmain="$ac_aux_dir/ltmain.sh"
5994
5995 # Make sure we can run config.sub.
5996 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5997   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5998
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6000 $as_echo_n "checking build system type... " >&6; }
6001 if test "${ac_cv_build+set}" = set; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   ac_build_alias=$build_alias
6005 test "x$ac_build_alias" = x &&
6006   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6007 test "x$ac_build_alias" = x &&
6008   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6009 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6010   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6011
6012 fi
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6014 $as_echo "$ac_cv_build" >&6; }
6015 case $ac_cv_build in
6016 *-*-*) ;;
6017 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6018 esac
6019 build=$ac_cv_build
6020 ac_save_IFS=$IFS; IFS='-'
6021 set x $ac_cv_build
6022 shift
6023 build_cpu=$1
6024 build_vendor=$2
6025 shift; shift
6026 # Remember, the first character of IFS is used to create $*,
6027 # except with old shells:
6028 build_os=$*
6029 IFS=$ac_save_IFS
6030 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6031
6032
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6034 $as_echo_n "checking host system type... " >&6; }
6035 if test "${ac_cv_host+set}" = set; then :
6036   $as_echo_n "(cached) " >&6
6037 else
6038   if test "x$host_alias" = x; then
6039   ac_cv_host=$ac_cv_build
6040 else
6041   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6042     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6043 fi
6044
6045 fi
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6047 $as_echo "$ac_cv_host" >&6; }
6048 case $ac_cv_host in
6049 *-*-*) ;;
6050 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6051 esac
6052 host=$ac_cv_host
6053 ac_save_IFS=$IFS; IFS='-'
6054 set x $ac_cv_host
6055 shift
6056 host_cpu=$1
6057 host_vendor=$2
6058 shift; shift
6059 # Remember, the first character of IFS is used to create $*,
6060 # except with old shells:
6061 host_os=$*
6062 IFS=$ac_save_IFS
6063 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6064
6065
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6067 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6068 if test "${ac_cv_path_SED+set}" = set; then :
6069   $as_echo_n "(cached) " >&6
6070 else
6071             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6072      for ac_i in 1 2 3 4 5 6 7; do
6073        ac_script="$ac_script$as_nl$ac_script"
6074      done
6075      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6076      { ac_script=; unset ac_script;}
6077      if test -z "$SED"; then
6078   ac_path_SED_found=false
6079   # Loop through the user's path and test for each of PROGNAME-LIST
6080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 for as_dir in $PATH
6082 do
6083   IFS=$as_save_IFS
6084   test -z "$as_dir" && as_dir=.
6085     for ac_prog in sed gsed; do
6086     for ac_exec_ext in '' $ac_executable_extensions; do
6087       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6088       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6089 # Check for GNU ac_path_SED and select it if it is found.
6090   # Check for GNU $ac_path_SED
6091 case `"$ac_path_SED" --version 2>&1` in
6092 *GNU*)
6093   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6094 *)
6095   ac_count=0
6096   $as_echo_n 0123456789 >"conftest.in"
6097   while :
6098   do
6099     cat "conftest.in" "conftest.in" >"conftest.tmp"
6100     mv "conftest.tmp" "conftest.in"
6101     cp "conftest.in" "conftest.nl"
6102     $as_echo '' >> "conftest.nl"
6103     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6104     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6105     as_fn_arith $ac_count + 1 && ac_count=$as_val
6106     if test $ac_count -gt ${ac_path_SED_max-0}; then
6107       # Best one so far, save it but keep looking for a better one
6108       ac_cv_path_SED="$ac_path_SED"
6109       ac_path_SED_max=$ac_count
6110     fi
6111     # 10*(2^10) chars as input seems more than enough
6112     test $ac_count -gt 10 && break
6113   done
6114   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6115 esac
6116
6117       $ac_path_SED_found && break 3
6118     done
6119   done
6120   done
6121 IFS=$as_save_IFS
6122   if test -z "$ac_cv_path_SED"; then
6123     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6124   fi
6125 else
6126   ac_cv_path_SED=$SED
6127 fi
6128
6129 fi
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6131 $as_echo "$ac_cv_path_SED" >&6; }
6132  SED="$ac_cv_path_SED"
6133   rm -f conftest.sed
6134
6135 test -z "$SED" && SED=sed
6136 Xsed="$SED -e 1s/^X//"
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6149 $as_echo_n "checking for fgrep... " >&6; }
6150 if test "${ac_cv_path_FGREP+set}" = set; then :
6151   $as_echo_n "(cached) " >&6
6152 else
6153   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6154    then ac_cv_path_FGREP="$GREP -F"
6155    else
6156      if test -z "$FGREP"; then
6157   ac_path_FGREP_found=false
6158   # Loop through the user's path and test for each of PROGNAME-LIST
6159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164     for ac_prog in fgrep; do
6165     for ac_exec_ext in '' $ac_executable_extensions; do
6166       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6167       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6168 # Check for GNU ac_path_FGREP and select it if it is found.
6169   # Check for GNU $ac_path_FGREP
6170 case `"$ac_path_FGREP" --version 2>&1` in
6171 *GNU*)
6172   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6173 *)
6174   ac_count=0
6175   $as_echo_n 0123456789 >"conftest.in"
6176   while :
6177   do
6178     cat "conftest.in" "conftest.in" >"conftest.tmp"
6179     mv "conftest.tmp" "conftest.in"
6180     cp "conftest.in" "conftest.nl"
6181     $as_echo 'FGREP' >> "conftest.nl"
6182     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6183     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6184     as_fn_arith $ac_count + 1 && ac_count=$as_val
6185     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6186       # Best one so far, save it but keep looking for a better one
6187       ac_cv_path_FGREP="$ac_path_FGREP"
6188       ac_path_FGREP_max=$ac_count
6189     fi
6190     # 10*(2^10) chars as input seems more than enough
6191     test $ac_count -gt 10 && break
6192   done
6193   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6194 esac
6195
6196       $ac_path_FGREP_found && break 3
6197     done
6198   done
6199   done
6200 IFS=$as_save_IFS
6201   if test -z "$ac_cv_path_FGREP"; then
6202     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6203   fi
6204 else
6205   ac_cv_path_FGREP=$FGREP
6206 fi
6207
6208    fi
6209 fi
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6211 $as_echo "$ac_cv_path_FGREP" >&6; }
6212  FGREP="$ac_cv_path_FGREP"
6213
6214
6215 test -z "$GREP" && GREP=grep
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235 # Check whether --with-gnu-ld was given.
6236 if test "${with_gnu_ld+set}" = set; then :
6237   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6238 else
6239   with_gnu_ld=no
6240 fi
6241
6242 ac_prog=ld
6243 if test "$GCC" = yes; then
6244   # Check if gcc -print-prog-name=ld gives a path.
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6246 $as_echo_n "checking for ld used by $CC... " >&6; }
6247   case $host in
6248   *-*-mingw*)
6249     # gcc leaves a trailing carriage return which upsets mingw
6250     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6251   *)
6252     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6253   esac
6254   case $ac_prog in
6255     # Accept absolute paths.
6256     [\\/]* | ?:[\\/]*)
6257       re_direlt='/[^/][^/]*/\.\./'
6258       # Canonicalize the pathname of ld
6259       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6260       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6261         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6262       done
6263       test -z "$LD" && LD="$ac_prog"
6264       ;;
6265   "")
6266     # If it fails, then pretend we aren't using GCC.
6267     ac_prog=ld
6268     ;;
6269   *)
6270     # If it is relative, then search for the first ld in PATH.
6271     with_gnu_ld=unknown
6272     ;;
6273   esac
6274 elif test "$with_gnu_ld" = yes; then
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6276 $as_echo_n "checking for GNU ld... " >&6; }
6277 else
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6279 $as_echo_n "checking for non-GNU ld... " >&6; }
6280 fi
6281 if test "${lt_cv_path_LD+set}" = set; then :
6282   $as_echo_n "(cached) " >&6
6283 else
6284   if test -z "$LD"; then
6285   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6286   for ac_dir in $PATH; do
6287     IFS="$lt_save_ifs"
6288     test -z "$ac_dir" && ac_dir=.
6289     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6290       lt_cv_path_LD="$ac_dir/$ac_prog"
6291       # Check to see if the program is GNU ld.  I'd rather use --version,
6292       # but apparently some variants of GNU ld only accept -v.
6293       # Break only if it was the GNU/non-GNU ld that we prefer.
6294       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6295       *GNU* | *'with BFD'*)
6296         test "$with_gnu_ld" != no && break
6297         ;;
6298       *)
6299         test "$with_gnu_ld" != yes && break
6300         ;;
6301       esac
6302     fi
6303   done
6304   IFS="$lt_save_ifs"
6305 else
6306   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6307 fi
6308 fi
6309
6310 LD="$lt_cv_path_LD"
6311 if test -n "$LD"; then
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6313 $as_echo "$LD" >&6; }
6314 else
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6320 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6321 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6322   $as_echo_n "(cached) " >&6
6323 else
6324   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6325 case `$LD -v 2>&1 </dev/null` in
6326 *GNU* | *'with BFD'*)
6327   lt_cv_prog_gnu_ld=yes
6328   ;;
6329 *)
6330   lt_cv_prog_gnu_ld=no
6331   ;;
6332 esac
6333 fi
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6335 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6336 with_gnu_ld=$lt_cv_prog_gnu_ld
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6347 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6348 if test "${lt_cv_path_NM+set}" = set; then :
6349   $as_echo_n "(cached) " >&6
6350 else
6351   if test -n "$NM"; then
6352   # Let the user override the test.
6353   lt_cv_path_NM="$NM"
6354 else
6355   lt_nm_to_check="${ac_tool_prefix}nm"
6356   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6357     lt_nm_to_check="$lt_nm_to_check nm"
6358   fi
6359   for lt_tmp_nm in $lt_nm_to_check; do
6360     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6361     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6362       IFS="$lt_save_ifs"
6363       test -z "$ac_dir" && ac_dir=.
6364       tmp_nm="$ac_dir/$lt_tmp_nm"
6365       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6366         # Check to see if the nm accepts a BSD-compat flag.
6367         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6368         #   nm: unknown option "B" ignored
6369         # Tru64's nm complains that /dev/null is an invalid object file
6370         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6371         */dev/null* | *'Invalid file or object type'*)
6372           lt_cv_path_NM="$tmp_nm -B"
6373           break
6374           ;;
6375         *)
6376           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6377           */dev/null*)
6378             lt_cv_path_NM="$tmp_nm -p"
6379             break
6380             ;;
6381           *)
6382             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6383             continue # so that we can try to find one that supports BSD flags
6384             ;;
6385           esac
6386           ;;
6387         esac
6388       fi
6389     done
6390     IFS="$lt_save_ifs"
6391   done
6392   : ${lt_cv_path_NM=no}
6393 fi
6394 fi
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6396 $as_echo "$lt_cv_path_NM" >&6; }
6397 if test "$lt_cv_path_NM" != "no"; then
6398   NM="$lt_cv_path_NM"
6399 else
6400   # Didn't find any BSD compatible name lister, look for dumpbin.
6401   if test -n "$ac_tool_prefix"; then
6402   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6403   do
6404     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6409   $as_echo_n "(cached) " >&6
6410 else
6411   if test -n "$DUMPBIN"; then
6412   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417   IFS=$as_save_IFS
6418   test -z "$as_dir" && as_dir=.
6419     for ac_exec_ext in '' $ac_executable_extensions; do
6420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423     break 2
6424   fi
6425 done
6426   done
6427 IFS=$as_save_IFS
6428
6429 fi
6430 fi
6431 DUMPBIN=$ac_cv_prog_DUMPBIN
6432 if test -n "$DUMPBIN"; then
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6434 $as_echo "$DUMPBIN" >&6; }
6435 else
6436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6438 fi
6439
6440
6441     test -n "$DUMPBIN" && break
6442   done
6443 fi
6444 if test -z "$DUMPBIN"; then
6445   ac_ct_DUMPBIN=$DUMPBIN
6446   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6447 do
6448   # Extract the first word of "$ac_prog", so it can be a program name with args.
6449 set dummy $ac_prog; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6453   $as_echo_n "(cached) " >&6
6454 else
6455   if test -n "$ac_ct_DUMPBIN"; then
6456   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6460 do
6461   IFS=$as_save_IFS
6462   test -z "$as_dir" && as_dir=.
6463     for ac_exec_ext in '' $ac_executable_extensions; do
6464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467     break 2
6468   fi
6469 done
6470   done
6471 IFS=$as_save_IFS
6472
6473 fi
6474 fi
6475 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6476 if test -n "$ac_ct_DUMPBIN"; then
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6478 $as_echo "$ac_ct_DUMPBIN" >&6; }
6479 else
6480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6482 fi
6483
6484
6485   test -n "$ac_ct_DUMPBIN" && break
6486 done
6487
6488   if test "x$ac_ct_DUMPBIN" = x; then
6489     DUMPBIN=":"
6490   else
6491     case $cross_compiling:$ac_tool_warned in
6492 yes:)
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495 ac_tool_warned=yes ;;
6496 esac
6497     DUMPBIN=$ac_ct_DUMPBIN
6498   fi
6499 fi
6500
6501
6502   if test "$DUMPBIN" != ":"; then
6503     NM="$DUMPBIN"
6504   fi
6505 fi
6506 test -z "$NM" && NM=nm
6507
6508
6509
6510
6511
6512
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6514 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6515 if test "${lt_cv_nm_interface+set}" = set; then :
6516   $as_echo_n "(cached) " >&6
6517 else
6518   lt_cv_nm_interface="BSD nm"
6519   echo "int some_variable = 0;" > conftest.$ac_ext
6520   (eval echo "\"\$as_me:6520: $ac_compile\"" >&5)
6521   (eval "$ac_compile" 2>conftest.err)
6522   cat conftest.err >&5
6523   (eval echo "\"\$as_me:6523: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6524   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6525   cat conftest.err >&5
6526   (eval echo "\"\$as_me:6526: output\"" >&5)
6527   cat conftest.out >&5
6528   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6529     lt_cv_nm_interface="MS dumpbin"
6530   fi
6531   rm -f conftest*
6532 fi
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6534 $as_echo "$lt_cv_nm_interface" >&6; }
6535
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6537 $as_echo_n "checking whether ln -s works... " >&6; }
6538 LN_S=$as_ln_s
6539 if test "$LN_S" = "ln -s"; then
6540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6541 $as_echo "yes" >&6; }
6542 else
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6544 $as_echo "no, using $LN_S" >&6; }
6545 fi
6546
6547 # find the maximum length of command line arguments
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6549 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6550 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6551   $as_echo_n "(cached) " >&6
6552 else
6553     i=0
6554   teststring="ABCD"
6555
6556   case $build_os in
6557   msdosdjgpp*)
6558     # On DJGPP, this test can blow up pretty badly due to problems in libc
6559     # (any single argument exceeding 2000 bytes causes a buffer overrun
6560     # during glob expansion).  Even if it were fixed, the result of this
6561     # check would be larger than it should be.
6562     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6563     ;;
6564
6565   gnu*)
6566     # Under GNU Hurd, this test is not required because there is
6567     # no limit to the length of command line arguments.
6568     # Libtool will interpret -1 as no limit whatsoever
6569     lt_cv_sys_max_cmd_len=-1;
6570     ;;
6571
6572   cygwin* | mingw* | cegcc*)
6573     # On Win9x/ME, this test blows up -- it succeeds, but takes
6574     # about 5 minutes as the teststring grows exponentially.
6575     # Worse, since 9x/ME are not pre-emptively multitasking,
6576     # you end up with a "frozen" computer, even though with patience
6577     # the test eventually succeeds (with a max line length of 256k).
6578     # Instead, let's just punt: use the minimum linelength reported by
6579     # all of the supported platforms: 8192 (on NT/2K/XP).
6580     lt_cv_sys_max_cmd_len=8192;
6581     ;;
6582
6583   amigaos*)
6584     # On AmigaOS with pdksh, this test takes hours, literally.
6585     # So we just punt and use a minimum line length of 8192.
6586     lt_cv_sys_max_cmd_len=8192;
6587     ;;
6588
6589   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6590     # This has been around since 386BSD, at least.  Likely further.
6591     if test -x /sbin/sysctl; then
6592       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6593     elif test -x /usr/sbin/sysctl; then
6594       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6595     else
6596       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6597     fi
6598     # And add a safety zone
6599     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6600     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6601     ;;
6602
6603   interix*)
6604     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6605     lt_cv_sys_max_cmd_len=196608
6606     ;;
6607
6608   osf*)
6609     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6610     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6611     # nice to cause kernel panics so lets avoid the loop below.
6612     # First set a reasonable default.
6613     lt_cv_sys_max_cmd_len=16384
6614     #
6615     if test -x /sbin/sysconfig; then
6616       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6617         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6618       esac
6619     fi
6620     ;;
6621   sco3.2v5*)
6622     lt_cv_sys_max_cmd_len=102400
6623     ;;
6624   sysv5* | sco5v6* | sysv4.2uw2*)
6625     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6626     if test -n "$kargmax"; then
6627       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6628     else
6629       lt_cv_sys_max_cmd_len=32768
6630     fi
6631     ;;
6632   *)
6633     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6634     if test -n "$lt_cv_sys_max_cmd_len"; then
6635       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6636       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6637     else
6638       # Make teststring a little bigger before we do anything with it.
6639       # a 1K string should be a reasonable start.
6640       for i in 1 2 3 4 5 6 7 8 ; do
6641         teststring=$teststring$teststring
6642       done
6643       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6644       # If test is not a shell built-in, we'll probably end up computing a
6645       # maximum length that is only half of the actual maximum length, but
6646       # we can't tell.
6647       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6648                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6649               test $i != 17 # 1/2 MB should be enough
6650       do
6651         i=`expr $i + 1`
6652         teststring=$teststring$teststring
6653       done
6654       # Only check the string length outside the loop.
6655       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6656       teststring=
6657       # Add a significant safety factor because C++ compilers can tack on
6658       # massive amounts of additional arguments before passing them to the
6659       # linker.  It appears as though 1/2 is a usable value.
6660       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6661     fi
6662     ;;
6663   esac
6664
6665 fi
6666
6667 if test -n $lt_cv_sys_max_cmd_len ; then
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6669 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6670 else
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6672 $as_echo "none" >&6; }
6673 fi
6674 max_cmd_len=$lt_cv_sys_max_cmd_len
6675
6676
6677
6678
6679
6680
6681 : ${CP="cp -f"}
6682 : ${MV="mv -f"}
6683 : ${RM="rm -f"}
6684
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6686 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6687 # Try some XSI features
6688 xsi_shell=no
6689 ( _lt_dummy="a/b/c"
6690   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6691       = c,a/b,, \
6692     && eval 'test $(( 1 + 1 )) -eq 2 \
6693     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6694   && xsi_shell=yes
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6696 $as_echo "$xsi_shell" >&6; }
6697
6698
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6700 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6701 lt_shell_append=no
6702 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6703     >/dev/null 2>&1 \
6704   && lt_shell_append=yes
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6706 $as_echo "$lt_shell_append" >&6; }
6707
6708
6709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6710   lt_unset=unset
6711 else
6712   lt_unset=false
6713 fi
6714
6715
6716
6717
6718
6719 # test EBCDIC or ASCII
6720 case `echo X|tr X '\101'` in
6721  A) # ASCII based system
6722     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6723   lt_SP2NL='tr \040 \012'
6724   lt_NL2SP='tr \015\012 \040\040'
6725   ;;
6726  *) # EBCDIC based system
6727   lt_SP2NL='tr \100 \n'
6728   lt_NL2SP='tr \r\n \100\100'
6729   ;;
6730 esac
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6741 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6742 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6743   $as_echo_n "(cached) " >&6
6744 else
6745   lt_cv_ld_reload_flag='-r'
6746 fi
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6748 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6749 reload_flag=$lt_cv_ld_reload_flag
6750 case $reload_flag in
6751 "" | " "*) ;;
6752 *) reload_flag=" $reload_flag" ;;
6753 esac
6754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6755 case $host_os in
6756   darwin*)
6757     if test "$GCC" = yes; then
6758       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6759     else
6760       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6761     fi
6762     ;;
6763 esac
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773 if test -n "$ac_tool_prefix"; then
6774   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6779   $as_echo_n "(cached) " >&6
6780 else
6781   if test -n "$OBJDUMP"; then
6782   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789     for ac_exec_ext in '' $ac_executable_extensions; do
6790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796   done
6797 IFS=$as_save_IFS
6798
6799 fi
6800 fi
6801 OBJDUMP=$ac_cv_prog_OBJDUMP
6802 if test -n "$OBJDUMP"; then
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6804 $as_echo "$OBJDUMP" >&6; }
6805 else
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809
6810
6811 fi
6812 if test -z "$ac_cv_prog_OBJDUMP"; then
6813   ac_ct_OBJDUMP=$OBJDUMP
6814   # Extract the first word of "objdump", so it can be a program name with args.
6815 set dummy objdump; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6819   $as_echo_n "(cached) " >&6
6820 else
6821   if test -n "$ac_ct_OBJDUMP"; then
6822   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829     for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836   done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6842 if test -n "$ac_ct_OBJDUMP"; then
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6844 $as_echo "$ac_ct_OBJDUMP" >&6; }
6845 else
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6848 fi
6849
6850   if test "x$ac_ct_OBJDUMP" = x; then
6851     OBJDUMP="false"
6852   else
6853     case $cross_compiling:$ac_tool_warned in
6854 yes:)
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857 ac_tool_warned=yes ;;
6858 esac
6859     OBJDUMP=$ac_ct_OBJDUMP
6860   fi
6861 else
6862   OBJDUMP="$ac_cv_prog_OBJDUMP"
6863 fi
6864
6865 test -z "$OBJDUMP" && OBJDUMP=objdump
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6876 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6877 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6878   $as_echo_n "(cached) " >&6
6879 else
6880   lt_cv_file_magic_cmd='$MAGIC_CMD'
6881 lt_cv_file_magic_test_file=
6882 lt_cv_deplibs_check_method='unknown'
6883 # Need to set the preceding variable on all platforms that support
6884 # interlibrary dependencies.
6885 # 'none' -- dependencies not supported.
6886 # `unknown' -- same as none, but documents that we really don't know.
6887 # 'pass_all' -- all dependencies passed with no checks.
6888 # 'test_compile' -- check by making test program.
6889 # 'file_magic [[regex]]' -- check by looking for files in library path
6890 # which responds to the $file_magic_cmd with a given extended regex.
6891 # If you have `file' or equivalent on your system and you're not sure
6892 # whether `pass_all' will *always* work, you probably want this one.
6893
6894 case $host_os in
6895 aix[4-9]*)
6896   lt_cv_deplibs_check_method=pass_all
6897   ;;
6898
6899 beos*)
6900   lt_cv_deplibs_check_method=pass_all
6901   ;;
6902
6903 bsdi[45]*)
6904   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6905   lt_cv_file_magic_cmd='/usr/bin/file -L'
6906   lt_cv_file_magic_test_file=/shlib/libc.so
6907   ;;
6908
6909 cygwin*)
6910   # func_win32_libid is a shell function defined in ltmain.sh
6911   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6912   lt_cv_file_magic_cmd='func_win32_libid'
6913   ;;
6914
6915 mingw* | pw32*)
6916   # Base MSYS/MinGW do not provide the 'file' command needed by
6917   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6918   # unless we find 'file', for example because we are cross-compiling.
6919   if ( file / ) >/dev/null 2>&1; then
6920     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6921     lt_cv_file_magic_cmd='func_win32_libid'
6922   else
6923     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6924     lt_cv_file_magic_cmd='$OBJDUMP -f'
6925   fi
6926   ;;
6927
6928 cegcc)
6929   # use the weaker test based on 'objdump'. See mingw*.
6930   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6931   lt_cv_file_magic_cmd='$OBJDUMP -f'
6932   ;;
6933
6934 darwin* | rhapsody*)
6935   lt_cv_deplibs_check_method=pass_all
6936   ;;
6937
6938 freebsd* | dragonfly*)
6939   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6940     case $host_cpu in
6941     i*86 )
6942       # Not sure whether the presence of OpenBSD here was a mistake.
6943       # Let's accept both of them until this is cleared up.
6944       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6945       lt_cv_file_magic_cmd=/usr/bin/file
6946       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6947       ;;
6948     esac
6949   else
6950     lt_cv_deplibs_check_method=pass_all
6951   fi
6952   ;;
6953
6954 gnu*)
6955   lt_cv_deplibs_check_method=pass_all
6956   ;;
6957
6958 hpux10.20* | hpux11*)
6959   lt_cv_file_magic_cmd=/usr/bin/file
6960   case $host_cpu in
6961   ia64*)
6962     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6963     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6964     ;;
6965   hppa*64*)
6966     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]'
6967     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6968     ;;
6969   *)
6970     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6971     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6972     ;;
6973   esac
6974   ;;
6975
6976 interix[3-9]*)
6977   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6978   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6979   ;;
6980
6981 irix5* | irix6* | nonstopux*)
6982   case $LD in
6983   *-32|*"-32 ") libmagic=32-bit;;
6984   *-n32|*"-n32 ") libmagic=N32;;
6985   *-64|*"-64 ") libmagic=64-bit;;
6986   *) libmagic=never-match;;
6987   esac
6988   lt_cv_deplibs_check_method=pass_all
6989   ;;
6990
6991 # This must be Linux ELF.
6992 linux* | k*bsd*-gnu)
6993   lt_cv_deplibs_check_method=pass_all
6994   ;;
6995
6996 netbsd*)
6997   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6998     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6999   else
7000     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7001   fi
7002   ;;
7003
7004 newos6*)
7005   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7006   lt_cv_file_magic_cmd=/usr/bin/file
7007   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7008   ;;
7009
7010 *nto* | *qnx*)
7011   lt_cv_deplibs_check_method=pass_all
7012   ;;
7013
7014 openbsd*)
7015   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7016     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7017   else
7018     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7019   fi
7020   ;;
7021
7022 osf3* | osf4* | osf5*)
7023   lt_cv_deplibs_check_method=pass_all
7024   ;;
7025
7026 rdos*)
7027   lt_cv_deplibs_check_method=pass_all
7028   ;;
7029
7030 solaris*)
7031   lt_cv_deplibs_check_method=pass_all
7032   ;;
7033
7034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7035   lt_cv_deplibs_check_method=pass_all
7036   ;;
7037
7038 sysv4 | sysv4.3*)
7039   case $host_vendor in
7040   motorola)
7041     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]'
7042     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7043     ;;
7044   ncr)
7045     lt_cv_deplibs_check_method=pass_all
7046     ;;
7047   sequent)
7048     lt_cv_file_magic_cmd='/bin/file'
7049     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7050     ;;
7051   sni)
7052     lt_cv_file_magic_cmd='/bin/file'
7053     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7054     lt_cv_file_magic_test_file=/lib/libc.so
7055     ;;
7056   siemens)
7057     lt_cv_deplibs_check_method=pass_all
7058     ;;
7059   pc)
7060     lt_cv_deplibs_check_method=pass_all
7061     ;;
7062   esac
7063   ;;
7064
7065 tpf*)
7066   lt_cv_deplibs_check_method=pass_all
7067   ;;
7068 esac
7069
7070 fi
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7072 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7073 file_magic_cmd=$lt_cv_file_magic_cmd
7074 deplibs_check_method=$lt_cv_deplibs_check_method
7075 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088 if test -n "$ac_tool_prefix"; then
7089   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7090 set dummy ${ac_tool_prefix}ar; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if test "${ac_cv_prog_AR+set}" = set; then :
7094   $as_echo_n "(cached) " >&6
7095 else
7096   if test -n "$AR"; then
7097   ac_cv_prog_AR="$AR" # Let the user override the test.
7098 else
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in $PATH
7101 do
7102   IFS=$as_save_IFS
7103   test -z "$as_dir" && as_dir=.
7104     for ac_exec_ext in '' $ac_executable_extensions; do
7105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7106     ac_cv_prog_AR="${ac_tool_prefix}ar"
7107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108     break 2
7109   fi
7110 done
7111   done
7112 IFS=$as_save_IFS
7113
7114 fi
7115 fi
7116 AR=$ac_cv_prog_AR
7117 if test -n "$AR"; then
7118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7119 $as_echo "$AR" >&6; }
7120 else
7121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7123 fi
7124
7125
7126 fi
7127 if test -z "$ac_cv_prog_AR"; then
7128   ac_ct_AR=$AR
7129   # Extract the first word of "ar", so it can be a program name with args.
7130 set dummy ar; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7134   $as_echo_n "(cached) " >&6
7135 else
7136   if test -n "$ac_ct_AR"; then
7137   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142   IFS=$as_save_IFS
7143   test -z "$as_dir" && as_dir=.
7144     for ac_exec_ext in '' $ac_executable_extensions; do
7145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7146     ac_cv_prog_ac_ct_AR="ar"
7147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148     break 2
7149   fi
7150 done
7151   done
7152 IFS=$as_save_IFS
7153
7154 fi
7155 fi
7156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7157 if test -n "$ac_ct_AR"; then
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7159 $as_echo "$ac_ct_AR" >&6; }
7160 else
7161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7163 fi
7164
7165   if test "x$ac_ct_AR" = x; then
7166     AR="false"
7167   else
7168     case $cross_compiling:$ac_tool_warned in
7169 yes:)
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7172 ac_tool_warned=yes ;;
7173 esac
7174     AR=$ac_ct_AR
7175   fi
7176 else
7177   AR="$ac_cv_prog_AR"
7178 fi
7179
7180 test -z "$AR" && AR=ar
7181 test -z "$AR_FLAGS" && AR_FLAGS=cru
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 if test -n "$ac_tool_prefix"; then
7194   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}strip; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if test "${ac_cv_prog_STRIP+set}" = set; then :
7199   $as_echo_n "(cached) " >&6
7200 else
7201   if test -n "$STRIP"; then
7202   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207   IFS=$as_save_IFS
7208   test -z "$as_dir" && as_dir=.
7209     for ac_exec_ext in '' $ac_executable_extensions; do
7210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213     break 2
7214   fi
7215 done
7216   done
7217 IFS=$as_save_IFS
7218
7219 fi
7220 fi
7221 STRIP=$ac_cv_prog_STRIP
7222 if test -n "$STRIP"; then
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7224 $as_echo "$STRIP" >&6; }
7225 else
7226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7228 fi
7229
7230
7231 fi
7232 if test -z "$ac_cv_prog_STRIP"; then
7233   ac_ct_STRIP=$STRIP
7234   # Extract the first word of "strip", so it can be a program name with args.
7235 set dummy strip; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7239   $as_echo_n "(cached) " >&6
7240 else
7241   if test -n "$ac_ct_STRIP"; then
7242   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247   IFS=$as_save_IFS
7248   test -z "$as_dir" && as_dir=.
7249     for ac_exec_ext in '' $ac_executable_extensions; do
7250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251     ac_cv_prog_ac_ct_STRIP="strip"
7252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253     break 2
7254   fi
7255 done
7256   done
7257 IFS=$as_save_IFS
7258
7259 fi
7260 fi
7261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7262 if test -n "$ac_ct_STRIP"; then
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7264 $as_echo "$ac_ct_STRIP" >&6; }
7265 else
7266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7268 fi
7269
7270   if test "x$ac_ct_STRIP" = x; then
7271     STRIP=":"
7272   else
7273     case $cross_compiling:$ac_tool_warned in
7274 yes:)
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279     STRIP=$ac_ct_STRIP
7280   fi
7281 else
7282   STRIP="$ac_cv_prog_STRIP"
7283 fi
7284
7285 test -z "$STRIP" && STRIP=:
7286
7287
7288
7289
7290
7291
7292 if test -n "$ac_tool_prefix"; then
7293   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7298   $as_echo_n "(cached) " >&6
7299 else
7300   if test -n "$RANLIB"; then
7301   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308     for ac_exec_ext in '' $ac_executable_extensions; do
7309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312     break 2
7313   fi
7314 done
7315   done
7316 IFS=$as_save_IFS
7317
7318 fi
7319 fi
7320 RANLIB=$ac_cv_prog_RANLIB
7321 if test -n "$RANLIB"; then
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7323 $as_echo "$RANLIB" >&6; }
7324 else
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 fi
7328
7329
7330 fi
7331 if test -z "$ac_cv_prog_RANLIB"; then
7332   ac_ct_RANLIB=$RANLIB
7333   # Extract the first word of "ranlib", so it can be a program name with args.
7334 set dummy ranlib; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   if test -n "$ac_ct_RANLIB"; then
7341   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348     for ac_exec_ext in '' $ac_executable_extensions; do
7349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350     ac_cv_prog_ac_ct_RANLIB="ranlib"
7351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355   done
7356 IFS=$as_save_IFS
7357
7358 fi
7359 fi
7360 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7361 if test -n "$ac_ct_RANLIB"; then
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7363 $as_echo "$ac_ct_RANLIB" >&6; }
7364 else
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 fi
7368
7369   if test "x$ac_ct_RANLIB" = x; then
7370     RANLIB=":"
7371   else
7372     case $cross_compiling:$ac_tool_warned in
7373 yes:)
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned=yes ;;
7377 esac
7378     RANLIB=$ac_ct_RANLIB
7379   fi
7380 else
7381   RANLIB="$ac_cv_prog_RANLIB"
7382 fi
7383
7384 test -z "$RANLIB" && RANLIB=:
7385
7386
7387
7388
7389
7390
7391 # Determine commands to create old-style static archives.
7392 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7393 old_postinstall_cmds='chmod 644 $oldlib'
7394 old_postuninstall_cmds=
7395
7396 if test -n "$RANLIB"; then
7397   case $host_os in
7398   openbsd*)
7399     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7400     ;;
7401   *)
7402     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7403     ;;
7404   esac
7405   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7406 fi
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441 # If no C compiler was specified, use CC.
7442 LTCC=${LTCC-"$CC"}
7443
7444 # If no C compiler flags were specified, use CFLAGS.
7445 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7446
7447 # Allow CC to be a program name with arguments.
7448 compiler=$CC
7449
7450
7451 # Check for command to grab the raw symbol name followed by C symbol from nm.
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7453 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7454 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7455   $as_echo_n "(cached) " >&6
7456 else
7457
7458 # These are sane defaults that work on at least a few old systems.
7459 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7460
7461 # Character class describing NM global symbol codes.
7462 symcode='[BCDEGRST]'
7463
7464 # Regexp to match symbols that can be accessed directly from C.
7465 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7466
7467 # Define system-specific variables.
7468 case $host_os in
7469 aix*)
7470   symcode='[BCDT]'
7471   ;;
7472 cygwin* | mingw* | pw32* | cegcc*)
7473   symcode='[ABCDGISTW]'
7474   ;;
7475 hpux*)
7476   if test "$host_cpu" = ia64; then
7477     symcode='[ABCDEGRST]'
7478   fi
7479   ;;
7480 irix* | nonstopux*)
7481   symcode='[BCDEGRST]'
7482   ;;
7483 osf*)
7484   symcode='[BCDEGQRST]'
7485   ;;
7486 solaris*)
7487   symcode='[BDRT]'
7488   ;;
7489 sco3.2v5*)
7490   symcode='[DT]'
7491   ;;
7492 sysv4.2uw2*)
7493   symcode='[DT]'
7494   ;;
7495 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7496   symcode='[ABDT]'
7497   ;;
7498 sysv4)
7499   symcode='[DFNSTU]'
7500   ;;
7501 esac
7502
7503 # If we're using GNU nm, then use its standard symbol codes.
7504 case `$NM -V 2>&1` in
7505 *GNU* | *'with BFD'*)
7506   symcode='[ABCDGIRSTW]' ;;
7507 esac
7508
7509 # Transform an extracted symbol line into a proper C declaration.
7510 # Some systems (esp. on ia64) link data and code symbols differently,
7511 # so use this general approach.
7512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7513
7514 # Transform an extracted symbol line into symbol name and symbol address
7515 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7516 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'"
7517
7518 # Handle CRLF in mingw tool chain
7519 opt_cr=
7520 case $build_os in
7521 mingw*)
7522   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7523   ;;
7524 esac
7525
7526 # Try without a prefix underscore, then with it.
7527 for ac_symprfx in "" "_"; do
7528
7529   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7530   symxfrm="\\1 $ac_symprfx\\2 \\2"
7531
7532   # Write the raw and C identifiers.
7533   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7534     # Fake it for dumpbin and say T for any non-static function
7535     # and D for any global variable.
7536     # Also find C++ and __fastcall symbols from MSVC++,
7537     # which start with @ or ?.
7538     lt_cv_sys_global_symbol_pipe="$AWK '"\
7539 "     {last_section=section; section=\$ 3};"\
7540 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7541 "     \$ 0!~/External *\|/{next};"\
7542 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7543 "     {if(hide[section]) next};"\
7544 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7545 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7546 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7547 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7548 "     ' prfx=^$ac_symprfx"
7549   else
7550     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7551   fi
7552
7553   # Check to see that the pipe works correctly.
7554   pipe_works=no
7555
7556   rm -f conftest*
7557   cat > conftest.$ac_ext <<_LT_EOF
7558 #ifdef __cplusplus
7559 extern "C" {
7560 #endif
7561 char nm_test_var;
7562 void nm_test_func(void);
7563 void nm_test_func(void){}
7564 #ifdef __cplusplus
7565 }
7566 #endif
7567 int main(){nm_test_var='a';nm_test_func();return(0);}
7568 _LT_EOF
7569
7570   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7571   (eval $ac_compile) 2>&5
7572   ac_status=$?
7573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7574   test $ac_status = 0; }; then
7575     # Now try to grab the symbols.
7576     nlist=conftest.nm
7577     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7578   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7579   ac_status=$?
7580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7581   test $ac_status = 0; } && test -s "$nlist"; then
7582       # Try sorting and uniquifying the output.
7583       if sort "$nlist" | uniq > "$nlist"T; then
7584         mv -f "$nlist"T "$nlist"
7585       else
7586         rm -f "$nlist"T
7587       fi
7588
7589       # Make sure that we snagged all the symbols we need.
7590       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7591         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7592           cat <<_LT_EOF > conftest.$ac_ext
7593 #ifdef __cplusplus
7594 extern "C" {
7595 #endif
7596
7597 _LT_EOF
7598           # Now generate the symbol file.
7599           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7600
7601           cat <<_LT_EOF >> conftest.$ac_ext
7602
7603 /* The mapping between symbol names and symbols.  */
7604 const struct {
7605   const char *name;
7606   void       *address;
7607 }
7608 lt__PROGRAM__LTX_preloaded_symbols[] =
7609 {
7610   { "@PROGRAM@", (void *) 0 },
7611 _LT_EOF
7612           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7613           cat <<\_LT_EOF >> conftest.$ac_ext
7614   {0, (void *) 0}
7615 };
7616
7617 /* This works around a problem in FreeBSD linker */
7618 #ifdef FREEBSD_WORKAROUND
7619 static const void *lt_preloaded_setup() {
7620   return lt__PROGRAM__LTX_preloaded_symbols;
7621 }
7622 #endif
7623
7624 #ifdef __cplusplus
7625 }
7626 #endif
7627 _LT_EOF
7628           # Now try linking the two files.
7629           mv conftest.$ac_objext conftstm.$ac_objext
7630           lt_save_LIBS="$LIBS"
7631           lt_save_CFLAGS="$CFLAGS"
7632           LIBS="conftstm.$ac_objext"
7633           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7634           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7635   (eval $ac_link) 2>&5
7636   ac_status=$?
7637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7638   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7639             pipe_works=yes
7640           fi
7641           LIBS="$lt_save_LIBS"
7642           CFLAGS="$lt_save_CFLAGS"
7643         else
7644           echo "cannot find nm_test_func in $nlist" >&5
7645         fi
7646       else
7647         echo "cannot find nm_test_var in $nlist" >&5
7648       fi
7649     else
7650       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7651     fi
7652   else
7653     echo "$progname: failed program was:" >&5
7654     cat conftest.$ac_ext >&5
7655   fi
7656   rm -rf conftest* conftst*
7657
7658   # Do not use the global_symbol_pipe unless it works.
7659   if test "$pipe_works" = yes; then
7660     break
7661   else
7662     lt_cv_sys_global_symbol_pipe=
7663   fi
7664 done
7665
7666 fi
7667
7668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7669   lt_cv_sys_global_symbol_to_cdecl=
7670 fi
7671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7673 $as_echo "failed" >&6; }
7674 else
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7676 $as_echo "ok" >&6; }
7677 fi
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700 # Check whether --enable-libtool-lock was given.
7701 if test "${enable_libtool_lock+set}" = set; then :
7702   enableval=$enable_libtool_lock;
7703 fi
7704
7705 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7706
7707 # Some flags need to be propagated to the compiler or linker for good
7708 # libtool support.
7709 case $host in
7710 ia64-*-hpux*)
7711   # Find out which ABI we are using.
7712   echo 'int i;' > conftest.$ac_ext
7713   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7714   (eval $ac_compile) 2>&5
7715   ac_status=$?
7716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7717   test $ac_status = 0; }; then
7718     case `/usr/bin/file conftest.$ac_objext` in
7719       *ELF-32*)
7720         HPUX_IA64_MODE="32"
7721         ;;
7722       *ELF-64*)
7723         HPUX_IA64_MODE="64"
7724         ;;
7725     esac
7726   fi
7727   rm -rf conftest*
7728   ;;
7729 *-*-irix6*)
7730   # Find out which ABI we are using.
7731   echo '#line 7731 "configure"' > conftest.$ac_ext
7732   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7733   (eval $ac_compile) 2>&5
7734   ac_status=$?
7735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7736   test $ac_status = 0; }; then
7737     if test "$lt_cv_prog_gnu_ld" = yes; then
7738       case `/usr/bin/file conftest.$ac_objext` in
7739         *32-bit*)
7740           LD="${LD-ld} -melf32bsmip"
7741           ;;
7742         *N32*)
7743           LD="${LD-ld} -melf32bmipn32"
7744           ;;
7745         *64-bit*)
7746           LD="${LD-ld} -melf64bmip"
7747         ;;
7748       esac
7749     else
7750       case `/usr/bin/file conftest.$ac_objext` in
7751         *32-bit*)
7752           LD="${LD-ld} -32"
7753           ;;
7754         *N32*)
7755           LD="${LD-ld} -n32"
7756           ;;
7757         *64-bit*)
7758           LD="${LD-ld} -64"
7759           ;;
7760       esac
7761     fi
7762   fi
7763   rm -rf conftest*
7764   ;;
7765
7766 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7767 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7768   # Find out which ABI we are using.
7769   echo 'int i;' > conftest.$ac_ext
7770   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7771   (eval $ac_compile) 2>&5
7772   ac_status=$?
7773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7774   test $ac_status = 0; }; then
7775     case `/usr/bin/file conftest.o` in
7776       *32-bit*)
7777         case $host in
7778           x86_64-*kfreebsd*-gnu)
7779             LD="${LD-ld} -m elf_i386_fbsd"
7780             ;;
7781           x86_64-*linux*)
7782             LD="${LD-ld} -m elf_i386"
7783             ;;
7784           ppc64-*linux*|powerpc64-*linux*)
7785             LD="${LD-ld} -m elf32ppclinux"
7786             ;;
7787           s390x-*linux*)
7788             LD="${LD-ld} -m elf_s390"
7789             ;;
7790           sparc64-*linux*)
7791             LD="${LD-ld} -m elf32_sparc"
7792             ;;
7793         esac
7794         ;;
7795       *64-bit*)
7796         case $host in
7797           x86_64-*kfreebsd*-gnu)
7798             LD="${LD-ld} -m elf_x86_64_fbsd"
7799             ;;
7800           x86_64-*linux*)
7801             LD="${LD-ld} -m elf_x86_64"
7802             ;;
7803           ppc*-*linux*|powerpc*-*linux*)
7804             LD="${LD-ld} -m elf64ppc"
7805             ;;
7806           s390*-*linux*|s390*-*tpf*)
7807             LD="${LD-ld} -m elf64_s390"
7808             ;;
7809           sparc*-*linux*)
7810             LD="${LD-ld} -m elf64_sparc"
7811             ;;
7812         esac
7813         ;;
7814     esac
7815   fi
7816   rm -rf conftest*
7817   ;;
7818
7819 *-*-sco3.2v5*)
7820   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7821   SAVE_CFLAGS="$CFLAGS"
7822   CFLAGS="$CFLAGS -belf"
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7824 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7825 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7826   $as_echo_n "(cached) " >&6
7827 else
7828   ac_ext=c
7829 ac_cpp='$CPP $CPPFLAGS'
7830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833
7834      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h.  */
7836
7837 int
7838 main ()
7839 {
7840
7841   ;
7842   return 0;
7843 }
7844 _ACEOF
7845 if ac_fn_c_try_link "$LINENO"; then :
7846   lt_cv_cc_needs_belf=yes
7847 else
7848   lt_cv_cc_needs_belf=no
7849 fi
7850 rm -f core conftest.err conftest.$ac_objext \
7851     conftest$ac_exeext conftest.$ac_ext
7852      ac_ext=c
7853 ac_cpp='$CPP $CPPFLAGS'
7854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7857
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7860 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7861   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7862     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7863     CFLAGS="$SAVE_CFLAGS"
7864   fi
7865   ;;
7866 sparc*-*solaris*)
7867   # Find out which ABI we are using.
7868   echo 'int i;' > conftest.$ac_ext
7869   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7870   (eval $ac_compile) 2>&5
7871   ac_status=$?
7872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873   test $ac_status = 0; }; then
7874     case `/usr/bin/file conftest.o` in
7875     *64-bit*)
7876       case $lt_cv_prog_gnu_ld in
7877       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7878       *)
7879         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7880           LD="${LD-ld} -64"
7881         fi
7882         ;;
7883       esac
7884       ;;
7885     esac
7886   fi
7887   rm -rf conftest*
7888   ;;
7889 esac
7890
7891 need_locks="$enable_libtool_lock"
7892
7893
7894   case $host_os in
7895     rhapsody* | darwin*)
7896     if test -n "$ac_tool_prefix"; then
7897   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7902   $as_echo_n "(cached) " >&6
7903 else
7904   if test -n "$DSYMUTIL"; then
7905   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910   IFS=$as_save_IFS
7911   test -z "$as_dir" && as_dir=.
7912     for ac_exec_ext in '' $ac_executable_extensions; do
7913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7914     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919   done
7920 IFS=$as_save_IFS
7921
7922 fi
7923 fi
7924 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7925 if test -n "$DSYMUTIL"; then
7926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7927 $as_echo "$DSYMUTIL" >&6; }
7928 else
7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7931 fi
7932
7933
7934 fi
7935 if test -z "$ac_cv_prog_DSYMUTIL"; then
7936   ac_ct_DSYMUTIL=$DSYMUTIL
7937   # Extract the first word of "dsymutil", so it can be a program name with args.
7938 set dummy dsymutil; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7942   $as_echo_n "(cached) " >&6
7943 else
7944   if test -n "$ac_ct_DSYMUTIL"; then
7945   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950   IFS=$as_save_IFS
7951   test -z "$as_dir" && as_dir=.
7952     for ac_exec_ext in '' $ac_executable_extensions; do
7953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956     break 2
7957   fi
7958 done
7959   done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7965 if test -n "$ac_ct_DSYMUTIL"; then
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7967 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7968 else
7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973   if test "x$ac_ct_DSYMUTIL" = x; then
7974     DSYMUTIL=":"
7975   else
7976     case $cross_compiling:$ac_tool_warned in
7977 yes:)
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7981 esac
7982     DSYMUTIL=$ac_ct_DSYMUTIL
7983   fi
7984 else
7985   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7986 fi
7987
7988     if test -n "$ac_tool_prefix"; then
7989   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7994   $as_echo_n "(cached) " >&6
7995 else
7996   if test -n "$NMEDIT"; then
7997   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002   IFS=$as_save_IFS
8003   test -z "$as_dir" && as_dir=.
8004     for ac_exec_ext in '' $ac_executable_extensions; do
8005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008     break 2
8009   fi
8010 done
8011   done
8012 IFS=$as_save_IFS
8013
8014 fi
8015 fi
8016 NMEDIT=$ac_cv_prog_NMEDIT
8017 if test -n "$NMEDIT"; then
8018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8019 $as_echo "$NMEDIT" >&6; }
8020 else
8021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8023 fi
8024
8025
8026 fi
8027 if test -z "$ac_cv_prog_NMEDIT"; then
8028   ac_ct_NMEDIT=$NMEDIT
8029   # Extract the first word of "nmedit", so it can be a program name with args.
8030 set dummy nmedit; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8034   $as_echo_n "(cached) " >&6
8035 else
8036   if test -n "$ac_ct_NMEDIT"; then
8037   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042   IFS=$as_save_IFS
8043   test -z "$as_dir" && as_dir=.
8044     for ac_exec_ext in '' $ac_executable_extensions; do
8045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048     break 2
8049   fi
8050 done
8051   done
8052 IFS=$as_save_IFS
8053
8054 fi
8055 fi
8056 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8057 if test -n "$ac_ct_NMEDIT"; then
8058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8059 $as_echo "$ac_ct_NMEDIT" >&6; }
8060 else
8061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063 fi
8064
8065   if test "x$ac_ct_NMEDIT" = x; then
8066     NMEDIT=":"
8067   else
8068     case $cross_compiling:$ac_tool_warned in
8069 yes:)
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8073 esac
8074     NMEDIT=$ac_ct_NMEDIT
8075   fi
8076 else
8077   NMEDIT="$ac_cv_prog_NMEDIT"
8078 fi
8079
8080     if test -n "$ac_tool_prefix"; then
8081   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8082 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if test "${ac_cv_prog_LIPO+set}" = set; then :
8086   $as_echo_n "(cached) " >&6
8087 else
8088   if test -n "$LIPO"; then
8089   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094   IFS=$as_save_IFS
8095   test -z "$as_dir" && as_dir=.
8096     for ac_exec_ext in '' $ac_executable_extensions; do
8097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100     break 2
8101   fi
8102 done
8103   done
8104 IFS=$as_save_IFS
8105
8106 fi
8107 fi
8108 LIPO=$ac_cv_prog_LIPO
8109 if test -n "$LIPO"; then
8110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8111 $as_echo "$LIPO" >&6; }
8112 else
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8115 fi
8116
8117
8118 fi
8119 if test -z "$ac_cv_prog_LIPO"; then
8120   ac_ct_LIPO=$LIPO
8121   # Extract the first word of "lipo", so it can be a program name with args.
8122 set dummy lipo; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8126   $as_echo_n "(cached) " >&6
8127 else
8128   if test -n "$ac_ct_LIPO"; then
8129   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134   IFS=$as_save_IFS
8135   test -z "$as_dir" && as_dir=.
8136     for ac_exec_ext in '' $ac_executable_extensions; do
8137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8138     ac_cv_prog_ac_ct_LIPO="lipo"
8139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140     break 2
8141   fi
8142 done
8143   done
8144 IFS=$as_save_IFS
8145
8146 fi
8147 fi
8148 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8149 if test -n "$ac_ct_LIPO"; then
8150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8151 $as_echo "$ac_ct_LIPO" >&6; }
8152 else
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8155 fi
8156
8157   if test "x$ac_ct_LIPO" = x; then
8158     LIPO=":"
8159   else
8160     case $cross_compiling:$ac_tool_warned in
8161 yes:)
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8165 esac
8166     LIPO=$ac_ct_LIPO
8167   fi
8168 else
8169   LIPO="$ac_cv_prog_LIPO"
8170 fi
8171
8172     if test -n "$ac_tool_prefix"; then
8173   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8174 set dummy ${ac_tool_prefix}otool; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8178   $as_echo_n "(cached) " >&6
8179 else
8180   if test -n "$OTOOL"; then
8181   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8182 else
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 for as_dir in $PATH
8185 do
8186   IFS=$as_save_IFS
8187   test -z "$as_dir" && as_dir=.
8188     for ac_exec_ext in '' $ac_executable_extensions; do
8189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192     break 2
8193   fi
8194 done
8195   done
8196 IFS=$as_save_IFS
8197
8198 fi
8199 fi
8200 OTOOL=$ac_cv_prog_OTOOL
8201 if test -n "$OTOOL"; then
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8203 $as_echo "$OTOOL" >&6; }
8204 else
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8207 fi
8208
8209
8210 fi
8211 if test -z "$ac_cv_prog_OTOOL"; then
8212   ac_ct_OTOOL=$OTOOL
8213   # Extract the first word of "otool", so it can be a program name with args.
8214 set dummy otool; ac_word=$2
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 $as_echo_n "checking for $ac_word... " >&6; }
8217 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8218   $as_echo_n "(cached) " >&6
8219 else
8220   if test -n "$ac_ct_OTOOL"; then
8221   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8222 else
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226   IFS=$as_save_IFS
8227   test -z "$as_dir" && as_dir=.
8228     for ac_exec_ext in '' $ac_executable_extensions; do
8229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8230     ac_cv_prog_ac_ct_OTOOL="otool"
8231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232     break 2
8233   fi
8234 done
8235   done
8236 IFS=$as_save_IFS
8237
8238 fi
8239 fi
8240 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8241 if test -n "$ac_ct_OTOOL"; then
8242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8243 $as_echo "$ac_ct_OTOOL" >&6; }
8244 else
8245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8247 fi
8248
8249   if test "x$ac_ct_OTOOL" = x; then
8250     OTOOL=":"
8251   else
8252     case $cross_compiling:$ac_tool_warned in
8253 yes:)
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8256 ac_tool_warned=yes ;;
8257 esac
8258     OTOOL=$ac_ct_OTOOL
8259   fi
8260 else
8261   OTOOL="$ac_cv_prog_OTOOL"
8262 fi
8263
8264     if test -n "$ac_tool_prefix"; then
8265   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8266 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 $as_echo_n "checking for $ac_word... " >&6; }
8269 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8270   $as_echo_n "(cached) " >&6
8271 else
8272   if test -n "$OTOOL64"; then
8273   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8274 else
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8277 do
8278   IFS=$as_save_IFS
8279   test -z "$as_dir" && as_dir=.
8280     for ac_exec_ext in '' $ac_executable_extensions; do
8281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8284     break 2
8285   fi
8286 done
8287   done
8288 IFS=$as_save_IFS
8289
8290 fi
8291 fi
8292 OTOOL64=$ac_cv_prog_OTOOL64
8293 if test -n "$OTOOL64"; then
8294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8295 $as_echo "$OTOOL64" >&6; }
8296 else
8297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 $as_echo "no" >&6; }
8299 fi
8300
8301
8302 fi
8303 if test -z "$ac_cv_prog_OTOOL64"; then
8304   ac_ct_OTOOL64=$OTOOL64
8305   # Extract the first word of "otool64", so it can be a program name with args.
8306 set dummy otool64; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8310   $as_echo_n "(cached) " >&6
8311 else
8312   if test -n "$ac_ct_OTOOL64"; then
8313   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8314 else
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318   IFS=$as_save_IFS
8319   test -z "$as_dir" && as_dir=.
8320     for ac_exec_ext in '' $ac_executable_extensions; do
8321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8322     ac_cv_prog_ac_ct_OTOOL64="otool64"
8323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8324     break 2
8325   fi
8326 done
8327   done
8328 IFS=$as_save_IFS
8329
8330 fi
8331 fi
8332 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8333 if test -n "$ac_ct_OTOOL64"; then
8334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8335 $as_echo "$ac_ct_OTOOL64" >&6; }
8336 else
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8339 fi
8340
8341   if test "x$ac_ct_OTOOL64" = x; then
8342     OTOOL64=":"
8343   else
8344     case $cross_compiling:$ac_tool_warned in
8345 yes:)
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8348 ac_tool_warned=yes ;;
8349 esac
8350     OTOOL64=$ac_ct_OTOOL64
8351   fi
8352 else
8353   OTOOL64="$ac_cv_prog_OTOOL64"
8354 fi
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8383 $as_echo_n "checking for -single_module linker flag... " >&6; }
8384 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8385   $as_echo_n "(cached) " >&6
8386 else
8387   lt_cv_apple_cc_single_mod=no
8388       if test -z "${LT_MULTI_MODULE}"; then
8389         # By default we will add the -single_module flag. You can override
8390         # by either setting the environment variable LT_MULTI_MODULE
8391         # non-empty at configure time, or by adding -multi_module to the
8392         # link flags.
8393         rm -rf libconftest.dylib*
8394         echo "int foo(void){return 1;}" > conftest.c
8395         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8396 -dynamiclib -Wl,-single_module conftest.c" >&5
8397         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8398           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8399         _lt_result=$?
8400         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8401           lt_cv_apple_cc_single_mod=yes
8402         else
8403           cat conftest.err >&5
8404         fi
8405         rm -rf libconftest.dylib*
8406         rm -f conftest.*
8407       fi
8408 fi
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8410 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8412 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8413 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8414   $as_echo_n "(cached) " >&6
8415 else
8416   lt_cv_ld_exported_symbols_list=no
8417       save_LDFLAGS=$LDFLAGS
8418       echo "_main" > conftest.sym
8419       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8420       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h.  */
8422
8423 int
8424 main ()
8425 {
8426
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 if ac_fn_c_try_link "$LINENO"; then :
8432   lt_cv_ld_exported_symbols_list=yes
8433 else
8434   lt_cv_ld_exported_symbols_list=no
8435 fi
8436 rm -f core conftest.err conftest.$ac_objext \
8437     conftest$ac_exeext conftest.$ac_ext
8438         LDFLAGS="$save_LDFLAGS"
8439
8440 fi
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8442 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8443     case $host_os in
8444     rhapsody* | darwin1.[012])
8445       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8446     darwin1.*)
8447       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8448     darwin*) # darwin 5.x on
8449       # if running on 10.5 or later, the deployment target defaults
8450       # to the OS version, if on x86, and 10.4, the deployment
8451       # target defaults to 10.4. Don't you love it?
8452       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8453         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8454           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8455         10.[012]*)
8456           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8457         10.*)
8458           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8459       esac
8460     ;;
8461   esac
8462     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8463       _lt_dar_single_mod='$single_module'
8464     fi
8465     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8466       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8467     else
8468       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8469     fi
8470     if test "$DSYMUTIL" != ":"; then
8471       _lt_dsymutil='~$DSYMUTIL $lib || :'
8472     else
8473       _lt_dsymutil=
8474     fi
8475     ;;
8476   esac
8477
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8479 $as_echo_n "checking for ANSI C header files... " >&6; }
8480 if test "${ac_cv_header_stdc+set}" = set; then :
8481   $as_echo_n "(cached) " >&6
8482 else
8483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h.  */
8485 #include <stdlib.h>
8486 #include <stdarg.h>
8487 #include <string.h>
8488 #include <float.h>
8489
8490 int
8491 main ()
8492 {
8493
8494   ;
8495   return 0;
8496 }
8497 _ACEOF
8498 if ac_fn_c_try_compile "$LINENO"; then :
8499   ac_cv_header_stdc=yes
8500 else
8501   ac_cv_header_stdc=no
8502 fi
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504
8505 if test $ac_cv_header_stdc = yes; then
8506   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h.  */
8509 #include <string.h>
8510
8511 _ACEOF
8512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8513   $EGREP "memchr" >/dev/null 2>&1; then :
8514
8515 else
8516   ac_cv_header_stdc=no
8517 fi
8518 rm -f conftest*
8519
8520 fi
8521
8522 if test $ac_cv_header_stdc = yes; then
8523   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h.  */
8526 #include <stdlib.h>
8527
8528 _ACEOF
8529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8530   $EGREP "free" >/dev/null 2>&1; then :
8531
8532 else
8533   ac_cv_header_stdc=no
8534 fi
8535 rm -f conftest*
8536
8537 fi
8538
8539 if test $ac_cv_header_stdc = yes; then
8540   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8541   if test "$cross_compiling" = yes; then :
8542   :
8543 else
8544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h.  */
8546 #include <ctype.h>
8547 #include <stdlib.h>
8548 #if ((' ' & 0x0FF) == 0x020)
8549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8551 #else
8552 # define ISLOWER(c) \
8553                    (('a' <= (c) && (c) <= 'i') \
8554                      || ('j' <= (c) && (c) <= 'r') \
8555                      || ('s' <= (c) && (c) <= 'z'))
8556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8557 #endif
8558
8559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8560 int
8561 main ()
8562 {
8563   int i;
8564   for (i = 0; i < 256; i++)
8565     if (XOR (islower (i), ISLOWER (i))
8566         || toupper (i) != TOUPPER (i))
8567       return 2;
8568   return 0;
8569 }
8570 _ACEOF
8571 if ac_fn_c_try_run "$LINENO"; then :
8572
8573 else
8574   ac_cv_header_stdc=no
8575 fi
8576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8577   conftest.$ac_objext conftest.beam conftest.$ac_ext
8578 fi
8579
8580 fi
8581 fi
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8583 $as_echo "$ac_cv_header_stdc" >&6; }
8584 if test $ac_cv_header_stdc = yes; then
8585
8586 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8587
8588 fi
8589
8590 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8591 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8592                   inttypes.h stdint.h unistd.h
8593 do :
8594   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8595 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8596 "
8597 eval as_val=\$$as_ac_Header
8598    if test "x$as_val" = x""yes; then :
8599   cat >>confdefs.h <<_ACEOF
8600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8601 _ACEOF
8602
8603 fi
8604
8605 done
8606
8607
8608 for ac_header in dlfcn.h
8609 do :
8610   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8611 "
8612 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8613   cat >>confdefs.h <<_ACEOF
8614 #define HAVE_DLFCN_H 1
8615 _ACEOF
8616
8617 fi
8618
8619 done
8620
8621
8622
8623 ac_ext=cpp
8624 ac_cpp='$CXXCPP $CPPFLAGS'
8625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8628 if test -z "$CXX"; then
8629   if test -n "$CCC"; then
8630     CXX=$CCC
8631   else
8632     if test -n "$ac_tool_prefix"; then
8633   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8634   do
8635     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if test "${ac_cv_prog_CXX+set}" = set; then :
8640   $as_echo_n "(cached) " >&6
8641 else
8642   if test -n "$CXX"; then
8643   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8644 else
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 for as_dir in $PATH
8647 do
8648   IFS=$as_save_IFS
8649   test -z "$as_dir" && as_dir=.
8650     for ac_exec_ext in '' $ac_executable_extensions; do
8651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8652     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8654     break 2
8655   fi
8656 done
8657   done
8658 IFS=$as_save_IFS
8659
8660 fi
8661 fi
8662 CXX=$ac_cv_prog_CXX
8663 if test -n "$CXX"; then
8664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8665 $as_echo "$CXX" >&6; }
8666 else
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8669 fi
8670
8671
8672     test -n "$CXX" && break
8673   done
8674 fi
8675 if test -z "$CXX"; then
8676   ac_ct_CXX=$CXX
8677   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8678 do
8679   # Extract the first word of "$ac_prog", so it can be a program name with args.
8680 set dummy $ac_prog; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 $as_echo_n "checking for $ac_word... " >&6; }
8683 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8684   $as_echo_n "(cached) " >&6
8685 else
8686   if test -n "$ac_ct_CXX"; then
8687   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8688 else
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 for as_dir in $PATH
8691 do
8692   IFS=$as_save_IFS
8693   test -z "$as_dir" && as_dir=.
8694     for ac_exec_ext in '' $ac_executable_extensions; do
8695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8696     ac_cv_prog_ac_ct_CXX="$ac_prog"
8697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698     break 2
8699   fi
8700 done
8701   done
8702 IFS=$as_save_IFS
8703
8704 fi
8705 fi
8706 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8707 if test -n "$ac_ct_CXX"; then
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8709 $as_echo "$ac_ct_CXX" >&6; }
8710 else
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8713 fi
8714
8715
8716   test -n "$ac_ct_CXX" && break
8717 done
8718
8719   if test "x$ac_ct_CXX" = x; then
8720     CXX="g++"
8721   else
8722     case $cross_compiling:$ac_tool_warned in
8723 yes:)
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8726 ac_tool_warned=yes ;;
8727 esac
8728     CXX=$ac_ct_CXX
8729   fi
8730 fi
8731
8732   fi
8733 fi
8734 # Provide some information about the compiler.
8735 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8736 set X $ac_compile
8737 ac_compiler=$2
8738 for ac_option in --version -v -V -qversion; do
8739   { { ac_try="$ac_compiler $ac_option >&5"
8740 case "(($ac_try" in
8741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742   *) ac_try_echo=$ac_try;;
8743 esac
8744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8745 $as_echo "$ac_try_echo"; } >&5
8746   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8747   ac_status=$?
8748   if test -s conftest.err; then
8749     sed '10a\
8750 ... rest of stderr output deleted ...
8751          10q' conftest.err >conftest.er1
8752     cat conftest.er1 >&5
8753   fi
8754   rm -f conftest.er1 conftest.err
8755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8756   test $ac_status = 0; }
8757 done
8758
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8760 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8761 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8762   $as_echo_n "(cached) " >&6
8763 else
8764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765 /* end confdefs.h.  */
8766
8767 int
8768 main ()
8769 {
8770 #ifndef __GNUC__
8771        choke me
8772 #endif
8773
8774   ;
8775   return 0;
8776 }
8777 _ACEOF
8778 if ac_fn_cxx_try_compile "$LINENO"; then :
8779   ac_compiler_gnu=yes
8780 else
8781   ac_compiler_gnu=no
8782 fi
8783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8785
8786 fi
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8788 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8789 if test $ac_compiler_gnu = yes; then
8790   GXX=yes
8791 else
8792   GXX=
8793 fi
8794 ac_test_CXXFLAGS=${CXXFLAGS+set}
8795 ac_save_CXXFLAGS=$CXXFLAGS
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8797 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8798 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8799   $as_echo_n "(cached) " >&6
8800 else
8801   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8802    ac_cxx_werror_flag=yes
8803    ac_cv_prog_cxx_g=no
8804    CXXFLAGS="-g"
8805    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h.  */
8807
8808 int
8809 main ()
8810 {
8811
8812   ;
8813   return 0;
8814 }
8815 _ACEOF
8816 if ac_fn_cxx_try_compile "$LINENO"; then :
8817   ac_cv_prog_cxx_g=yes
8818 else
8819   CXXFLAGS=""
8820       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821 /* end confdefs.h.  */
8822
8823 int
8824 main ()
8825 {
8826
8827   ;
8828   return 0;
8829 }
8830 _ACEOF
8831 if ac_fn_cxx_try_compile "$LINENO"; then :
8832
8833 else
8834   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8835          CXXFLAGS="-g"
8836          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h.  */
8838
8839 int
8840 main ()
8841 {
8842
8843   ;
8844   return 0;
8845 }
8846 _ACEOF
8847 if ac_fn_cxx_try_compile "$LINENO"; then :
8848   ac_cv_prog_cxx_g=yes
8849 fi
8850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851 fi
8852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8853 fi
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8856 fi
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8858 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8859 if test "$ac_test_CXXFLAGS" = set; then
8860   CXXFLAGS=$ac_save_CXXFLAGS
8861 elif test $ac_cv_prog_cxx_g = yes; then
8862   if test "$GXX" = yes; then
8863     CXXFLAGS="-g -O2"
8864   else
8865     CXXFLAGS="-g"
8866   fi
8867 else
8868   if test "$GXX" = yes; then
8869     CXXFLAGS="-O2"
8870   else
8871     CXXFLAGS=
8872   fi
8873 fi
8874 ac_ext=c
8875 ac_cpp='$CPP $CPPFLAGS'
8876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8879
8880 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8881     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8882     (test "X$CXX" != "Xg++"))) ; then
8883   ac_ext=cpp
8884 ac_cpp='$CXXCPP $CPPFLAGS'
8885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8889 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8890 if test -z "$CXXCPP"; then
8891   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8892   $as_echo_n "(cached) " >&6
8893 else
8894       # Double quotes because CXXCPP needs to be expanded
8895     for CXXCPP in "$CXX -E" "/lib/cpp"
8896     do
8897       ac_preproc_ok=false
8898 for ac_cxx_preproc_warn_flag in '' yes
8899 do
8900   # Use a header file that comes with gcc, so configuring glibc
8901   # with a fresh cross-compiler works.
8902   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8903   # <limits.h> exists even on freestanding compilers.
8904   # On the NeXT, cc -E runs the code through the compiler's parser,
8905   # not just through cpp. "Syntax error" is here to catch this case.
8906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h.  */
8908 #ifdef __STDC__
8909 # include <limits.h>
8910 #else
8911 # include <assert.h>
8912 #endif
8913                      Syntax error
8914 _ACEOF
8915 if ac_fn_cxx_try_cpp "$LINENO"; then :
8916
8917 else
8918   # Broken: fails on valid input.
8919 continue
8920 fi
8921 rm -f conftest.err conftest.$ac_ext
8922
8923   # OK, works on sane cases.  Now check whether nonexistent headers
8924   # can be detected and how.
8925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h.  */
8927 #include <ac_nonexistent.h>
8928 _ACEOF
8929 if ac_fn_cxx_try_cpp "$LINENO"; then :
8930   # Broken: success on invalid input.
8931 continue
8932 else
8933   # Passes both tests.
8934 ac_preproc_ok=:
8935 break
8936 fi
8937 rm -f conftest.err conftest.$ac_ext
8938
8939 done
8940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8941 rm -f conftest.err conftest.$ac_ext
8942 if $ac_preproc_ok; then :
8943   break
8944 fi
8945
8946     done
8947     ac_cv_prog_CXXCPP=$CXXCPP
8948
8949 fi
8950   CXXCPP=$ac_cv_prog_CXXCPP
8951 else
8952   ac_cv_prog_CXXCPP=$CXXCPP
8953 fi
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8955 $as_echo "$CXXCPP" >&6; }
8956 ac_preproc_ok=false
8957 for ac_cxx_preproc_warn_flag in '' yes
8958 do
8959   # Use a header file that comes with gcc, so configuring glibc
8960   # with a fresh cross-compiler works.
8961   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8962   # <limits.h> exists even on freestanding compilers.
8963   # On the NeXT, cc -E runs the code through the compiler's parser,
8964   # not just through cpp. "Syntax error" is here to catch this case.
8965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h.  */
8967 #ifdef __STDC__
8968 # include <limits.h>
8969 #else
8970 # include <assert.h>
8971 #endif
8972                      Syntax error
8973 _ACEOF
8974 if ac_fn_cxx_try_cpp "$LINENO"; then :
8975
8976 else
8977   # Broken: fails on valid input.
8978 continue
8979 fi
8980 rm -f conftest.err conftest.$ac_ext
8981
8982   # OK, works on sane cases.  Now check whether nonexistent headers
8983   # can be detected and how.
8984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h.  */
8986 #include <ac_nonexistent.h>
8987 _ACEOF
8988 if ac_fn_cxx_try_cpp "$LINENO"; then :
8989   # Broken: success on invalid input.
8990 continue
8991 else
8992   # Passes both tests.
8993 ac_preproc_ok=:
8994 break
8995 fi
8996 rm -f conftest.err conftest.$ac_ext
8997
8998 done
8999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9000 rm -f conftest.err conftest.$ac_ext
9001 if $ac_preproc_ok; then :
9002
9003 else
9004   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9006 _lt_caught_CXX_error=yes; }
9007 fi
9008
9009 ac_ext=c
9010 ac_cpp='$CPP $CPPFLAGS'
9011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9014
9015 else
9016   _lt_caught_CXX_error=yes
9017 fi
9018
9019
9020
9021
9022
9023 # Set options
9024 # Check whether --enable-shared was given.
9025 if test "${enable_shared+set}" = set; then :
9026   enableval=$enable_shared; p=${PACKAGE-default}
9027     case $enableval in
9028     yes) enable_shared=yes ;;
9029     no) enable_shared=no ;;
9030     *)
9031       enable_shared=no
9032       # Look at the argument we got.  We use all the common list separators.
9033       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9034       for pkg in $enableval; do
9035         IFS="$lt_save_ifs"
9036         if test "X$pkg" = "X$p"; then
9037           enable_shared=yes
9038         fi
9039       done
9040       IFS="$lt_save_ifs"
9041       ;;
9042     esac
9043 else
9044   enable_shared=yes
9045 fi
9046
9047
9048
9049
9050
9051
9052
9053 # Check whether --enable-static was given.
9054 if test "${enable_static+set}" = set; then :
9055   enableval=$enable_static; p=${PACKAGE-default}
9056     case $enableval in
9057     yes) enable_static=yes ;;
9058     no) enable_static=no ;;
9059     *)
9060      enable_static=no
9061       # Look at the argument we got.  We use all the common list separators.
9062       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9063       for pkg in $enableval; do
9064         IFS="$lt_save_ifs"
9065         if test "X$pkg" = "X$p"; then
9066           enable_static=yes
9067         fi
9068       done
9069       IFS="$lt_save_ifs"
9070       ;;
9071     esac
9072 else
9073   enable_static=no
9074 fi
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085         enable_dlopen=no
9086
9087
9088   enable_win32_dll=no
9089
9090
9091
9092
9093
9094 # Check whether --with-pic was given.
9095 if test "${with_pic+set}" = set; then :
9096   withval=$with_pic; pic_mode="$withval"
9097 else
9098   pic_mode=default
9099 fi
9100
9101
9102 test -z "$pic_mode" && pic_mode=default
9103
9104
9105
9106
9107
9108
9109
9110   # Check whether --enable-fast-install was given.
9111 if test "${enable_fast_install+set}" = set; then :
9112   enableval=$enable_fast_install; p=${PACKAGE-default}
9113     case $enableval in
9114     yes) enable_fast_install=yes ;;
9115     no) enable_fast_install=no ;;
9116     *)
9117       enable_fast_install=no
9118       # Look at the argument we got.  We use all the common list separators.
9119       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9120       for pkg in $enableval; do
9121         IFS="$lt_save_ifs"
9122         if test "X$pkg" = "X$p"; then
9123           enable_fast_install=yes
9124         fi
9125       done
9126       IFS="$lt_save_ifs"
9127       ;;
9128     esac
9129 else
9130   enable_fast_install=yes
9131 fi
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143 # This can be used to rebuild libtool when needed
9144 LIBTOOL_DEPS="$ltmain"
9145
9146 # Always use our own libtool.
9147 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173 test -z "$LN_S" && LN_S="ln -s"
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188 if test -n "${ZSH_VERSION+set}" ; then
9189    setopt NO_GLOB_SUBST
9190 fi
9191
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9193 $as_echo_n "checking for objdir... " >&6; }
9194 if test "${lt_cv_objdir+set}" = set; then :
9195   $as_echo_n "(cached) " >&6
9196 else
9197   rm -f .libs 2>/dev/null
9198 mkdir .libs 2>/dev/null
9199 if test -d .libs; then
9200   lt_cv_objdir=.libs
9201 else
9202   # MS-DOS does not allow filenames that begin with a dot.
9203   lt_cv_objdir=_libs
9204 fi
9205 rmdir .libs 2>/dev/null
9206 fi
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9208 $as_echo "$lt_cv_objdir" >&6; }
9209 objdir=$lt_cv_objdir
9210
9211
9212
9213
9214
9215 cat >>confdefs.h <<_ACEOF
9216 #define LT_OBJDIR "$lt_cv_objdir/"
9217 _ACEOF
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235 case $host_os in
9236 aix3*)
9237   # AIX sometimes has problems with the GCC collect2 program.  For some
9238   # reason, if we set the COLLECT_NAMES environment variable, the problems
9239   # vanish in a puff of smoke.
9240   if test "X${COLLECT_NAMES+set}" != Xset; then
9241     COLLECT_NAMES=
9242     export COLLECT_NAMES
9243   fi
9244   ;;
9245 esac
9246
9247 # Sed substitution that helps us do robust quoting.  It backslashifies
9248 # metacharacters that are still active within double-quoted strings.
9249 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9250
9251 # Same as above, but do not quote variable references.
9252 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9253
9254 # Sed substitution to delay expansion of an escaped shell variable in a
9255 # double_quote_subst'ed string.
9256 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9257
9258 # Sed substitution to delay expansion of an escaped single quote.
9259 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9260
9261 # Sed substitution to avoid accidental globbing in evaled expressions
9262 no_glob_subst='s/\*/\\\*/g'
9263
9264 # Global variables:
9265 ofile=libtool
9266 can_build_shared=yes
9267
9268 # All known linkers require a `.a' archive for static linking (except MSVC,
9269 # which needs '.lib').
9270 libext=a
9271
9272 with_gnu_ld="$lt_cv_prog_gnu_ld"
9273
9274 old_CC="$CC"
9275 old_CFLAGS="$CFLAGS"
9276
9277 # Set sane defaults for various variables
9278 test -z "$CC" && CC=cc
9279 test -z "$LTCC" && LTCC=$CC
9280 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9281 test -z "$LD" && LD=ld
9282 test -z "$ac_objext" && ac_objext=o
9283
9284 for cc_temp in $compiler""; do
9285   case $cc_temp in
9286     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9287     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9288     \-*) ;;
9289     *) break;;
9290   esac
9291 done
9292 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9293
9294
9295 # Only perform the check for file, if the check method requires it
9296 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9297 case $deplibs_check_method in
9298 file_magic*)
9299   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9301 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9302 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9303   $as_echo_n "(cached) " >&6
9304 else
9305   case $MAGIC_CMD in
9306 [\\/*] |  ?:[\\/]*)
9307   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9308   ;;
9309 *)
9310   lt_save_MAGIC_CMD="$MAGIC_CMD"
9311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9312   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9313   for ac_dir in $ac_dummy; do
9314     IFS="$lt_save_ifs"
9315     test -z "$ac_dir" && ac_dir=.
9316     if test -f $ac_dir/${ac_tool_prefix}file; then
9317       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9318       if test -n "$file_magic_test_file"; then
9319         case $deplibs_check_method in
9320         "file_magic "*)
9321           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9322           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9323           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9324             $EGREP "$file_magic_regex" > /dev/null; then
9325             :
9326           else
9327             cat <<_LT_EOF 1>&2
9328
9329 *** Warning: the command libtool uses to detect shared libraries,
9330 *** $file_magic_cmd, produces output that libtool cannot recognize.
9331 *** The result is that libtool may fail to recognize shared libraries
9332 *** as such.  This will affect the creation of libtool libraries that
9333 *** depend on shared libraries, but programs linked with such libtool
9334 *** libraries will work regardless of this problem.  Nevertheless, you
9335 *** may want to report the problem to your system manager and/or to
9336 *** bug-libtool@gnu.org
9337
9338 _LT_EOF
9339           fi ;;
9340         esac
9341       fi
9342       break
9343     fi
9344   done
9345   IFS="$lt_save_ifs"
9346   MAGIC_CMD="$lt_save_MAGIC_CMD"
9347   ;;
9348 esac
9349 fi
9350
9351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9352 if test -n "$MAGIC_CMD"; then
9353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9354 $as_echo "$MAGIC_CMD" >&6; }
9355 else
9356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357 $as_echo "no" >&6; }
9358 fi
9359
9360
9361
9362
9363
9364 if test -z "$lt_cv_path_MAGIC_CMD"; then
9365   if test -n "$ac_tool_prefix"; then
9366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9367 $as_echo_n "checking for file... " >&6; }
9368 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9369   $as_echo_n "(cached) " >&6
9370 else
9371   case $MAGIC_CMD in
9372 [\\/*] |  ?:[\\/]*)
9373   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9374   ;;
9375 *)
9376   lt_save_MAGIC_CMD="$MAGIC_CMD"
9377   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9378   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9379   for ac_dir in $ac_dummy; do
9380     IFS="$lt_save_ifs"
9381     test -z "$ac_dir" && ac_dir=.
9382     if test -f $ac_dir/file; then
9383       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9384       if test -n "$file_magic_test_file"; then
9385         case $deplibs_check_method in
9386         "file_magic "*)
9387           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9388           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9389           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9390             $EGREP "$file_magic_regex" > /dev/null; then
9391             :
9392           else
9393             cat <<_LT_EOF 1>&2
9394
9395 *** Warning: the command libtool uses to detect shared libraries,
9396 *** $file_magic_cmd, produces output that libtool cannot recognize.
9397 *** The result is that libtool may fail to recognize shared libraries
9398 *** as such.  This will affect the creation of libtool libraries that
9399 *** depend on shared libraries, but programs linked with such libtool
9400 *** libraries will work regardless of this problem.  Nevertheless, you
9401 *** may want to report the problem to your system manager and/or to
9402 *** bug-libtool@gnu.org
9403
9404 _LT_EOF
9405           fi ;;
9406         esac
9407       fi
9408       break
9409     fi
9410   done
9411   IFS="$lt_save_ifs"
9412   MAGIC_CMD="$lt_save_MAGIC_CMD"
9413   ;;
9414 esac
9415 fi
9416
9417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9418 if test -n "$MAGIC_CMD"; then
9419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9420 $as_echo "$MAGIC_CMD" >&6; }
9421 else
9422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 $as_echo "no" >&6; }
9424 fi
9425
9426
9427   else
9428     MAGIC_CMD=:
9429   fi
9430 fi
9431
9432   fi
9433   ;;
9434 esac
9435
9436 # Use C for the default configuration in the libtool script
9437
9438 lt_save_CC="$CC"
9439 ac_ext=c
9440 ac_cpp='$CPP $CPPFLAGS'
9441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9444
9445
9446 # Source file extension for C test sources.
9447 ac_ext=c
9448
9449 # Object file extension for compiled C test sources.
9450 objext=o
9451 objext=$objext
9452
9453 # Code to be used in simple compile tests
9454 lt_simple_compile_test_code="int some_variable = 0;"
9455
9456 # Code to be used in simple link tests
9457 lt_simple_link_test_code='int main(){return(0);}'
9458
9459
9460
9461
9462
9463
9464
9465 # If no C compiler was specified, use CC.
9466 LTCC=${LTCC-"$CC"}
9467
9468 # If no C compiler flags were specified, use CFLAGS.
9469 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9470
9471 # Allow CC to be a program name with arguments.
9472 compiler=$CC
9473
9474 # Save the default compiler, since it gets overwritten when the other
9475 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9476 compiler_DEFAULT=$CC
9477
9478 # save warnings/boilerplate of simple test code
9479 ac_outfile=conftest.$ac_objext
9480 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9481 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9482 _lt_compiler_boilerplate=`cat conftest.err`
9483 $RM conftest*
9484
9485 ac_outfile=conftest.$ac_objext
9486 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9487 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9488 _lt_linker_boilerplate=`cat conftest.err`
9489 $RM -r conftest*
9490
9491
9492 ## CAVEAT EMPTOR:
9493 ## There is no encapsulation within the following macros, do not change
9494 ## the running order or otherwise move them around unless you know exactly
9495 ## what you are doing...
9496 if test -n "$compiler"; then
9497
9498 lt_prog_compiler_no_builtin_flag=
9499
9500 if test "$GCC" = yes; then
9501   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9502
9503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9504 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9505 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9506   $as_echo_n "(cached) " >&6
9507 else
9508   lt_cv_prog_compiler_rtti_exceptions=no
9509    ac_outfile=conftest.$ac_objext
9510    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9511    lt_compiler_flag="-fno-rtti -fno-exceptions"
9512    # Insert the option either (1) after the last *FLAGS variable, or
9513    # (2) before a word containing "conftest.", or (3) at the end.
9514    # Note that $ac_compile itself does not contain backslashes and begins
9515    # with a dollar sign (not a hyphen), so the echo should work correctly.
9516    # The option is referenced via a variable to avoid confusing sed.
9517    lt_compile=`echo "$ac_compile" | $SED \
9518    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9519    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9520    -e 's:$: $lt_compiler_flag:'`
9521    (eval echo "\"\$as_me:9521: $lt_compile\"" >&5)
9522    (eval "$lt_compile" 2>conftest.err)
9523    ac_status=$?
9524    cat conftest.err >&5
9525    echo "$as_me:9525: \$? = $ac_status" >&5
9526    if (exit $ac_status) && test -s "$ac_outfile"; then
9527      # The compiler can only warn and ignore the option if not recognized
9528      # So say no if there are warnings other than the usual output.
9529      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9530      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9531      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9532        lt_cv_prog_compiler_rtti_exceptions=yes
9533      fi
9534    fi
9535    $RM conftest*
9536
9537 fi
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9539 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9540
9541 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9542     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9543 else
9544     :
9545 fi
9546
9547 fi
9548
9549
9550
9551
9552
9553
9554   lt_prog_compiler_wl=
9555 lt_prog_compiler_pic=
9556 lt_prog_compiler_static=
9557
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9559 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9560
9561   if test "$GCC" = yes; then
9562     lt_prog_compiler_wl='-Wl,'
9563     lt_prog_compiler_static='-static'
9564
9565     case $host_os in
9566       aix*)
9567       # All AIX code is PIC.
9568       if test "$host_cpu" = ia64; then
9569         # AIX 5 now supports IA64 processor
9570         lt_prog_compiler_static='-Bstatic'
9571       fi
9572       ;;
9573
9574     amigaos*)
9575       case $host_cpu in
9576       powerpc)
9577             # see comment about AmigaOS4 .so support
9578             lt_prog_compiler_pic='-fPIC'
9579         ;;
9580       m68k)
9581             # FIXME: we need at least 68020 code to build shared libraries, but
9582             # adding the `-m68020' flag to GCC prevents building anything better,
9583             # like `-m68040'.
9584             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9585         ;;
9586       esac
9587       ;;
9588
9589     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9590       # PIC is the default for these OSes.
9591       ;;
9592
9593     mingw* | cygwin* | pw32* | os2* | cegcc*)
9594       # This hack is so that the source file can tell whether it is being
9595       # built for inclusion in a dll (and should export symbols for example).
9596       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9597       # (--disable-auto-import) libraries
9598       lt_prog_compiler_pic='-DDLL_EXPORT'
9599       ;;
9600
9601     darwin* | rhapsody*)
9602       # PIC is the default on this platform
9603       # Common symbols not allowed in MH_DYLIB files
9604       lt_prog_compiler_pic='-fno-common'
9605       ;;
9606
9607     hpux*)
9608       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9609       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9610       # sets the default TLS model and affects inlining.
9611       case $host_cpu in
9612       hppa*64*)
9613         # +Z the default
9614         ;;
9615       *)
9616         lt_prog_compiler_pic='-fPIC'
9617         ;;
9618       esac
9619       ;;
9620
9621     interix[3-9]*)
9622       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9623       # Instead, we relocate shared libraries at runtime.
9624       ;;
9625
9626     msdosdjgpp*)
9627       # Just because we use GCC doesn't mean we suddenly get shared libraries
9628       # on systems that don't support them.
9629       lt_prog_compiler_can_build_shared=no
9630       enable_shared=no
9631       ;;
9632
9633     *nto* | *qnx*)
9634       # QNX uses GNU C++, but need to define -shared option too, otherwise
9635       # it will coredump.
9636       lt_prog_compiler_pic='-fPIC -shared'
9637       ;;
9638
9639     sysv4*MP*)
9640       if test -d /usr/nec; then
9641         lt_prog_compiler_pic=-Kconform_pic
9642       fi
9643       ;;
9644
9645     *)
9646       lt_prog_compiler_pic='-fPIC'
9647       ;;
9648     esac
9649   else
9650     # PORTME Check for flag to pass linker flags through the system compiler.
9651     case $host_os in
9652     aix*)
9653       lt_prog_compiler_wl='-Wl,'
9654       if test "$host_cpu" = ia64; then
9655         # AIX 5 now supports IA64 processor
9656         lt_prog_compiler_static='-Bstatic'
9657       else
9658         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9659       fi
9660       ;;
9661
9662     mingw* | cygwin* | pw32* | os2* | cegcc*)
9663       # This hack is so that the source file can tell whether it is being
9664       # built for inclusion in a dll (and should export symbols for example).
9665       lt_prog_compiler_pic='-DDLL_EXPORT'
9666       ;;
9667
9668     hpux9* | hpux10* | hpux11*)
9669       lt_prog_compiler_wl='-Wl,'
9670       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9671       # not for PA HP-UX.
9672       case $host_cpu in
9673       hppa*64*|ia64*)
9674         # +Z the default
9675         ;;
9676       *)
9677         lt_prog_compiler_pic='+Z'
9678         ;;
9679       esac
9680       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9681       lt_prog_compiler_static='${wl}-a ${wl}archive'
9682       ;;
9683
9684     irix5* | irix6* | nonstopux*)
9685       lt_prog_compiler_wl='-Wl,'
9686       # PIC (with -KPIC) is the default.
9687       lt_prog_compiler_static='-non_shared'
9688       ;;
9689
9690     linux* | k*bsd*-gnu)
9691       case $cc_basename in
9692       # old Intel for x86_64 which still supported -KPIC.
9693       ecc*)
9694         lt_prog_compiler_wl='-Wl,'
9695         lt_prog_compiler_pic='-KPIC'
9696         lt_prog_compiler_static='-static'
9697         ;;
9698       # icc used to be incompatible with GCC.
9699       # ICC 10 doesn't accept -KPIC any more.
9700       icc* | ifort*)
9701         lt_prog_compiler_wl='-Wl,'
9702         lt_prog_compiler_pic='-fPIC'
9703         lt_prog_compiler_static='-static'
9704         ;;
9705       # Lahey Fortran 8.1.
9706       lf95*)
9707         lt_prog_compiler_wl='-Wl,'
9708         lt_prog_compiler_pic='--shared'
9709         lt_prog_compiler_static='--static'
9710         ;;
9711       pgcc* | pgf77* | pgf90* | pgf95*)
9712         # Portland Group compilers (*not* the Pentium gcc compiler,
9713         # which looks to be a dead project)
9714         lt_prog_compiler_wl='-Wl,'
9715         lt_prog_compiler_pic='-fpic'
9716         lt_prog_compiler_static='-Bstatic'
9717         ;;
9718       ccc*)
9719         lt_prog_compiler_wl='-Wl,'
9720         # All Alpha code is PIC.
9721         lt_prog_compiler_static='-non_shared'
9722         ;;
9723       xl*)
9724         # IBM XL C 8.0/Fortran 10.1 on PPC
9725         lt_prog_compiler_wl='-Wl,'
9726         lt_prog_compiler_pic='-qpic'
9727         lt_prog_compiler_static='-qstaticlink'
9728         ;;
9729       *)
9730         case `$CC -V 2>&1 | sed 5q` in
9731         *Sun\ C*)
9732           # Sun C 5.9
9733           lt_prog_compiler_pic='-KPIC'
9734           lt_prog_compiler_static='-Bstatic'
9735           lt_prog_compiler_wl='-Wl,'
9736           ;;
9737         *Sun\ F*)
9738           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9739           lt_prog_compiler_pic='-KPIC'
9740           lt_prog_compiler_static='-Bstatic'
9741           lt_prog_compiler_wl=''
9742           ;;
9743         esac
9744         ;;
9745       esac
9746       ;;
9747
9748     newsos6)
9749       lt_prog_compiler_pic='-KPIC'
9750       lt_prog_compiler_static='-Bstatic'
9751       ;;
9752
9753     *nto* | *qnx*)
9754       # QNX uses GNU C++, but need to define -shared option too, otherwise
9755       # it will coredump.
9756       lt_prog_compiler_pic='-fPIC -shared'
9757       ;;
9758
9759     osf3* | osf4* | osf5*)
9760       lt_prog_compiler_wl='-Wl,'
9761       # All OSF/1 code is PIC.
9762       lt_prog_compiler_static='-non_shared'
9763       ;;
9764
9765     rdos*)
9766       lt_prog_compiler_static='-non_shared'
9767       ;;
9768
9769     solaris*)
9770       lt_prog_compiler_pic='-KPIC'
9771       lt_prog_compiler_static='-Bstatic'
9772       case $cc_basename in
9773       f77* | f90* | f95*)
9774         lt_prog_compiler_wl='-Qoption ld ';;
9775       *)
9776         lt_prog_compiler_wl='-Wl,';;
9777       esac
9778       ;;
9779
9780     sunos4*)
9781       lt_prog_compiler_wl='-Qoption ld '
9782       lt_prog_compiler_pic='-PIC'
9783       lt_prog_compiler_static='-Bstatic'
9784       ;;
9785
9786     sysv4 | sysv4.2uw2* | sysv4.3*)
9787       lt_prog_compiler_wl='-Wl,'
9788       lt_prog_compiler_pic='-KPIC'
9789       lt_prog_compiler_static='-Bstatic'
9790       ;;
9791
9792     sysv4*MP*)
9793       if test -d /usr/nec ;then
9794         lt_prog_compiler_pic='-Kconform_pic'
9795         lt_prog_compiler_static='-Bstatic'
9796       fi
9797       ;;
9798
9799     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9800       lt_prog_compiler_wl='-Wl,'
9801       lt_prog_compiler_pic='-KPIC'
9802       lt_prog_compiler_static='-Bstatic'
9803       ;;
9804
9805     unicos*)
9806       lt_prog_compiler_wl='-Wl,'
9807       lt_prog_compiler_can_build_shared=no
9808       ;;
9809
9810     uts4*)
9811       lt_prog_compiler_pic='-pic'
9812       lt_prog_compiler_static='-Bstatic'
9813       ;;
9814
9815     *)
9816       lt_prog_compiler_can_build_shared=no
9817       ;;
9818     esac
9819   fi
9820
9821 case $host_os in
9822   # For platforms which do not support PIC, -DPIC is meaningless:
9823   *djgpp*)
9824     lt_prog_compiler_pic=
9825     ;;
9826   *)
9827     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9828     ;;
9829 esac
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9831 $as_echo "$lt_prog_compiler_pic" >&6; }
9832
9833
9834
9835
9836
9837
9838 #
9839 # Check to make sure the PIC flag actually works.
9840 #
9841 if test -n "$lt_prog_compiler_pic"; then
9842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9843 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9844 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9845   $as_echo_n "(cached) " >&6
9846 else
9847   lt_cv_prog_compiler_pic_works=no
9848    ac_outfile=conftest.$ac_objext
9849    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9850    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9851    # Insert the option either (1) after the last *FLAGS variable, or
9852    # (2) before a word containing "conftest.", or (3) at the end.
9853    # Note that $ac_compile itself does not contain backslashes and begins
9854    # with a dollar sign (not a hyphen), so the echo should work correctly.
9855    # The option is referenced via a variable to avoid confusing sed.
9856    lt_compile=`echo "$ac_compile" | $SED \
9857    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9859    -e 's:$: $lt_compiler_flag:'`
9860    (eval echo "\"\$as_me:9860: $lt_compile\"" >&5)
9861    (eval "$lt_compile" 2>conftest.err)
9862    ac_status=$?
9863    cat conftest.err >&5
9864    echo "$as_me:9864: \$? = $ac_status" >&5
9865    if (exit $ac_status) && test -s "$ac_outfile"; then
9866      # The compiler can only warn and ignore the option if not recognized
9867      # So say no if there are warnings other than the usual output.
9868      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9869      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9870      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9871        lt_cv_prog_compiler_pic_works=yes
9872      fi
9873    fi
9874    $RM conftest*
9875
9876 fi
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9878 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9879
9880 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9881     case $lt_prog_compiler_pic in
9882      "" | " "*) ;;
9883      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9884      esac
9885 else
9886     lt_prog_compiler_pic=
9887      lt_prog_compiler_can_build_shared=no
9888 fi
9889
9890 fi
9891
9892
9893
9894
9895
9896
9897 #
9898 # Check to make sure the static flag actually works.
9899 #
9900 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9902 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9903 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9904   $as_echo_n "(cached) " >&6
9905 else
9906   lt_cv_prog_compiler_static_works=no
9907    save_LDFLAGS="$LDFLAGS"
9908    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9909    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9910    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9911      # The linker can only warn and ignore the option if not recognized
9912      # So say no if there are warnings
9913      if test -s conftest.err; then
9914        # Append any errors to the config.log.
9915        cat conftest.err 1>&5
9916        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9917        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9918        if diff conftest.exp conftest.er2 >/dev/null; then
9919          lt_cv_prog_compiler_static_works=yes
9920        fi
9921      else
9922        lt_cv_prog_compiler_static_works=yes
9923      fi
9924    fi
9925    $RM -r conftest*
9926    LDFLAGS="$save_LDFLAGS"
9927
9928 fi
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9930 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9931
9932 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9933     :
9934 else
9935     lt_prog_compiler_static=
9936 fi
9937
9938
9939
9940
9941
9942
9943
9944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9946 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9947   $as_echo_n "(cached) " >&6
9948 else
9949   lt_cv_prog_compiler_c_o=no
9950    $RM -r conftest 2>/dev/null
9951    mkdir conftest
9952    cd conftest
9953    mkdir out
9954    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9955
9956    lt_compiler_flag="-o out/conftest2.$ac_objext"
9957    # Insert the option either (1) after the last *FLAGS variable, or
9958    # (2) before a word containing "conftest.", or (3) at the end.
9959    # Note that $ac_compile itself does not contain backslashes and begins
9960    # with a dollar sign (not a hyphen), so the echo should work correctly.
9961    lt_compile=`echo "$ac_compile" | $SED \
9962    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9963    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9964    -e 's:$: $lt_compiler_flag:'`
9965    (eval echo "\"\$as_me:9965: $lt_compile\"" >&5)
9966    (eval "$lt_compile" 2>out/conftest.err)
9967    ac_status=$?
9968    cat out/conftest.err >&5
9969    echo "$as_me:9969: \$? = $ac_status" >&5
9970    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9971    then
9972      # The compiler can only warn and ignore the option if not recognized
9973      # So say no if there are warnings
9974      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9975      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9976      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9977        lt_cv_prog_compiler_c_o=yes
9978      fi
9979    fi
9980    chmod u+w . 2>&5
9981    $RM conftest*
9982    # SGI C++ compiler will create directory out/ii_files/ for
9983    # template instantiation
9984    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9985    $RM out/* && rmdir out
9986    cd ..
9987    $RM -r conftest
9988    $RM conftest*
9989
9990 fi
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9992 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9993
9994
9995
9996
9997
9998
9999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10000 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10001 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10002   $as_echo_n "(cached) " >&6
10003 else
10004   lt_cv_prog_compiler_c_o=no
10005    $RM -r conftest 2>/dev/null
10006    mkdir conftest
10007    cd conftest
10008    mkdir out
10009    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10010
10011    lt_compiler_flag="-o out/conftest2.$ac_objext"
10012    # Insert the option either (1) after the last *FLAGS variable, or
10013    # (2) before a word containing "conftest.", or (3) at the end.
10014    # Note that $ac_compile itself does not contain backslashes and begins
10015    # with a dollar sign (not a hyphen), so the echo should work correctly.
10016    lt_compile=`echo "$ac_compile" | $SED \
10017    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10018    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10019    -e 's:$: $lt_compiler_flag:'`
10020    (eval echo "\"\$as_me:10020: $lt_compile\"" >&5)
10021    (eval "$lt_compile" 2>out/conftest.err)
10022    ac_status=$?
10023    cat out/conftest.err >&5
10024    echo "$as_me:10024: \$? = $ac_status" >&5
10025    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10026    then
10027      # The compiler can only warn and ignore the option if not recognized
10028      # So say no if there are warnings
10029      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10030      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10031      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10032        lt_cv_prog_compiler_c_o=yes
10033      fi
10034    fi
10035    chmod u+w . 2>&5
10036    $RM conftest*
10037    # SGI C++ compiler will create directory out/ii_files/ for
10038    # template instantiation
10039    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10040    $RM out/* && rmdir out
10041    cd ..
10042    $RM -r conftest
10043    $RM conftest*
10044
10045 fi
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10047 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10048
10049
10050
10051
10052 hard_links="nottested"
10053 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10054   # do not overwrite the value of need_locks provided by the user
10055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10056 $as_echo_n "checking if we can lock with hard links... " >&6; }
10057   hard_links=yes
10058   $RM conftest*
10059   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10060   touch conftest.a
10061   ln conftest.a conftest.b 2>&5 || hard_links=no
10062   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10064 $as_echo "$hard_links" >&6; }
10065   if test "$hard_links" = no; then
10066     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10067 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10068     need_locks=warn
10069   fi
10070 else
10071   need_locks=no
10072 fi
10073
10074
10075
10076
10077
10078
10079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10080 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10081
10082   runpath_var=
10083   allow_undefined_flag=
10084   always_export_symbols=no
10085   archive_cmds=
10086   archive_expsym_cmds=
10087   compiler_needs_object=no
10088   enable_shared_with_static_runtimes=no
10089   export_dynamic_flag_spec=
10090   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10091   hardcode_automatic=no
10092   hardcode_direct=no
10093   hardcode_direct_absolute=no
10094   hardcode_libdir_flag_spec=
10095   hardcode_libdir_flag_spec_ld=
10096   hardcode_libdir_separator=
10097   hardcode_minus_L=no
10098   hardcode_shlibpath_var=unsupported
10099   inherit_rpath=no
10100   link_all_deplibs=unknown
10101   module_cmds=
10102   module_expsym_cmds=
10103   old_archive_from_new_cmds=
10104   old_archive_from_expsyms_cmds=
10105   thread_safe_flag_spec=
10106   whole_archive_flag_spec=
10107   # include_expsyms should be a list of space-separated symbols to be *always*
10108   # included in the symbol list
10109   include_expsyms=
10110   # exclude_expsyms can be an extended regexp of symbols to exclude
10111   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10112   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10113   # as well as any symbol that contains `d'.
10114   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10115   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10116   # platforms (ab)use it in PIC code, but their linkers get confused if
10117   # the symbol is explicitly referenced.  Since portable code cannot
10118   # rely on this symbol name, it's probably fine to never include it in
10119   # preloaded symbol tables.
10120   # Exclude shared library initialization/finalization symbols.
10121   extract_expsyms_cmds=
10122
10123   case $host_os in
10124   cygwin* | mingw* | pw32* | cegcc*)
10125     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10126     # When not using gcc, we currently assume that we are using
10127     # Microsoft Visual C++.
10128     if test "$GCC" != yes; then
10129       with_gnu_ld=no
10130     fi
10131     ;;
10132   interix*)
10133     # we just hope/assume this is gcc and not c89 (= MSVC++)
10134     with_gnu_ld=yes
10135     ;;
10136   openbsd*)
10137     with_gnu_ld=no
10138     ;;
10139   esac
10140
10141   ld_shlibs=yes
10142   if test "$with_gnu_ld" = yes; then
10143     # If archive_cmds runs LD, not CC, wlarc should be empty
10144     wlarc='${wl}'
10145
10146     # Set some defaults for GNU ld with shared library support. These
10147     # are reset later if shared libraries are not supported. Putting them
10148     # here allows them to be overridden if necessary.
10149     runpath_var=LD_RUN_PATH
10150     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10151     export_dynamic_flag_spec='${wl}--export-dynamic'
10152     # ancient GNU ld didn't support --whole-archive et. al.
10153     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10154       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10155     else
10156       whole_archive_flag_spec=
10157     fi
10158     supports_anon_versioning=no
10159     case `$LD -v 2>&1` in
10160       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10161       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10162       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10163       *\ 2.11.*) ;; # other 2.11 versions
10164       *) supports_anon_versioning=yes ;;
10165     esac
10166
10167     # See if GNU ld supports shared libraries.
10168     case $host_os in
10169     aix[3-9]*)
10170       # On AIX/PPC, the GNU linker is very broken
10171       if test "$host_cpu" != ia64; then
10172         ld_shlibs=no
10173         cat <<_LT_EOF 1>&2
10174
10175 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10176 *** to be unable to reliably create shared libraries on AIX.
10177 *** Therefore, libtool is disabling shared libraries support.  If you
10178 *** really care for shared libraries, you may want to modify your PATH
10179 *** so that a non-GNU linker is found, and then restart.
10180
10181 _LT_EOF
10182       fi
10183       ;;
10184
10185     amigaos*)
10186       case $host_cpu in
10187       powerpc)
10188             # see comment about AmigaOS4 .so support
10189             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10190             archive_expsym_cmds=''
10191         ;;
10192       m68k)
10193             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)'
10194             hardcode_libdir_flag_spec='-L$libdir'
10195             hardcode_minus_L=yes
10196         ;;
10197       esac
10198       ;;
10199
10200     beos*)
10201       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10202         allow_undefined_flag=unsupported
10203         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10204         # support --undefined.  This deserves some investigation.  FIXME
10205         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206       else
10207         ld_shlibs=no
10208       fi
10209       ;;
10210
10211     cygwin* | mingw* | pw32* | cegcc*)
10212       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10213       # as there is no search path for DLLs.
10214       hardcode_libdir_flag_spec='-L$libdir'
10215       allow_undefined_flag=unsupported
10216       always_export_symbols=no
10217       enable_shared_with_static_runtimes=yes
10218       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10219
10220       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10221         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10222         # If the export-symbols file already is a .def file (1st line
10223         # is EXPORTS), use it as is; otherwise, prepend...
10224         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10225           cp $export_symbols $output_objdir/$soname.def;
10226         else
10227           echo EXPORTS > $output_objdir/$soname.def;
10228           cat $export_symbols >> $output_objdir/$soname.def;
10229         fi~
10230         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10231       else
10232         ld_shlibs=no
10233       fi
10234       ;;
10235
10236     interix[3-9]*)
10237       hardcode_direct=no
10238       hardcode_shlibpath_var=no
10239       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10240       export_dynamic_flag_spec='${wl}-E'
10241       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10242       # Instead, shared libraries are loaded at an image base (0x10000000 by
10243       # default) and relocated if they conflict, which is a slow very memory
10244       # consuming and fragmenting process.  To avoid this, we pick a random,
10245       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10246       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10247       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10248       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'
10249       ;;
10250
10251     gnu* | linux* | tpf* | k*bsd*-gnu)
10252       tmp_diet=no
10253       if test "$host_os" = linux-dietlibc; then
10254         case $cc_basename in
10255           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10256         esac
10257       fi
10258       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10259          && test "$tmp_diet" = no
10260       then
10261         tmp_addflag=
10262         tmp_sharedflag='-shared'
10263         case $cc_basename,$host_cpu in
10264         pgcc*)                          # Portland Group C compiler
10265           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'
10266           tmp_addflag=' $pic_flag'
10267           ;;
10268         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10269           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'
10270           tmp_addflag=' $pic_flag -Mnomain' ;;
10271         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10272           tmp_addflag=' -i_dynamic' ;;
10273         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10274           tmp_addflag=' -i_dynamic -nofor_main' ;;
10275         ifc* | ifort*)                  # Intel Fortran compiler
10276           tmp_addflag=' -nofor_main' ;;
10277         lf95*)                          # Lahey Fortran 8.1
10278           whole_archive_flag_spec=
10279           tmp_sharedflag='--shared' ;;
10280         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10281           tmp_sharedflag='-qmkshrobj'
10282           tmp_addflag= ;;
10283         esac
10284         case `$CC -V 2>&1 | sed 5q` in
10285         *Sun\ C*)                       # Sun C 5.9
10286           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'
10287           compiler_needs_object=yes
10288           tmp_sharedflag='-G' ;;
10289         *Sun\ F*)                       # Sun Fortran 8.3
10290           tmp_sharedflag='-G' ;;
10291         esac
10292         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10293
10294         if test "x$supports_anon_versioning" = xyes; then
10295           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10296             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10297             echo "local: *; };" >> $output_objdir/$libname.ver~
10298             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10299         fi
10300
10301         case $cc_basename in
10302         xlf*)
10303           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10304           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10305           hardcode_libdir_flag_spec=
10306           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10307           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10308           if test "x$supports_anon_versioning" = xyes; then
10309             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10310               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10311               echo "local: *; };" >> $output_objdir/$libname.ver~
10312               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10313           fi
10314           ;;
10315         esac
10316       else
10317         ld_shlibs=no
10318       fi
10319       ;;
10320
10321     netbsd*)
10322       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10323         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10324         wlarc=
10325       else
10326         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10327         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10328       fi
10329       ;;
10330
10331     solaris*)
10332       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10333         ld_shlibs=no
10334         cat <<_LT_EOF 1>&2
10335
10336 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10337 *** create shared libraries on Solaris systems.  Therefore, libtool
10338 *** is disabling shared libraries support.  We urge you to upgrade GNU
10339 *** binutils to release 2.9.1 or newer.  Another option is to modify
10340 *** your PATH or compiler configuration so that the native linker is
10341 *** used, and then restart.
10342
10343 _LT_EOF
10344       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10345         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10346         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10347       else
10348         ld_shlibs=no
10349       fi
10350       ;;
10351
10352     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10353       case `$LD -v 2>&1` in
10354         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10355         ld_shlibs=no
10356         cat <<_LT_EOF 1>&2
10357
10358 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10359 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10360 *** is disabling shared libraries support.  We urge you to upgrade GNU
10361 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10362 *** your PATH or compiler configuration so that the native linker is
10363 *** used, and then restart.
10364
10365 _LT_EOF
10366         ;;
10367         *)
10368           # For security reasons, it is highly recommended that you always
10369           # use absolute paths for naming shared libraries, and exclude the
10370           # DT_RUNPATH tag from executables and libraries.  But doing so
10371           # requires that you compile everything twice, which is a pain.
10372           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10373             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10374             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10375             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10376           else
10377             ld_shlibs=no
10378           fi
10379         ;;
10380       esac
10381       ;;
10382
10383     sunos4*)
10384       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10385       wlarc=
10386       hardcode_direct=yes
10387       hardcode_shlibpath_var=no
10388       ;;
10389
10390     *)
10391       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10392         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10393         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10394       else
10395         ld_shlibs=no
10396       fi
10397       ;;
10398     esac
10399
10400     if test "$ld_shlibs" = no; then
10401       runpath_var=
10402       hardcode_libdir_flag_spec=
10403       export_dynamic_flag_spec=
10404       whole_archive_flag_spec=
10405     fi
10406   else
10407     # PORTME fill in a description of your system's linker (not GNU ld)
10408     case $host_os in
10409     aix3*)
10410       allow_undefined_flag=unsupported
10411       always_export_symbols=yes
10412       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'
10413       # Note: this linker hardcodes the directories in LIBPATH if there
10414       # are no directories specified by -L.
10415       hardcode_minus_L=yes
10416       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10417         # Neither direct hardcoding nor static linking is supported with a
10418         # broken collect2.
10419         hardcode_direct=unsupported
10420       fi
10421       ;;
10422
10423     aix[4-9]*)
10424       if test "$host_cpu" = ia64; then
10425         # On IA64, the linker does run time linking by default, so we don't
10426         # have to do anything special.
10427         aix_use_runtimelinking=no
10428         exp_sym_flag='-Bexport'
10429         no_entry_flag=""
10430       else
10431         # If we're using GNU nm, then we don't want the "-C" option.
10432         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10433         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10434           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'
10435         else
10436           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'
10437         fi
10438         aix_use_runtimelinking=no
10439
10440         # Test if we are trying to use run time linking or normal
10441         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10442         # need to do runtime linking.
10443         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10444           for ld_flag in $LDFLAGS; do
10445           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10446             aix_use_runtimelinking=yes
10447             break
10448           fi
10449           done
10450           ;;
10451         esac
10452
10453         exp_sym_flag='-bexport'
10454         no_entry_flag='-bnoentry'
10455       fi
10456
10457       # When large executables or shared objects are built, AIX ld can
10458       # have problems creating the table of contents.  If linking a library
10459       # or program results in "error TOC overflow" add -mminimal-toc to
10460       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10461       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10462
10463       archive_cmds=''
10464       hardcode_direct=yes
10465       hardcode_direct_absolute=yes
10466       hardcode_libdir_separator=':'
10467       link_all_deplibs=yes
10468       file_list_spec='${wl}-f,'
10469
10470       if test "$GCC" = yes; then
10471         case $host_os in aix4.[012]|aix4.[012].*)
10472         # We only want to do this on AIX 4.2 and lower, the check
10473         # below for broken collect2 doesn't work under 4.3+
10474           collect2name=`${CC} -print-prog-name=collect2`
10475           if test -f "$collect2name" &&
10476            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10477           then
10478           # We have reworked collect2
10479           :
10480           else
10481           # We have old collect2
10482           hardcode_direct=unsupported
10483           # It fails to find uninstalled libraries when the uninstalled
10484           # path is not listed in the libpath.  Setting hardcode_minus_L
10485           # to unsupported forces relinking
10486           hardcode_minus_L=yes
10487           hardcode_libdir_flag_spec='-L$libdir'
10488           hardcode_libdir_separator=
10489           fi
10490           ;;
10491         esac
10492         shared_flag='-shared'
10493         if test "$aix_use_runtimelinking" = yes; then
10494           shared_flag="$shared_flag "'${wl}-G'
10495         fi
10496       else
10497         # not using gcc
10498         if test "$host_cpu" = ia64; then
10499         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10500         # chokes on -Wl,-G. The following line is correct:
10501           shared_flag='-G'
10502         else
10503           if test "$aix_use_runtimelinking" = yes; then
10504             shared_flag='${wl}-G'
10505           else
10506             shared_flag='${wl}-bM:SRE'
10507           fi
10508         fi
10509       fi
10510
10511       export_dynamic_flag_spec='${wl}-bexpall'
10512       # It seems that -bexpall does not export symbols beginning with
10513       # underscore (_), so it is better to generate a list of symbols to export.
10514       always_export_symbols=yes
10515       if test "$aix_use_runtimelinking" = yes; then
10516         # Warning - without using the other runtime loading flags (-brtl),
10517         # -berok will link without error, but may produce a broken library.
10518         allow_undefined_flag='-berok'
10519         # Determine the default libpath from the value encoded in an
10520         # empty executable.
10521         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h.  */
10523
10524 int
10525 main ()
10526 {
10527
10528   ;
10529   return 0;
10530 }
10531 _ACEOF
10532 if ac_fn_c_try_link "$LINENO"; then :
10533
10534 lt_aix_libpath_sed='
10535     /Import File Strings/,/^$/ {
10536         /^0/ {
10537             s/^0  *\(.*\)$/\1/
10538             p
10539         }
10540     }'
10541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10542 # Check for a 64-bit object if we didn't find anything.
10543 if test -z "$aix_libpath"; then
10544   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 fi
10546 fi
10547 rm -f core conftest.err conftest.$ac_objext \
10548     conftest$ac_exeext conftest.$ac_ext
10549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10550
10551         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10552         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"
10553       else
10554         if test "$host_cpu" = ia64; then
10555           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10556           allow_undefined_flag="-z nodefs"
10557           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"
10558         else
10559          # Determine the default libpath from the value encoded in an
10560          # empty executable.
10561          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h.  */
10563
10564 int
10565 main ()
10566 {
10567
10568   ;
10569   return 0;
10570 }
10571 _ACEOF
10572 if ac_fn_c_try_link "$LINENO"; then :
10573
10574 lt_aix_libpath_sed='
10575     /Import File Strings/,/^$/ {
10576         /^0/ {
10577             s/^0  *\(.*\)$/\1/
10578             p
10579         }
10580     }'
10581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10582 # Check for a 64-bit object if we didn't find anything.
10583 if test -z "$aix_libpath"; then
10584   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10585 fi
10586 fi
10587 rm -f core conftest.err conftest.$ac_objext \
10588     conftest$ac_exeext conftest.$ac_ext
10589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10590
10591          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10592           # Warning - without using the other run time loading flags,
10593           # -berok will link without error, but may produce a broken library.
10594           no_undefined_flag=' ${wl}-bernotok'
10595           allow_undefined_flag=' ${wl}-berok'
10596           # Exported symbols can be pulled into shared objects from archives
10597           whole_archive_flag_spec='$convenience'
10598           archive_cmds_need_lc=yes
10599           # This is similar to how AIX traditionally builds its shared libraries.
10600           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'
10601         fi
10602       fi
10603       ;;
10604
10605     amigaos*)
10606       case $host_cpu in
10607       powerpc)
10608             # see comment about AmigaOS4 .so support
10609             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10610             archive_expsym_cmds=''
10611         ;;
10612       m68k)
10613             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)'
10614             hardcode_libdir_flag_spec='-L$libdir'
10615             hardcode_minus_L=yes
10616         ;;
10617       esac
10618       ;;
10619
10620     bsdi[45]*)
10621       export_dynamic_flag_spec=-rdynamic
10622       ;;
10623
10624     cygwin* | mingw* | pw32* | cegcc*)
10625       # When not using gcc, we currently assume that we are using
10626       # Microsoft Visual C++.
10627       # hardcode_libdir_flag_spec is actually meaningless, as there is
10628       # no search path for DLLs.
10629       hardcode_libdir_flag_spec=' '
10630       allow_undefined_flag=unsupported
10631       # Tell ltmain to make .lib files, not .a files.
10632       libext=lib
10633       # Tell ltmain to make .dll files, not .so files.
10634       shrext_cmds=".dll"
10635       # FIXME: Setting linknames here is a bad hack.
10636       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10637       # The linker will automatically build a .lib file if we build a DLL.
10638       old_archive_from_new_cmds='true'
10639       # FIXME: Should let the user specify the lib program.
10640       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10641       fix_srcfile_path='`cygpath -w "$srcfile"`'
10642       enable_shared_with_static_runtimes=yes
10643       ;;
10644
10645     darwin* | rhapsody*)
10646
10647
10648   archive_cmds_need_lc=no
10649   hardcode_direct=no
10650   hardcode_automatic=yes
10651   hardcode_shlibpath_var=unsupported
10652   whole_archive_flag_spec=''
10653   link_all_deplibs=yes
10654   allow_undefined_flag="$_lt_dar_allow_undefined"
10655   case $cc_basename in
10656      ifort*) _lt_dar_can_shared=yes ;;
10657      *) _lt_dar_can_shared=$GCC ;;
10658   esac
10659   if test "$_lt_dar_can_shared" = "yes"; then
10660     output_verbose_link_cmd=echo
10661     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10662     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10663     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}"
10664     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}"
10665
10666   else
10667   ld_shlibs=no
10668   fi
10669
10670       ;;
10671
10672     dgux*)
10673       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10674       hardcode_libdir_flag_spec='-L$libdir'
10675       hardcode_shlibpath_var=no
10676       ;;
10677
10678     freebsd1*)
10679       ld_shlibs=no
10680       ;;
10681
10682     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10683     # support.  Future versions do this automatically, but an explicit c++rt0.o
10684     # does not break anything, and helps significantly (at the cost of a little
10685     # extra space).
10686     freebsd2.2*)
10687       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10688       hardcode_libdir_flag_spec='-R$libdir'
10689       hardcode_direct=yes
10690       hardcode_shlibpath_var=no
10691       ;;
10692
10693     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10694     freebsd2*)
10695       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10696       hardcode_direct=yes
10697       hardcode_minus_L=yes
10698       hardcode_shlibpath_var=no
10699       ;;
10700
10701     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10702     freebsd* | dragonfly*)
10703       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10704       hardcode_libdir_flag_spec='-R$libdir'
10705       hardcode_direct=yes
10706       hardcode_shlibpath_var=no
10707       ;;
10708
10709     hpux9*)
10710       if test "$GCC" = yes; then
10711         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'
10712       else
10713         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'
10714       fi
10715       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10716       hardcode_libdir_separator=:
10717       hardcode_direct=yes
10718
10719       # hardcode_minus_L: Not really in the search PATH,
10720       # but as the default location of the library.
10721       hardcode_minus_L=yes
10722       export_dynamic_flag_spec='${wl}-E'
10723       ;;
10724
10725     hpux10*)
10726       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10727         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10728       else
10729         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10730       fi
10731       if test "$with_gnu_ld" = no; then
10732         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10733         hardcode_libdir_flag_spec_ld='+b $libdir'
10734         hardcode_libdir_separator=:
10735         hardcode_direct=yes
10736         hardcode_direct_absolute=yes
10737         export_dynamic_flag_spec='${wl}-E'
10738         # hardcode_minus_L: Not really in the search PATH,
10739         # but as the default location of the library.
10740         hardcode_minus_L=yes
10741       fi
10742       ;;
10743
10744     hpux11*)
10745       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10746         case $host_cpu in
10747         hppa*64*)
10748           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10749           ;;
10750         ia64*)
10751           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10752           ;;
10753         *)
10754           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10755           ;;
10756         esac
10757       else
10758         case $host_cpu in
10759         hppa*64*)
10760           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10761           ;;
10762         ia64*)
10763           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10764           ;;
10765         *)
10766           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10767           ;;
10768         esac
10769       fi
10770       if test "$with_gnu_ld" = no; then
10771         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10772         hardcode_libdir_separator=:
10773
10774         case $host_cpu in
10775         hppa*64*|ia64*)
10776           hardcode_direct=no
10777           hardcode_shlibpath_var=no
10778           ;;
10779         *)
10780           hardcode_direct=yes
10781           hardcode_direct_absolute=yes
10782           export_dynamic_flag_spec='${wl}-E'
10783
10784           # hardcode_minus_L: Not really in the search PATH,
10785           # but as the default location of the library.
10786           hardcode_minus_L=yes
10787           ;;
10788         esac
10789       fi
10790       ;;
10791
10792     irix5* | irix6* | nonstopux*)
10793       if test "$GCC" = yes; then
10794         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'
10795         # Try to use the -exported_symbol ld option, if it does not
10796         # work, assume that -exports_file does not work either and
10797         # implicitly export all symbols.
10798         save_LDFLAGS="$LDFLAGS"
10799         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10800         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801 /* end confdefs.h.  */
10802 int foo(void) {}
10803 _ACEOF
10804 if ac_fn_c_try_link "$LINENO"; then :
10805   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'
10806
10807 fi
10808 rm -f core conftest.err conftest.$ac_objext \
10809     conftest$ac_exeext conftest.$ac_ext
10810         LDFLAGS="$save_LDFLAGS"
10811       else
10812         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'
10813         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'
10814       fi
10815       archive_cmds_need_lc='no'
10816       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10817       hardcode_libdir_separator=:
10818       inherit_rpath=yes
10819       link_all_deplibs=yes
10820       ;;
10821
10822     netbsd*)
10823       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10824         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10825       else
10826         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10827       fi
10828       hardcode_libdir_flag_spec='-R$libdir'
10829       hardcode_direct=yes
10830       hardcode_shlibpath_var=no
10831       ;;
10832
10833     newsos6)
10834       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10835       hardcode_direct=yes
10836       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10837       hardcode_libdir_separator=:
10838       hardcode_shlibpath_var=no
10839       ;;
10840
10841     *nto* | *qnx*)
10842       ;;
10843
10844     openbsd*)
10845       if test -f /usr/libexec/ld.so; then
10846         hardcode_direct=yes
10847         hardcode_shlibpath_var=no
10848         hardcode_direct_absolute=yes
10849         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10850           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10851           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10852           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10853           export_dynamic_flag_spec='${wl}-E'
10854         else
10855           case $host_os in
10856            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10857              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10858              hardcode_libdir_flag_spec='-R$libdir'
10859              ;;
10860            *)
10861              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10862              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10863              ;;
10864           esac
10865         fi
10866       else
10867         ld_shlibs=no
10868       fi
10869       ;;
10870
10871     os2*)
10872       hardcode_libdir_flag_spec='-L$libdir'
10873       hardcode_minus_L=yes
10874       allow_undefined_flag=unsupported
10875       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'
10876       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10877       ;;
10878
10879     osf3*)
10880       if test "$GCC" = yes; then
10881         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10882         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'
10883       else
10884         allow_undefined_flag=' -expect_unresolved \*'
10885         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'
10886       fi
10887       archive_cmds_need_lc='no'
10888       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10889       hardcode_libdir_separator=:
10890       ;;
10891
10892     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10893       if test "$GCC" = yes; then
10894         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10895         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'
10896         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10897       else
10898         allow_undefined_flag=' -expect_unresolved \*'
10899         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'
10900         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~
10901         $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'
10902
10903         # Both c and cxx compiler support -rpath directly
10904         hardcode_libdir_flag_spec='-rpath $libdir'
10905       fi
10906       archive_cmds_need_lc='no'
10907       hardcode_libdir_separator=:
10908       ;;
10909
10910     solaris*)
10911       no_undefined_flag=' -z defs'
10912       if test "$GCC" = yes; then
10913         wlarc='${wl}'
10914         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10915         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10916           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10917       else
10918         case `$CC -V 2>&1` in
10919         *"Compilers 5.0"*)
10920           wlarc=''
10921           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10922           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10923           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10924           ;;
10925         *)
10926           wlarc='${wl}'
10927           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10928           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10929           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10930           ;;
10931         esac
10932       fi
10933       hardcode_libdir_flag_spec='-R$libdir'
10934       hardcode_shlibpath_var=no
10935       case $host_os in
10936       solaris2.[0-5] | solaris2.[0-5].*) ;;
10937       *)
10938         # The compiler driver will combine and reorder linker options,
10939         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10940         # but is careful enough not to reorder.
10941         # Supported since Solaris 2.6 (maybe 2.5.1?)
10942         if test "$GCC" = yes; then
10943           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10944         else
10945           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10946         fi
10947         ;;
10948       esac
10949       link_all_deplibs=yes
10950       ;;
10951
10952     sunos4*)
10953       if test "x$host_vendor" = xsequent; then
10954         # Use $CC to link under sequent, because it throws in some extra .o
10955         # files that make .init and .fini sections work.
10956         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10957       else
10958         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10959       fi
10960       hardcode_libdir_flag_spec='-L$libdir'
10961       hardcode_direct=yes
10962       hardcode_minus_L=yes
10963       hardcode_shlibpath_var=no
10964       ;;
10965
10966     sysv4)
10967       case $host_vendor in
10968         sni)
10969           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10970           hardcode_direct=yes # is this really true???
10971         ;;
10972         siemens)
10973           ## LD is ld it makes a PLAMLIB
10974           ## CC just makes a GrossModule.
10975           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10976           reload_cmds='$CC -r -o $output$reload_objs'
10977           hardcode_direct=no
10978         ;;
10979         motorola)
10980           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10982         ;;
10983       esac
10984       runpath_var='LD_RUN_PATH'
10985       hardcode_shlibpath_var=no
10986       ;;
10987
10988     sysv4.3*)
10989       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990       hardcode_shlibpath_var=no
10991       export_dynamic_flag_spec='-Bexport'
10992       ;;
10993
10994     sysv4*MP*)
10995       if test -d /usr/nec; then
10996         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10997         hardcode_shlibpath_var=no
10998         runpath_var=LD_RUN_PATH
10999         hardcode_runpath_var=yes
11000         ld_shlibs=yes
11001       fi
11002       ;;
11003
11004     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11005       no_undefined_flag='${wl}-z,text'
11006       archive_cmds_need_lc=no
11007       hardcode_shlibpath_var=no
11008       runpath_var='LD_RUN_PATH'
11009
11010       if test "$GCC" = yes; then
11011         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11012         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013       else
11014         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11015         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11016       fi
11017       ;;
11018
11019     sysv5* | sco3.2v5* | sco5v6*)
11020       # Note: We can NOT use -z defs as we might desire, because we do not
11021       # link with -lc, and that would cause any symbols used from libc to
11022       # always be unresolved, which means just about no library would
11023       # ever link correctly.  If we're not using GNU ld we use -z text
11024       # though, which does catch some bad symbols but isn't as heavy-handed
11025       # as -z defs.
11026       no_undefined_flag='${wl}-z,text'
11027       allow_undefined_flag='${wl}-z,nodefs'
11028       archive_cmds_need_lc=no
11029       hardcode_shlibpath_var=no
11030       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11031       hardcode_libdir_separator=':'
11032       link_all_deplibs=yes
11033       export_dynamic_flag_spec='${wl}-Bexport'
11034       runpath_var='LD_RUN_PATH'
11035
11036       if test "$GCC" = yes; then
11037         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11039       else
11040         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11042       fi
11043       ;;
11044
11045     uts4*)
11046       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11047       hardcode_libdir_flag_spec='-L$libdir'
11048       hardcode_shlibpath_var=no
11049       ;;
11050
11051     *)
11052       ld_shlibs=no
11053       ;;
11054     esac
11055
11056     if test x$host_vendor = xsni; then
11057       case $host in
11058       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11059         export_dynamic_flag_spec='${wl}-Blargedynsym'
11060         ;;
11061       esac
11062     fi
11063   fi
11064
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11066 $as_echo "$ld_shlibs" >&6; }
11067 test "$ld_shlibs" = no && can_build_shared=no
11068
11069 with_gnu_ld=$with_gnu_ld
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085 #
11086 # Do we need to explicitly link libc?
11087 #
11088 case "x$archive_cmds_need_lc" in
11089 x|xyes)
11090   # Assume -lc should be added
11091   archive_cmds_need_lc=yes
11092
11093   if test "$enable_shared" = yes && test "$GCC" = yes; then
11094     case $archive_cmds in
11095     *'~'*)
11096       # FIXME: we may have to deal with multi-command sequences.
11097       ;;
11098     '$CC '*)
11099       # Test whether the compiler implicitly links with -lc since on some
11100       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11101       # to ld, don't add -lc before -lgcc.
11102       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11103 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11104       $RM conftest*
11105       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11106
11107       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11108   (eval $ac_compile) 2>&5
11109   ac_status=$?
11110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11111   test $ac_status = 0; } 2>conftest.err; then
11112         soname=conftest
11113         lib=conftest
11114         libobjs=conftest.$ac_objext
11115         deplibs=
11116         wl=$lt_prog_compiler_wl
11117         pic_flag=$lt_prog_compiler_pic
11118         compiler_flags=-v
11119         linker_flags=-v
11120         verstring=
11121         output_objdir=.
11122         libname=conftest
11123         lt_save_allow_undefined_flag=$allow_undefined_flag
11124         allow_undefined_flag=
11125         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11126   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11127   ac_status=$?
11128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11129   test $ac_status = 0; }
11130         then
11131           archive_cmds_need_lc=no
11132         else
11133           archive_cmds_need_lc=yes
11134         fi
11135         allow_undefined_flag=$lt_save_allow_undefined_flag
11136       else
11137         cat conftest.err 1>&5
11138       fi
11139       $RM conftest*
11140       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11141 $as_echo "$archive_cmds_need_lc" >&6; }
11142       ;;
11143     esac
11144   fi
11145   ;;
11146 esac
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11305 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11306
11307 if test "$GCC" = yes; then
11308   case $host_os in
11309     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11310     *) lt_awk_arg="/^libraries:/" ;;
11311   esac
11312   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11313   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11314     # if the path contains ";" then we assume it to be the separator
11315     # otherwise default to the standard path separator (i.e. ":") - it is
11316     # assumed that no part of a normal pathname contains ";" but that should
11317     # okay in the real world where ";" in dirpaths is itself problematic.
11318     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11319   else
11320     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11321   fi
11322   # Ok, now we have the path, separated by spaces, we can step through it
11323   # and add multilib dir if necessary.
11324   lt_tmp_lt_search_path_spec=
11325   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11326   for lt_sys_path in $lt_search_path_spec; do
11327     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11328       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11329     else
11330       test -d "$lt_sys_path" && \
11331         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11332     fi
11333   done
11334   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11335 BEGIN {RS=" "; FS="/|\n";} {
11336   lt_foo="";
11337   lt_count=0;
11338   for (lt_i = NF; lt_i > 0; lt_i--) {
11339     if ($lt_i != "" && $lt_i != ".") {
11340       if ($lt_i == "..") {
11341         lt_count++;
11342       } else {
11343         if (lt_count == 0) {
11344           lt_foo="/" $lt_i lt_foo;
11345         } else {
11346           lt_count--;
11347         }
11348       }
11349     }
11350   }
11351   if (lt_foo != "") { lt_freq[lt_foo]++; }
11352   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11353 }'`
11354   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11355 else
11356   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11357 fi
11358 library_names_spec=
11359 libname_spec='lib$name'
11360 soname_spec=
11361 shrext_cmds=".so"
11362 postinstall_cmds=
11363 postuninstall_cmds=
11364 finish_cmds=
11365 finish_eval=
11366 shlibpath_var=
11367 shlibpath_overrides_runpath=unknown
11368 version_type=none
11369 dynamic_linker="$host_os ld.so"
11370 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11371 need_lib_prefix=unknown
11372 hardcode_into_libs=no
11373
11374 # when you set need_version to no, make sure it does not cause -set_version
11375 # flags to be left without arguments
11376 need_version=unknown
11377
11378 case $host_os in
11379 aix3*)
11380   version_type=linux
11381   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11382   shlibpath_var=LIBPATH
11383
11384   # AIX 3 has no versioning support, so we append a major version to the name.
11385   soname_spec='${libname}${release}${shared_ext}$major'
11386   ;;
11387
11388 aix[4-9]*)
11389   version_type=linux
11390   need_lib_prefix=no
11391   need_version=no
11392   hardcode_into_libs=yes
11393   if test "$host_cpu" = ia64; then
11394     # AIX 5 supports IA64
11395     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11396     shlibpath_var=LD_LIBRARY_PATH
11397   else
11398     # With GCC up to 2.95.x, collect2 would create an import file
11399     # for dependence libraries.  The import file would start with
11400     # the line `#! .'.  This would cause the generated library to
11401     # depend on `.', always an invalid library.  This was fixed in
11402     # development snapshots of GCC prior to 3.0.
11403     case $host_os in
11404       aix4 | aix4.[01] | aix4.[01].*)
11405       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11406            echo ' yes '
11407            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11408         :
11409       else
11410         can_build_shared=no
11411       fi
11412       ;;
11413     esac
11414     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11415     # soname into executable. Probably we can add versioning support to
11416     # collect2, so additional links can be useful in future.
11417     if test "$aix_use_runtimelinking" = yes; then
11418       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11419       # instead of lib<name>.a to let people know that these are not
11420       # typical AIX shared libraries.
11421       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422     else
11423       # We preserve .a as extension for shared libraries through AIX4.2
11424       # and later when we are not doing run time linking.
11425       library_names_spec='${libname}${release}.a $libname.a'
11426       soname_spec='${libname}${release}${shared_ext}$major'
11427     fi
11428     shlibpath_var=LIBPATH
11429   fi
11430   ;;
11431
11432 amigaos*)
11433   case $host_cpu in
11434   powerpc)
11435     # Since July 2007 AmigaOS4 officially supports .so libraries.
11436     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438     ;;
11439   m68k)
11440     library_names_spec='$libname.ixlibrary $libname.a'
11441     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11442     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'
11443     ;;
11444   esac
11445   ;;
11446
11447 beos*)
11448   library_names_spec='${libname}${shared_ext}'
11449   dynamic_linker="$host_os ld.so"
11450   shlibpath_var=LIBRARY_PATH
11451   ;;
11452
11453 bsdi[45]*)
11454   version_type=linux
11455   need_version=no
11456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457   soname_spec='${libname}${release}${shared_ext}$major'
11458   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11459   shlibpath_var=LD_LIBRARY_PATH
11460   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11461   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11462   # the default ld.so.conf also contains /usr/contrib/lib and
11463   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11464   # libtool to hard-code these into programs
11465   ;;
11466
11467 cygwin* | mingw* | pw32* | cegcc*)
11468   version_type=windows
11469   shrext_cmds=".dll"
11470   need_version=no
11471   need_lib_prefix=no
11472
11473   case $GCC,$host_os in
11474   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11475     library_names_spec='$libname.dll.a'
11476     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11477     postinstall_cmds='base_file=`basename \${file}`~
11478       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11479       dldir=$destdir/`dirname \$dlpath`~
11480       test -d \$dldir || mkdir -p \$dldir~
11481       $install_prog $dir/$dlname \$dldir/$dlname~
11482       chmod a+x \$dldir/$dlname~
11483       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11484         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11485       fi'
11486     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11487       dlpath=$dir/\$dldll~
11488        $RM \$dlpath'
11489     shlibpath_overrides_runpath=yes
11490
11491     case $host_os in
11492     cygwin*)
11493       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11494       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11495       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11496       ;;
11497     mingw* | cegcc*)
11498       # MinGW DLLs use traditional 'lib' prefix
11499       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11500       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11501       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11502         # It is most probably a Windows format PATH printed by
11503         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11504         # path with ; separators, and with drive letters. We can handle the
11505         # drive letters (cygwin fileutils understands them), so leave them,
11506         # especially as we might pass files found there to a mingw objdump,
11507         # which wouldn't understand a cygwinified path. Ahh.
11508         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11509       else
11510         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11511       fi
11512       ;;
11513     pw32*)
11514       # pw32 DLLs use 'pw' prefix rather than 'lib'
11515       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11516       ;;
11517     esac
11518     ;;
11519
11520   *)
11521     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11522     ;;
11523   esac
11524   dynamic_linker='Win32 ld.exe'
11525   # FIXME: first we should search . and the directory the executable is in
11526   shlibpath_var=PATH
11527   ;;
11528
11529 darwin* | rhapsody*)
11530   dynamic_linker="$host_os dyld"
11531   version_type=darwin
11532   need_lib_prefix=no
11533   need_version=no
11534   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11535   soname_spec='${libname}${release}${major}$shared_ext'
11536   shlibpath_overrides_runpath=yes
11537   shlibpath_var=DYLD_LIBRARY_PATH
11538   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11539
11540   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11541   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11542   ;;
11543
11544 dgux*)
11545   version_type=linux
11546   need_lib_prefix=no
11547   need_version=no
11548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11549   soname_spec='${libname}${release}${shared_ext}$major'
11550   shlibpath_var=LD_LIBRARY_PATH
11551   ;;
11552
11553 freebsd1*)
11554   dynamic_linker=no
11555   ;;
11556
11557 freebsd* | dragonfly*)
11558   # DragonFly does not have aout.  When/if they implement a new
11559   # versioning mechanism, adjust this.
11560   if test -x /usr/bin/objformat; then
11561     objformat=`/usr/bin/objformat`
11562   else
11563     case $host_os in
11564     freebsd[123]*) objformat=aout ;;
11565     *) objformat=elf ;;
11566     esac
11567   fi
11568   version_type=freebsd-$objformat
11569   case $version_type in
11570     freebsd-elf*)
11571       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11572       need_version=no
11573       need_lib_prefix=no
11574       ;;
11575     freebsd-*)
11576       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11577       need_version=yes
11578       ;;
11579   esac
11580   shlibpath_var=LD_LIBRARY_PATH
11581   case $host_os in
11582   freebsd2*)
11583     shlibpath_overrides_runpath=yes
11584     ;;
11585   freebsd3.[01]* | freebsdelf3.[01]*)
11586     shlibpath_overrides_runpath=yes
11587     hardcode_into_libs=yes
11588     ;;
11589   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11590   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11591     shlibpath_overrides_runpath=no
11592     hardcode_into_libs=yes
11593     ;;
11594   *) # from 4.6 on, and DragonFly
11595     shlibpath_overrides_runpath=yes
11596     hardcode_into_libs=yes
11597     ;;
11598   esac
11599   ;;
11600
11601 gnu*)
11602   version_type=linux
11603   need_lib_prefix=no
11604   need_version=no
11605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11606   soname_spec='${libname}${release}${shared_ext}$major'
11607   shlibpath_var=LD_LIBRARY_PATH
11608   hardcode_into_libs=yes
11609   ;;
11610
11611 hpux9* | hpux10* | hpux11*)
11612   # Give a soname corresponding to the major version so that dld.sl refuses to
11613   # link against other versions.
11614   version_type=sunos
11615   need_lib_prefix=no
11616   need_version=no
11617   case $host_cpu in
11618   ia64*)
11619     shrext_cmds='.so'
11620     hardcode_into_libs=yes
11621     dynamic_linker="$host_os dld.so"
11622     shlibpath_var=LD_LIBRARY_PATH
11623     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11625     soname_spec='${libname}${release}${shared_ext}$major'
11626     if test "X$HPUX_IA64_MODE" = X32; then
11627       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11628     else
11629       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11630     fi
11631     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11632     ;;
11633   hppa*64*)
11634     shrext_cmds='.sl'
11635     hardcode_into_libs=yes
11636     dynamic_linker="$host_os dld.sl"
11637     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11638     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11640     soname_spec='${libname}${release}${shared_ext}$major'
11641     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11642     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11643     ;;
11644   *)
11645     shrext_cmds='.sl'
11646     dynamic_linker="$host_os dld.sl"
11647     shlibpath_var=SHLIB_PATH
11648     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11649     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650     soname_spec='${libname}${release}${shared_ext}$major'
11651     ;;
11652   esac
11653   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11654   postinstall_cmds='chmod 555 $lib'
11655   ;;
11656
11657 interix[3-9]*)
11658   version_type=linux
11659   need_lib_prefix=no
11660   need_version=no
11661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11662   soname_spec='${libname}${release}${shared_ext}$major'
11663   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11664   shlibpath_var=LD_LIBRARY_PATH
11665   shlibpath_overrides_runpath=no
11666   hardcode_into_libs=yes
11667   ;;
11668
11669 irix5* | irix6* | nonstopux*)
11670   case $host_os in
11671     nonstopux*) version_type=nonstopux ;;
11672     *)
11673         if test "$lt_cv_prog_gnu_ld" = yes; then
11674                 version_type=linux
11675         else
11676                 version_type=irix
11677         fi ;;
11678   esac
11679   need_lib_prefix=no
11680   need_version=no
11681   soname_spec='${libname}${release}${shared_ext}$major'
11682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11683   case $host_os in
11684   irix5* | nonstopux*)
11685     libsuff= shlibsuff=
11686     ;;
11687   *)
11688     case $LD in # libtool.m4 will add one of these switches to LD
11689     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11690       libsuff= shlibsuff= libmagic=32-bit;;
11691     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11692       libsuff=32 shlibsuff=N32 libmagic=N32;;
11693     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11694       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11695     *) libsuff= shlibsuff= libmagic=never-match;;
11696     esac
11697     ;;
11698   esac
11699   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11700   shlibpath_overrides_runpath=no
11701   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11702   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11703   hardcode_into_libs=yes
11704   ;;
11705
11706 # No shared lib support for Linux oldld, aout, or coff.
11707 linux*oldld* | linux*aout* | linux*coff*)
11708   dynamic_linker=no
11709   ;;
11710
11711 # This must be Linux ELF.
11712 linux* | k*bsd*-gnu)
11713   version_type=linux
11714   need_lib_prefix=no
11715   need_version=no
11716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11717   soname_spec='${libname}${release}${shared_ext}$major'
11718   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11719   shlibpath_var=LD_LIBRARY_PATH
11720   shlibpath_overrides_runpath=no
11721   # Some binutils ld are patched to set DT_RUNPATH
11722   save_LDFLAGS=$LDFLAGS
11723   save_libdir=$libdir
11724   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11725        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h.  */
11728
11729 int
11730 main ()
11731 {
11732
11733   ;
11734   return 0;
11735 }
11736 _ACEOF
11737 if ac_fn_c_try_link "$LINENO"; then :
11738   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11739   shlibpath_overrides_runpath=yes
11740 fi
11741 fi
11742 rm -f core conftest.err conftest.$ac_objext \
11743     conftest$ac_exeext conftest.$ac_ext
11744   LDFLAGS=$save_LDFLAGS
11745   libdir=$save_libdir
11746
11747   # This implies no fast_install, which is unacceptable.
11748   # Some rework will be needed to allow for fast_install
11749   # before this can be enabled.
11750   hardcode_into_libs=yes
11751
11752   # Append ld.so.conf contents to the search path
11753   if test -f /etc/ld.so.conf; then
11754     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' ' '`
11755     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11756   fi
11757
11758   # We used to test for /lib/ld.so.1 and disable shared libraries on
11759   # powerpc, because MkLinux only supported shared libraries with the
11760   # GNU dynamic linker.  Since this was broken with cross compilers,
11761   # most powerpc-linux boxes support dynamic linking these days and
11762   # people can always --disable-shared, the test was removed, and we
11763   # assume the GNU/Linux dynamic linker is in use.
11764   dynamic_linker='GNU/Linux ld.so'
11765   ;;
11766
11767 netbsd*)
11768   version_type=sunos
11769   need_lib_prefix=no
11770   need_version=no
11771   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11772     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11773     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11774     dynamic_linker='NetBSD (a.out) ld.so'
11775   else
11776     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11777     soname_spec='${libname}${release}${shared_ext}$major'
11778     dynamic_linker='NetBSD ld.elf_so'
11779   fi
11780   shlibpath_var=LD_LIBRARY_PATH
11781   shlibpath_overrides_runpath=yes
11782   hardcode_into_libs=yes
11783   ;;
11784
11785 newsos6)
11786   version_type=linux
11787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788   shlibpath_var=LD_LIBRARY_PATH
11789   shlibpath_overrides_runpath=yes
11790   ;;
11791
11792 *nto* | *qnx*)
11793   version_type=qnx
11794   need_lib_prefix=no
11795   need_version=no
11796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797   soname_spec='${libname}${release}${shared_ext}$major'
11798   shlibpath_var=LD_LIBRARY_PATH
11799   shlibpath_overrides_runpath=no
11800   hardcode_into_libs=yes
11801   dynamic_linker='ldqnx.so'
11802   ;;
11803
11804 openbsd*)
11805   version_type=sunos
11806   sys_lib_dlsearch_path_spec="/usr/lib"
11807   need_lib_prefix=no
11808   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11809   case $host_os in
11810     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11811     *)                          need_version=no  ;;
11812   esac
11813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11814   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11815   shlibpath_var=LD_LIBRARY_PATH
11816   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11817     case $host_os in
11818       openbsd2.[89] | openbsd2.[89].*)
11819         shlibpath_overrides_runpath=no
11820         ;;
11821       *)
11822         shlibpath_overrides_runpath=yes
11823         ;;
11824       esac
11825   else
11826     shlibpath_overrides_runpath=yes
11827   fi
11828   ;;
11829
11830 os2*)
11831   libname_spec='$name'
11832   shrext_cmds=".dll"
11833   need_lib_prefix=no
11834   library_names_spec='$libname${shared_ext} $libname.a'
11835   dynamic_linker='OS/2 ld.exe'
11836   shlibpath_var=LIBPATH
11837   ;;
11838
11839 osf3* | osf4* | osf5*)
11840   version_type=osf
11841   need_lib_prefix=no
11842   need_version=no
11843   soname_spec='${libname}${release}${shared_ext}$major'
11844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11845   shlibpath_var=LD_LIBRARY_PATH
11846   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11847   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11848   ;;
11849
11850 rdos*)
11851   dynamic_linker=no
11852   ;;
11853
11854 solaris*)
11855   version_type=linux
11856   need_lib_prefix=no
11857   need_version=no
11858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11859   soname_spec='${libname}${release}${shared_ext}$major'
11860   shlibpath_var=LD_LIBRARY_PATH
11861   shlibpath_overrides_runpath=yes
11862   hardcode_into_libs=yes
11863   # ldd complains unless libraries are executable
11864   postinstall_cmds='chmod +x $lib'
11865   ;;
11866
11867 sunos4*)
11868   version_type=sunos
11869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11870   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11871   shlibpath_var=LD_LIBRARY_PATH
11872   shlibpath_overrides_runpath=yes
11873   if test "$with_gnu_ld" = yes; then
11874     need_lib_prefix=no
11875   fi
11876   need_version=yes
11877   ;;
11878
11879 sysv4 | sysv4.3*)
11880   version_type=linux
11881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11882   soname_spec='${libname}${release}${shared_ext}$major'
11883   shlibpath_var=LD_LIBRARY_PATH
11884   case $host_vendor in
11885     sni)
11886       shlibpath_overrides_runpath=no
11887       need_lib_prefix=no
11888       runpath_var=LD_RUN_PATH
11889       ;;
11890     siemens)
11891       need_lib_prefix=no
11892       ;;
11893     motorola)
11894       need_lib_prefix=no
11895       need_version=no
11896       shlibpath_overrides_runpath=no
11897       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11898       ;;
11899   esac
11900   ;;
11901
11902 sysv4*MP*)
11903   if test -d /usr/nec ;then
11904     version_type=linux
11905     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11906     soname_spec='$libname${shared_ext}.$major'
11907     shlibpath_var=LD_LIBRARY_PATH
11908   fi
11909   ;;
11910
11911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11912   version_type=freebsd-elf
11913   need_lib_prefix=no
11914   need_version=no
11915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11916   soname_spec='${libname}${release}${shared_ext}$major'
11917   shlibpath_var=LD_LIBRARY_PATH
11918   shlibpath_overrides_runpath=yes
11919   hardcode_into_libs=yes
11920   if test "$with_gnu_ld" = yes; then
11921     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11922   else
11923     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11924     case $host_os in
11925       sco3.2v5*)
11926         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11927         ;;
11928     esac
11929   fi
11930   sys_lib_dlsearch_path_spec='/usr/lib'
11931   ;;
11932
11933 tpf*)
11934   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11935   version_type=linux
11936   need_lib_prefix=no
11937   need_version=no
11938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939   shlibpath_var=LD_LIBRARY_PATH
11940   shlibpath_overrides_runpath=no
11941   hardcode_into_libs=yes
11942   ;;
11943
11944 uts4*)
11945   version_type=linux
11946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11947   soname_spec='${libname}${release}${shared_ext}$major'
11948   shlibpath_var=LD_LIBRARY_PATH
11949   ;;
11950
11951 *)
11952   dynamic_linker=no
11953   ;;
11954 esac
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11956 $as_echo "$dynamic_linker" >&6; }
11957 test "$dynamic_linker" = no && can_build_shared=no
11958
11959 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11960 if test "$GCC" = yes; then
11961   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11962 fi
11963
11964 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11965   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11966 fi
11967 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11968   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11969 fi
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12058 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12059 hardcode_action=
12060 if test -n "$hardcode_libdir_flag_spec" ||
12061    test -n "$runpath_var" ||
12062    test "X$hardcode_automatic" = "Xyes" ; then
12063
12064   # We can hardcode non-existent directories.
12065   if test "$hardcode_direct" != no &&
12066      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12067      # have to relink, otherwise we might link with an installed library
12068      # when we should be linking with a yet-to-be-installed one
12069      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12070      test "$hardcode_minus_L" != no; then
12071     # Linking always hardcodes the temporary library directory.
12072     hardcode_action=relink
12073   else
12074     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12075     hardcode_action=immediate
12076   fi
12077 else
12078   # We cannot hardcode anything, or else we can only hardcode existing
12079   # directories.
12080   hardcode_action=unsupported
12081 fi
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12083 $as_echo "$hardcode_action" >&6; }
12084
12085 if test "$hardcode_action" = relink ||
12086    test "$inherit_rpath" = yes; then
12087   # Fast installation is not supported
12088   enable_fast_install=no
12089 elif test "$shlibpath_overrides_runpath" = yes ||
12090      test "$enable_shared" = no; then
12091   # Fast installation is not necessary
12092   enable_fast_install=needless
12093 fi
12094
12095
12096
12097
12098
12099
12100   if test "x$enable_dlopen" != xyes; then
12101   enable_dlopen=unknown
12102   enable_dlopen_self=unknown
12103   enable_dlopen_self_static=unknown
12104 else
12105   lt_cv_dlopen=no
12106   lt_cv_dlopen_libs=
12107
12108   case $host_os in
12109   beos*)
12110     lt_cv_dlopen="load_add_on"
12111     lt_cv_dlopen_libs=
12112     lt_cv_dlopen_self=yes
12113     ;;
12114
12115   mingw* | pw32* | cegcc*)
12116     lt_cv_dlopen="LoadLibrary"
12117     lt_cv_dlopen_libs=
12118     ;;
12119
12120   cygwin*)
12121     lt_cv_dlopen="dlopen"
12122     lt_cv_dlopen_libs=
12123     ;;
12124
12125   darwin*)
12126   # if libdl is installed we need to link against it
12127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12128 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12129 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12130   $as_echo_n "(cached) " >&6
12131 else
12132   ac_check_lib_save_LIBS=$LIBS
12133 LIBS="-ldl  $LIBS"
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h.  */
12136
12137 /* Override any GCC internal prototype to avoid an error.
12138    Use char because int might match the return type of a GCC
12139    builtin and then its argument prototype would still apply.  */
12140 #ifdef __cplusplus
12141 extern "C"
12142 #endif
12143 char dlopen ();
12144 int
12145 main ()
12146 {
12147 return dlopen ();
12148   ;
12149   return 0;
12150 }
12151 _ACEOF
12152 if ac_fn_c_try_link "$LINENO"; then :
12153   ac_cv_lib_dl_dlopen=yes
12154 else
12155   ac_cv_lib_dl_dlopen=no
12156 fi
12157 rm -f core conftest.err conftest.$ac_objext \
12158     conftest$ac_exeext conftest.$ac_ext
12159 LIBS=$ac_check_lib_save_LIBS
12160 fi
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12162 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12163 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12164   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12165 else
12166
12167     lt_cv_dlopen="dyld"
12168     lt_cv_dlopen_libs=
12169     lt_cv_dlopen_self=yes
12170
12171 fi
12172
12173     ;;
12174
12175   *)
12176     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12177 if test "x$ac_cv_func_shl_load" = x""yes; then :
12178   lt_cv_dlopen="shl_load"
12179 else
12180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12181 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12182 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12183   $as_echo_n "(cached) " >&6
12184 else
12185   ac_check_lib_save_LIBS=$LIBS
12186 LIBS="-ldld  $LIBS"
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h.  */
12189
12190 /* Override any GCC internal prototype to avoid an error.
12191    Use char because int might match the return type of a GCC
12192    builtin and then its argument prototype would still apply.  */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 char shl_load ();
12197 int
12198 main ()
12199 {
12200 return shl_load ();
12201   ;
12202   return 0;
12203 }
12204 _ACEOF
12205 if ac_fn_c_try_link "$LINENO"; then :
12206   ac_cv_lib_dld_shl_load=yes
12207 else
12208   ac_cv_lib_dld_shl_load=no
12209 fi
12210 rm -f core conftest.err conftest.$ac_objext \
12211     conftest$ac_exeext conftest.$ac_ext
12212 LIBS=$ac_check_lib_save_LIBS
12213 fi
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12215 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12216 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12217   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12218 else
12219   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12220 if test "x$ac_cv_func_dlopen" = x""yes; then :
12221   lt_cv_dlopen="dlopen"
12222 else
12223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12224 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12225 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12226   $as_echo_n "(cached) " >&6
12227 else
12228   ac_check_lib_save_LIBS=$LIBS
12229 LIBS="-ldl  $LIBS"
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h.  */
12232
12233 /* Override any GCC internal prototype to avoid an error.
12234    Use char because int might match the return type of a GCC
12235    builtin and then its argument prototype would still apply.  */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char dlopen ();
12240 int
12241 main ()
12242 {
12243 return dlopen ();
12244   ;
12245   return 0;
12246 }
12247 _ACEOF
12248 if ac_fn_c_try_link "$LINENO"; then :
12249   ac_cv_lib_dl_dlopen=yes
12250 else
12251   ac_cv_lib_dl_dlopen=no
12252 fi
12253 rm -f core conftest.err conftest.$ac_objext \
12254     conftest$ac_exeext conftest.$ac_ext
12255 LIBS=$ac_check_lib_save_LIBS
12256 fi
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12258 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12259 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12260   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12261 else
12262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12263 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12264 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12265   $as_echo_n "(cached) " >&6
12266 else
12267   ac_check_lib_save_LIBS=$LIBS
12268 LIBS="-lsvld  $LIBS"
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h.  */
12271
12272 /* Override any GCC internal prototype to avoid an error.
12273    Use char because int might match the return type of a GCC
12274    builtin and then its argument prototype would still apply.  */
12275 #ifdef __cplusplus
12276 extern "C"
12277 #endif
12278 char dlopen ();
12279 int
12280 main ()
12281 {
12282 return dlopen ();
12283   ;
12284   return 0;
12285 }
12286 _ACEOF
12287 if ac_fn_c_try_link "$LINENO"; then :
12288   ac_cv_lib_svld_dlopen=yes
12289 else
12290   ac_cv_lib_svld_dlopen=no
12291 fi
12292 rm -f core conftest.err conftest.$ac_objext \
12293     conftest$ac_exeext conftest.$ac_ext
12294 LIBS=$ac_check_lib_save_LIBS
12295 fi
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12297 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12298 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12299   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12300 else
12301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12302 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12303 if test "${ac_cv_lib_dld_dld_link+set}" = set; 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 dld_link ();
12318 int
12319 main ()
12320 {
12321 return dld_link ();
12322   ;
12323   return 0;
12324 }
12325 _ACEOF
12326 if ac_fn_c_try_link "$LINENO"; then :
12327   ac_cv_lib_dld_dld_link=yes
12328 else
12329   ac_cv_lib_dld_dld_link=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_dld_link" >&5
12336 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12337 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12338   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12339 fi
12340
12341
12342 fi
12343
12344
12345 fi
12346
12347
12348 fi
12349
12350
12351 fi
12352
12353
12354 fi
12355
12356     ;;
12357   esac
12358
12359   if test "x$lt_cv_dlopen" != xno; then
12360     enable_dlopen=yes
12361   else
12362     enable_dlopen=no
12363   fi
12364
12365   case $lt_cv_dlopen in
12366   dlopen)
12367     save_CPPFLAGS="$CPPFLAGS"
12368     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12369
12370     save_LDFLAGS="$LDFLAGS"
12371     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12372
12373     save_LIBS="$LIBS"
12374     LIBS="$lt_cv_dlopen_libs $LIBS"
12375
12376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12377 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12378 if test "${lt_cv_dlopen_self+set}" = set; then :
12379   $as_echo_n "(cached) " >&6
12380 else
12381           if test "$cross_compiling" = yes; then :
12382   lt_cv_dlopen_self=cross
12383 else
12384   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12385   lt_status=$lt_dlunknown
12386   cat > conftest.$ac_ext <<_LT_EOF
12387 #line 12387 "configure"
12388 #include "confdefs.h"
12389
12390 #if HAVE_DLFCN_H
12391 #include <dlfcn.h>
12392 #endif
12393
12394 #include <stdio.h>
12395
12396 #ifdef RTLD_GLOBAL
12397 #  define LT_DLGLOBAL           RTLD_GLOBAL
12398 #else
12399 #  ifdef DL_GLOBAL
12400 #    define LT_DLGLOBAL         DL_GLOBAL
12401 #  else
12402 #    define LT_DLGLOBAL         0
12403 #  endif
12404 #endif
12405
12406 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12407    find out it does not work in some platform. */
12408 #ifndef LT_DLLAZY_OR_NOW
12409 #  ifdef RTLD_LAZY
12410 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12411 #  else
12412 #    ifdef DL_LAZY
12413 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12414 #    else
12415 #      ifdef RTLD_NOW
12416 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12417 #      else
12418 #        ifdef DL_NOW
12419 #          define LT_DLLAZY_OR_NOW      DL_NOW
12420 #        else
12421 #          define LT_DLLAZY_OR_NOW      0
12422 #        endif
12423 #      endif
12424 #    endif
12425 #  endif
12426 #endif
12427
12428 void fnord() { int i=42;}
12429 int main ()
12430 {
12431   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12432   int status = $lt_dlunknown;
12433
12434   if (self)
12435     {
12436       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12437       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12438       /* dlclose (self); */
12439     }
12440   else
12441     puts (dlerror ());
12442
12443   return status;
12444 }
12445 _LT_EOF
12446   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12447   (eval $ac_link) 2>&5
12448   ac_status=$?
12449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12450   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12451     (./conftest; exit; ) >&5 2>/dev/null
12452     lt_status=$?
12453     case x$lt_status in
12454       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12455       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12456       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12457     esac
12458   else :
12459     # compilation failed
12460     lt_cv_dlopen_self=no
12461   fi
12462 fi
12463 rm -fr conftest*
12464
12465
12466 fi
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12468 $as_echo "$lt_cv_dlopen_self" >&6; }
12469
12470     if test "x$lt_cv_dlopen_self" = xyes; then
12471       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12472       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12473 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12474 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12475   $as_echo_n "(cached) " >&6
12476 else
12477           if test "$cross_compiling" = yes; then :
12478   lt_cv_dlopen_self_static=cross
12479 else
12480   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12481   lt_status=$lt_dlunknown
12482   cat > conftest.$ac_ext <<_LT_EOF
12483 #line 12483 "configure"
12484 #include "confdefs.h"
12485
12486 #if HAVE_DLFCN_H
12487 #include <dlfcn.h>
12488 #endif
12489
12490 #include <stdio.h>
12491
12492 #ifdef RTLD_GLOBAL
12493 #  define LT_DLGLOBAL           RTLD_GLOBAL
12494 #else
12495 #  ifdef DL_GLOBAL
12496 #    define LT_DLGLOBAL         DL_GLOBAL
12497 #  else
12498 #    define LT_DLGLOBAL         0
12499 #  endif
12500 #endif
12501
12502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12503    find out it does not work in some platform. */
12504 #ifndef LT_DLLAZY_OR_NOW
12505 #  ifdef RTLD_LAZY
12506 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12507 #  else
12508 #    ifdef DL_LAZY
12509 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12510 #    else
12511 #      ifdef RTLD_NOW
12512 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12513 #      else
12514 #        ifdef DL_NOW
12515 #          define LT_DLLAZY_OR_NOW      DL_NOW
12516 #        else
12517 #          define LT_DLLAZY_OR_NOW      0
12518 #        endif
12519 #      endif
12520 #    endif
12521 #  endif
12522 #endif
12523
12524 void fnord() { int i=42;}
12525 int main ()
12526 {
12527   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12528   int status = $lt_dlunknown;
12529
12530   if (self)
12531     {
12532       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12533       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12534       /* dlclose (self); */
12535     }
12536   else
12537     puts (dlerror ());
12538
12539   return status;
12540 }
12541 _LT_EOF
12542   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12543   (eval $ac_link) 2>&5
12544   ac_status=$?
12545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12546   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12547     (./conftest; exit; ) >&5 2>/dev/null
12548     lt_status=$?
12549     case x$lt_status in
12550       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12551       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12552       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12553     esac
12554   else :
12555     # compilation failed
12556     lt_cv_dlopen_self_static=no
12557   fi
12558 fi
12559 rm -fr conftest*
12560
12561
12562 fi
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12564 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12565     fi
12566
12567     CPPFLAGS="$save_CPPFLAGS"
12568     LDFLAGS="$save_LDFLAGS"
12569     LIBS="$save_LIBS"
12570     ;;
12571   esac
12572
12573   case $lt_cv_dlopen_self in
12574   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12575   *) enable_dlopen_self=unknown ;;
12576   esac
12577
12578   case $lt_cv_dlopen_self_static in
12579   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12580   *) enable_dlopen_self_static=unknown ;;
12581   esac
12582 fi
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600 striplib=
12601 old_striplib=
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12603 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12604 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12605   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12606   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12608 $as_echo "yes" >&6; }
12609 else
12610 # FIXME - insert some real tests, host_os isn't really good enough
12611   case $host_os in
12612   darwin*)
12613     if test -n "$STRIP" ; then
12614       striplib="$STRIP -x"
12615       old_striplib="$STRIP -S"
12616       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617 $as_echo "yes" >&6; }
12618     else
12619       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12621     fi
12622     ;;
12623   *)
12624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626     ;;
12627   esac
12628 fi
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641   # Report which library types will actually be built
12642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12643 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12645 $as_echo "$can_build_shared" >&6; }
12646
12647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12648 $as_echo_n "checking whether to build shared libraries... " >&6; }
12649   test "$can_build_shared" = "no" && enable_shared=no
12650
12651   # On AIX, shared libraries and static libraries use the same namespace, and
12652   # are all built from PIC.
12653   case $host_os in
12654   aix3*)
12655     test "$enable_shared" = yes && enable_static=no
12656     if test -n "$RANLIB"; then
12657       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12658       postinstall_cmds='$RANLIB $lib'
12659     fi
12660     ;;
12661
12662   aix[4-9]*)
12663     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12664       test "$enable_shared" = yes && enable_static=no
12665     fi
12666     ;;
12667   esac
12668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12669 $as_echo "$enable_shared" >&6; }
12670
12671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12672 $as_echo_n "checking whether to build static libraries... " >&6; }
12673   # Make sure either enable_shared or enable_static is yes.
12674   test "$enable_shared" = yes || enable_static=yes
12675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12676 $as_echo "$enable_static" >&6; }
12677
12678
12679
12680
12681 fi
12682 ac_ext=c
12683 ac_cpp='$CPP $CPPFLAGS'
12684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12687
12688 CC="$lt_save_CC"
12689
12690
12691 ac_ext=cpp
12692 ac_cpp='$CXXCPP $CPPFLAGS'
12693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12696
12697 archive_cmds_need_lc_CXX=no
12698 allow_undefined_flag_CXX=
12699 always_export_symbols_CXX=no
12700 archive_expsym_cmds_CXX=
12701 compiler_needs_object_CXX=no
12702 export_dynamic_flag_spec_CXX=
12703 hardcode_direct_CXX=no
12704 hardcode_direct_absolute_CXX=no
12705 hardcode_libdir_flag_spec_CXX=
12706 hardcode_libdir_flag_spec_ld_CXX=
12707 hardcode_libdir_separator_CXX=
12708 hardcode_minus_L_CXX=no
12709 hardcode_shlibpath_var_CXX=unsupported
12710 hardcode_automatic_CXX=no
12711 inherit_rpath_CXX=no
12712 module_cmds_CXX=
12713 module_expsym_cmds_CXX=
12714 link_all_deplibs_CXX=unknown
12715 old_archive_cmds_CXX=$old_archive_cmds
12716 no_undefined_flag_CXX=
12717 whole_archive_flag_spec_CXX=
12718 enable_shared_with_static_runtimes_CXX=no
12719
12720 # Source file extension for C++ test sources.
12721 ac_ext=cpp
12722
12723 # Object file extension for compiled C++ test sources.
12724 objext=o
12725 objext_CXX=$objext
12726
12727 # No sense in running all these tests if we already determined that
12728 # the CXX compiler isn't working.  Some variables (like enable_shared)
12729 # are currently assumed to apply to all compilers on this platform,
12730 # and will be corrupted by setting them based on a non-working compiler.
12731 if test "$_lt_caught_CXX_error" != yes; then
12732   # Code to be used in simple compile tests
12733   lt_simple_compile_test_code="int some_variable = 0;"
12734
12735   # Code to be used in simple link tests
12736   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12737
12738   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12739
12740
12741
12742
12743
12744
12745 # If no C compiler was specified, use CC.
12746 LTCC=${LTCC-"$CC"}
12747
12748 # If no C compiler flags were specified, use CFLAGS.
12749 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12750
12751 # Allow CC to be a program name with arguments.
12752 compiler=$CC
12753
12754
12755   # save warnings/boilerplate of simple test code
12756   ac_outfile=conftest.$ac_objext
12757 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12758 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12759 _lt_compiler_boilerplate=`cat conftest.err`
12760 $RM conftest*
12761
12762   ac_outfile=conftest.$ac_objext
12763 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12764 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12765 _lt_linker_boilerplate=`cat conftest.err`
12766 $RM -r conftest*
12767
12768
12769   # Allow CC to be a program name with arguments.
12770   lt_save_CC=$CC
12771   lt_save_LD=$LD
12772   lt_save_GCC=$GCC
12773   GCC=$GXX
12774   lt_save_with_gnu_ld=$with_gnu_ld
12775   lt_save_path_LD=$lt_cv_path_LD
12776   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12777     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12778   else
12779     $as_unset lt_cv_prog_gnu_ld
12780   fi
12781   if test -n "${lt_cv_path_LDCXX+set}"; then
12782     lt_cv_path_LD=$lt_cv_path_LDCXX
12783   else
12784     $as_unset lt_cv_path_LD
12785   fi
12786   test -z "${LDCXX+set}" || LD=$LDCXX
12787   CC=${CXX-"c++"}
12788   compiler=$CC
12789   compiler_CXX=$CC
12790   for cc_temp in $compiler""; do
12791   case $cc_temp in
12792     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12793     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12794     \-*) ;;
12795     *) break;;
12796   esac
12797 done
12798 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12799
12800
12801   if test -n "$compiler"; then
12802     # We don't want -fno-exception when compiling C++ code, so set the
12803     # no_builtin_flag separately
12804     if test "$GXX" = yes; then
12805       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12806     else
12807       lt_prog_compiler_no_builtin_flag_CXX=
12808     fi
12809
12810     if test "$GXX" = yes; then
12811       # Set up default GNU C++ configuration
12812
12813
12814
12815 # Check whether --with-gnu-ld was given.
12816 if test "${with_gnu_ld+set}" = set; then :
12817   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12818 else
12819   with_gnu_ld=no
12820 fi
12821
12822 ac_prog=ld
12823 if test "$GCC" = yes; then
12824   # Check if gcc -print-prog-name=ld gives a path.
12825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12826 $as_echo_n "checking for ld used by $CC... " >&6; }
12827   case $host in
12828   *-*-mingw*)
12829     # gcc leaves a trailing carriage return which upsets mingw
12830     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12831   *)
12832     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12833   esac
12834   case $ac_prog in
12835     # Accept absolute paths.
12836     [\\/]* | ?:[\\/]*)
12837       re_direlt='/[^/][^/]*/\.\./'
12838       # Canonicalize the pathname of ld
12839       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12840       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12841         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12842       done
12843       test -z "$LD" && LD="$ac_prog"
12844       ;;
12845   "")
12846     # If it fails, then pretend we aren't using GCC.
12847     ac_prog=ld
12848     ;;
12849   *)
12850     # If it is relative, then search for the first ld in PATH.
12851     with_gnu_ld=unknown
12852     ;;
12853   esac
12854 elif test "$with_gnu_ld" = yes; then
12855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12856 $as_echo_n "checking for GNU ld... " >&6; }
12857 else
12858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12859 $as_echo_n "checking for non-GNU ld... " >&6; }
12860 fi
12861 if test "${lt_cv_path_LD+set}" = set; then :
12862   $as_echo_n "(cached) " >&6
12863 else
12864   if test -z "$LD"; then
12865   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12866   for ac_dir in $PATH; do
12867     IFS="$lt_save_ifs"
12868     test -z "$ac_dir" && ac_dir=.
12869     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12870       lt_cv_path_LD="$ac_dir/$ac_prog"
12871       # Check to see if the program is GNU ld.  I'd rather use --version,
12872       # but apparently some variants of GNU ld only accept -v.
12873       # Break only if it was the GNU/non-GNU ld that we prefer.
12874       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12875       *GNU* | *'with BFD'*)
12876         test "$with_gnu_ld" != no && break
12877         ;;
12878       *)
12879         test "$with_gnu_ld" != yes && break
12880         ;;
12881       esac
12882     fi
12883   done
12884   IFS="$lt_save_ifs"
12885 else
12886   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12887 fi
12888 fi
12889
12890 LD="$lt_cv_path_LD"
12891 if test -n "$LD"; then
12892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12893 $as_echo "$LD" >&6; }
12894 else
12895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896 $as_echo "no" >&6; }
12897 fi
12898 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12900 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12901 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12902   $as_echo_n "(cached) " >&6
12903 else
12904   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12905 case `$LD -v 2>&1 </dev/null` in
12906 *GNU* | *'with BFD'*)
12907   lt_cv_prog_gnu_ld=yes
12908   ;;
12909 *)
12910   lt_cv_prog_gnu_ld=no
12911   ;;
12912 esac
12913 fi
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12915 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12916 with_gnu_ld=$lt_cv_prog_gnu_ld
12917
12918
12919
12920
12921
12922
12923
12924       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12925       # archiving commands below assume that GNU ld is being used.
12926       if test "$with_gnu_ld" = yes; then
12927         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12928         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'
12929
12930         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12931         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12932
12933         # If archive_cmds runs LD, not CC, wlarc should be empty
12934         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12935         #     investigate it a little bit more. (MM)
12936         wlarc='${wl}'
12937
12938         # ancient GNU ld didn't support --whole-archive et. al.
12939         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12940           $GREP 'no-whole-archive' > /dev/null; then
12941           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12942         else
12943           whole_archive_flag_spec_CXX=
12944         fi
12945       else
12946         with_gnu_ld=no
12947         wlarc=
12948
12949         # A generic and very simple default shared library creation
12950         # command for GNU C++ for the case where it uses the native
12951         # linker, instead of GNU ld.  If possible, this setting should
12952         # overridden to take advantage of the native linker features on
12953         # the platform it is being used on.
12954         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12955       fi
12956
12957       # Commands to make compiler produce verbose output that lists
12958       # what "hidden" libraries, object files and flags are used when
12959       # linking a shared library.
12960       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12961
12962     else
12963       GXX=no
12964       with_gnu_ld=no
12965       wlarc=
12966     fi
12967
12968     # PORTME: fill in a description of your system's C++ link characteristics
12969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12970 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12971     ld_shlibs_CXX=yes
12972     case $host_os in
12973       aix3*)
12974         # FIXME: insert proper C++ library support
12975         ld_shlibs_CXX=no
12976         ;;
12977       aix[4-9]*)
12978         if test "$host_cpu" = ia64; then
12979           # On IA64, the linker does run time linking by default, so we don't
12980           # have to do anything special.
12981           aix_use_runtimelinking=no
12982           exp_sym_flag='-Bexport'
12983           no_entry_flag=""
12984         else
12985           aix_use_runtimelinking=no
12986
12987           # Test if we are trying to use run time linking or normal
12988           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12989           # need to do runtime linking.
12990           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12991             for ld_flag in $LDFLAGS; do
12992               case $ld_flag in
12993               *-brtl*)
12994                 aix_use_runtimelinking=yes
12995                 break
12996                 ;;
12997               esac
12998             done
12999             ;;
13000           esac
13001
13002           exp_sym_flag='-bexport'
13003           no_entry_flag='-bnoentry'
13004         fi
13005
13006         # When large executables or shared objects are built, AIX ld can
13007         # have problems creating the table of contents.  If linking a library
13008         # or program results in "error TOC overflow" add -mminimal-toc to
13009         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13010         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13011
13012         archive_cmds_CXX=''
13013         hardcode_direct_CXX=yes
13014         hardcode_direct_absolute_CXX=yes
13015         hardcode_libdir_separator_CXX=':'
13016         link_all_deplibs_CXX=yes
13017         file_list_spec_CXX='${wl}-f,'
13018
13019         if test "$GXX" = yes; then
13020           case $host_os in aix4.[012]|aix4.[012].*)
13021           # We only want to do this on AIX 4.2 and lower, the check
13022           # below for broken collect2 doesn't work under 4.3+
13023           collect2name=`${CC} -print-prog-name=collect2`
13024           if test -f "$collect2name" &&
13025              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13026           then
13027             # We have reworked collect2
13028             :
13029           else
13030             # We have old collect2
13031             hardcode_direct_CXX=unsupported
13032             # It fails to find uninstalled libraries when the uninstalled
13033             # path is not listed in the libpath.  Setting hardcode_minus_L
13034             # to unsupported forces relinking
13035             hardcode_minus_L_CXX=yes
13036             hardcode_libdir_flag_spec_CXX='-L$libdir'
13037             hardcode_libdir_separator_CXX=
13038           fi
13039           esac
13040           shared_flag='-shared'
13041           if test "$aix_use_runtimelinking" = yes; then
13042             shared_flag="$shared_flag "'${wl}-G'
13043           fi
13044         else
13045           # not using gcc
13046           if test "$host_cpu" = ia64; then
13047           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13048           # chokes on -Wl,-G. The following line is correct:
13049           shared_flag='-G'
13050           else
13051             if test "$aix_use_runtimelinking" = yes; then
13052               shared_flag='${wl}-G'
13053             else
13054               shared_flag='${wl}-bM:SRE'
13055             fi
13056           fi
13057         fi
13058
13059         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13060         # It seems that -bexpall does not export symbols beginning with
13061         # underscore (_), so it is better to generate a list of symbols to
13062         # export.
13063         always_export_symbols_CXX=yes
13064         if test "$aix_use_runtimelinking" = yes; then
13065           # Warning - without using the other runtime loading flags (-brtl),
13066           # -berok will link without error, but may produce a broken library.
13067           allow_undefined_flag_CXX='-berok'
13068           # Determine the default libpath from the value encoded in an empty
13069           # executable.
13070           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h.  */
13072
13073 int
13074 main ()
13075 {
13076
13077   ;
13078   return 0;
13079 }
13080 _ACEOF
13081 if ac_fn_cxx_try_link "$LINENO"; then :
13082
13083 lt_aix_libpath_sed='
13084     /Import File Strings/,/^$/ {
13085         /^0/ {
13086             s/^0  *\(.*\)$/\1/
13087             p
13088         }
13089     }'
13090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13091 # Check for a 64-bit object if we didn't find anything.
13092 if test -z "$aix_libpath"; then
13093   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13094 fi
13095 fi
13096 rm -f core conftest.err conftest.$ac_objext \
13097     conftest$ac_exeext conftest.$ac_ext
13098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13099
13100           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13101
13102           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"
13103         else
13104           if test "$host_cpu" = ia64; then
13105             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13106             allow_undefined_flag_CXX="-z nodefs"
13107             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"
13108           else
13109             # Determine the default libpath from the value encoded in an
13110             # empty executable.
13111             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h.  */
13113
13114 int
13115 main ()
13116 {
13117
13118   ;
13119   return 0;
13120 }
13121 _ACEOF
13122 if ac_fn_cxx_try_link "$LINENO"; then :
13123
13124 lt_aix_libpath_sed='
13125     /Import File Strings/,/^$/ {
13126         /^0/ {
13127             s/^0  *\(.*\)$/\1/
13128             p
13129         }
13130     }'
13131 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13132 # Check for a 64-bit object if we didn't find anything.
13133 if test -z "$aix_libpath"; then
13134   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13135 fi
13136 fi
13137 rm -f core conftest.err conftest.$ac_objext \
13138     conftest$ac_exeext conftest.$ac_ext
13139 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13140
13141             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13142             # Warning - without using the other run time loading flags,
13143             # -berok will link without error, but may produce a broken library.
13144             no_undefined_flag_CXX=' ${wl}-bernotok'
13145             allow_undefined_flag_CXX=' ${wl}-berok'
13146             # Exported symbols can be pulled into shared objects from archives
13147             whole_archive_flag_spec_CXX='$convenience'
13148             archive_cmds_need_lc_CXX=yes
13149             # This is similar to how AIX traditionally builds its shared
13150             # libraries.
13151             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'
13152           fi
13153         fi
13154         ;;
13155
13156       beos*)
13157         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13158           allow_undefined_flag_CXX=unsupported
13159           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13160           # support --undefined.  This deserves some investigation.  FIXME
13161           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13162         else
13163           ld_shlibs_CXX=no
13164         fi
13165         ;;
13166
13167       chorus*)
13168         case $cc_basename in
13169           *)
13170           # FIXME: insert proper C++ library support
13171           ld_shlibs_CXX=no
13172           ;;
13173         esac
13174         ;;
13175
13176       cygwin* | mingw* | pw32* | cegcc*)
13177         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13178         # as there is no search path for DLLs.
13179         hardcode_libdir_flag_spec_CXX='-L$libdir'
13180         allow_undefined_flag_CXX=unsupported
13181         always_export_symbols_CXX=no
13182         enable_shared_with_static_runtimes_CXX=yes
13183
13184         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13185           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'
13186           # If the export-symbols file already is a .def file (1st line
13187           # is EXPORTS), use it as is; otherwise, prepend...
13188           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13189             cp $export_symbols $output_objdir/$soname.def;
13190           else
13191             echo EXPORTS > $output_objdir/$soname.def;
13192             cat $export_symbols >> $output_objdir/$soname.def;
13193           fi~
13194           $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'
13195         else
13196           ld_shlibs_CXX=no
13197         fi
13198         ;;
13199       darwin* | rhapsody*)
13200
13201
13202   archive_cmds_need_lc_CXX=no
13203   hardcode_direct_CXX=no
13204   hardcode_automatic_CXX=yes
13205   hardcode_shlibpath_var_CXX=unsupported
13206   whole_archive_flag_spec_CXX=''
13207   link_all_deplibs_CXX=yes
13208   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13209   case $cc_basename in
13210      ifort*) _lt_dar_can_shared=yes ;;
13211      *) _lt_dar_can_shared=$GCC ;;
13212   esac
13213   if test "$_lt_dar_can_shared" = "yes"; then
13214     output_verbose_link_cmd=echo
13215     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}"
13216     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13217     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}"
13218     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}"
13219        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13220       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}"
13221       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}"
13222     fi
13223
13224   else
13225   ld_shlibs_CXX=no
13226   fi
13227
13228         ;;
13229
13230       dgux*)
13231         case $cc_basename in
13232           ec++*)
13233             # FIXME: insert proper C++ library support
13234             ld_shlibs_CXX=no
13235             ;;
13236           ghcx*)
13237             # Green Hills C++ Compiler
13238             # FIXME: insert proper C++ library support
13239             ld_shlibs_CXX=no
13240             ;;
13241           *)
13242             # FIXME: insert proper C++ library support
13243             ld_shlibs_CXX=no
13244             ;;
13245         esac
13246         ;;
13247
13248       freebsd[12]*)
13249         # C++ shared libraries reported to be fairly broken before
13250         # switch to ELF
13251         ld_shlibs_CXX=no
13252         ;;
13253
13254       freebsd-elf*)
13255         archive_cmds_need_lc_CXX=no
13256         ;;
13257
13258       freebsd* | dragonfly*)
13259         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13260         # conventions
13261         ld_shlibs_CXX=yes
13262         ;;
13263
13264       gnu*)
13265         ;;
13266
13267       hpux9*)
13268         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13269         hardcode_libdir_separator_CXX=:
13270         export_dynamic_flag_spec_CXX='${wl}-E'
13271         hardcode_direct_CXX=yes
13272         hardcode_minus_L_CXX=yes # Not in the search PATH,
13273                                              # but as the default
13274                                              # location of the library.
13275
13276         case $cc_basename in
13277           CC*)
13278             # FIXME: insert proper C++ library support
13279             ld_shlibs_CXX=no
13280             ;;
13281           aCC*)
13282             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'
13283             # Commands to make compiler produce verbose output that lists
13284             # what "hidden" libraries, object files and flags are used when
13285             # linking a shared library.
13286             #
13287             # There doesn't appear to be a way to prevent this compiler from
13288             # explicitly linking system object files so we need to strip them
13289             # from the output so that they don't get included in the library
13290             # dependencies.
13291             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'
13292             ;;
13293           *)
13294             if test "$GXX" = yes; then
13295               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'
13296             else
13297               # FIXME: insert proper C++ library support
13298               ld_shlibs_CXX=no
13299             fi
13300             ;;
13301         esac
13302         ;;
13303
13304       hpux10*|hpux11*)
13305         if test $with_gnu_ld = no; then
13306           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13307           hardcode_libdir_separator_CXX=:
13308
13309           case $host_cpu in
13310             hppa*64*|ia64*)
13311               ;;
13312             *)
13313               export_dynamic_flag_spec_CXX='${wl}-E'
13314               ;;
13315           esac
13316         fi
13317         case $host_cpu in
13318           hppa*64*|ia64*)
13319             hardcode_direct_CXX=no
13320             hardcode_shlibpath_var_CXX=no
13321             ;;
13322           *)
13323             hardcode_direct_CXX=yes
13324             hardcode_direct_absolute_CXX=yes
13325             hardcode_minus_L_CXX=yes # Not in the search PATH,
13326                                                  # but as the default
13327                                                  # location of the library.
13328             ;;
13329         esac
13330
13331         case $cc_basename in
13332           CC*)
13333             # FIXME: insert proper C++ library support
13334             ld_shlibs_CXX=no
13335             ;;
13336           aCC*)
13337             case $host_cpu in
13338               hppa*64*)
13339                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13340                 ;;
13341               ia64*)
13342                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13343                 ;;
13344               *)
13345                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13346                 ;;
13347             esac
13348             # Commands to make compiler produce verbose output that lists
13349             # what "hidden" libraries, object files and flags are used when
13350             # linking a shared library.
13351             #
13352             # There doesn't appear to be a way to prevent this compiler from
13353             # explicitly linking system object files so we need to strip them
13354             # from the output so that they don't get included in the library
13355             # dependencies.
13356             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'
13357             ;;
13358           *)
13359             if test "$GXX" = yes; then
13360               if test $with_gnu_ld = no; then
13361                 case $host_cpu in
13362                   hppa*64*)
13363                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13364                     ;;
13365                   ia64*)
13366                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13367                     ;;
13368                   *)
13369                     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'
13370                     ;;
13371                 esac
13372               fi
13373             else
13374               # FIXME: insert proper C++ library support
13375               ld_shlibs_CXX=no
13376             fi
13377             ;;
13378         esac
13379         ;;
13380
13381       interix[3-9]*)
13382         hardcode_direct_CXX=no
13383         hardcode_shlibpath_var_CXX=no
13384         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13385         export_dynamic_flag_spec_CXX='${wl}-E'
13386         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13387         # Instead, shared libraries are loaded at an image base (0x10000000 by
13388         # default) and relocated if they conflict, which is a slow very memory
13389         # consuming and fragmenting process.  To avoid this, we pick a random,
13390         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13391         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13392         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'
13393         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'
13394         ;;
13395       irix5* | irix6*)
13396         case $cc_basename in
13397           CC*)
13398             # SGI C++
13399             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'
13400
13401             # Archives containing C++ object files must be created using
13402             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13403             # necessary to make sure instantiated templates are included
13404             # in the archive.
13405             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13406             ;;
13407           *)
13408             if test "$GXX" = yes; then
13409               if test "$with_gnu_ld" = no; then
13410                 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'
13411               else
13412                 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'
13413               fi
13414             fi
13415             link_all_deplibs_CXX=yes
13416             ;;
13417         esac
13418         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13419         hardcode_libdir_separator_CXX=:
13420         inherit_rpath_CXX=yes
13421         ;;
13422
13423       linux* | k*bsd*-gnu)
13424         case $cc_basename in
13425           KCC*)
13426             # Kuck and Associates, Inc. (KAI) C++ Compiler
13427
13428             # KCC will only create a shared library if the output file
13429             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13430             # to its proper name (with version) after linking.
13431             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'
13432             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'
13433             # Commands to make compiler produce verbose output that lists
13434             # what "hidden" libraries, object files and flags are used when
13435             # linking a shared library.
13436             #
13437             # There doesn't appear to be a way to prevent this compiler from
13438             # explicitly linking system object files so we need to strip them
13439             # from the output so that they don't get included in the library
13440             # dependencies.
13441             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'
13442
13443             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13444             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13445
13446             # Archives containing C++ object files must be created using
13447             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13448             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13449             ;;
13450           icpc* | ecpc* )
13451             # Intel C++
13452             with_gnu_ld=yes
13453             # version 8.0 and above of icpc choke on multiply defined symbols
13454             # if we add $predep_objects and $postdep_objects, however 7.1 and
13455             # earlier do not add the objects themselves.
13456             case `$CC -V 2>&1` in
13457               *"Version 7."*)
13458                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13459                 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'
13460                 ;;
13461               *)  # Version 8.0 or newer
13462                 tmp_idyn=
13463                 case $host_cpu in
13464                   ia64*) tmp_idyn=' -i_dynamic';;
13465                 esac
13466                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13467                 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'
13468                 ;;
13469             esac
13470             archive_cmds_need_lc_CXX=no
13471             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13472             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13473             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13474             ;;
13475           pgCC* | pgcpp*)
13476             # Portland Group C++ compiler
13477             case `$CC -V` in
13478             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13479               prelink_cmds_CXX='tpldir=Template.dir~
13480                 rm -rf $tpldir~
13481                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13482                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13483               old_archive_cmds_CXX='tpldir=Template.dir~
13484                 rm -rf $tpldir~
13485                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13486                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13487                 $RANLIB $oldlib'
13488               archive_cmds_CXX='tpldir=Template.dir~
13489                 rm -rf $tpldir~
13490                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13491                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13492               archive_expsym_cmds_CXX='tpldir=Template.dir~
13493                 rm -rf $tpldir~
13494                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13495                 $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'
13496               ;;
13497             *) # Version 6 will use weak symbols
13498               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13499               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'
13500               ;;
13501             esac
13502
13503             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13504             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13505             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'
13506             ;;
13507           cxx*)
13508             # Compaq C++
13509             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13510             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'
13511
13512             runpath_var=LD_RUN_PATH
13513             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13514             hardcode_libdir_separator_CXX=:
13515
13516             # Commands to make compiler produce verbose output that lists
13517             # what "hidden" libraries, object files and flags are used when
13518             # linking a shared library.
13519             #
13520             # There doesn't appear to be a way to prevent this compiler from
13521             # explicitly linking system object files so we need to strip them
13522             # from the output so that they don't get included in the library
13523             # dependencies.
13524             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'
13525             ;;
13526           xl*)
13527             # IBM XL 8.0 on PPC, with GNU ld
13528             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13529             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13530             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13531             if test "x$supports_anon_versioning" = xyes; then
13532               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13533                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13534                 echo "local: *; };" >> $output_objdir/$libname.ver~
13535                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13536             fi
13537             ;;
13538           *)
13539             case `$CC -V 2>&1 | sed 5q` in
13540             *Sun\ C*)
13541               # Sun C++ 5.9
13542               no_undefined_flag_CXX=' -zdefs'
13543               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13544               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'
13545               hardcode_libdir_flag_spec_CXX='-R$libdir'
13546               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'
13547               compiler_needs_object_CXX=yes
13548
13549               # Not sure whether something based on
13550               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13551               # would be better.
13552               output_verbose_link_cmd='echo'
13553
13554               # Archives containing C++ object files must be created using
13555               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13556               # necessary to make sure instantiated templates are included
13557               # in the archive.
13558               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13559               ;;
13560             esac
13561             ;;
13562         esac
13563         ;;
13564
13565       lynxos*)
13566         # FIXME: insert proper C++ library support
13567         ld_shlibs_CXX=no
13568         ;;
13569
13570       m88k*)
13571         # FIXME: insert proper C++ library support
13572         ld_shlibs_CXX=no
13573         ;;
13574
13575       mvs*)
13576         case $cc_basename in
13577           cxx*)
13578             # FIXME: insert proper C++ library support
13579             ld_shlibs_CXX=no
13580             ;;
13581           *)
13582             # FIXME: insert proper C++ library support
13583             ld_shlibs_CXX=no
13584             ;;
13585         esac
13586         ;;
13587
13588       netbsd*)
13589         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13590           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13591           wlarc=
13592           hardcode_libdir_flag_spec_CXX='-R$libdir'
13593           hardcode_direct_CXX=yes
13594           hardcode_shlibpath_var_CXX=no
13595         fi
13596         # Workaround some broken pre-1.5 toolchains
13597         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13598         ;;
13599
13600       *nto* | *qnx*)
13601         ld_shlibs_CXX=yes
13602         ;;
13603
13604       openbsd2*)
13605         # C++ shared libraries are fairly broken
13606         ld_shlibs_CXX=no
13607         ;;
13608
13609       openbsd*)
13610         if test -f /usr/libexec/ld.so; then
13611           hardcode_direct_CXX=yes
13612           hardcode_shlibpath_var_CXX=no
13613           hardcode_direct_absolute_CXX=yes
13614           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13615           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13616           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13617             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13618             export_dynamic_flag_spec_CXX='${wl}-E'
13619             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13620           fi
13621           output_verbose_link_cmd=echo
13622         else
13623           ld_shlibs_CXX=no
13624         fi
13625         ;;
13626
13627       osf3* | osf4* | osf5*)
13628         case $cc_basename in
13629           KCC*)
13630             # Kuck and Associates, Inc. (KAI) C++ Compiler
13631
13632             # KCC will only create a shared library if the output file
13633             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13634             # to its proper name (with version) after linking.
13635             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'
13636
13637             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13638             hardcode_libdir_separator_CXX=:
13639
13640             # Archives containing C++ object files must be created using
13641             # the KAI C++ compiler.
13642             case $host in
13643               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13644               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13645             esac
13646             ;;
13647           RCC*)
13648             # Rational C++ 2.4.1
13649             # FIXME: insert proper C++ library support
13650             ld_shlibs_CXX=no
13651             ;;
13652           cxx*)
13653             case $host in
13654               osf3*)
13655                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13656                 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'
13657                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13658                 ;;
13659               *)
13660                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13661                 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'
13662                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13663                   echo "-hidden">> $lib.exp~
13664                   $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~
13665                   $RM $lib.exp'
13666                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13667                 ;;
13668             esac
13669
13670             hardcode_libdir_separator_CXX=:
13671
13672             # Commands to make compiler produce verbose output that lists
13673             # what "hidden" libraries, object files and flags are used when
13674             # linking a shared library.
13675             #
13676             # There doesn't appear to be a way to prevent this compiler from
13677             # explicitly linking system object files so we need to strip them
13678             # from the output so that they don't get included in the library
13679             # dependencies.
13680             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'
13681             ;;
13682           *)
13683             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13684               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13685               case $host in
13686                 osf3*)
13687                   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'
13688                   ;;
13689                 *)
13690                   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'
13691                   ;;
13692               esac
13693
13694               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13695               hardcode_libdir_separator_CXX=:
13696
13697               # Commands to make compiler produce verbose output that lists
13698               # what "hidden" libraries, object files and flags are used when
13699               # linking a shared library.
13700               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13701
13702             else
13703               # FIXME: insert proper C++ library support
13704               ld_shlibs_CXX=no
13705             fi
13706             ;;
13707         esac
13708         ;;
13709
13710       psos*)
13711         # FIXME: insert proper C++ library support
13712         ld_shlibs_CXX=no
13713         ;;
13714
13715       sunos4*)
13716         case $cc_basename in
13717           CC*)
13718             # Sun C++ 4.x
13719             # FIXME: insert proper C++ library support
13720             ld_shlibs_CXX=no
13721             ;;
13722           lcc*)
13723             # Lucid
13724             # FIXME: insert proper C++ library support
13725             ld_shlibs_CXX=no
13726             ;;
13727           *)
13728             # FIXME: insert proper C++ library support
13729             ld_shlibs_CXX=no
13730             ;;
13731         esac
13732         ;;
13733
13734       solaris*)
13735         case $cc_basename in
13736           CC*)
13737             # Sun C++ 4.2, 5.x and Centerline C++
13738             archive_cmds_need_lc_CXX=yes
13739             no_undefined_flag_CXX=' -zdefs'
13740             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13741             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13742               $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'
13743
13744             hardcode_libdir_flag_spec_CXX='-R$libdir'
13745             hardcode_shlibpath_var_CXX=no
13746             case $host_os in
13747               solaris2.[0-5] | solaris2.[0-5].*) ;;
13748               *)
13749                 # The compiler driver will combine and reorder linker options,
13750                 # but understands `-z linker_flag'.
13751                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13752                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13753                 ;;
13754             esac
13755             link_all_deplibs_CXX=yes
13756
13757             output_verbose_link_cmd='echo'
13758
13759             # Archives containing C++ object files must be created using
13760             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13761             # necessary to make sure instantiated templates are included
13762             # in the archive.
13763             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13764             ;;
13765           gcx*)
13766             # Green Hills C++ Compiler
13767             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13768
13769             # The C++ compiler must be used to create the archive.
13770             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13771             ;;
13772           *)
13773             # GNU C++ compiler with Solaris linker
13774             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13775               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13776               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13777                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13778                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13779                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13780
13781                 # Commands to make compiler produce verbose output that lists
13782                 # what "hidden" libraries, object files and flags are used when
13783                 # linking a shared library.
13784                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13785               else
13786                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13787                 # platform.
13788                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13789                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13790                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13791
13792                 # Commands to make compiler produce verbose output that lists
13793                 # what "hidden" libraries, object files and flags are used when
13794                 # linking a shared library.
13795                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13796               fi
13797
13798               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13799               case $host_os in
13800                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13801                 *)
13802                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13803                   ;;
13804               esac
13805             fi
13806             ;;
13807         esac
13808         ;;
13809
13810     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13811       no_undefined_flag_CXX='${wl}-z,text'
13812       archive_cmds_need_lc_CXX=no
13813       hardcode_shlibpath_var_CXX=no
13814       runpath_var='LD_RUN_PATH'
13815
13816       case $cc_basename in
13817         CC*)
13818           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13819           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13820           ;;
13821         *)
13822           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13823           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13824           ;;
13825       esac
13826       ;;
13827
13828       sysv5* | sco3.2v5* | sco5v6*)
13829         # Note: We can NOT use -z defs as we might desire, because we do not
13830         # link with -lc, and that would cause any symbols used from libc to
13831         # always be unresolved, which means just about no library would
13832         # ever link correctly.  If we're not using GNU ld we use -z text
13833         # though, which does catch some bad symbols but isn't as heavy-handed
13834         # as -z defs.
13835         no_undefined_flag_CXX='${wl}-z,text'
13836         allow_undefined_flag_CXX='${wl}-z,nodefs'
13837         archive_cmds_need_lc_CXX=no
13838         hardcode_shlibpath_var_CXX=no
13839         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13840         hardcode_libdir_separator_CXX=':'
13841         link_all_deplibs_CXX=yes
13842         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13843         runpath_var='LD_RUN_PATH'
13844
13845         case $cc_basename in
13846           CC*)
13847             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13848             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13849             ;;
13850           *)
13851             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13852             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13853             ;;
13854         esac
13855       ;;
13856
13857       tandem*)
13858         case $cc_basename in
13859           NCC*)
13860             # NonStop-UX NCC 3.20
13861             # FIXME: insert proper C++ library support
13862             ld_shlibs_CXX=no
13863             ;;
13864           *)
13865             # FIXME: insert proper C++ library support
13866             ld_shlibs_CXX=no
13867             ;;
13868         esac
13869         ;;
13870
13871       vxworks*)
13872         # FIXME: insert proper C++ library support
13873         ld_shlibs_CXX=no
13874         ;;
13875
13876       *)
13877         # FIXME: insert proper C++ library support
13878         ld_shlibs_CXX=no
13879         ;;
13880     esac
13881
13882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13883 $as_echo "$ld_shlibs_CXX" >&6; }
13884     test "$ld_shlibs_CXX" = no && can_build_shared=no
13885
13886     GCC_CXX="$GXX"
13887     LD_CXX="$LD"
13888
13889     ## CAVEAT EMPTOR:
13890     ## There is no encapsulation within the following macros, do not change
13891     ## the running order or otherwise move them around unless you know exactly
13892     ## what you are doing...
13893     # Dependencies to place before and after the object being linked:
13894 predep_objects_CXX=
13895 postdep_objects_CXX=
13896 predeps_CXX=
13897 postdeps_CXX=
13898 compiler_lib_search_path_CXX=
13899
13900 cat > conftest.$ac_ext <<_LT_EOF
13901 class Foo
13902 {
13903 public:
13904   Foo (void) { a = 0; }
13905 private:
13906   int a;
13907 };
13908 _LT_EOF
13909
13910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13911   (eval $ac_compile) 2>&5
13912   ac_status=$?
13913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13914   test $ac_status = 0; }; then
13915   # Parse the compiler output and extract the necessary
13916   # objects, libraries and library flags.
13917
13918   # Sentinel used to keep track of whether or not we are before
13919   # the conftest object file.
13920   pre_test_object_deps_done=no
13921
13922   for p in `eval "$output_verbose_link_cmd"`; do
13923     case $p in
13924
13925     -L* | -R* | -l*)
13926        # Some compilers place space between "-{L,R}" and the path.
13927        # Remove the space.
13928        if test $p = "-L" ||
13929           test $p = "-R"; then
13930          prev=$p
13931          continue
13932        else
13933          prev=
13934        fi
13935
13936        if test "$pre_test_object_deps_done" = no; then
13937          case $p in
13938          -L* | -R*)
13939            # Internal compiler library paths should come after those
13940            # provided the user.  The postdeps already come after the
13941            # user supplied libs so there is no need to process them.
13942            if test -z "$compiler_lib_search_path_CXX"; then
13943              compiler_lib_search_path_CXX="${prev}${p}"
13944            else
13945              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13946            fi
13947            ;;
13948          # The "-l" case would never come before the object being
13949          # linked, so don't bother handling this case.
13950          esac
13951        else
13952          if test -z "$postdeps_CXX"; then
13953            postdeps_CXX="${prev}${p}"
13954          else
13955            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13956          fi
13957        fi
13958        ;;
13959
13960     *.$objext)
13961        # This assumes that the test object file only shows up
13962        # once in the compiler output.
13963        if test "$p" = "conftest.$objext"; then
13964          pre_test_object_deps_done=yes
13965          continue
13966        fi
13967
13968        if test "$pre_test_object_deps_done" = no; then
13969          if test -z "$predep_objects_CXX"; then
13970            predep_objects_CXX="$p"
13971          else
13972            predep_objects_CXX="$predep_objects_CXX $p"
13973          fi
13974        else
13975          if test -z "$postdep_objects_CXX"; then
13976            postdep_objects_CXX="$p"
13977          else
13978            postdep_objects_CXX="$postdep_objects_CXX $p"
13979          fi
13980        fi
13981        ;;
13982
13983     *) ;; # Ignore the rest.
13984
13985     esac
13986   done
13987
13988   # Clean up.
13989   rm -f a.out a.exe
13990 else
13991   echo "libtool.m4: error: problem compiling CXX test program"
13992 fi
13993
13994 $RM -f confest.$objext
13995
13996 # PORTME: override above test on systems where it is broken
13997 case $host_os in
13998 interix[3-9]*)
13999   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14000   # hack all around it, let's just trust "g++" to DTRT.
14001   predep_objects_CXX=
14002   postdep_objects_CXX=
14003   postdeps_CXX=
14004   ;;
14005
14006 linux*)
14007   case `$CC -V 2>&1 | sed 5q` in
14008   *Sun\ C*)
14009     # Sun C++ 5.9
14010
14011     # The more standards-conforming stlport4 library is
14012     # incompatible with the Cstd library. Avoid specifying
14013     # it if it's in CXXFLAGS. Ignore libCrun as
14014     # -library=stlport4 depends on it.
14015     case " $CXX $CXXFLAGS " in
14016     *" -library=stlport4 "*)
14017       solaris_use_stlport4=yes
14018       ;;
14019     esac
14020
14021     if test "$solaris_use_stlport4" != yes; then
14022       postdeps_CXX='-library=Cstd -library=Crun'
14023     fi
14024     ;;
14025   esac
14026   ;;
14027
14028 solaris*)
14029   case $cc_basename in
14030   CC*)
14031     # The more standards-conforming stlport4 library is
14032     # incompatible with the Cstd library. Avoid specifying
14033     # it if it's in CXXFLAGS. Ignore libCrun as
14034     # -library=stlport4 depends on it.
14035     case " $CXX $CXXFLAGS " in
14036     *" -library=stlport4 "*)
14037       solaris_use_stlport4=yes
14038       ;;
14039     esac
14040
14041     # Adding this requires a known-good setup of shared libraries for
14042     # Sun compiler versions before 5.6, else PIC objects from an old
14043     # archive will be linked into the output, leading to subtle bugs.
14044     if test "$solaris_use_stlport4" != yes; then
14045       postdeps_CXX='-library=Cstd -library=Crun'
14046     fi
14047     ;;
14048   esac
14049   ;;
14050 esac
14051
14052
14053 case " $postdeps_CXX " in
14054 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14055 esac
14056  compiler_lib_search_dirs_CXX=
14057 if test -n "${compiler_lib_search_path_CXX}"; then
14058  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14059 fi
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091     lt_prog_compiler_wl_CXX=
14092 lt_prog_compiler_pic_CXX=
14093 lt_prog_compiler_static_CXX=
14094
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14096 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14097
14098   # C++ specific cases for pic, static, wl, etc.
14099   if test "$GXX" = yes; then
14100     lt_prog_compiler_wl_CXX='-Wl,'
14101     lt_prog_compiler_static_CXX='-static'
14102
14103     case $host_os in
14104     aix*)
14105       # All AIX code is PIC.
14106       if test "$host_cpu" = ia64; then
14107         # AIX 5 now supports IA64 processor
14108         lt_prog_compiler_static_CXX='-Bstatic'
14109       fi
14110       ;;
14111
14112     amigaos*)
14113       case $host_cpu in
14114       powerpc)
14115             # see comment about AmigaOS4 .so support
14116             lt_prog_compiler_pic_CXX='-fPIC'
14117         ;;
14118       m68k)
14119             # FIXME: we need at least 68020 code to build shared libraries, but
14120             # adding the `-m68020' flag to GCC prevents building anything better,
14121             # like `-m68040'.
14122             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14123         ;;
14124       esac
14125       ;;
14126
14127     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14128       # PIC is the default for these OSes.
14129       ;;
14130     mingw* | cygwin* | os2* | pw32* | cegcc*)
14131       # This hack is so that the source file can tell whether it is being
14132       # built for inclusion in a dll (and should export symbols for example).
14133       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14134       # (--disable-auto-import) libraries
14135       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14136       ;;
14137     darwin* | rhapsody*)
14138       # PIC is the default on this platform
14139       # Common symbols not allowed in MH_DYLIB files
14140       lt_prog_compiler_pic_CXX='-fno-common'
14141       ;;
14142     *djgpp*)
14143       # DJGPP does not support shared libraries at all
14144       lt_prog_compiler_pic_CXX=
14145       ;;
14146     interix[3-9]*)
14147       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14148       # Instead, we relocate shared libraries at runtime.
14149       ;;
14150     sysv4*MP*)
14151       if test -d /usr/nec; then
14152         lt_prog_compiler_pic_CXX=-Kconform_pic
14153       fi
14154       ;;
14155     hpux*)
14156       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14157       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14158       # sets the default TLS model and affects inlining.
14159       case $host_cpu in
14160       hppa*64*)
14161         ;;
14162       *)
14163         lt_prog_compiler_pic_CXX='-fPIC'
14164         ;;
14165       esac
14166       ;;
14167     *qnx* | *nto*)
14168       # QNX uses GNU C++, but need to define -shared option too, otherwise
14169       # it will coredump.
14170       lt_prog_compiler_pic_CXX='-fPIC -shared'
14171       ;;
14172     *)
14173       lt_prog_compiler_pic_CXX='-fPIC'
14174       ;;
14175     esac
14176   else
14177     case $host_os in
14178       aix[4-9]*)
14179         # All AIX code is PIC.
14180         if test "$host_cpu" = ia64; then
14181           # AIX 5 now supports IA64 processor
14182           lt_prog_compiler_static_CXX='-Bstatic'
14183         else
14184           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14185         fi
14186         ;;
14187       chorus*)
14188         case $cc_basename in
14189         cxch68*)
14190           # Green Hills C++ Compiler
14191           # _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"
14192           ;;
14193         esac
14194         ;;
14195       dgux*)
14196         case $cc_basename in
14197           ec++*)
14198             lt_prog_compiler_pic_CXX='-KPIC'
14199             ;;
14200           ghcx*)
14201             # Green Hills C++ Compiler
14202             lt_prog_compiler_pic_CXX='-pic'
14203             ;;
14204           *)
14205             ;;
14206         esac
14207         ;;
14208       freebsd* | dragonfly*)
14209         # FreeBSD uses GNU C++
14210         ;;
14211       hpux9* | hpux10* | hpux11*)
14212         case $cc_basename in
14213           CC*)
14214             lt_prog_compiler_wl_CXX='-Wl,'
14215             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14216             if test "$host_cpu" != ia64; then
14217               lt_prog_compiler_pic_CXX='+Z'
14218             fi
14219             ;;
14220           aCC*)
14221             lt_prog_compiler_wl_CXX='-Wl,'
14222             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14223             case $host_cpu in
14224             hppa*64*|ia64*)
14225               # +Z the default
14226               ;;
14227             *)
14228               lt_prog_compiler_pic_CXX='+Z'
14229               ;;
14230             esac
14231             ;;
14232           *)
14233             ;;
14234         esac
14235         ;;
14236       interix*)
14237         # This is c89, which is MS Visual C++ (no shared libs)
14238         # Anyone wants to do a port?
14239         ;;
14240       irix5* | irix6* | nonstopux*)
14241         case $cc_basename in
14242           CC*)
14243             lt_prog_compiler_wl_CXX='-Wl,'
14244             lt_prog_compiler_static_CXX='-non_shared'
14245             # CC pic flag -KPIC is the default.
14246             ;;
14247           *)
14248             ;;
14249         esac
14250         ;;
14251       linux* | k*bsd*-gnu)
14252         case $cc_basename in
14253           KCC*)
14254             # KAI C++ Compiler
14255             lt_prog_compiler_wl_CXX='--backend -Wl,'
14256             lt_prog_compiler_pic_CXX='-fPIC'
14257             ;;
14258           ecpc* )
14259             # old Intel C++ for x86_64 which still supported -KPIC.
14260             lt_prog_compiler_wl_CXX='-Wl,'
14261             lt_prog_compiler_pic_CXX='-KPIC'
14262             lt_prog_compiler_static_CXX='-static'
14263             ;;
14264           icpc* )
14265             # Intel C++, used to be incompatible with GCC.
14266             # ICC 10 doesn't accept -KPIC any more.
14267             lt_prog_compiler_wl_CXX='-Wl,'
14268             lt_prog_compiler_pic_CXX='-fPIC'
14269             lt_prog_compiler_static_CXX='-static'
14270             ;;
14271           pgCC* | pgcpp*)
14272             # Portland Group C++ compiler
14273             lt_prog_compiler_wl_CXX='-Wl,'
14274             lt_prog_compiler_pic_CXX='-fpic'
14275             lt_prog_compiler_static_CXX='-Bstatic'
14276             ;;
14277           cxx*)
14278             # Compaq C++
14279             # Make sure the PIC flag is empty.  It appears that all Alpha
14280             # Linux and Compaq Tru64 Unix objects are PIC.
14281             lt_prog_compiler_pic_CXX=
14282             lt_prog_compiler_static_CXX='-non_shared'
14283             ;;
14284           xlc* | xlC*)
14285             # IBM XL 8.0 on PPC
14286             lt_prog_compiler_wl_CXX='-Wl,'
14287             lt_prog_compiler_pic_CXX='-qpic'
14288             lt_prog_compiler_static_CXX='-qstaticlink'
14289             ;;
14290           *)
14291             case `$CC -V 2>&1 | sed 5q` in
14292             *Sun\ C*)
14293               # Sun C++ 5.9
14294               lt_prog_compiler_pic_CXX='-KPIC'
14295               lt_prog_compiler_static_CXX='-Bstatic'
14296               lt_prog_compiler_wl_CXX='-Qoption ld '
14297               ;;
14298             esac
14299             ;;
14300         esac
14301         ;;
14302       lynxos*)
14303         ;;
14304       m88k*)
14305         ;;
14306       mvs*)
14307         case $cc_basename in
14308           cxx*)
14309             lt_prog_compiler_pic_CXX='-W c,exportall'
14310             ;;
14311           *)
14312             ;;
14313         esac
14314         ;;
14315       netbsd*)
14316         ;;
14317       *qnx* | *nto*)
14318         # QNX uses GNU C++, but need to define -shared option too, otherwise
14319         # it will coredump.
14320         lt_prog_compiler_pic_CXX='-fPIC -shared'
14321         ;;
14322       osf3* | osf4* | osf5*)
14323         case $cc_basename in
14324           KCC*)
14325             lt_prog_compiler_wl_CXX='--backend -Wl,'
14326             ;;
14327           RCC*)
14328             # Rational C++ 2.4.1
14329             lt_prog_compiler_pic_CXX='-pic'
14330             ;;
14331           cxx*)
14332             # Digital/Compaq C++
14333             lt_prog_compiler_wl_CXX='-Wl,'
14334             # Make sure the PIC flag is empty.  It appears that all Alpha
14335             # Linux and Compaq Tru64 Unix objects are PIC.
14336             lt_prog_compiler_pic_CXX=
14337             lt_prog_compiler_static_CXX='-non_shared'
14338             ;;
14339           *)
14340             ;;
14341         esac
14342         ;;
14343       psos*)
14344         ;;
14345       solaris*)
14346         case $cc_basename in
14347           CC*)
14348             # Sun C++ 4.2, 5.x and Centerline C++
14349             lt_prog_compiler_pic_CXX='-KPIC'
14350             lt_prog_compiler_static_CXX='-Bstatic'
14351             lt_prog_compiler_wl_CXX='-Qoption ld '
14352             ;;
14353           gcx*)
14354             # Green Hills C++ Compiler
14355             lt_prog_compiler_pic_CXX='-PIC'
14356             ;;
14357           *)
14358             ;;
14359         esac
14360         ;;
14361       sunos4*)
14362         case $cc_basename in
14363           CC*)
14364             # Sun C++ 4.x
14365             lt_prog_compiler_pic_CXX='-pic'
14366             lt_prog_compiler_static_CXX='-Bstatic'
14367             ;;
14368           lcc*)
14369             # Lucid
14370             lt_prog_compiler_pic_CXX='-pic'
14371             ;;
14372           *)
14373             ;;
14374         esac
14375         ;;
14376       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14377         case $cc_basename in
14378           CC*)
14379             lt_prog_compiler_wl_CXX='-Wl,'
14380             lt_prog_compiler_pic_CXX='-KPIC'
14381             lt_prog_compiler_static_CXX='-Bstatic'
14382             ;;
14383         esac
14384         ;;
14385       tandem*)
14386         case $cc_basename in
14387           NCC*)
14388             # NonStop-UX NCC 3.20
14389             lt_prog_compiler_pic_CXX='-KPIC'
14390             ;;
14391           *)
14392             ;;
14393         esac
14394         ;;
14395       vxworks*)
14396         ;;
14397       *)
14398         lt_prog_compiler_can_build_shared_CXX=no
14399         ;;
14400     esac
14401   fi
14402
14403 case $host_os in
14404   # For platforms which do not support PIC, -DPIC is meaningless:
14405   *djgpp*)
14406     lt_prog_compiler_pic_CXX=
14407     ;;
14408   *)
14409     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14410     ;;
14411 esac
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14413 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14414
14415
14416
14417 #
14418 # Check to make sure the PIC flag actually works.
14419 #
14420 if test -n "$lt_prog_compiler_pic_CXX"; then
14421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14422 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14423 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14424   $as_echo_n "(cached) " >&6
14425 else
14426   lt_cv_prog_compiler_pic_works_CXX=no
14427    ac_outfile=conftest.$ac_objext
14428    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14429    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14430    # Insert the option either (1) after the last *FLAGS variable, or
14431    # (2) before a word containing "conftest.", or (3) at the end.
14432    # Note that $ac_compile itself does not contain backslashes and begins
14433    # with a dollar sign (not a hyphen), so the echo should work correctly.
14434    # The option is referenced via a variable to avoid confusing sed.
14435    lt_compile=`echo "$ac_compile" | $SED \
14436    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14437    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14438    -e 's:$: $lt_compiler_flag:'`
14439    (eval echo "\"\$as_me:14439: $lt_compile\"" >&5)
14440    (eval "$lt_compile" 2>conftest.err)
14441    ac_status=$?
14442    cat conftest.err >&5
14443    echo "$as_me:14443: \$? = $ac_status" >&5
14444    if (exit $ac_status) && test -s "$ac_outfile"; then
14445      # The compiler can only warn and ignore the option if not recognized
14446      # So say no if there are warnings other than the usual output.
14447      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14448      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14449      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14450        lt_cv_prog_compiler_pic_works_CXX=yes
14451      fi
14452    fi
14453    $RM conftest*
14454
14455 fi
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14457 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14458
14459 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14460     case $lt_prog_compiler_pic_CXX in
14461      "" | " "*) ;;
14462      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14463      esac
14464 else
14465     lt_prog_compiler_pic_CXX=
14466      lt_prog_compiler_can_build_shared_CXX=no
14467 fi
14468
14469 fi
14470
14471
14472
14473 #
14474 # Check to make sure the static flag actually works.
14475 #
14476 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14478 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14479 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14480   $as_echo_n "(cached) " >&6
14481 else
14482   lt_cv_prog_compiler_static_works_CXX=no
14483    save_LDFLAGS="$LDFLAGS"
14484    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14485    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14486    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14487      # The linker can only warn and ignore the option if not recognized
14488      # So say no if there are warnings
14489      if test -s conftest.err; then
14490        # Append any errors to the config.log.
14491        cat conftest.err 1>&5
14492        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14493        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14494        if diff conftest.exp conftest.er2 >/dev/null; then
14495          lt_cv_prog_compiler_static_works_CXX=yes
14496        fi
14497      else
14498        lt_cv_prog_compiler_static_works_CXX=yes
14499      fi
14500    fi
14501    $RM -r conftest*
14502    LDFLAGS="$save_LDFLAGS"
14503
14504 fi
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14506 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14507
14508 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14509     :
14510 else
14511     lt_prog_compiler_static_CXX=
14512 fi
14513
14514
14515
14516
14517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14519 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14520   $as_echo_n "(cached) " >&6
14521 else
14522   lt_cv_prog_compiler_c_o_CXX=no
14523    $RM -r conftest 2>/dev/null
14524    mkdir conftest
14525    cd conftest
14526    mkdir out
14527    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14528
14529    lt_compiler_flag="-o out/conftest2.$ac_objext"
14530    # Insert the option either (1) after the last *FLAGS variable, or
14531    # (2) before a word containing "conftest.", or (3) at the end.
14532    # Note that $ac_compile itself does not contain backslashes and begins
14533    # with a dollar sign (not a hyphen), so the echo should work correctly.
14534    lt_compile=`echo "$ac_compile" | $SED \
14535    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14536    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14537    -e 's:$: $lt_compiler_flag:'`
14538    (eval echo "\"\$as_me:14538: $lt_compile\"" >&5)
14539    (eval "$lt_compile" 2>out/conftest.err)
14540    ac_status=$?
14541    cat out/conftest.err >&5
14542    echo "$as_me:14542: \$? = $ac_status" >&5
14543    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14544    then
14545      # The compiler can only warn and ignore the option if not recognized
14546      # So say no if there are warnings
14547      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14548      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14549      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14550        lt_cv_prog_compiler_c_o_CXX=yes
14551      fi
14552    fi
14553    chmod u+w . 2>&5
14554    $RM conftest*
14555    # SGI C++ compiler will create directory out/ii_files/ for
14556    # template instantiation
14557    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14558    $RM out/* && rmdir out
14559    cd ..
14560    $RM -r conftest
14561    $RM conftest*
14562
14563 fi
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14565 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14566
14567
14568
14569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14570 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14571 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14572   $as_echo_n "(cached) " >&6
14573 else
14574   lt_cv_prog_compiler_c_o_CXX=no
14575    $RM -r conftest 2>/dev/null
14576    mkdir conftest
14577    cd conftest
14578    mkdir out
14579    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14580
14581    lt_compiler_flag="-o out/conftest2.$ac_objext"
14582    # Insert the option either (1) after the last *FLAGS variable, or
14583    # (2) before a word containing "conftest.", or (3) at the end.
14584    # Note that $ac_compile itself does not contain backslashes and begins
14585    # with a dollar sign (not a hyphen), so the echo should work correctly.
14586    lt_compile=`echo "$ac_compile" | $SED \
14587    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14588    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14589    -e 's:$: $lt_compiler_flag:'`
14590    (eval echo "\"\$as_me:14590: $lt_compile\"" >&5)
14591    (eval "$lt_compile" 2>out/conftest.err)
14592    ac_status=$?
14593    cat out/conftest.err >&5
14594    echo "$as_me:14594: \$? = $ac_status" >&5
14595    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14596    then
14597      # The compiler can only warn and ignore the option if not recognized
14598      # So say no if there are warnings
14599      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14600      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14601      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14602        lt_cv_prog_compiler_c_o_CXX=yes
14603      fi
14604    fi
14605    chmod u+w . 2>&5
14606    $RM conftest*
14607    # SGI C++ compiler will create directory out/ii_files/ for
14608    # template instantiation
14609    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14610    $RM out/* && rmdir out
14611    cd ..
14612    $RM -r conftest
14613    $RM conftest*
14614
14615 fi
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14617 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14618
14619
14620
14621
14622 hard_links="nottested"
14623 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14624   # do not overwrite the value of need_locks provided by the user
14625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14626 $as_echo_n "checking if we can lock with hard links... " >&6; }
14627   hard_links=yes
14628   $RM conftest*
14629   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14630   touch conftest.a
14631   ln conftest.a conftest.b 2>&5 || hard_links=no
14632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14634 $as_echo "$hard_links" >&6; }
14635   if test "$hard_links" = no; then
14636     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14637 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14638     need_locks=warn
14639   fi
14640 else
14641   need_locks=no
14642 fi
14643
14644
14645
14646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14647 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14648
14649   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14650   case $host_os in
14651   aix[4-9]*)
14652     # If we're using GNU nm, then we don't want the "-C" option.
14653     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14654     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14655       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'
14656     else
14657       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'
14658     fi
14659     ;;
14660   pw32*)
14661     export_symbols_cmds_CXX="$ltdll_cmds"
14662   ;;
14663   cygwin* | mingw* | cegcc*)
14664     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'
14665   ;;
14666   *)
14667     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14668   ;;
14669   esac
14670   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14673 $as_echo "$ld_shlibs_CXX" >&6; }
14674 test "$ld_shlibs_CXX" = no && can_build_shared=no
14675
14676 with_gnu_ld_CXX=$with_gnu_ld
14677
14678
14679
14680
14681
14682
14683 #
14684 # Do we need to explicitly link libc?
14685 #
14686 case "x$archive_cmds_need_lc_CXX" in
14687 x|xyes)
14688   # Assume -lc should be added
14689   archive_cmds_need_lc_CXX=yes
14690
14691   if test "$enable_shared" = yes && test "$GCC" = yes; then
14692     case $archive_cmds_CXX in
14693     *'~'*)
14694       # FIXME: we may have to deal with multi-command sequences.
14695       ;;
14696     '$CC '*)
14697       # Test whether the compiler implicitly links with -lc since on some
14698       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14699       # to ld, don't add -lc before -lgcc.
14700       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14701 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14702       $RM conftest*
14703       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14704
14705       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14706   (eval $ac_compile) 2>&5
14707   ac_status=$?
14708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14709   test $ac_status = 0; } 2>conftest.err; then
14710         soname=conftest
14711         lib=conftest
14712         libobjs=conftest.$ac_objext
14713         deplibs=
14714         wl=$lt_prog_compiler_wl_CXX
14715         pic_flag=$lt_prog_compiler_pic_CXX
14716         compiler_flags=-v
14717         linker_flags=-v
14718         verstring=
14719         output_objdir=.
14720         libname=conftest
14721         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14722         allow_undefined_flag_CXX=
14723         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14724   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14725   ac_status=$?
14726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14727   test $ac_status = 0; }
14728         then
14729           archive_cmds_need_lc_CXX=no
14730         else
14731           archive_cmds_need_lc_CXX=yes
14732         fi
14733         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14734       else
14735         cat conftest.err 1>&5
14736       fi
14737       $RM conftest*
14738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14739 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14740       ;;
14741     esac
14742   fi
14743   ;;
14744 esac
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14810 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14811
14812 library_names_spec=
14813 libname_spec='lib$name'
14814 soname_spec=
14815 shrext_cmds=".so"
14816 postinstall_cmds=
14817 postuninstall_cmds=
14818 finish_cmds=
14819 finish_eval=
14820 shlibpath_var=
14821 shlibpath_overrides_runpath=unknown
14822 version_type=none
14823 dynamic_linker="$host_os ld.so"
14824 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14825 need_lib_prefix=unknown
14826 hardcode_into_libs=no
14827
14828 # when you set need_version to no, make sure it does not cause -set_version
14829 # flags to be left without arguments
14830 need_version=unknown
14831
14832 case $host_os in
14833 aix3*)
14834   version_type=linux
14835   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14836   shlibpath_var=LIBPATH
14837
14838   # AIX 3 has no versioning support, so we append a major version to the name.
14839   soname_spec='${libname}${release}${shared_ext}$major'
14840   ;;
14841
14842 aix[4-9]*)
14843   version_type=linux
14844   need_lib_prefix=no
14845   need_version=no
14846   hardcode_into_libs=yes
14847   if test "$host_cpu" = ia64; then
14848     # AIX 5 supports IA64
14849     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14850     shlibpath_var=LD_LIBRARY_PATH
14851   else
14852     # With GCC up to 2.95.x, collect2 would create an import file
14853     # for dependence libraries.  The import file would start with
14854     # the line `#! .'.  This would cause the generated library to
14855     # depend on `.', always an invalid library.  This was fixed in
14856     # development snapshots of GCC prior to 3.0.
14857     case $host_os in
14858       aix4 | aix4.[01] | aix4.[01].*)
14859       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14860            echo ' yes '
14861            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14862         :
14863       else
14864         can_build_shared=no
14865       fi
14866       ;;
14867     esac
14868     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14869     # soname into executable. Probably we can add versioning support to
14870     # collect2, so additional links can be useful in future.
14871     if test "$aix_use_runtimelinking" = yes; then
14872       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14873       # instead of lib<name>.a to let people know that these are not
14874       # typical AIX shared libraries.
14875       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876     else
14877       # We preserve .a as extension for shared libraries through AIX4.2
14878       # and later when we are not doing run time linking.
14879       library_names_spec='${libname}${release}.a $libname.a'
14880       soname_spec='${libname}${release}${shared_ext}$major'
14881     fi
14882     shlibpath_var=LIBPATH
14883   fi
14884   ;;
14885
14886 amigaos*)
14887   case $host_cpu in
14888   powerpc)
14889     # Since July 2007 AmigaOS4 officially supports .so libraries.
14890     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14892     ;;
14893   m68k)
14894     library_names_spec='$libname.ixlibrary $libname.a'
14895     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14896     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'
14897     ;;
14898   esac
14899   ;;
14900
14901 beos*)
14902   library_names_spec='${libname}${shared_ext}'
14903   dynamic_linker="$host_os ld.so"
14904   shlibpath_var=LIBRARY_PATH
14905   ;;
14906
14907 bsdi[45]*)
14908   version_type=linux
14909   need_version=no
14910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911   soname_spec='${libname}${release}${shared_ext}$major'
14912   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14913   shlibpath_var=LD_LIBRARY_PATH
14914   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14915   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14916   # the default ld.so.conf also contains /usr/contrib/lib and
14917   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14918   # libtool to hard-code these into programs
14919   ;;
14920
14921 cygwin* | mingw* | pw32* | cegcc*)
14922   version_type=windows
14923   shrext_cmds=".dll"
14924   need_version=no
14925   need_lib_prefix=no
14926
14927   case $GCC,$host_os in
14928   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14929     library_names_spec='$libname.dll.a'
14930     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14931     postinstall_cmds='base_file=`basename \${file}`~
14932       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14933       dldir=$destdir/`dirname \$dlpath`~
14934       test -d \$dldir || mkdir -p \$dldir~
14935       $install_prog $dir/$dlname \$dldir/$dlname~
14936       chmod a+x \$dldir/$dlname~
14937       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14938         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14939       fi'
14940     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14941       dlpath=$dir/\$dldll~
14942        $RM \$dlpath'
14943     shlibpath_overrides_runpath=yes
14944
14945     case $host_os in
14946     cygwin*)
14947       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14948       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14949       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14950       ;;
14951     mingw* | cegcc*)
14952       # MinGW DLLs use traditional 'lib' prefix
14953       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14954       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14955       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14956         # It is most probably a Windows format PATH printed by
14957         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14958         # path with ; separators, and with drive letters. We can handle the
14959         # drive letters (cygwin fileutils understands them), so leave them,
14960         # especially as we might pass files found there to a mingw objdump,
14961         # which wouldn't understand a cygwinified path. Ahh.
14962         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14963       else
14964         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14965       fi
14966       ;;
14967     pw32*)
14968       # pw32 DLLs use 'pw' prefix rather than 'lib'
14969       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14970       ;;
14971     esac
14972     ;;
14973
14974   *)
14975     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14976     ;;
14977   esac
14978   dynamic_linker='Win32 ld.exe'
14979   # FIXME: first we should search . and the directory the executable is in
14980   shlibpath_var=PATH
14981   ;;
14982
14983 darwin* | rhapsody*)
14984   dynamic_linker="$host_os dyld"
14985   version_type=darwin
14986   need_lib_prefix=no
14987   need_version=no
14988   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14989   soname_spec='${libname}${release}${major}$shared_ext'
14990   shlibpath_overrides_runpath=yes
14991   shlibpath_var=DYLD_LIBRARY_PATH
14992   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14993
14994   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14995   ;;
14996
14997 dgux*)
14998   version_type=linux
14999   need_lib_prefix=no
15000   need_version=no
15001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15002   soname_spec='${libname}${release}${shared_ext}$major'
15003   shlibpath_var=LD_LIBRARY_PATH
15004   ;;
15005
15006 freebsd1*)
15007   dynamic_linker=no
15008   ;;
15009
15010 freebsd* | dragonfly*)
15011   # DragonFly does not have aout.  When/if they implement a new
15012   # versioning mechanism, adjust this.
15013   if test -x /usr/bin/objformat; then
15014     objformat=`/usr/bin/objformat`
15015   else
15016     case $host_os in
15017     freebsd[123]*) objformat=aout ;;
15018     *) objformat=elf ;;
15019     esac
15020   fi
15021   version_type=freebsd-$objformat
15022   case $version_type in
15023     freebsd-elf*)
15024       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15025       need_version=no
15026       need_lib_prefix=no
15027       ;;
15028     freebsd-*)
15029       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15030       need_version=yes
15031       ;;
15032   esac
15033   shlibpath_var=LD_LIBRARY_PATH
15034   case $host_os in
15035   freebsd2*)
15036     shlibpath_overrides_runpath=yes
15037     ;;
15038   freebsd3.[01]* | freebsdelf3.[01]*)
15039     shlibpath_overrides_runpath=yes
15040     hardcode_into_libs=yes
15041     ;;
15042   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15043   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15044     shlibpath_overrides_runpath=no
15045     hardcode_into_libs=yes
15046     ;;
15047   *) # from 4.6 on, and DragonFly
15048     shlibpath_overrides_runpath=yes
15049     hardcode_into_libs=yes
15050     ;;
15051   esac
15052   ;;
15053
15054 gnu*)
15055   version_type=linux
15056   need_lib_prefix=no
15057   need_version=no
15058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15059   soname_spec='${libname}${release}${shared_ext}$major'
15060   shlibpath_var=LD_LIBRARY_PATH
15061   hardcode_into_libs=yes
15062   ;;
15063
15064 hpux9* | hpux10* | hpux11*)
15065   # Give a soname corresponding to the major version so that dld.sl refuses to
15066   # link against other versions.
15067   version_type=sunos
15068   need_lib_prefix=no
15069   need_version=no
15070   case $host_cpu in
15071   ia64*)
15072     shrext_cmds='.so'
15073     hardcode_into_libs=yes
15074     dynamic_linker="$host_os dld.so"
15075     shlibpath_var=LD_LIBRARY_PATH
15076     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15077     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078     soname_spec='${libname}${release}${shared_ext}$major'
15079     if test "X$HPUX_IA64_MODE" = X32; then
15080       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15081     else
15082       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15083     fi
15084     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15085     ;;
15086   hppa*64*)
15087     shrext_cmds='.sl'
15088     hardcode_into_libs=yes
15089     dynamic_linker="$host_os dld.sl"
15090     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15091     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15093     soname_spec='${libname}${release}${shared_ext}$major'
15094     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15095     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15096     ;;
15097   *)
15098     shrext_cmds='.sl'
15099     dynamic_linker="$host_os dld.sl"
15100     shlibpath_var=SHLIB_PATH
15101     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15102     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103     soname_spec='${libname}${release}${shared_ext}$major'
15104     ;;
15105   esac
15106   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15107   postinstall_cmds='chmod 555 $lib'
15108   ;;
15109
15110 interix[3-9]*)
15111   version_type=linux
15112   need_lib_prefix=no
15113   need_version=no
15114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15115   soname_spec='${libname}${release}${shared_ext}$major'
15116   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15117   shlibpath_var=LD_LIBRARY_PATH
15118   shlibpath_overrides_runpath=no
15119   hardcode_into_libs=yes
15120   ;;
15121
15122 irix5* | irix6* | nonstopux*)
15123   case $host_os in
15124     nonstopux*) version_type=nonstopux ;;
15125     *)
15126         if test "$lt_cv_prog_gnu_ld" = yes; then
15127                 version_type=linux
15128         else
15129                 version_type=irix
15130         fi ;;
15131   esac
15132   need_lib_prefix=no
15133   need_version=no
15134   soname_spec='${libname}${release}${shared_ext}$major'
15135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15136   case $host_os in
15137   irix5* | nonstopux*)
15138     libsuff= shlibsuff=
15139     ;;
15140   *)
15141     case $LD in # libtool.m4 will add one of these switches to LD
15142     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15143       libsuff= shlibsuff= libmagic=32-bit;;
15144     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15145       libsuff=32 shlibsuff=N32 libmagic=N32;;
15146     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15147       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15148     *) libsuff= shlibsuff= libmagic=never-match;;
15149     esac
15150     ;;
15151   esac
15152   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15153   shlibpath_overrides_runpath=no
15154   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15155   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15156   hardcode_into_libs=yes
15157   ;;
15158
15159 # No shared lib support for Linux oldld, aout, or coff.
15160 linux*oldld* | linux*aout* | linux*coff*)
15161   dynamic_linker=no
15162   ;;
15163
15164 # This must be Linux ELF.
15165 linux* | k*bsd*-gnu)
15166   version_type=linux
15167   need_lib_prefix=no
15168   need_version=no
15169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170   soname_spec='${libname}${release}${shared_ext}$major'
15171   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15172   shlibpath_var=LD_LIBRARY_PATH
15173   shlibpath_overrides_runpath=no
15174   # Some binutils ld are patched to set DT_RUNPATH
15175   save_LDFLAGS=$LDFLAGS
15176   save_libdir=$libdir
15177   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15178        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h.  */
15181
15182 int
15183 main ()
15184 {
15185
15186   ;
15187   return 0;
15188 }
15189 _ACEOF
15190 if ac_fn_cxx_try_link "$LINENO"; then :
15191   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15192   shlibpath_overrides_runpath=yes
15193 fi
15194 fi
15195 rm -f core conftest.err conftest.$ac_objext \
15196     conftest$ac_exeext conftest.$ac_ext
15197   LDFLAGS=$save_LDFLAGS
15198   libdir=$save_libdir
15199
15200   # This implies no fast_install, which is unacceptable.
15201   # Some rework will be needed to allow for fast_install
15202   # before this can be enabled.
15203   hardcode_into_libs=yes
15204
15205   # Append ld.so.conf contents to the search path
15206   if test -f /etc/ld.so.conf; then
15207     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' ' '`
15208     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15209   fi
15210
15211   # We used to test for /lib/ld.so.1 and disable shared libraries on
15212   # powerpc, because MkLinux only supported shared libraries with the
15213   # GNU dynamic linker.  Since this was broken with cross compilers,
15214   # most powerpc-linux boxes support dynamic linking these days and
15215   # people can always --disable-shared, the test was removed, and we
15216   # assume the GNU/Linux dynamic linker is in use.
15217   dynamic_linker='GNU/Linux ld.so'
15218   ;;
15219
15220 netbsd*)
15221   version_type=sunos
15222   need_lib_prefix=no
15223   need_version=no
15224   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15226     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15227     dynamic_linker='NetBSD (a.out) ld.so'
15228   else
15229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15230     soname_spec='${libname}${release}${shared_ext}$major'
15231     dynamic_linker='NetBSD ld.elf_so'
15232   fi
15233   shlibpath_var=LD_LIBRARY_PATH
15234   shlibpath_overrides_runpath=yes
15235   hardcode_into_libs=yes
15236   ;;
15237
15238 newsos6)
15239   version_type=linux
15240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241   shlibpath_var=LD_LIBRARY_PATH
15242   shlibpath_overrides_runpath=yes
15243   ;;
15244
15245 *nto* | *qnx*)
15246   version_type=qnx
15247   need_lib_prefix=no
15248   need_version=no
15249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250   soname_spec='${libname}${release}${shared_ext}$major'
15251   shlibpath_var=LD_LIBRARY_PATH
15252   shlibpath_overrides_runpath=no
15253   hardcode_into_libs=yes
15254   dynamic_linker='ldqnx.so'
15255   ;;
15256
15257 openbsd*)
15258   version_type=sunos
15259   sys_lib_dlsearch_path_spec="/usr/lib"
15260   need_lib_prefix=no
15261   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15262   case $host_os in
15263     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15264     *)                          need_version=no  ;;
15265   esac
15266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15267   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15268   shlibpath_var=LD_LIBRARY_PATH
15269   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15270     case $host_os in
15271       openbsd2.[89] | openbsd2.[89].*)
15272         shlibpath_overrides_runpath=no
15273         ;;
15274       *)
15275         shlibpath_overrides_runpath=yes
15276         ;;
15277       esac
15278   else
15279     shlibpath_overrides_runpath=yes
15280   fi
15281   ;;
15282
15283 os2*)
15284   libname_spec='$name'
15285   shrext_cmds=".dll"
15286   need_lib_prefix=no
15287   library_names_spec='$libname${shared_ext} $libname.a'
15288   dynamic_linker='OS/2 ld.exe'
15289   shlibpath_var=LIBPATH
15290   ;;
15291
15292 osf3* | osf4* | osf5*)
15293   version_type=osf
15294   need_lib_prefix=no
15295   need_version=no
15296   soname_spec='${libname}${release}${shared_ext}$major'
15297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15298   shlibpath_var=LD_LIBRARY_PATH
15299   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15300   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15301   ;;
15302
15303 rdos*)
15304   dynamic_linker=no
15305   ;;
15306
15307 solaris*)
15308   version_type=linux
15309   need_lib_prefix=no
15310   need_version=no
15311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15312   soname_spec='${libname}${release}${shared_ext}$major'
15313   shlibpath_var=LD_LIBRARY_PATH
15314   shlibpath_overrides_runpath=yes
15315   hardcode_into_libs=yes
15316   # ldd complains unless libraries are executable
15317   postinstall_cmds='chmod +x $lib'
15318   ;;
15319
15320 sunos4*)
15321   version_type=sunos
15322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15323   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15324   shlibpath_var=LD_LIBRARY_PATH
15325   shlibpath_overrides_runpath=yes
15326   if test "$with_gnu_ld" = yes; then
15327     need_lib_prefix=no
15328   fi
15329   need_version=yes
15330   ;;
15331
15332 sysv4 | sysv4.3*)
15333   version_type=linux
15334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335   soname_spec='${libname}${release}${shared_ext}$major'
15336   shlibpath_var=LD_LIBRARY_PATH
15337   case $host_vendor in
15338     sni)
15339       shlibpath_overrides_runpath=no
15340       need_lib_prefix=no
15341       runpath_var=LD_RUN_PATH
15342       ;;
15343     siemens)
15344       need_lib_prefix=no
15345       ;;
15346     motorola)
15347       need_lib_prefix=no
15348       need_version=no
15349       shlibpath_overrides_runpath=no
15350       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15351       ;;
15352   esac
15353   ;;
15354
15355 sysv4*MP*)
15356   if test -d /usr/nec ;then
15357     version_type=linux
15358     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15359     soname_spec='$libname${shared_ext}.$major'
15360     shlibpath_var=LD_LIBRARY_PATH
15361   fi
15362   ;;
15363
15364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15365   version_type=freebsd-elf
15366   need_lib_prefix=no
15367   need_version=no
15368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15369   soname_spec='${libname}${release}${shared_ext}$major'
15370   shlibpath_var=LD_LIBRARY_PATH
15371   shlibpath_overrides_runpath=yes
15372   hardcode_into_libs=yes
15373   if test "$with_gnu_ld" = yes; then
15374     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15375   else
15376     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15377     case $host_os in
15378       sco3.2v5*)
15379         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15380         ;;
15381     esac
15382   fi
15383   sys_lib_dlsearch_path_spec='/usr/lib'
15384   ;;
15385
15386 tpf*)
15387   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15388   version_type=linux
15389   need_lib_prefix=no
15390   need_version=no
15391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392   shlibpath_var=LD_LIBRARY_PATH
15393   shlibpath_overrides_runpath=no
15394   hardcode_into_libs=yes
15395   ;;
15396
15397 uts4*)
15398   version_type=linux
15399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15400   soname_spec='${libname}${release}${shared_ext}$major'
15401   shlibpath_var=LD_LIBRARY_PATH
15402   ;;
15403
15404 *)
15405   dynamic_linker=no
15406   ;;
15407 esac
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15409 $as_echo "$dynamic_linker" >&6; }
15410 test "$dynamic_linker" = no && can_build_shared=no
15411
15412 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15413 if test "$GCC" = yes; then
15414   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15415 fi
15416
15417 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15418   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15419 fi
15420 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15421   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15422 fi
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15460 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15461 hardcode_action_CXX=
15462 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15463    test -n "$runpath_var_CXX" ||
15464    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15465
15466   # We can hardcode non-existent directories.
15467   if test "$hardcode_direct_CXX" != no &&
15468      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15469      # have to relink, otherwise we might link with an installed library
15470      # when we should be linking with a yet-to-be-installed one
15471      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15472      test "$hardcode_minus_L_CXX" != no; then
15473     # Linking always hardcodes the temporary library directory.
15474     hardcode_action_CXX=relink
15475   else
15476     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15477     hardcode_action_CXX=immediate
15478   fi
15479 else
15480   # We cannot hardcode anything, or else we can only hardcode existing
15481   # directories.
15482   hardcode_action_CXX=unsupported
15483 fi
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15485 $as_echo "$hardcode_action_CXX" >&6; }
15486
15487 if test "$hardcode_action_CXX" = relink ||
15488    test "$inherit_rpath_CXX" = yes; then
15489   # Fast installation is not supported
15490   enable_fast_install=no
15491 elif test "$shlibpath_overrides_runpath" = yes ||
15492      test "$enable_shared" = no; then
15493   # Fast installation is not necessary
15494   enable_fast_install=needless
15495 fi
15496
15497
15498
15499
15500
15501
15502
15503   fi # test -n "$compiler"
15504
15505   CC=$lt_save_CC
15506   LDCXX=$LD
15507   LD=$lt_save_LD
15508   GCC=$lt_save_GCC
15509   with_gnu_ld=$lt_save_with_gnu_ld
15510   lt_cv_path_LDCXX=$lt_cv_path_LD
15511   lt_cv_path_LD=$lt_save_path_LD
15512   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15513   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15514 fi # test "$_lt_caught_CXX_error" != yes
15515
15516 ac_ext=c
15517 ac_cpp='$CPP $CPPFLAGS'
15518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534         ac_config_commands="$ac_config_commands libtool"
15535
15536
15537
15538
15539 # Only expand once:
15540
15541
15542
15543
15544 if test x$use_libtool != xno; then
15545    DEFAULT_OBJECT_TYPE=".lo"
15546    DEFAULT_ARCHIVE_TYPE=".la"
15547    DEFAULT_SHARED_OBJECT_TYPE=".la"
15548    LIBTOOL="\$(LIBTOOL)"
15549    LIBTOOL_INSTALL_TARGET="libtool-install"
15550    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15551    LIBTOOL_CLEAN_TARGET="libtool-clean"
15552    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15553 else
15554    DEFAULT_OBJECT_TYPE=".o"
15555    DEFAULT_ARCHIVE_TYPE=".a"
15556    DEFAULT_SHARED_OBJECT_TYPE=".so"
15557    LIBTOOL="# \$(LIBTOOL)"
15558    LIBTOOL_INSTALL_TARGET=""
15559    LIBTOOL_UNINSTALL_TARGET=""
15560    LIBTOOL_CLEAN_TARGET=""
15561    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15562 fi
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573 # Check whether --enable-includes was given.
15574 if test "${enable_includes+set}" = set; then :
15575   enableval=$enable_includes;
15576        if test x$enableval = xyes; then
15577           install_includes=yes
15578        fi
15579
15580
15581 fi
15582
15583
15584
15585 if test x$use_libtool != xno -a x$install_includes = xyes; then
15586    INCLUDE_INSTALL_TARGET="install-includes"
15587    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15588 else
15589    INCLUDE_INSTALL_TARGET=""
15590    INCLUDE_UNINSTALL_TARGET=""
15591 fi
15592
15593
15594
15595
15596
15597 case $host_os in
15598   *cygwin* ) CYGWIN=yes;;
15599          * ) CYGWIN=no;;
15600 esac
15601
15602 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15603 then
15604
15605
15606 if $TRUEPRG; then
15607   HAVE_SUN_OS_TRUE=
15608   HAVE_SUN_OS_FALSE='#'
15609 else
15610   HAVE_SUN_OS_TRUE='#'
15611   HAVE_SUN_OS_FALSE=
15612 fi
15613         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15614
15615 else
15616
15617
15618 if $FALSEPRG; then
15619   HAVE_SUN_OS_TRUE=
15620   HAVE_SUN_OS_FALSE='#'
15621 else
15622   HAVE_SUN_OS_TRUE='#'
15623   HAVE_SUN_OS_FALSE=
15624 fi
15625 fi
15626
15627 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15628 then
15629
15630
15631 if $TRUEPRG; then
15632   HAVE_OSF1_OS_TRUE=
15633   HAVE_OSF1_OS_FALSE='#'
15634 else
15635   HAVE_OSF1_OS_TRUE='#'
15636   HAVE_OSF1_OS_FALSE=
15637 fi
15638         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15639
15640 else
15641
15642
15643 if $FALSEPRG; then
15644   HAVE_OSF1_OS_TRUE=
15645   HAVE_OSF1_OS_FALSE='#'
15646 else
15647   HAVE_OSF1_OS_TRUE='#'
15648   HAVE_OSF1_OS_FALSE=
15649 fi
15650 fi
15651
15652 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15653 then
15654
15655
15656 if $TRUEPRG; then
15657   HAVE_AIX_OS_TRUE=
15658   HAVE_AIX_OS_FALSE='#'
15659 else
15660   HAVE_AIX_OS_TRUE='#'
15661   HAVE_AIX_OS_FALSE=
15662 fi
15663         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15664
15665 else
15666
15667
15668 if $FALSEPRG; then
15669   HAVE_AIX_OS_TRUE=
15670   HAVE_AIX_OS_FALSE='#'
15671 else
15672   HAVE_AIX_OS_TRUE='#'
15673   HAVE_AIX_OS_FALSE=
15674 fi
15675 fi
15676
15677 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15678 then
15679
15680
15681 if $TRUEPRG; then
15682   HAVE_HPUX_OS_TRUE=
15683   HAVE_HPUX_OS_FALSE='#'
15684 else
15685   HAVE_HPUX_OS_TRUE='#'
15686   HAVE_HPUX_OS_FALSE=
15687 fi
15688         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15689
15690 else
15691
15692
15693 if $FALSEPRG; then
15694   HAVE_HPUX_OS_TRUE=
15695   HAVE_HPUX_OS_FALSE='#'
15696 else
15697   HAVE_HPUX_OS_TRUE='#'
15698   HAVE_HPUX_OS_FALSE=
15699 fi
15700 fi
15701
15702 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15703 then
15704
15705
15706 if $TRUEPRG; then
15707   HAVE_LINUX_OS_TRUE=
15708   HAVE_LINUX_OS_FALSE='#'
15709 else
15710   HAVE_LINUX_OS_TRUE='#'
15711   HAVE_LINUX_OS_FALSE=
15712 fi
15713         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15714
15715 else
15716
15717
15718 if $FALSEPRG; then
15719   HAVE_LINUX_OS_TRUE=
15720   HAVE_LINUX_OS_FALSE='#'
15721 else
15722   HAVE_LINUX_OS_TRUE='#'
15723   HAVE_LINUX_OS_FALSE=
15724 fi
15725 fi
15726
15727 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15728 then
15729
15730
15731 if $TRUEPRG; then
15732   HAVE_FREEBSD_OS_TRUE=
15733   HAVE_FREEBSD_OS_FALSE='#'
15734 else
15735   HAVE_FREEBSD_OS_TRUE='#'
15736   HAVE_FREEBSD_OS_FALSE=
15737 fi
15738         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15739
15740 else
15741
15742
15743 if $FALSEPRG; then
15744   HAVE_FREEBSD_OS_TRUE=
15745   HAVE_FREEBSD_OS_FALSE='#'
15746 else
15747   HAVE_FREEBSD_OS_TRUE='#'
15748   HAVE_FREEBSD_OS_FALSE=
15749 fi
15750 fi
15751
15752 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15753 then
15754
15755
15756 if $TRUEPRG; then
15757   HAVE_NETBSD_OS_TRUE=
15758   HAVE_NETBSD_OS_FALSE='#'
15759 else
15760   HAVE_NETBSD_OS_TRUE='#'
15761   HAVE_NETBSD_OS_FALSE=
15762 fi
15763         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15764
15765 else
15766
15767
15768 if $FALSEPRG; then
15769   HAVE_NETBSD_OS_TRUE=
15770   HAVE_NETBSD_OS_FALSE='#'
15771 else
15772   HAVE_NETBSD_OS_TRUE='#'
15773   HAVE_NETBSD_OS_FALSE=
15774 fi
15775 fi
15776
15777 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15778 then
15779
15780
15781 if $TRUEPRG; then
15782   HAVE_OPENBSD_OS_TRUE=
15783   HAVE_OPENBSD_OS_FALSE='#'
15784 else
15785   HAVE_OPENBSD_OS_TRUE='#'
15786   HAVE_OPENBSD_OS_FALSE=
15787 fi
15788         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15789
15790 else
15791
15792
15793 if $FALSEPRG; then
15794   HAVE_OPENBSD_OS_TRUE=
15795   HAVE_OPENBSD_OS_FALSE='#'
15796 else
15797   HAVE_OPENBSD_OS_TRUE='#'
15798   HAVE_OPENBSD_OS_FALSE=
15799 fi
15800 fi
15801
15802 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15803 then
15804
15805
15806 if $TRUEPRG; then
15807   HAVE_BSDI_OS_TRUE=
15808   HAVE_BSDI_OS_FALSE='#'
15809 else
15810   HAVE_BSDI_OS_TRUE='#'
15811   HAVE_BSDI_OS_FALSE=
15812 fi
15813         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15814
15815 else
15816
15817
15818 if $FALSEPRG; then
15819   HAVE_BSDI_OS_TRUE=
15820   HAVE_BSDI_OS_FALSE='#'
15821 else
15822   HAVE_BSDI_OS_TRUE='#'
15823   HAVE_BSDI_OS_FALSE=
15824 fi
15825 fi
15826
15827 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15828 then
15829
15830
15831 if $TRUEPRG; then
15832   HAVE_SGI_OS_TRUE=
15833   HAVE_SGI_OS_FALSE='#'
15834 else
15835   HAVE_SGI_OS_TRUE='#'
15836   HAVE_SGI_OS_FALSE=
15837 fi
15838         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15839
15840 else
15841
15842
15843 if $FALSEPRG; then
15844   HAVE_SGI_OS_TRUE=
15845   HAVE_SGI_OS_FALSE='#'
15846 else
15847   HAVE_SGI_OS_TRUE='#'
15848   HAVE_SGI_OS_FALSE=
15849 fi
15850 fi
15851
15852 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15853 then
15854
15855
15856 if $TRUEPRG; then
15857   HAVE_IRIX_OS_TRUE=
15858   HAVE_IRIX_OS_FALSE='#'
15859 else
15860   HAVE_IRIX_OS_TRUE='#'
15861   HAVE_IRIX_OS_FALSE=
15862 fi
15863         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15864
15865 else
15866
15867
15868 if $FALSEPRG; then
15869   HAVE_IRIX_OS_TRUE=
15870   HAVE_IRIX_OS_FALSE='#'
15871 else
15872   HAVE_IRIX_OS_TRUE='#'
15873   HAVE_IRIX_OS_FALSE=
15874 fi
15875 fi
15876
15877 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15878 then
15879
15880
15881 if $TRUEPRG; then
15882   HAVE_DARWIN_OS_TRUE=
15883   HAVE_DARWIN_OS_FALSE='#'
15884 else
15885   HAVE_DARWIN_OS_TRUE='#'
15886   HAVE_DARWIN_OS_FALSE=
15887 fi
15888     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15889
15890 else
15891
15892
15893 if $FALSEPRG; then
15894   HAVE_DARWIN_OS_TRUE=
15895   HAVE_DARWIN_OS_FALSE='#'
15896 else
15897   HAVE_DARWIN_OS_TRUE='#'
15898   HAVE_DARWIN_OS_FALSE=
15899 fi
15900 fi
15901
15902
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15904 $as_echo_n "checking for Operating System Distribution... " >&6; }
15905 if test "x$DISTNAME" != "x"
15906 then
15907         echo "distname set to $DISTNAME"
15908 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15909 then
15910         DISTNAME=alpha
15911 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15912 then
15913         DISTNAME=aix
15914 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15915 then
15916         DISTNAME=hpux
15917 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15918 then
15919         DISTNAME=solaris
15920 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15921 then
15922         DISTNAME=freebsd
15923 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15924 then
15925         DISTNAME=netbsd
15926 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15927 then
15928         DISTNAME=openbsd
15929 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15930 then
15931         DISTNAME=irix
15932 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15933 then
15934         DISTNAME=bsdi
15935 elif test -f /etc/SuSE-release
15936 then
15937         DISTNAME=suse
15938 elif test -d /etc/SuSEconfig
15939 then
15940         DISTNAME=suse5
15941 elif test -f /etc/mandrake-release
15942 then
15943         DISTNAME=mandrake
15944 elif test -f /etc/whitebox-release
15945 then
15946        DISTNAME=redhat
15947 elif test -f /etc/redhat-release
15948 then
15949         DISTNAME=redhat
15950 elif test -f /etc/gentoo-release
15951 then
15952         DISTNAME=gentoo
15953 elif test -f /etc/debian_version
15954 then
15955         DISTNAME=debian
15956 elif test -f /etc/slackware-version
15957 then
15958         DISTNAME=slackware
15959 elif test x$host_vendor = xapple
15960 then
15961     DISTNAME=osx
15962 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15963 then
15964     DISTNAME=darwin
15965 elif test -f /etc/engarde-version
15966 then
15967         DISTNAME=engarde
15968 elif test "$CYGWIN" = yes
15969 then
15970         DISTNAME=cygwin
15971         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15972
15973 else
15974         DISTNAME=unknown
15975 fi
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15977 $as_echo "done" >&6; }
15978
15979
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15981 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15982 set x ${MAKE-make}
15983 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15984 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15985   $as_echo_n "(cached) " >&6
15986 else
15987   cat >conftest.make <<\_ACEOF
15988 SHELL = /bin/sh
15989 all:
15990         @echo '@@@%%%=$(MAKE)=@@@%%%'
15991 _ACEOF
15992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15993 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15994   *@@@%%%=?*=@@@%%%*)
15995     eval ac_cv_prog_make_${ac_make}_set=yes;;
15996   *)
15997     eval ac_cv_prog_make_${ac_make}_set=no;;
15998 esac
15999 rm -f conftest.make
16000 fi
16001 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16003 $as_echo "yes" >&6; }
16004   SET_MAKE=
16005 else
16006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16007 $as_echo "no" >&6; }
16008   SET_MAKE="MAKE=${MAKE-make}"
16009 fi
16010
16011
16012
16013         MKINSTALLDIRS=
16014   if test -n "$ac_aux_dir"; then
16015     case "$ac_aux_dir" in
16016       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16017       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16018     esac
16019   fi
16020   if test -z "$MKINSTALLDIRS"; then
16021     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16022   fi
16023
16024
16025
16026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16027 $as_echo_n "checking whether NLS is requested... " >&6; }
16028     # Check whether --enable-nls was given.
16029 if test "${enable_nls+set}" = set; then :
16030   enableval=$enable_nls; USE_NLS=$enableval
16031 else
16032   USE_NLS=yes
16033 fi
16034
16035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16036 $as_echo "$USE_NLS" >&6; }
16037
16038
16039
16040
16041
16042
16043 # Prepare PATH_SEPARATOR.
16044 # The user is always right.
16045 if test "${PATH_SEPARATOR+set}" != set; then
16046   echo "#! /bin/sh" >conf$$.sh
16047   echo  "exit 0"   >>conf$$.sh
16048   chmod +x conf$$.sh
16049   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16050     PATH_SEPARATOR=';'
16051   else
16052     PATH_SEPARATOR=:
16053   fi
16054   rm -f conf$$.sh
16055 fi
16056
16057 # Find out how to test for executable files. Don't use a zero-byte file,
16058 # as systems may use methods other than mode bits to determine executability.
16059 cat >conf$$.file <<_ASEOF
16060 #! /bin/sh
16061 exit 0
16062 _ASEOF
16063 chmod +x conf$$.file
16064 if test -x conf$$.file >/dev/null 2>&1; then
16065   ac_executable_p="test -x"
16066 else
16067   ac_executable_p="test -f"
16068 fi
16069 rm -f conf$$.file
16070
16071 # Extract the first word of "msgfmt", so it can be a program name with args.
16072 set dummy msgfmt; ac_word=$2
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16074 $as_echo_n "checking for $ac_word... " >&6; }
16075 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16076   $as_echo_n "(cached) " >&6
16077 else
16078   case "$MSGFMT" in
16079   [\\/]* | ?:[\\/]*)
16080     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16081     ;;
16082   *)
16083     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16084     for ac_dir in $PATH; do
16085       IFS="$ac_save_IFS"
16086       test -z "$ac_dir" && ac_dir=.
16087       for ac_exec_ext in '' $ac_executable_extensions; do
16088         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16089           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16090           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16091      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16092             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16093             break 2
16094           fi
16095         fi
16096       done
16097     done
16098     IFS="$ac_save_IFS"
16099   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16100     ;;
16101 esac
16102 fi
16103 MSGFMT="$ac_cv_path_MSGFMT"
16104 if test "$MSGFMT" != ":"; then
16105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16106 $as_echo "$MSGFMT" >&6; }
16107 else
16108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109 $as_echo "no" >&6; }
16110 fi
16111
16112   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16113 set dummy gmsgfmt; ac_word=$2
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115 $as_echo_n "checking for $ac_word... " >&6; }
16116 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16117   $as_echo_n "(cached) " >&6
16118 else
16119   case $GMSGFMT in
16120   [\\/]* | ?:[\\/]*)
16121   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16122   ;;
16123   *)
16124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16125 for as_dir in $PATH
16126 do
16127   IFS=$as_save_IFS
16128   test -z "$as_dir" && as_dir=.
16129     for ac_exec_ext in '' $ac_executable_extensions; do
16130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16131     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16133     break 2
16134   fi
16135 done
16136   done
16137 IFS=$as_save_IFS
16138
16139   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16140   ;;
16141 esac
16142 fi
16143 GMSGFMT=$ac_cv_path_GMSGFMT
16144 if test -n "$GMSGFMT"; then
16145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16146 $as_echo "$GMSGFMT" >&6; }
16147 else
16148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 $as_echo "no" >&6; }
16150 fi
16151
16152
16153
16154
16155 # Prepare PATH_SEPARATOR.
16156 # The user is always right.
16157 if test "${PATH_SEPARATOR+set}" != set; then
16158   echo "#! /bin/sh" >conf$$.sh
16159   echo  "exit 0"   >>conf$$.sh
16160   chmod +x conf$$.sh
16161   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16162     PATH_SEPARATOR=';'
16163   else
16164     PATH_SEPARATOR=:
16165   fi
16166   rm -f conf$$.sh
16167 fi
16168
16169 # Find out how to test for executable files. Don't use a zero-byte file,
16170 # as systems may use methods other than mode bits to determine executability.
16171 cat >conf$$.file <<_ASEOF
16172 #! /bin/sh
16173 exit 0
16174 _ASEOF
16175 chmod +x conf$$.file
16176 if test -x conf$$.file >/dev/null 2>&1; then
16177   ac_executable_p="test -x"
16178 else
16179   ac_executable_p="test -f"
16180 fi
16181 rm -f conf$$.file
16182
16183 # Extract the first word of "xgettext", so it can be a program name with args.
16184 set dummy xgettext; ac_word=$2
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16186 $as_echo_n "checking for $ac_word... " >&6; }
16187 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16188   $as_echo_n "(cached) " >&6
16189 else
16190   case "$XGETTEXT" in
16191   [\\/]* | ?:[\\/]*)
16192     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16193     ;;
16194   *)
16195     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16196     for ac_dir in $PATH; do
16197       IFS="$ac_save_IFS"
16198       test -z "$ac_dir" && ac_dir=.
16199       for ac_exec_ext in '' $ac_executable_extensions; do
16200         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16201           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16202           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16203      (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
16204             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16205             break 2
16206           fi
16207         fi
16208       done
16209     done
16210     IFS="$ac_save_IFS"
16211   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16212     ;;
16213 esac
16214 fi
16215 XGETTEXT="$ac_cv_path_XGETTEXT"
16216 if test "$XGETTEXT" != ":"; then
16217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16218 $as_echo "$XGETTEXT" >&6; }
16219 else
16220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16221 $as_echo "no" >&6; }
16222 fi
16223
16224     rm -f messages.po
16225
16226
16227 # Prepare PATH_SEPARATOR.
16228 # The user is always right.
16229 if test "${PATH_SEPARATOR+set}" != set; then
16230   echo "#! /bin/sh" >conf$$.sh
16231   echo  "exit 0"   >>conf$$.sh
16232   chmod +x conf$$.sh
16233   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16234     PATH_SEPARATOR=';'
16235   else
16236     PATH_SEPARATOR=:
16237   fi
16238   rm -f conf$$.sh
16239 fi
16240
16241 # Find out how to test for executable files. Don't use a zero-byte file,
16242 # as systems may use methods other than mode bits to determine executability.
16243 cat >conf$$.file <<_ASEOF
16244 #! /bin/sh
16245 exit 0
16246 _ASEOF
16247 chmod +x conf$$.file
16248 if test -x conf$$.file >/dev/null 2>&1; then
16249   ac_executable_p="test -x"
16250 else
16251   ac_executable_p="test -f"
16252 fi
16253 rm -f conf$$.file
16254
16255 # Extract the first word of "msgmerge", so it can be a program name with args.
16256 set dummy msgmerge; ac_word=$2
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16258 $as_echo_n "checking for $ac_word... " >&6; }
16259 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16260   $as_echo_n "(cached) " >&6
16261 else
16262   case "$MSGMERGE" in
16263   [\\/]* | ?:[\\/]*)
16264     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16265     ;;
16266   *)
16267     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16268     for ac_dir in $PATH; do
16269       IFS="$ac_save_IFS"
16270       test -z "$ac_dir" && ac_dir=.
16271       for ac_exec_ext in '' $ac_executable_extensions; do
16272         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16273           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16274           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16275             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16276             break 2
16277           fi
16278         fi
16279       done
16280     done
16281     IFS="$ac_save_IFS"
16282   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16283     ;;
16284 esac
16285 fi
16286 MSGMERGE="$ac_cv_path_MSGMERGE"
16287 if test "$MSGMERGE" != ":"; then
16288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16289 $as_echo "$MSGMERGE" >&6; }
16290 else
16291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16292 $as_echo "no" >&6; }
16293 fi
16294
16295
16296       if test "$GMSGFMT" != ":"; then
16297             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16298        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16299       : ;
16300     else
16301       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16302       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16303 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16304       GMSGFMT=":"
16305     fi
16306   fi
16307
16308       if test "$XGETTEXT" != ":"; then
16309             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16310        (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
16311       : ;
16312     else
16313       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16314 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16315       XGETTEXT=":"
16316     fi
16317         rm -f messages.po
16318   fi
16319
16320   ac_config_commands="$ac_config_commands default-1"
16321
16322
16323
16324       if test "X$prefix" = "XNONE"; then
16325     acl_final_prefix="$ac_default_prefix"
16326   else
16327     acl_final_prefix="$prefix"
16328   fi
16329   if test "X$exec_prefix" = "XNONE"; then
16330     acl_final_exec_prefix='${prefix}'
16331   else
16332     acl_final_exec_prefix="$exec_prefix"
16333   fi
16334   acl_save_prefix="$prefix"
16335   prefix="$acl_final_prefix"
16336   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16337   prefix="$acl_save_prefix"
16338
16339
16340 # Check whether --with-gnu-ld was given.
16341 if test "${with_gnu_ld+set}" = set; then :
16342   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16343 else
16344   with_gnu_ld=no
16345 fi
16346
16347 # Prepare PATH_SEPARATOR.
16348 # The user is always right.
16349 if test "${PATH_SEPARATOR+set}" != set; then
16350   echo "#! /bin/sh" >conf$$.sh
16351   echo  "exit 0"   >>conf$$.sh
16352   chmod +x conf$$.sh
16353   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16354     PATH_SEPARATOR=';'
16355   else
16356     PATH_SEPARATOR=:
16357   fi
16358   rm -f conf$$.sh
16359 fi
16360 ac_prog=ld
16361 if test "$GCC" = yes; then
16362   # Check if gcc -print-prog-name=ld gives a path.
16363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16364 $as_echo_n "checking for ld used by GCC... " >&6; }
16365   case $host in
16366   *-*-mingw*)
16367     # gcc leaves a trailing carriage return which upsets mingw
16368     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16369   *)
16370     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16371   esac
16372   case $ac_prog in
16373     # Accept absolute paths.
16374     [\\/]* | [A-Za-z]:[\\/]*)
16375       re_direlt='/[^/][^/]*/\.\./'
16376       # Canonicalize the path of ld
16377       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16378       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16379         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16380       done
16381       test -z "$LD" && LD="$ac_prog"
16382       ;;
16383   "")
16384     # If it fails, then pretend we aren't using GCC.
16385     ac_prog=ld
16386     ;;
16387   *)
16388     # If it is relative, then search for the first ld in PATH.
16389     with_gnu_ld=unknown
16390     ;;
16391   esac
16392 elif test "$with_gnu_ld" = yes; then
16393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16394 $as_echo_n "checking for GNU ld... " >&6; }
16395 else
16396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16397 $as_echo_n "checking for non-GNU ld... " >&6; }
16398 fi
16399 if test "${acl_cv_path_LD+set}" = set; then :
16400   $as_echo_n "(cached) " >&6
16401 else
16402   if test -z "$LD"; then
16403   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16404   for ac_dir in $PATH; do
16405     test -z "$ac_dir" && ac_dir=.
16406     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16407       acl_cv_path_LD="$ac_dir/$ac_prog"
16408       # Check to see if the program is GNU ld.  I'd rather use --version,
16409       # but apparently some GNU ld's only accept -v.
16410       # Break only if it was the GNU/non-GNU ld that we prefer.
16411       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16412       *GNU* | *'with BFD'*)
16413         test "$with_gnu_ld" != no && break ;;
16414       *)
16415         test "$with_gnu_ld" != yes && break ;;
16416       esac
16417     fi
16418   done
16419   IFS="$ac_save_ifs"
16420 else
16421   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16422 fi
16423 fi
16424
16425 LD="$acl_cv_path_LD"
16426 if test -n "$LD"; then
16427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16428 $as_echo "$LD" >&6; }
16429 else
16430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16431 $as_echo "no" >&6; }
16432 fi
16433 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16435 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16436 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16437   $as_echo_n "(cached) " >&6
16438 else
16439   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16440 case `$LD -v 2>&1 </dev/null` in
16441 *GNU* | *'with BFD'*)
16442   acl_cv_prog_gnu_ld=yes ;;
16443 *)
16444   acl_cv_prog_gnu_ld=no ;;
16445 esac
16446 fi
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16448 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16449 with_gnu_ld=$acl_cv_prog_gnu_ld
16450
16451
16452
16453
16454                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16455 $as_echo_n "checking for shared library run path origin... " >&6; }
16456 if test "${acl_cv_rpath+set}" = set; then :
16457   $as_echo_n "(cached) " >&6
16458 else
16459
16460     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16461     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16462     . ./conftest.sh
16463     rm -f ./conftest.sh
16464     acl_cv_rpath=done
16465
16466 fi
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16468 $as_echo "$acl_cv_rpath" >&6; }
16469   wl="$acl_cv_wl"
16470   libext="$acl_cv_libext"
16471   shlibext="$acl_cv_shlibext"
16472   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16473   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16474   hardcode_direct="$acl_cv_hardcode_direct"
16475   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16476     # Check whether --enable-rpath was given.
16477 if test "${enable_rpath+set}" = set; then :
16478   enableval=$enable_rpath; :
16479 else
16480   enable_rpath=yes
16481 fi
16482
16483
16484
16485
16486
16487
16488
16489
16490     use_additional=yes
16491
16492   acl_save_prefix="$prefix"
16493   prefix="$acl_final_prefix"
16494   acl_save_exec_prefix="$exec_prefix"
16495   exec_prefix="$acl_final_exec_prefix"
16496
16497     eval additional_includedir=\"$includedir\"
16498     eval additional_libdir=\"$libdir\"
16499
16500   exec_prefix="$acl_save_exec_prefix"
16501   prefix="$acl_save_prefix"
16502
16503
16504 # Check whether --with-libiconv-prefix was given.
16505 if test "${with_libiconv_prefix+set}" = set; then :
16506   withval=$with_libiconv_prefix;
16507     if test "X$withval" = "Xno"; then
16508       use_additional=no
16509     else
16510       if test "X$withval" = "X"; then
16511
16512   acl_save_prefix="$prefix"
16513   prefix="$acl_final_prefix"
16514   acl_save_exec_prefix="$exec_prefix"
16515   exec_prefix="$acl_final_exec_prefix"
16516
16517           eval additional_includedir=\"$includedir\"
16518           eval additional_libdir=\"$libdir\"
16519
16520   exec_prefix="$acl_save_exec_prefix"
16521   prefix="$acl_save_prefix"
16522
16523       else
16524         additional_includedir="$withval/include"
16525         additional_libdir="$withval/lib"
16526       fi
16527     fi
16528
16529 fi
16530
16531       LIBICONV=
16532   LTLIBICONV=
16533   INCICONV=
16534   rpathdirs=
16535   ltrpathdirs=
16536   names_already_handled=
16537   names_next_round='iconv '
16538   while test -n "$names_next_round"; do
16539     names_this_round="$names_next_round"
16540     names_next_round=
16541     for name in $names_this_round; do
16542       already_handled=
16543       for n in $names_already_handled; do
16544         if test "$n" = "$name"; then
16545           already_handled=yes
16546           break
16547         fi
16548       done
16549       if test -z "$already_handled"; then
16550         names_already_handled="$names_already_handled $name"
16551                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16552         eval value=\"\$HAVE_LIB$uppername\"
16553         if test -n "$value"; then
16554           if test "$value" = yes; then
16555             eval value=\"\$LIB$uppername\"
16556             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16557             eval value=\"\$LTLIB$uppername\"
16558             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16559           else
16560                                     :
16561           fi
16562         else
16563                               found_dir=
16564           found_la=
16565           found_so=
16566           found_a=
16567           if test $use_additional = yes; then
16568             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16569               found_dir="$additional_libdir"
16570               found_so="$additional_libdir/lib$name.$shlibext"
16571               if test -f "$additional_libdir/lib$name.la"; then
16572                 found_la="$additional_libdir/lib$name.la"
16573               fi
16574             else
16575               if test -f "$additional_libdir/lib$name.$libext"; then
16576                 found_dir="$additional_libdir"
16577                 found_a="$additional_libdir/lib$name.$libext"
16578                 if test -f "$additional_libdir/lib$name.la"; then
16579                   found_la="$additional_libdir/lib$name.la"
16580                 fi
16581               fi
16582             fi
16583           fi
16584           if test "X$found_dir" = "X"; then
16585             for x in $LDFLAGS $LTLIBICONV; do
16586
16587   acl_save_prefix="$prefix"
16588   prefix="$acl_final_prefix"
16589   acl_save_exec_prefix="$exec_prefix"
16590   exec_prefix="$acl_final_exec_prefix"
16591   eval x=\"$x\"
16592   exec_prefix="$acl_save_exec_prefix"
16593   prefix="$acl_save_prefix"
16594
16595               case "$x" in
16596                 -L*)
16597                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16598                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16599                     found_dir="$dir"
16600                     found_so="$dir/lib$name.$shlibext"
16601                     if test -f "$dir/lib$name.la"; then
16602                       found_la="$dir/lib$name.la"
16603                     fi
16604                   else
16605                     if test -f "$dir/lib$name.$libext"; then
16606                       found_dir="$dir"
16607                       found_a="$dir/lib$name.$libext"
16608                       if test -f "$dir/lib$name.la"; then
16609                         found_la="$dir/lib$name.la"
16610                       fi
16611                     fi
16612                   fi
16613                   ;;
16614               esac
16615               if test "X$found_dir" != "X"; then
16616                 break
16617               fi
16618             done
16619           fi
16620           if test "X$found_dir" != "X"; then
16621                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16622             if test "X$found_so" != "X"; then
16623                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16624                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16625               else
16626                                                                                 haveit=
16627                 for x in $ltrpathdirs; do
16628                   if test "X$x" = "X$found_dir"; then
16629                     haveit=yes
16630                     break
16631                   fi
16632                 done
16633                 if test -z "$haveit"; then
16634                   ltrpathdirs="$ltrpathdirs $found_dir"
16635                 fi
16636                                 if test "$hardcode_direct" = yes; then
16637                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16638                 else
16639                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16640                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16641                                                             haveit=
16642                     for x in $rpathdirs; do
16643                       if test "X$x" = "X$found_dir"; then
16644                         haveit=yes
16645                         break
16646                       fi
16647                     done
16648                     if test -z "$haveit"; then
16649                       rpathdirs="$rpathdirs $found_dir"
16650                     fi
16651                   else
16652                                                                                 haveit=
16653                     for x in $LDFLAGS $LIBICONV; do
16654
16655   acl_save_prefix="$prefix"
16656   prefix="$acl_final_prefix"
16657   acl_save_exec_prefix="$exec_prefix"
16658   exec_prefix="$acl_final_exec_prefix"
16659   eval x=\"$x\"
16660   exec_prefix="$acl_save_exec_prefix"
16661   prefix="$acl_save_prefix"
16662
16663                       if test "X$x" = "X-L$found_dir"; then
16664                         haveit=yes
16665                         break
16666                       fi
16667                     done
16668                     if test -z "$haveit"; then
16669                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16670                     fi
16671                     if test "$hardcode_minus_L" != no; then
16672                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16673                     else
16674                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16675                     fi
16676                   fi
16677                 fi
16678               fi
16679             else
16680               if test "X$found_a" != "X"; then
16681                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16682               else
16683                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16684               fi
16685             fi
16686                         additional_includedir=
16687             case "$found_dir" in
16688               */lib | */lib/)
16689                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16690                 additional_includedir="$basedir/include"
16691                 ;;
16692             esac
16693             if test "X$additional_includedir" != "X"; then
16694                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16695                 haveit=
16696                 if test "X$additional_includedir" = "X/usr/local/include"; then
16697                   if test -n "$GCC"; then
16698                     case $host_os in
16699                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16700                     esac
16701                   fi
16702                 fi
16703                 if test -z "$haveit"; then
16704                   for x in $CPPFLAGS $INCICONV; do
16705
16706   acl_save_prefix="$prefix"
16707   prefix="$acl_final_prefix"
16708   acl_save_exec_prefix="$exec_prefix"
16709   exec_prefix="$acl_final_exec_prefix"
16710   eval x=\"$x\"
16711   exec_prefix="$acl_save_exec_prefix"
16712   prefix="$acl_save_prefix"
16713
16714                     if test "X$x" = "X-I$additional_includedir"; then
16715                       haveit=yes
16716                       break
16717                     fi
16718                   done
16719                   if test -z "$haveit"; then
16720                     if test -d "$additional_includedir"; then
16721                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16722                     fi
16723                   fi
16724                 fi
16725               fi
16726             fi
16727                         if test -n "$found_la"; then
16728                                                         save_libdir="$libdir"
16729               case "$found_la" in
16730                 */* | *\\*) . "$found_la" ;;
16731                 *) . "./$found_la" ;;
16732               esac
16733               libdir="$save_libdir"
16734                             for dep in $dependency_libs; do
16735                 case "$dep" in
16736                   -L*)
16737                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16738                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16739                       haveit=
16740                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16741                         if test -n "$GCC"; then
16742                           case $host_os in
16743                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16744                           esac
16745                         fi
16746                       fi
16747                       if test -z "$haveit"; then
16748                         haveit=
16749                         for x in $LDFLAGS $LIBICONV; do
16750
16751   acl_save_prefix="$prefix"
16752   prefix="$acl_final_prefix"
16753   acl_save_exec_prefix="$exec_prefix"
16754   exec_prefix="$acl_final_exec_prefix"
16755   eval x=\"$x\"
16756   exec_prefix="$acl_save_exec_prefix"
16757   prefix="$acl_save_prefix"
16758
16759                           if test "X$x" = "X-L$additional_libdir"; then
16760                             haveit=yes
16761                             break
16762                           fi
16763                         done
16764                         if test -z "$haveit"; then
16765                           if test -d "$additional_libdir"; then
16766                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16767                           fi
16768                         fi
16769                         haveit=
16770                         for x in $LDFLAGS $LTLIBICONV; do
16771
16772   acl_save_prefix="$prefix"
16773   prefix="$acl_final_prefix"
16774   acl_save_exec_prefix="$exec_prefix"
16775   exec_prefix="$acl_final_exec_prefix"
16776   eval x=\"$x\"
16777   exec_prefix="$acl_save_exec_prefix"
16778   prefix="$acl_save_prefix"
16779
16780                           if test "X$x" = "X-L$additional_libdir"; then
16781                             haveit=yes
16782                             break
16783                           fi
16784                         done
16785                         if test -z "$haveit"; then
16786                           if test -d "$additional_libdir"; then
16787                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16788                           fi
16789                         fi
16790                       fi
16791                     fi
16792                     ;;
16793                   -R*)
16794                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16795                     if test "$enable_rpath" != no; then
16796                                                                   haveit=
16797                       for x in $rpathdirs; do
16798                         if test "X$x" = "X$dir"; then
16799                           haveit=yes
16800                           break
16801                         fi
16802                       done
16803                       if test -z "$haveit"; then
16804                         rpathdirs="$rpathdirs $dir"
16805                       fi
16806                                                                   haveit=
16807                       for x in $ltrpathdirs; do
16808                         if test "X$x" = "X$dir"; then
16809                           haveit=yes
16810                           break
16811                         fi
16812                       done
16813                       if test -z "$haveit"; then
16814                         ltrpathdirs="$ltrpathdirs $dir"
16815                       fi
16816                     fi
16817                     ;;
16818                   -l*)
16819                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16820                     ;;
16821                   *.la)
16822                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16823                     ;;
16824                   *)
16825                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16826                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16827                     ;;
16828                 esac
16829               done
16830             fi
16831           else
16832                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16833             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16834           fi
16835         fi
16836       fi
16837     done
16838   done
16839   if test "X$rpathdirs" != "X"; then
16840     if test -n "$hardcode_libdir_separator"; then
16841                         alldirs=
16842       for found_dir in $rpathdirs; do
16843         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16844       done
16845             acl_save_libdir="$libdir"
16846       libdir="$alldirs"
16847       eval flag=\"$hardcode_libdir_flag_spec\"
16848       libdir="$acl_save_libdir"
16849       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16850     else
16851             for found_dir in $rpathdirs; do
16852         acl_save_libdir="$libdir"
16853         libdir="$found_dir"
16854         eval flag=\"$hardcode_libdir_flag_spec\"
16855         libdir="$acl_save_libdir"
16856         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16857       done
16858     fi
16859   fi
16860   if test "X$ltrpathdirs" != "X"; then
16861             for found_dir in $ltrpathdirs; do
16862       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16863     done
16864   fi
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16884 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16885 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16886   $as_echo_n "(cached) " >&6
16887 else
16888   gt_save_CPPFLAGS="$CPPFLAGS"
16889      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16890      gt_save_LIBS="$LIBS"
16891      LIBS="$LIBS -framework CoreFoundation"
16892      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h.  */
16894 #include <CFPreferences.h>
16895 int
16896 main ()
16897 {
16898 CFPreferencesCopyAppValue(NULL, NULL)
16899   ;
16900   return 0;
16901 }
16902 _ACEOF
16903 if ac_fn_c_try_link "$LINENO"; then :
16904   gt_cv_func_CFPreferencesCopyAppValue=yes
16905 else
16906   gt_cv_func_CFPreferencesCopyAppValue=no
16907 fi
16908 rm -f core conftest.err conftest.$ac_objext \
16909     conftest$ac_exeext conftest.$ac_ext
16910      CPPFLAGS="$gt_save_CPPFLAGS"
16911      LIBS="$gt_save_LIBS"
16912 fi
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16914 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16915   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16916
16917 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16918
16919   fi
16920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16921 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16922 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16923   $as_echo_n "(cached) " >&6
16924 else
16925   gt_save_CPPFLAGS="$CPPFLAGS"
16926      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16927      gt_save_LIBS="$LIBS"
16928      LIBS="$LIBS -framework CoreFoundation"
16929      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16930 /* end confdefs.h.  */
16931 #include <CFLocale.h>
16932 int
16933 main ()
16934 {
16935 CFLocaleCopyCurrent();
16936   ;
16937   return 0;
16938 }
16939 _ACEOF
16940 if ac_fn_c_try_link "$LINENO"; then :
16941   gt_cv_func_CFLocaleCopyCurrent=yes
16942 else
16943   gt_cv_func_CFLocaleCopyCurrent=no
16944 fi
16945 rm -f core conftest.err conftest.$ac_objext \
16946     conftest$ac_exeext conftest.$ac_ext
16947      CPPFLAGS="$gt_save_CPPFLAGS"
16948      LIBS="$gt_save_LIBS"
16949 fi
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16951 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16952   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16953
16954 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16955
16956   fi
16957   INTL_MACOSX_LIBS=
16958   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16959     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16960   fi
16961
16962
16963
16964
16965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16966 $as_echo_n "checking whether NLS is requested... " >&6; }
16967     # Check whether --enable-nls was given.
16968 if test "${enable_nls+set}" = set; then :
16969   enableval=$enable_nls; USE_NLS=$enableval
16970 else
16971   USE_NLS=yes
16972 fi
16973
16974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16975 $as_echo "$USE_NLS" >&6; }
16976
16977
16978
16979
16980   LIBINTL=
16981   LTLIBINTL=
16982   POSUB=
16983
16984     if test "$USE_NLS" = "yes"; then
16985     gt_use_preinstalled_gnugettext=no
16986
16987
16988
16989
16990
16991
16992         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16993 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16994 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
16995   $as_echo_n "(cached) " >&6
16996 else
16997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998 /* end confdefs.h.  */
16999 #include <libintl.h>
17000 extern int _nl_msg_cat_cntr;
17001 extern int *_nl_domain_bindings;
17002 int
17003 main ()
17004 {
17005 bindtextdomain ("", "");
17006 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17007   ;
17008   return 0;
17009 }
17010 _ACEOF
17011 if ac_fn_c_try_link "$LINENO"; then :
17012   gt_cv_func_gnugettext1_libc=yes
17013 else
17014   gt_cv_func_gnugettext1_libc=no
17015 fi
17016 rm -f core conftest.err conftest.$ac_objext \
17017     conftest$ac_exeext conftest.$ac_ext
17018 fi
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17020 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17021
17022         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17023
17024
17025
17026
17027
17028           am_save_CPPFLAGS="$CPPFLAGS"
17029
17030   for element in $INCICONV; do
17031     haveit=
17032     for x in $CPPFLAGS; do
17033
17034   acl_save_prefix="$prefix"
17035   prefix="$acl_final_prefix"
17036   acl_save_exec_prefix="$exec_prefix"
17037   exec_prefix="$acl_final_exec_prefix"
17038   eval x=\"$x\"
17039   exec_prefix="$acl_save_exec_prefix"
17040   prefix="$acl_save_prefix"
17041
17042       if test "X$x" = "X$element"; then
17043         haveit=yes
17044         break
17045       fi
17046     done
17047     if test -z "$haveit"; then
17048       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17049     fi
17050   done
17051
17052
17053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17054 $as_echo_n "checking for iconv... " >&6; }
17055 if test "${am_cv_func_iconv+set}" = set; then :
17056   $as_echo_n "(cached) " >&6
17057 else
17058
17059     am_cv_func_iconv="no, consider installing GNU libiconv"
17060     am_cv_lib_iconv=no
17061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062 /* end confdefs.h.  */
17063 #include <stdlib.h>
17064 #include <iconv.h>
17065 int
17066 main ()
17067 {
17068 iconv_t cd = iconv_open("","");
17069        iconv(cd,NULL,NULL,NULL,NULL);
17070        iconv_close(cd);
17071   ;
17072   return 0;
17073 }
17074 _ACEOF
17075 if ac_fn_c_try_link "$LINENO"; then :
17076   am_cv_func_iconv=yes
17077 fi
17078 rm -f core conftest.err conftest.$ac_objext \
17079     conftest$ac_exeext conftest.$ac_ext
17080     if test "$am_cv_func_iconv" != yes; then
17081       am_save_LIBS="$LIBS"
17082       LIBS="$LIBS $LIBICONV"
17083       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h.  */
17085 #include <stdlib.h>
17086 #include <iconv.h>
17087 int
17088 main ()
17089 {
17090 iconv_t cd = iconv_open("","");
17091          iconv(cd,NULL,NULL,NULL,NULL);
17092          iconv_close(cd);
17093   ;
17094   return 0;
17095 }
17096 _ACEOF
17097 if ac_fn_c_try_link "$LINENO"; then :
17098   am_cv_lib_iconv=yes
17099         am_cv_func_iconv=yes
17100 fi
17101 rm -f core conftest.err conftest.$ac_objext \
17102     conftest$ac_exeext conftest.$ac_ext
17103       LIBS="$am_save_LIBS"
17104     fi
17105
17106 fi
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17108 $as_echo "$am_cv_func_iconv" >&6; }
17109   if test "$am_cv_func_iconv" = yes; then
17110
17111 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17112
17113   fi
17114   if test "$am_cv_lib_iconv" = yes; then
17115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17116 $as_echo_n "checking how to link with libiconv... " >&6; }
17117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17118 $as_echo "$LIBICONV" >&6; }
17119   else
17120             CPPFLAGS="$am_save_CPPFLAGS"
17121     LIBICONV=
17122     LTLIBICONV=
17123   fi
17124
17125
17126
17127
17128
17129
17130     use_additional=yes
17131
17132   acl_save_prefix="$prefix"
17133   prefix="$acl_final_prefix"
17134   acl_save_exec_prefix="$exec_prefix"
17135   exec_prefix="$acl_final_exec_prefix"
17136
17137     eval additional_includedir=\"$includedir\"
17138     eval additional_libdir=\"$libdir\"
17139
17140   exec_prefix="$acl_save_exec_prefix"
17141   prefix="$acl_save_prefix"
17142
17143
17144 # Check whether --with-libintl-prefix was given.
17145 if test "${with_libintl_prefix+set}" = set; then :
17146   withval=$with_libintl_prefix;
17147     if test "X$withval" = "Xno"; then
17148       use_additional=no
17149     else
17150       if test "X$withval" = "X"; then
17151
17152   acl_save_prefix="$prefix"
17153   prefix="$acl_final_prefix"
17154   acl_save_exec_prefix="$exec_prefix"
17155   exec_prefix="$acl_final_exec_prefix"
17156
17157           eval additional_includedir=\"$includedir\"
17158           eval additional_libdir=\"$libdir\"
17159
17160   exec_prefix="$acl_save_exec_prefix"
17161   prefix="$acl_save_prefix"
17162
17163       else
17164         additional_includedir="$withval/include"
17165         additional_libdir="$withval/lib"
17166       fi
17167     fi
17168
17169 fi
17170
17171       LIBINTL=
17172   LTLIBINTL=
17173   INCINTL=
17174   rpathdirs=
17175   ltrpathdirs=
17176   names_already_handled=
17177   names_next_round='intl '
17178   while test -n "$names_next_round"; do
17179     names_this_round="$names_next_round"
17180     names_next_round=
17181     for name in $names_this_round; do
17182       already_handled=
17183       for n in $names_already_handled; do
17184         if test "$n" = "$name"; then
17185           already_handled=yes
17186           break
17187         fi
17188       done
17189       if test -z "$already_handled"; then
17190         names_already_handled="$names_already_handled $name"
17191                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17192         eval value=\"\$HAVE_LIB$uppername\"
17193         if test -n "$value"; then
17194           if test "$value" = yes; then
17195             eval value=\"\$LIB$uppername\"
17196             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17197             eval value=\"\$LTLIB$uppername\"
17198             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17199           else
17200                                     :
17201           fi
17202         else
17203                               found_dir=
17204           found_la=
17205           found_so=
17206           found_a=
17207           if test $use_additional = yes; then
17208             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17209               found_dir="$additional_libdir"
17210               found_so="$additional_libdir/lib$name.$shlibext"
17211               if test -f "$additional_libdir/lib$name.la"; then
17212                 found_la="$additional_libdir/lib$name.la"
17213               fi
17214             else
17215               if test -f "$additional_libdir/lib$name.$libext"; then
17216                 found_dir="$additional_libdir"
17217                 found_a="$additional_libdir/lib$name.$libext"
17218                 if test -f "$additional_libdir/lib$name.la"; then
17219                   found_la="$additional_libdir/lib$name.la"
17220                 fi
17221               fi
17222             fi
17223           fi
17224           if test "X$found_dir" = "X"; then
17225             for x in $LDFLAGS $LTLIBINTL; do
17226
17227   acl_save_prefix="$prefix"
17228   prefix="$acl_final_prefix"
17229   acl_save_exec_prefix="$exec_prefix"
17230   exec_prefix="$acl_final_exec_prefix"
17231   eval x=\"$x\"
17232   exec_prefix="$acl_save_exec_prefix"
17233   prefix="$acl_save_prefix"
17234
17235               case "$x" in
17236                 -L*)
17237                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17238                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17239                     found_dir="$dir"
17240                     found_so="$dir/lib$name.$shlibext"
17241                     if test -f "$dir/lib$name.la"; then
17242                       found_la="$dir/lib$name.la"
17243                     fi
17244                   else
17245                     if test -f "$dir/lib$name.$libext"; then
17246                       found_dir="$dir"
17247                       found_a="$dir/lib$name.$libext"
17248                       if test -f "$dir/lib$name.la"; then
17249                         found_la="$dir/lib$name.la"
17250                       fi
17251                     fi
17252                   fi
17253                   ;;
17254               esac
17255               if test "X$found_dir" != "X"; then
17256                 break
17257               fi
17258             done
17259           fi
17260           if test "X$found_dir" != "X"; then
17261                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17262             if test "X$found_so" != "X"; then
17263                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17264                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17265               else
17266                                                                                 haveit=
17267                 for x in $ltrpathdirs; do
17268                   if test "X$x" = "X$found_dir"; then
17269                     haveit=yes
17270                     break
17271                   fi
17272                 done
17273                 if test -z "$haveit"; then
17274                   ltrpathdirs="$ltrpathdirs $found_dir"
17275                 fi
17276                                 if test "$hardcode_direct" = yes; then
17277                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17278                 else
17279                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17280                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17281                                                             haveit=
17282                     for x in $rpathdirs; do
17283                       if test "X$x" = "X$found_dir"; then
17284                         haveit=yes
17285                         break
17286                       fi
17287                     done
17288                     if test -z "$haveit"; then
17289                       rpathdirs="$rpathdirs $found_dir"
17290                     fi
17291                   else
17292                                                                                 haveit=
17293                     for x in $LDFLAGS $LIBINTL; do
17294
17295   acl_save_prefix="$prefix"
17296   prefix="$acl_final_prefix"
17297   acl_save_exec_prefix="$exec_prefix"
17298   exec_prefix="$acl_final_exec_prefix"
17299   eval x=\"$x\"
17300   exec_prefix="$acl_save_exec_prefix"
17301   prefix="$acl_save_prefix"
17302
17303                       if test "X$x" = "X-L$found_dir"; then
17304                         haveit=yes
17305                         break
17306                       fi
17307                     done
17308                     if test -z "$haveit"; then
17309                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17310                     fi
17311                     if test "$hardcode_minus_L" != no; then
17312                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17313                     else
17314                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17315                     fi
17316                   fi
17317                 fi
17318               fi
17319             else
17320               if test "X$found_a" != "X"; then
17321                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17322               else
17323                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17324               fi
17325             fi
17326                         additional_includedir=
17327             case "$found_dir" in
17328               */lib | */lib/)
17329                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17330                 additional_includedir="$basedir/include"
17331                 ;;
17332             esac
17333             if test "X$additional_includedir" != "X"; then
17334                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17335                 haveit=
17336                 if test "X$additional_includedir" = "X/usr/local/include"; then
17337                   if test -n "$GCC"; then
17338                     case $host_os in
17339                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17340                     esac
17341                   fi
17342                 fi
17343                 if test -z "$haveit"; then
17344                   for x in $CPPFLAGS $INCINTL; do
17345
17346   acl_save_prefix="$prefix"
17347   prefix="$acl_final_prefix"
17348   acl_save_exec_prefix="$exec_prefix"
17349   exec_prefix="$acl_final_exec_prefix"
17350   eval x=\"$x\"
17351   exec_prefix="$acl_save_exec_prefix"
17352   prefix="$acl_save_prefix"
17353
17354                     if test "X$x" = "X-I$additional_includedir"; then
17355                       haveit=yes
17356                       break
17357                     fi
17358                   done
17359                   if test -z "$haveit"; then
17360                     if test -d "$additional_includedir"; then
17361                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17362                     fi
17363                   fi
17364                 fi
17365               fi
17366             fi
17367                         if test -n "$found_la"; then
17368                                                         save_libdir="$libdir"
17369               case "$found_la" in
17370                 */* | *\\*) . "$found_la" ;;
17371                 *) . "./$found_la" ;;
17372               esac
17373               libdir="$save_libdir"
17374                             for dep in $dependency_libs; do
17375                 case "$dep" in
17376                   -L*)
17377                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17378                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17379                       haveit=
17380                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17381                         if test -n "$GCC"; then
17382                           case $host_os in
17383                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17384                           esac
17385                         fi
17386                       fi
17387                       if test -z "$haveit"; then
17388                         haveit=
17389                         for x in $LDFLAGS $LIBINTL; do
17390
17391   acl_save_prefix="$prefix"
17392   prefix="$acl_final_prefix"
17393   acl_save_exec_prefix="$exec_prefix"
17394   exec_prefix="$acl_final_exec_prefix"
17395   eval x=\"$x\"
17396   exec_prefix="$acl_save_exec_prefix"
17397   prefix="$acl_save_prefix"
17398
17399                           if test "X$x" = "X-L$additional_libdir"; then
17400                             haveit=yes
17401                             break
17402                           fi
17403                         done
17404                         if test -z "$haveit"; then
17405                           if test -d "$additional_libdir"; then
17406                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17407                           fi
17408                         fi
17409                         haveit=
17410                         for x in $LDFLAGS $LTLIBINTL; do
17411
17412   acl_save_prefix="$prefix"
17413   prefix="$acl_final_prefix"
17414   acl_save_exec_prefix="$exec_prefix"
17415   exec_prefix="$acl_final_exec_prefix"
17416   eval x=\"$x\"
17417   exec_prefix="$acl_save_exec_prefix"
17418   prefix="$acl_save_prefix"
17419
17420                           if test "X$x" = "X-L$additional_libdir"; then
17421                             haveit=yes
17422                             break
17423                           fi
17424                         done
17425                         if test -z "$haveit"; then
17426                           if test -d "$additional_libdir"; then
17427                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17428                           fi
17429                         fi
17430                       fi
17431                     fi
17432                     ;;
17433                   -R*)
17434                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17435                     if test "$enable_rpath" != no; then
17436                                                                   haveit=
17437                       for x in $rpathdirs; do
17438                         if test "X$x" = "X$dir"; then
17439                           haveit=yes
17440                           break
17441                         fi
17442                       done
17443                       if test -z "$haveit"; then
17444                         rpathdirs="$rpathdirs $dir"
17445                       fi
17446                                                                   haveit=
17447                       for x in $ltrpathdirs; do
17448                         if test "X$x" = "X$dir"; then
17449                           haveit=yes
17450                           break
17451                         fi
17452                       done
17453                       if test -z "$haveit"; then
17454                         ltrpathdirs="$ltrpathdirs $dir"
17455                       fi
17456                     fi
17457                     ;;
17458                   -l*)
17459                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17460                     ;;
17461                   *.la)
17462                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17463                     ;;
17464                   *)
17465                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17466                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17467                     ;;
17468                 esac
17469               done
17470             fi
17471           else
17472                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17473             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17474           fi
17475         fi
17476       fi
17477     done
17478   done
17479   if test "X$rpathdirs" != "X"; then
17480     if test -n "$hardcode_libdir_separator"; then
17481                         alldirs=
17482       for found_dir in $rpathdirs; do
17483         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17484       done
17485             acl_save_libdir="$libdir"
17486       libdir="$alldirs"
17487       eval flag=\"$hardcode_libdir_flag_spec\"
17488       libdir="$acl_save_libdir"
17489       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17490     else
17491             for found_dir in $rpathdirs; do
17492         acl_save_libdir="$libdir"
17493         libdir="$found_dir"
17494         eval flag=\"$hardcode_libdir_flag_spec\"
17495         libdir="$acl_save_libdir"
17496         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17497       done
17498     fi
17499   fi
17500   if test "X$ltrpathdirs" != "X"; then
17501             for found_dir in $ltrpathdirs; do
17502       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17503     done
17504   fi
17505
17506           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17507 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17508 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17509   $as_echo_n "(cached) " >&6
17510 else
17511   gt_save_CPPFLAGS="$CPPFLAGS"
17512             CPPFLAGS="$CPPFLAGS $INCINTL"
17513             gt_save_LIBS="$LIBS"
17514             LIBS="$LIBS $LIBINTL"
17515                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h.  */
17517 #include <libintl.h>
17518 extern int _nl_msg_cat_cntr;
17519 extern
17520 #ifdef __cplusplus
17521 "C"
17522 #endif
17523 const char *_nl_expand_alias (const char *);
17524 int
17525 main ()
17526 {
17527 bindtextdomain ("", "");
17528 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17529   ;
17530   return 0;
17531 }
17532 _ACEOF
17533 if ac_fn_c_try_link "$LINENO"; then :
17534   gt_cv_func_gnugettext1_libintl=yes
17535 else
17536   gt_cv_func_gnugettext1_libintl=no
17537 fi
17538 rm -f core conftest.err conftest.$ac_objext \
17539     conftest$ac_exeext conftest.$ac_ext
17540                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17541               LIBS="$LIBS $LIBICONV"
17542               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17543 /* end confdefs.h.  */
17544 #include <libintl.h>
17545 extern int _nl_msg_cat_cntr;
17546 extern
17547 #ifdef __cplusplus
17548 "C"
17549 #endif
17550 const char *_nl_expand_alias (const char *);
17551 int
17552 main ()
17553 {
17554 bindtextdomain ("", "");
17555 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17556   ;
17557   return 0;
17558 }
17559 _ACEOF
17560 if ac_fn_c_try_link "$LINENO"; then :
17561   LIBINTL="$LIBINTL $LIBICONV"
17562                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17563                 gt_cv_func_gnugettext1_libintl=yes
17564
17565 fi
17566 rm -f core conftest.err conftest.$ac_objext \
17567     conftest$ac_exeext conftest.$ac_ext
17568             fi
17569             CPPFLAGS="$gt_save_CPPFLAGS"
17570             LIBS="$gt_save_LIBS"
17571 fi
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17573 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17574         fi
17575
17576                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17577            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17578                 && test "$PACKAGE" != gettext-runtime \
17579                 && test "$PACKAGE" != gettext-tools; }; then
17580           gt_use_preinstalled_gnugettext=yes
17581         else
17582                     LIBINTL=
17583           LTLIBINTL=
17584           INCINTL=
17585         fi
17586
17587
17588
17589     if test -n "$INTL_MACOSX_LIBS"; then
17590       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17591          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17592                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17593         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17594       fi
17595     fi
17596
17597     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17598        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17599
17600 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17601
17602     else
17603       USE_NLS=no
17604     fi
17605   fi
17606
17607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17608 $as_echo_n "checking whether to use NLS... " >&6; }
17609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17610 $as_echo "$USE_NLS" >&6; }
17611   if test "$USE_NLS" = "yes"; then
17612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17613 $as_echo_n "checking where the gettext function comes from... " >&6; }
17614     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17615       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17616         gt_source="external libintl"
17617       else
17618         gt_source="libc"
17619       fi
17620     else
17621       gt_source="included intl directory"
17622     fi
17623     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17624 $as_echo "$gt_source" >&6; }
17625   fi
17626
17627   if test "$USE_NLS" = "yes"; then
17628
17629     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17630       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17631         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17632 $as_echo_n "checking how to link with libintl... " >&6; }
17633         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17634 $as_echo "$LIBINTL" >&6; }
17635
17636   for element in $INCINTL; do
17637     haveit=
17638     for x in $CPPFLAGS; do
17639
17640   acl_save_prefix="$prefix"
17641   prefix="$acl_final_prefix"
17642   acl_save_exec_prefix="$exec_prefix"
17643   exec_prefix="$acl_final_exec_prefix"
17644   eval x=\"$x\"
17645   exec_prefix="$acl_save_exec_prefix"
17646   prefix="$acl_save_prefix"
17647
17648       if test "X$x" = "X$element"; then
17649         haveit=yes
17650         break
17651       fi
17652     done
17653     if test -z "$haveit"; then
17654       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17655     fi
17656   done
17657
17658       fi
17659
17660
17661 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17662
17663
17664 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17665
17666     fi
17667
17668         POSUB=po
17669   fi
17670
17671
17672
17673     INTLLIBS="$LIBINTL"
17674
17675
17676
17677
17678
17679
17680
17681 os_name=`uname -s 2>/dev/null`
17682 if test x${prefix} = xNONE ; then
17683    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17684       sysconfdir=/etc/bacula
17685    fi
17686
17687    if test `eval echo ${libdir}` = NONE/lib ; then
17688       case ${os_name} in
17689       Linux)
17690          os_processor=`uname -p 2>/dev/null`
17691          case ${os_processor} in
17692          x86_64)
17693             libdir=/usr/lib64
17694             ;;
17695          *)
17696             libdir=/usr/lib
17697             ;;
17698          esac
17699          ;;
17700       *)
17701          libdir=/usr/lib
17702          ;;
17703       esac
17704    fi
17705
17706    if test `eval echo ${includedir}` = NONE/include ; then
17707       includedir=/usr/include
17708    fi
17709
17710    if test `eval echo ${datarootdir}` = NONE/share ; then
17711       datarootdir=/usr/share
17712    fi
17713    prefix=
17714 fi
17715
17716 if test x${exec_prefix} = xNONE ; then
17717    exec_prefix=${prefix}
17718 fi
17719
17720 sysconfdir=`eval echo ${sysconfdir}`
17721 datarootdir=`eval echo ${datarootdir}`
17722 docdir=`eval echo ${docdir}`
17723 htmldir=`eval echo ${htmldir}`
17724 libdir=`eval echo ${libdir}`
17725 includedir=`eval echo ${includedir}`
17726 localedir=`eval echo ${datarootdir}/locale`
17727 cat >>confdefs.h <<_ACEOF
17728 #define SYSCONFDIR "$sysconfdir"
17729 _ACEOF
17730
17731 cat >>confdefs.h <<_ACEOF
17732 #define LOCALEDIR "$localedir"
17733 _ACEOF
17734
17735
17736 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17737    sbindir=${exec_prefix}/sbin
17738 fi
17739 sbindir=`eval echo ${sbindir}`
17740
17741 if test x$mandir = x'${prefix}/man' ; then
17742    mandir=/usr/share/man
17743 fi
17744
17745 if test x$htmldir = x${docdir} ; then
17746    htmldir=`eval echo ${docdir}bacula/html`
17747 fi
17748
17749 if test x$docdir = x'/usr/share/doc/' ; then
17750    docdir=`eval echo ${docdir}bacula`
17751 fi
17752
17753
17754 for ac_prog in msgfmt
17755 do
17756   # Extract the first word of "$ac_prog", so it can be a program name with args.
17757 set dummy $ac_prog; ac_word=$2
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17759 $as_echo_n "checking for $ac_word... " >&6; }
17760 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17761   $as_echo_n "(cached) " >&6
17762 else
17763   case $MSGFMT in
17764   [\\/]* | ?:[\\/]*)
17765   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17766   ;;
17767   *)
17768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17769 for as_dir in $PATH
17770 do
17771   IFS=$as_save_IFS
17772   test -z "$as_dir" && as_dir=.
17773     for ac_exec_ext in '' $ac_executable_extensions; do
17774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17775     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17777     break 2
17778   fi
17779 done
17780   done
17781 IFS=$as_save_IFS
17782
17783   ;;
17784 esac
17785 fi
17786 MSGFMT=$ac_cv_path_MSGFMT
17787 if test -n "$MSGFMT"; then
17788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17789 $as_echo "$MSGFMT" >&6; }
17790 else
17791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17792 $as_echo "no" >&6; }
17793 fi
17794
17795
17796   test -n "$MSGFMT" && break
17797 done
17798 test -n "$MSGFMT" || MSGFMT="no"
17799
17800 if test "$MSGFMT" = "no"
17801 then
17802    echo 'msgfmt program not found, disabling NLS !'
17803    USE_NLS=no
17804    USE_INCLUDED_LIBINTL=no
17805 #else
17806
17807     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17808 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17809 if test "${ac_cv_gnu_library_2+set}" = set; then :
17810   $as_echo_n "(cached) " >&6
17811 else
17812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h.  */
17814
17815 #include <features.h>
17816 #ifdef __GNU_LIBRARY__
17817  #if (__GLIBC__ >= 2)
17818   Lucky GNU user
17819  #endif
17820 #endif
17821
17822 _ACEOF
17823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17824   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17825   ac_cv_gnu_library_2=yes
17826 else
17827   ac_cv_gnu_library_2=no
17828 fi
17829 rm -f conftest*
17830
17831
17832
17833 fi
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17835 $as_echo "$ac_cv_gnu_library_2" >&6; }
17836
17837     GLIBC2="$ac_cv_gnu_library_2"
17838
17839
17840 if test -n "$ac_tool_prefix"; then
17841   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17842 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17844 $as_echo_n "checking for $ac_word... " >&6; }
17845 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17846   $as_echo_n "(cached) " >&6
17847 else
17848   if test -n "$RANLIB"; then
17849   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17850 else
17851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17852 for as_dir in $PATH
17853 do
17854   IFS=$as_save_IFS
17855   test -z "$as_dir" && as_dir=.
17856     for ac_exec_ext in '' $ac_executable_extensions; do
17857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17858     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17860     break 2
17861   fi
17862 done
17863   done
17864 IFS=$as_save_IFS
17865
17866 fi
17867 fi
17868 RANLIB=$ac_cv_prog_RANLIB
17869 if test -n "$RANLIB"; then
17870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17871 $as_echo "$RANLIB" >&6; }
17872 else
17873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17874 $as_echo "no" >&6; }
17875 fi
17876
17877
17878 fi
17879 if test -z "$ac_cv_prog_RANLIB"; then
17880   ac_ct_RANLIB=$RANLIB
17881   # Extract the first word of "ranlib", so it can be a program name with args.
17882 set dummy ranlib; ac_word=$2
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17884 $as_echo_n "checking for $ac_word... " >&6; }
17885 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17886   $as_echo_n "(cached) " >&6
17887 else
17888   if test -n "$ac_ct_RANLIB"; then
17889   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17890 else
17891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17892 for as_dir in $PATH
17893 do
17894   IFS=$as_save_IFS
17895   test -z "$as_dir" && as_dir=.
17896     for ac_exec_ext in '' $ac_executable_extensions; do
17897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17898     ac_cv_prog_ac_ct_RANLIB="ranlib"
17899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17900     break 2
17901   fi
17902 done
17903   done
17904 IFS=$as_save_IFS
17905
17906 fi
17907 fi
17908 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17909 if test -n "$ac_ct_RANLIB"; then
17910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17911 $as_echo "$ac_ct_RANLIB" >&6; }
17912 else
17913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17914 $as_echo "no" >&6; }
17915 fi
17916
17917   if test "x$ac_ct_RANLIB" = x; then
17918     RANLIB=":"
17919   else
17920     case $cross_compiling:$ac_tool_warned in
17921 yes:)
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17924 ac_tool_warned=yes ;;
17925 esac
17926     RANLIB=$ac_ct_RANLIB
17927   fi
17928 else
17929   RANLIB="$ac_cv_prog_RANLIB"
17930 fi
17931
17932
17933         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17934 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17935 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17936   $as_echo_n "(cached) " >&6
17937 else
17938   ac_check_lib_save_LIBS=$LIBS
17939 LIBS="-lcposix  $LIBS"
17940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17941 /* end confdefs.h.  */
17942
17943 /* Override any GCC internal prototype to avoid an error.
17944    Use char because int might match the return type of a GCC
17945    builtin and then its argument prototype would still apply.  */
17946 #ifdef __cplusplus
17947 extern "C"
17948 #endif
17949 char strerror ();
17950 int
17951 main ()
17952 {
17953 return strerror ();
17954   ;
17955   return 0;
17956 }
17957 _ACEOF
17958 if ac_fn_c_try_link "$LINENO"; then :
17959   ac_cv_lib_cposix_strerror=yes
17960 else
17961   ac_cv_lib_cposix_strerror=no
17962 fi
17963 rm -f core conftest.err conftest.$ac_objext \
17964     conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_check_lib_save_LIBS
17966 fi
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17968 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17969 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17970   LIBS="$LIBS -lcposix"
17971 fi
17972
17973
17974
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17976 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17977 if test "${ac_cv_c_const+set}" = set; then :
17978   $as_echo_n "(cached) " >&6
17979 else
17980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17981 /* end confdefs.h.  */
17982
17983 int
17984 main ()
17985 {
17986 /* FIXME: Include the comments suggested by Paul. */
17987 #ifndef __cplusplus
17988   /* Ultrix mips cc rejects this.  */
17989   typedef int charset[2];
17990   const charset cs;
17991   /* SunOS 4.1.1 cc rejects this.  */
17992   char const *const *pcpcc;
17993   char **ppc;
17994   /* NEC SVR4.0.2 mips cc rejects this.  */
17995   struct point {int x, y;};
17996   static struct point const zero = {0,0};
17997   /* AIX XL C 1.02.0.0 rejects this.
17998      It does not let you subtract one const X* pointer from another in
17999      an arm of an if-expression whose if-part is not a constant
18000      expression */
18001   const char *g = "string";
18002   pcpcc = &g + (g ? g-g : 0);
18003   /* HPUX 7.0 cc rejects these. */
18004   ++pcpcc;
18005   ppc = (char**) pcpcc;
18006   pcpcc = (char const *const *) ppc;
18007   { /* SCO 3.2v4 cc rejects this.  */
18008     char *t;
18009     char const *s = 0 ? (char *) 0 : (char const *) 0;
18010
18011     *t++ = 0;
18012     if (s) return 0;
18013   }
18014   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18015     int x[] = {25, 17};
18016     const int *foo = &x[0];
18017     ++foo;
18018   }
18019   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18020     typedef const int *iptr;
18021     iptr p = 0;
18022     ++p;
18023   }
18024   { /* AIX XL C 1.02.0.0 rejects this saying
18025        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18026     struct s { int j; const int *ap[3]; };
18027     struct s *b; b->j = 5;
18028   }
18029   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18030     const int foo = 10;
18031     if (!foo) return 0;
18032   }
18033   return !cs[0] && !zero.x;
18034 #endif
18035
18036   ;
18037   return 0;
18038 }
18039 _ACEOF
18040 if ac_fn_c_try_compile "$LINENO"; then :
18041   ac_cv_c_const=yes
18042 else
18043   ac_cv_c_const=no
18044 fi
18045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18046 fi
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18048 $as_echo "$ac_cv_c_const" >&6; }
18049 if test $ac_cv_c_const = no; then
18050
18051 $as_echo "#define const /**/" >>confdefs.h
18052
18053 fi
18054
18055
18056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18057 $as_echo_n "checking for signed... " >&6; }
18058 if test "${bh_cv_c_signed+set}" = set; then :
18059   $as_echo_n "(cached) " >&6
18060 else
18061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062 /* end confdefs.h.  */
18063
18064 int
18065 main ()
18066 {
18067 signed char x;
18068   ;
18069   return 0;
18070 }
18071 _ACEOF
18072 if ac_fn_c_try_compile "$LINENO"; then :
18073   bh_cv_c_signed=yes
18074 else
18075   bh_cv_c_signed=no
18076 fi
18077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18078 fi
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18080 $as_echo "$bh_cv_c_signed" >&6; }
18081   if test $bh_cv_c_signed = no; then
18082
18083 $as_echo "#define signed /**/" >>confdefs.h
18084
18085   fi
18086
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18088 $as_echo_n "checking for inline... " >&6; }
18089 if test "${ac_cv_c_inline+set}" = set; then :
18090   $as_echo_n "(cached) " >&6
18091 else
18092   ac_cv_c_inline=no
18093 for ac_kw in inline __inline__ __inline; do
18094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18095 /* end confdefs.h.  */
18096 #ifndef __cplusplus
18097 typedef int foo_t;
18098 static $ac_kw foo_t static_foo () {return 0; }
18099 $ac_kw foo_t foo () {return 0; }
18100 #endif
18101
18102 _ACEOF
18103 if ac_fn_c_try_compile "$LINENO"; then :
18104   ac_cv_c_inline=$ac_kw
18105 fi
18106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18107   test "$ac_cv_c_inline" != no && break
18108 done
18109
18110 fi
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18112 $as_echo "$ac_cv_c_inline" >&6; }
18113
18114 case $ac_cv_c_inline in
18115   inline | yes) ;;
18116   *)
18117     case $ac_cv_c_inline in
18118       no) ac_val=;;
18119       *) ac_val=$ac_cv_c_inline;;
18120     esac
18121     cat >>confdefs.h <<_ACEOF
18122 #ifndef __cplusplus
18123 #define inline $ac_val
18124 #endif
18125 _ACEOF
18126     ;;
18127 esac
18128
18129 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18130 if test "x$ac_cv_type_off_t" = x""yes; then :
18131
18132 else
18133
18134 cat >>confdefs.h <<_ACEOF
18135 #define off_t long int
18136 _ACEOF
18137
18138 fi
18139
18140 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18141 if test "x$ac_cv_type_size_t" = x""yes; then :
18142
18143 else
18144
18145 cat >>confdefs.h <<_ACEOF
18146 #define size_t unsigned int
18147 _ACEOF
18148
18149 fi
18150
18151
18152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18153 $as_echo_n "checking for long long... " >&6; }
18154 if test "${ac_cv_type_long_long+set}" = set; then :
18155   $as_echo_n "(cached) " >&6
18156 else
18157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158 /* end confdefs.h.  */
18159 long long ll = 1LL; int i = 63;
18160 int
18161 main ()
18162 {
18163 long long llmax = (long long) -1;
18164      return ll << i | ll >> i | llmax / ll | llmax % ll;
18165   ;
18166   return 0;
18167 }
18168 _ACEOF
18169 if ac_fn_c_try_link "$LINENO"; then :
18170   ac_cv_type_long_long=yes
18171 else
18172   ac_cv_type_long_long=no
18173 fi
18174 rm -f core conftest.err conftest.$ac_objext \
18175     conftest$ac_exeext conftest.$ac_ext
18176 fi
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18178 $as_echo "$ac_cv_type_long_long" >&6; }
18179   if test $ac_cv_type_long_long = yes; then
18180
18181 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18182
18183   fi
18184
18185
18186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18187 $as_echo_n "checking for long double... " >&6; }
18188 if test "${gt_cv_c_long_double+set}" = set; then :
18189   $as_echo_n "(cached) " >&6
18190 else
18191   if test "$GCC" = yes; then
18192        gt_cv_c_long_double=yes
18193      else
18194        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195 /* end confdefs.h.  */
18196
18197          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18198          long double foo = 0.0;
18199          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18200          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18201
18202 int
18203 main ()
18204 {
18205
18206   ;
18207   return 0;
18208 }
18209 _ACEOF
18210 if ac_fn_c_try_compile "$LINENO"; then :
18211   gt_cv_c_long_double=yes
18212 else
18213   gt_cv_c_long_double=no
18214 fi
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18216      fi
18217 fi
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18219 $as_echo "$gt_cv_c_long_double" >&6; }
18220   if test $gt_cv_c_long_double = yes; then
18221
18222 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18223
18224   fi
18225
18226
18227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18228 $as_echo_n "checking for wchar_t... " >&6; }
18229 if test "${gt_cv_c_wchar_t+set}" = set; then :
18230   $as_echo_n "(cached) " >&6
18231 else
18232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h.  */
18234 #include <stddef.h>
18235        wchar_t foo = (wchar_t)'\0';
18236 int
18237 main ()
18238 {
18239
18240   ;
18241   return 0;
18242 }
18243 _ACEOF
18244 if ac_fn_c_try_compile "$LINENO"; then :
18245   gt_cv_c_wchar_t=yes
18246 else
18247   gt_cv_c_wchar_t=no
18248 fi
18249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18250 fi
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18252 $as_echo "$gt_cv_c_wchar_t" >&6; }
18253   if test $gt_cv_c_wchar_t = yes; then
18254
18255 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18256
18257   fi
18258
18259
18260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18261 $as_echo_n "checking for wint_t... " >&6; }
18262 if test "${gt_cv_c_wint_t+set}" = set; then :
18263   $as_echo_n "(cached) " >&6
18264 else
18265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h.  */
18267 #include <wchar.h>
18268        wint_t foo = (wchar_t)'\0';
18269 int
18270 main ()
18271 {
18272
18273   ;
18274   return 0;
18275 }
18276 _ACEOF
18277 if ac_fn_c_try_compile "$LINENO"; then :
18278   gt_cv_c_wint_t=yes
18279 else
18280   gt_cv_c_wint_t=no
18281 fi
18282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18283 fi
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18285 $as_echo "$gt_cv_c_wint_t" >&6; }
18286   if test $gt_cv_c_wint_t = yes; then
18287
18288 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18289
18290   fi
18291
18292
18293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18294 $as_echo_n "checking for inttypes.h... " >&6; }
18295 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18296   $as_echo_n "(cached) " >&6
18297 else
18298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h.  */
18300 #include <sys/types.h>
18301 #include <inttypes.h>
18302 int
18303 main ()
18304 {
18305 uintmax_t i = (uintmax_t) -1;
18306   ;
18307   return 0;
18308 }
18309 _ACEOF
18310 if ac_fn_c_try_compile "$LINENO"; then :
18311   gl_cv_header_inttypes_h=yes
18312 else
18313   gl_cv_header_inttypes_h=no
18314 fi
18315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18316 fi
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18318 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18319   if test $gl_cv_header_inttypes_h = yes; then
18320
18321 cat >>confdefs.h <<_ACEOF
18322 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18323 _ACEOF
18324
18325   fi
18326
18327
18328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18329 $as_echo_n "checking for stdint.h... " >&6; }
18330 if test "${gl_cv_header_stdint_h+set}" = set; then :
18331   $as_echo_n "(cached) " >&6
18332 else
18333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18334 /* end confdefs.h.  */
18335 #include <sys/types.h>
18336 #include <stdint.h>
18337 int
18338 main ()
18339 {
18340 uintmax_t i = (uintmax_t) -1;
18341   ;
18342   return 0;
18343 }
18344 _ACEOF
18345 if ac_fn_c_try_compile "$LINENO"; then :
18346   gl_cv_header_stdint_h=yes
18347 else
18348   gl_cv_header_stdint_h=no
18349 fi
18350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18351 fi
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18353 $as_echo "$gl_cv_header_stdint_h" >&6; }
18354   if test $gl_cv_header_stdint_h = yes; then
18355
18356 cat >>confdefs.h <<_ACEOF
18357 #define HAVE_STDINT_H_WITH_UINTMAX 1
18358 _ACEOF
18359
18360   fi
18361
18362
18363
18364
18365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18366 $as_echo_n "checking for intmax_t... " >&6; }
18367 if test "${gt_cv_c_intmax_t+set}" = set; then :
18368   $as_echo_n "(cached) " >&6
18369 else
18370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h.  */
18372
18373 #include <stddef.h>
18374 #include <stdlib.h>
18375 #if HAVE_STDINT_H_WITH_UINTMAX
18376 #include <stdint.h>
18377 #endif
18378 #if HAVE_INTTYPES_H_WITH_UINTMAX
18379 #include <inttypes.h>
18380 #endif
18381
18382 int
18383 main ()
18384 {
18385 intmax_t x = -1;
18386   ;
18387   return 0;
18388 }
18389 _ACEOF
18390 if ac_fn_c_try_compile "$LINENO"; then :
18391   gt_cv_c_intmax_t=yes
18392 else
18393   gt_cv_c_intmax_t=no
18394 fi
18395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18396 fi
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18398 $as_echo "$gt_cv_c_intmax_t" >&6; }
18399   if test $gt_cv_c_intmax_t = yes; then
18400
18401 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18402
18403   fi
18404
18405
18406
18407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18408 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18409 if test "${gt_cv_func_printf_posix+set}" = set; then :
18410   $as_echo_n "(cached) " >&6
18411 else
18412
18413       if test "$cross_compiling" = yes; then :
18414
18415         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18416 /* end confdefs.h.  */
18417
18418 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18419   notposix
18420 #endif
18421
18422 _ACEOF
18423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18424   $EGREP "notposix" >/dev/null 2>&1; then :
18425   gt_cv_func_printf_posix="guessing no"
18426 else
18427   gt_cv_func_printf_posix="guessing yes"
18428 fi
18429 rm -f conftest*
18430
18431
18432 else
18433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434 /* end confdefs.h.  */
18435
18436 #include <stdio.h>
18437 #include <string.h>
18438 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18439    dollar expansion (possibly an autoconf bug).  */
18440 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18441 static char buf[100];
18442 int main ()
18443 {
18444   sprintf (buf, format, 33, 55);
18445   return (strcmp (buf, "55 33") != 0);
18446 }
18447 _ACEOF
18448 if ac_fn_c_try_run "$LINENO"; then :
18449   gt_cv_func_printf_posix=yes
18450 else
18451   gt_cv_func_printf_posix=no
18452 fi
18453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18454   conftest.$ac_objext conftest.beam conftest.$ac_ext
18455 fi
18456
18457
18458 fi
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18460 $as_echo "$gt_cv_func_printf_posix" >&6; }
18461   case $gt_cv_func_printf_posix in
18462     *yes)
18463
18464 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18465
18466       ;;
18467   esac
18468
18469 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18470 # for constant arguments.  Useless!
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18472 $as_echo_n "checking for working alloca.h... " >&6; }
18473 if test "${ac_cv_working_alloca_h+set}" = set; then :
18474   $as_echo_n "(cached) " >&6
18475 else
18476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h.  */
18478 #include <alloca.h>
18479 int
18480 main ()
18481 {
18482 char *p = (char *) alloca (2 * sizeof (int));
18483                           if (p) return 0;
18484   ;
18485   return 0;
18486 }
18487 _ACEOF
18488 if ac_fn_c_try_link "$LINENO"; then :
18489   ac_cv_working_alloca_h=yes
18490 else
18491   ac_cv_working_alloca_h=no
18492 fi
18493 rm -f core conftest.err conftest.$ac_objext \
18494     conftest$ac_exeext conftest.$ac_ext
18495 fi
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18497 $as_echo "$ac_cv_working_alloca_h" >&6; }
18498 if test $ac_cv_working_alloca_h = yes; then
18499
18500 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18501
18502 fi
18503
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18505 $as_echo_n "checking for alloca... " >&6; }
18506 if test "${ac_cv_func_alloca_works+set}" = set; then :
18507   $as_echo_n "(cached) " >&6
18508 else
18509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510 /* end confdefs.h.  */
18511 #ifdef __GNUC__
18512 # define alloca __builtin_alloca
18513 #else
18514 # ifdef _MSC_VER
18515 #  include <malloc.h>
18516 #  define alloca _alloca
18517 # else
18518 #  ifdef HAVE_ALLOCA_H
18519 #   include <alloca.h>
18520 #  else
18521 #   ifdef _AIX
18522  #pragma alloca
18523 #   else
18524 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18525 char *alloca ();
18526 #    endif
18527 #   endif
18528 #  endif
18529 # endif
18530 #endif
18531
18532 int
18533 main ()
18534 {
18535 char *p = (char *) alloca (1);
18536                                     if (p) return 0;
18537   ;
18538   return 0;
18539 }
18540 _ACEOF
18541 if ac_fn_c_try_link "$LINENO"; then :
18542   ac_cv_func_alloca_works=yes
18543 else
18544   ac_cv_func_alloca_works=no
18545 fi
18546 rm -f core conftest.err conftest.$ac_objext \
18547     conftest$ac_exeext conftest.$ac_ext
18548 fi
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18550 $as_echo "$ac_cv_func_alloca_works" >&6; }
18551
18552 if test $ac_cv_func_alloca_works = yes; then
18553
18554 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18555
18556 else
18557   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18558 # that cause trouble.  Some versions do not even contain alloca or
18559 # contain a buggy version.  If you still want to use their alloca,
18560 # use ar to extract alloca.o from them instead of compiling alloca.c.
18561
18562 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18563
18564 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18565
18566
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18568 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18569 if test "${ac_cv_os_cray+set}" = set; then :
18570   $as_echo_n "(cached) " >&6
18571 else
18572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18573 /* end confdefs.h.  */
18574 #if defined CRAY && ! defined CRAY2
18575 webecray
18576 #else
18577 wenotbecray
18578 #endif
18579
18580 _ACEOF
18581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18582   $EGREP "webecray" >/dev/null 2>&1; then :
18583   ac_cv_os_cray=yes
18584 else
18585   ac_cv_os_cray=no
18586 fi
18587 rm -f conftest*
18588
18589 fi
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18591 $as_echo "$ac_cv_os_cray" >&6; }
18592 if test $ac_cv_os_cray = yes; then
18593   for ac_func in _getb67 GETB67 getb67; do
18594     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18595 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18596 eval as_val=\$$as_ac_var
18597    if test "x$as_val" = x""yes; then :
18598
18599 cat >>confdefs.h <<_ACEOF
18600 #define CRAY_STACKSEG_END $ac_func
18601 _ACEOF
18602
18603     break
18604 fi
18605
18606   done
18607 fi
18608
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18610 $as_echo_n "checking stack direction for C alloca... " >&6; }
18611 if test "${ac_cv_c_stack_direction+set}" = set; then :
18612   $as_echo_n "(cached) " >&6
18613 else
18614   if test "$cross_compiling" = yes; then :
18615   ac_cv_c_stack_direction=0
18616 else
18617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18618 /* end confdefs.h.  */
18619 $ac_includes_default
18620 int
18621 find_stack_direction ()
18622 {
18623   static char *addr = 0;
18624   auto char dummy;
18625   if (addr == 0)
18626     {
18627       addr = &dummy;
18628       return find_stack_direction ();
18629     }
18630   else
18631     return (&dummy > addr) ? 1 : -1;
18632 }
18633
18634 int
18635 main ()
18636 {
18637   return find_stack_direction () < 0;
18638 }
18639 _ACEOF
18640 if ac_fn_c_try_run "$LINENO"; then :
18641   ac_cv_c_stack_direction=1
18642 else
18643   ac_cv_c_stack_direction=-1
18644 fi
18645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18646   conftest.$ac_objext conftest.beam conftest.$ac_ext
18647 fi
18648
18649 fi
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18651 $as_echo "$ac_cv_c_stack_direction" >&6; }
18652 cat >>confdefs.h <<_ACEOF
18653 #define STACK_DIRECTION $ac_cv_c_stack_direction
18654 _ACEOF
18655
18656
18657 fi
18658
18659
18660
18661
18662   for ac_header in $ac_header_list
18663 do :
18664   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18665 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18666 "
18667 eval as_val=\$$as_ac_Header
18668    if test "x$as_val" = x""yes; then :
18669   cat >>confdefs.h <<_ACEOF
18670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18671 _ACEOF
18672
18673 fi
18674
18675 done
18676
18677
18678
18679
18680
18681
18682
18683
18684 for ac_func in getpagesize
18685 do :
18686   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18687 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18688   cat >>confdefs.h <<_ACEOF
18689 #define HAVE_GETPAGESIZE 1
18690 _ACEOF
18691
18692 fi
18693 done
18694
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18696 $as_echo_n "checking for working mmap... " >&6; }
18697 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18698   $as_echo_n "(cached) " >&6
18699 else
18700   if test "$cross_compiling" = yes; then :
18701   ac_cv_func_mmap_fixed_mapped=no
18702 else
18703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h.  */
18705 $ac_includes_default
18706 /* malloc might have been renamed as rpl_malloc. */
18707 #undef malloc
18708
18709 /* Thanks to Mike Haertel and Jim Avera for this test.
18710    Here is a matrix of mmap possibilities:
18711         mmap private not fixed
18712         mmap private fixed at somewhere currently unmapped
18713         mmap private fixed at somewhere already mapped
18714         mmap shared not fixed
18715         mmap shared fixed at somewhere currently unmapped
18716         mmap shared fixed at somewhere already mapped
18717    For private mappings, we should verify that changes cannot be read()
18718    back from the file, nor mmap's back from the file at a different
18719    address.  (There have been systems where private was not correctly
18720    implemented like the infamous i386 svr4.0, and systems where the
18721    VM page cache was not coherent with the file system buffer cache
18722    like early versions of FreeBSD and possibly contemporary NetBSD.)
18723    For shared mappings, we should conversely verify that changes get
18724    propagated back to all the places they're supposed to be.
18725
18726    Grep wants private fixed already mapped.
18727    The main things grep needs to know about mmap are:
18728    * does it exist and is it safe to write into the mmap'd area
18729    * how to use it (BSD variants)  */
18730
18731 #include <fcntl.h>
18732 #include <sys/mman.h>
18733
18734 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18735 char *malloc ();
18736 #endif
18737
18738 /* This mess was copied from the GNU getpagesize.h.  */
18739 #ifndef HAVE_GETPAGESIZE
18740 # ifdef _SC_PAGESIZE
18741 #  define getpagesize() sysconf(_SC_PAGESIZE)
18742 # else /* no _SC_PAGESIZE */
18743 #  ifdef HAVE_SYS_PARAM_H
18744 #   include <sys/param.h>
18745 #   ifdef EXEC_PAGESIZE
18746 #    define getpagesize() EXEC_PAGESIZE
18747 #   else /* no EXEC_PAGESIZE */
18748 #    ifdef NBPG
18749 #     define getpagesize() NBPG * CLSIZE
18750 #     ifndef CLSIZE
18751 #      define CLSIZE 1
18752 #     endif /* no CLSIZE */
18753 #    else /* no NBPG */
18754 #     ifdef NBPC
18755 #      define getpagesize() NBPC
18756 #     else /* no NBPC */
18757 #      ifdef PAGESIZE
18758 #       define getpagesize() PAGESIZE
18759 #      endif /* PAGESIZE */
18760 #     endif /* no NBPC */
18761 #    endif /* no NBPG */
18762 #   endif /* no EXEC_PAGESIZE */
18763 #  else /* no HAVE_SYS_PARAM_H */
18764 #   define getpagesize() 8192   /* punt totally */
18765 #  endif /* no HAVE_SYS_PARAM_H */
18766 # endif /* no _SC_PAGESIZE */
18767
18768 #endif /* no HAVE_GETPAGESIZE */
18769
18770 int
18771 main ()
18772 {
18773   char *data, *data2, *data3;
18774   int i, pagesize;
18775   int fd, fd2;
18776
18777   pagesize = getpagesize ();
18778
18779   /* First, make a file with some known garbage in it. */
18780   data = (char *) malloc (pagesize);
18781   if (!data)
18782     return 1;
18783   for (i = 0; i < pagesize; ++i)
18784     *(data + i) = rand ();
18785   umask (0);
18786   fd = creat ("conftest.mmap", 0600);
18787   if (fd < 0)
18788     return 2;
18789   if (write (fd, data, pagesize) != pagesize)
18790     return 3;
18791   close (fd);
18792
18793   /* Next, check that the tail of a page is zero-filled.  File must have
18794      non-zero length, otherwise we risk SIGBUS for entire page.  */
18795   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18796   if (fd2 < 0)
18797     return 4;
18798   data2 = "";
18799   if (write (fd2, data2, 1) != 1)
18800     return 5;
18801   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18802   if (data2 == MAP_FAILED)
18803     return 6;
18804   for (i = 0; i < pagesize; ++i)
18805     if (*(data2 + i))
18806       return 7;
18807   close (fd2);
18808   if (munmap (data2, pagesize))
18809     return 8;
18810
18811   /* Next, try to mmap the file at a fixed address which already has
18812      something else allocated at it.  If we can, also make sure that
18813      we see the same garbage.  */
18814   fd = open ("conftest.mmap", O_RDWR);
18815   if (fd < 0)
18816     return 9;
18817   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18818                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18819     return 10;
18820   for (i = 0; i < pagesize; ++i)
18821     if (*(data + i) != *(data2 + i))
18822       return 11;
18823
18824   /* Finally, make sure that changes to the mapped area do not
18825      percolate back to the file as seen by read().  (This is a bug on
18826      some variants of i386 svr4.0.)  */
18827   for (i = 0; i < pagesize; ++i)
18828     *(data2 + i) = *(data2 + i) + 1;
18829   data3 = (char *) malloc (pagesize);
18830   if (!data3)
18831     return 12;
18832   if (read (fd, data3, pagesize) != pagesize)
18833     return 13;
18834   for (i = 0; i < pagesize; ++i)
18835     if (*(data + i) != *(data3 + i))
18836       return 14;
18837   close (fd);
18838   return 0;
18839 }
18840 _ACEOF
18841 if ac_fn_c_try_run "$LINENO"; then :
18842   ac_cv_func_mmap_fixed_mapped=yes
18843 else
18844   ac_cv_func_mmap_fixed_mapped=no
18845 fi
18846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18847   conftest.$ac_objext conftest.beam conftest.$ac_ext
18848 fi
18849
18850 fi
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18852 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18853 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18854
18855 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18856
18857 fi
18858 rm -f conftest.mmap conftest.txt
18859
18860
18861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18862 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18863 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18864   $as_echo_n "(cached) " >&6
18865 else
18866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18867 /* end confdefs.h.  */
18868
18869 #include <features.h>
18870 #ifdef __GNU_LIBRARY__
18871  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18872   Lucky GNU user
18873  #endif
18874 #endif
18875
18876 _ACEOF
18877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18878   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18879   ac_cv_gnu_library_2_1=yes
18880 else
18881   ac_cv_gnu_library_2_1=no
18882 fi
18883 rm -f conftest*
18884
18885
18886
18887 fi
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18889 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18890
18891     GLIBC21="$ac_cv_gnu_library_2_1"
18892
18893
18894
18895
18896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18897 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18898 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18899   $as_echo_n "(cached) " >&6
18900 else
18901
18902       if test "$cross_compiling" = yes; then :
18903
18904           # Guess based on the CPU.
18905           case "$host_cpu" in
18906             alpha* | i3456786 | m68k | s390*)
18907               gt_cv_int_divbyzero_sigfpe="guessing yes";;
18908             *)
18909               gt_cv_int_divbyzero_sigfpe="guessing no";;
18910           esac
18911
18912 else
18913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914 /* end confdefs.h.  */
18915
18916 #include <stdlib.h>
18917 #include <signal.h>
18918
18919 static void
18920 #ifdef __cplusplus
18921 sigfpe_handler (int sig)
18922 #else
18923 sigfpe_handler (sig) int sig;
18924 #endif
18925 {
18926   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18927   exit (sig != SIGFPE);
18928 }
18929
18930 int x = 1;
18931 int y = 0;
18932 int z;
18933 int nan;
18934
18935 int main ()
18936 {
18937   signal (SIGFPE, sigfpe_handler);
18938 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18939 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18940   signal (SIGTRAP, sigfpe_handler);
18941 #endif
18942 /* Linux/SPARC yields signal SIGILL.  */
18943 #if defined (__sparc__) && defined (__linux__)
18944   signal (SIGILL, sigfpe_handler);
18945 #endif
18946
18947   z = x / y;
18948   nan = y / y;
18949   exit (1);
18950 }
18951
18952 _ACEOF
18953 if ac_fn_c_try_run "$LINENO"; then :
18954   gt_cv_int_divbyzero_sigfpe=yes
18955 else
18956   gt_cv_int_divbyzero_sigfpe=no
18957 fi
18958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18959   conftest.$ac_objext conftest.beam conftest.$ac_ext
18960 fi
18961
18962
18963 fi
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18965 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18966   case "$gt_cv_int_divbyzero_sigfpe" in
18967     *yes) value=1;;
18968     *) value=0;;
18969   esac
18970
18971 cat >>confdefs.h <<_ACEOF
18972 #define INTDIV0_RAISES_SIGFPE $value
18973 _ACEOF
18974
18975
18976
18977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18978 $as_echo_n "checking for unsigned long long... " >&6; }
18979 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18980   $as_echo_n "(cached) " >&6
18981 else
18982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18983 /* end confdefs.h.  */
18984 unsigned long long ull = 1ULL; int i = 63;
18985 int
18986 main ()
18987 {
18988 unsigned long long ullmax = (unsigned long long) -1;
18989      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
18990   ;
18991   return 0;
18992 }
18993 _ACEOF
18994 if ac_fn_c_try_link "$LINENO"; then :
18995   ac_cv_type_unsigned_long_long=yes
18996 else
18997   ac_cv_type_unsigned_long_long=no
18998 fi
18999 rm -f core conftest.err conftest.$ac_objext \
19000     conftest$ac_exeext conftest.$ac_ext
19001 fi
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19003 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19004   if test $ac_cv_type_unsigned_long_long = yes; then
19005
19006 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19007
19008   fi
19009
19010
19011
19012
19013   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19014
19015     test $ac_cv_type_unsigned_long_long = yes \
19016       && ac_type='unsigned long long' \
19017       || ac_type='unsigned long'
19018
19019 cat >>confdefs.h <<_ACEOF
19020 #define uintmax_t $ac_type
19021 _ACEOF
19022
19023   else
19024
19025 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19026
19027   fi
19028
19029
19030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19031 $as_echo_n "checking for inttypes.h... " >&6; }
19032 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19033   $as_echo_n "(cached) " >&6
19034 else
19035
19036     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h.  */
19038 #include <sys/types.h>
19039 #include <inttypes.h>
19040 int
19041 main ()
19042 {
19043
19044   ;
19045   return 0;
19046 }
19047 _ACEOF
19048 if ac_fn_c_try_compile "$LINENO"; then :
19049   gt_cv_header_inttypes_h=yes
19050 else
19051   gt_cv_header_inttypes_h=no
19052 fi
19053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19054
19055 fi
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19057 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19058   if test $gt_cv_header_inttypes_h = yes; then
19059
19060 cat >>confdefs.h <<_ACEOF
19061 #define HAVE_INTTYPES_H 1
19062 _ACEOF
19063
19064   fi
19065
19066
19067
19068   if test $gt_cv_header_inttypes_h = yes; then
19069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19070 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19071 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19072   $as_echo_n "(cached) " >&6
19073 else
19074
19075         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19076 /* end confdefs.h.  */
19077 #include <inttypes.h>
19078 #ifdef PRId32
19079 char *p = PRId32;
19080 #endif
19081
19082 int
19083 main ()
19084 {
19085
19086   ;
19087   return 0;
19088 }
19089 _ACEOF
19090 if ac_fn_c_try_compile "$LINENO"; then :
19091   gt_cv_inttypes_pri_broken=no
19092 else
19093   gt_cv_inttypes_pri_broken=yes
19094 fi
19095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19096
19097 fi
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19099 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19100   fi
19101   if test "$gt_cv_inttypes_pri_broken" = yes; then
19102
19103 cat >>confdefs.h <<_ACEOF
19104 #define PRI_MACROS_BROKEN 1
19105 _ACEOF
19106
19107   fi
19108
19109
19110   for ac_header in stdint.h
19111 do :
19112   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19113 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19114   cat >>confdefs.h <<_ACEOF
19115 #define HAVE_STDINT_H 1
19116 _ACEOF
19117
19118 fi
19119
19120 done
19121
19122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19123 $as_echo_n "checking for SIZE_MAX... " >&6; }
19124   result=
19125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19126 /* end confdefs.h.  */
19127
19128 #include <limits.h>
19129 #if HAVE_STDINT_H
19130 #include <stdint.h>
19131 #endif
19132 #ifdef SIZE_MAX
19133 Found it
19134 #endif
19135
19136 _ACEOF
19137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19138   $EGREP "Found it" >/dev/null 2>&1; then :
19139   result=yes
19140 fi
19141 rm -f conftest*
19142
19143   if test -z "$result"; then
19144                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19145
19146 else
19147   result=?
19148 fi
19149
19150
19151     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19152
19153 else
19154   result=?
19155 fi
19156
19157
19158     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19159
19160 else
19161   result=?
19162 fi
19163
19164
19165     if test "$fits_in_uint" = 1; then
19166                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19167 /* end confdefs.h.  */
19168 #include <stddef.h>
19169         extern size_t foo;
19170         extern unsigned long foo;
19171
19172 int
19173 main ()
19174 {
19175
19176   ;
19177   return 0;
19178 }
19179 _ACEOF
19180 if ac_fn_c_try_compile "$LINENO"; then :
19181   fits_in_uint=0
19182 fi
19183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19184     fi
19185     if test -z "$result"; then
19186       if test "$fits_in_uint" = 1; then
19187         result="$res_hi$res_lo"U
19188       else
19189         result="$res_hi$res_lo"UL
19190       fi
19191     else
19192             result='~(size_t)0'
19193     fi
19194   fi
19195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19196 $as_echo "$result" >&6; }
19197   if test "$result" != yes; then
19198
19199 cat >>confdefs.h <<_ACEOF
19200 #define SIZE_MAX $result
19201 _ACEOF
19202
19203   fi
19204
19205
19206
19207
19208   for ac_header in stdint.h
19209 do :
19210   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19211 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19212   cat >>confdefs.h <<_ACEOF
19213 #define HAVE_STDINT_H 1
19214 _ACEOF
19215
19216 fi
19217
19218 done
19219
19220
19221
19222
19223
19224
19225
19226
19227   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19228 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19229
19230 else
19231
19232 $as_echo "#define ptrdiff_t long" >>confdefs.h
19233
19234
19235 fi
19236
19237   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19238 stdlib.h string.h unistd.h sys/param.h
19239 do :
19240   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19241 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19242 eval as_val=\$$as_ac_Header
19243    if test "x$as_val" = x""yes; then :
19244   cat >>confdefs.h <<_ACEOF
19245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19246 _ACEOF
19247
19248 fi
19249
19250 done
19251
19252   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19253 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19254 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19255 __fsetlocking
19256 do :
19257   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19258 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19259 eval as_val=\$$as_ac_var
19260    if test "x$as_val" = x""yes; then :
19261   cat >>confdefs.h <<_ACEOF
19262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19263 _ACEOF
19264
19265 fi
19266 done
19267
19268
19269
19270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19271 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19272 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19273   $as_echo_n "(cached) " >&6
19274 else
19275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19276 /* end confdefs.h.  */
19277 #include <stdio.h>
19278 int
19279 main ()
19280 {
19281
19282 #ifndef _snprintf
19283   char *p = (char *) _snprintf;
19284 #endif
19285
19286   ;
19287   return 0;
19288 }
19289 _ACEOF
19290 if ac_fn_c_try_compile "$LINENO"; then :
19291   ac_cv_have_decl__snprintf=yes
19292 else
19293   ac_cv_have_decl__snprintf=no
19294 fi
19295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296 fi
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19298 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19299   if test $ac_cv_have_decl__snprintf = yes; then
19300     gt_value=1
19301   else
19302     gt_value=0
19303   fi
19304
19305 cat >>confdefs.h <<_ACEOF
19306 #define HAVE_DECL__SNPRINTF $gt_value
19307 _ACEOF
19308
19309
19310
19311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19312 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19313 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19314   $as_echo_n "(cached) " >&6
19315 else
19316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19317 /* end confdefs.h.  */
19318 #include <stdio.h>
19319 int
19320 main ()
19321 {
19322
19323 #ifndef _snwprintf
19324   char *p = (char *) _snwprintf;
19325 #endif
19326
19327   ;
19328   return 0;
19329 }
19330 _ACEOF
19331 if ac_fn_c_try_compile "$LINENO"; then :
19332   ac_cv_have_decl__snwprintf=yes
19333 else
19334   ac_cv_have_decl__snwprintf=no
19335 fi
19336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19337 fi
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19339 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19340   if test $ac_cv_have_decl__snwprintf = yes; then
19341     gt_value=1
19342   else
19343     gt_value=0
19344   fi
19345
19346 cat >>confdefs.h <<_ACEOF
19347 #define HAVE_DECL__SNWPRINTF $gt_value
19348 _ACEOF
19349
19350
19351
19352
19353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19354 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19355 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19356   $as_echo_n "(cached) " >&6
19357 else
19358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359 /* end confdefs.h.  */
19360 #include <stdio.h>
19361 int
19362 main ()
19363 {
19364
19365 #ifndef feof_unlocked
19366   char *p = (char *) feof_unlocked;
19367 #endif
19368
19369   ;
19370   return 0;
19371 }
19372 _ACEOF
19373 if ac_fn_c_try_compile "$LINENO"; then :
19374   ac_cv_have_decl_feof_unlocked=yes
19375 else
19376   ac_cv_have_decl_feof_unlocked=no
19377 fi
19378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19379 fi
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19381 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19382   if test $ac_cv_have_decl_feof_unlocked = yes; then
19383     gt_value=1
19384   else
19385     gt_value=0
19386   fi
19387
19388 cat >>confdefs.h <<_ACEOF
19389 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19390 _ACEOF
19391
19392
19393
19394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19395 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19396 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19397   $as_echo_n "(cached) " >&6
19398 else
19399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h.  */
19401 #include <stdio.h>
19402 int
19403 main ()
19404 {
19405
19406 #ifndef fgets_unlocked
19407   char *p = (char *) fgets_unlocked;
19408 #endif
19409
19410   ;
19411   return 0;
19412 }
19413 _ACEOF
19414 if ac_fn_c_try_compile "$LINENO"; then :
19415   ac_cv_have_decl_fgets_unlocked=yes
19416 else
19417   ac_cv_have_decl_fgets_unlocked=no
19418 fi
19419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19420 fi
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19422 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19423   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19424     gt_value=1
19425   else
19426     gt_value=0
19427   fi
19428
19429 cat >>confdefs.h <<_ACEOF
19430 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19431 _ACEOF
19432
19433
19434
19435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19436 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19437 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19438   $as_echo_n "(cached) " >&6
19439 else
19440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h.  */
19442 #include <stdio.h>
19443 int
19444 main ()
19445 {
19446
19447 #ifndef getc_unlocked
19448   char *p = (char *) getc_unlocked;
19449 #endif
19450
19451   ;
19452   return 0;
19453 }
19454 _ACEOF
19455 if ac_fn_c_try_compile "$LINENO"; then :
19456   ac_cv_have_decl_getc_unlocked=yes
19457 else
19458   ac_cv_have_decl_getc_unlocked=no
19459 fi
19460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19461 fi
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19463 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19464   if test $ac_cv_have_decl_getc_unlocked = yes; then
19465     gt_value=1
19466   else
19467     gt_value=0
19468   fi
19469
19470 cat >>confdefs.h <<_ACEOF
19471 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19472 _ACEOF
19473
19474
19475
19476   case $gt_cv_func_printf_posix in
19477     *yes) HAVE_POSIX_PRINTF=1 ;;
19478     *) HAVE_POSIX_PRINTF=0 ;;
19479   esac
19480
19481   if test "$ac_cv_func_asprintf" = yes; then
19482     HAVE_ASPRINTF=1
19483   else
19484     HAVE_ASPRINTF=0
19485   fi
19486
19487   if test "$ac_cv_func_snprintf" = yes; then
19488     HAVE_SNPRINTF=1
19489   else
19490     HAVE_SNPRINTF=0
19491   fi
19492
19493   if test "$ac_cv_func_wprintf" = yes; then
19494     HAVE_WPRINTF=1
19495   else
19496     HAVE_WPRINTF=0
19497   fi
19498
19499
19500
19501
19502
19503
19504
19505           am_save_CPPFLAGS="$CPPFLAGS"
19506
19507   for element in $INCICONV; do
19508     haveit=
19509     for x in $CPPFLAGS; do
19510
19511   acl_save_prefix="$prefix"
19512   prefix="$acl_final_prefix"
19513   acl_save_exec_prefix="$exec_prefix"
19514   exec_prefix="$acl_final_exec_prefix"
19515   eval x=\"$x\"
19516   exec_prefix="$acl_save_exec_prefix"
19517   prefix="$acl_save_prefix"
19518
19519       if test "X$x" = "X$element"; then
19520         haveit=yes
19521         break
19522       fi
19523     done
19524     if test -z "$haveit"; then
19525       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19526     fi
19527   done
19528
19529
19530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19531 $as_echo_n "checking for iconv... " >&6; }
19532 if test "${am_cv_func_iconv+set}" = set; then :
19533   $as_echo_n "(cached) " >&6
19534 else
19535
19536     am_cv_func_iconv="no, consider installing GNU libiconv"
19537     am_cv_lib_iconv=no
19538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19539 /* end confdefs.h.  */
19540 #include <stdlib.h>
19541 #include <iconv.h>
19542 int
19543 main ()
19544 {
19545 iconv_t cd = iconv_open("","");
19546        iconv(cd,NULL,NULL,NULL,NULL);
19547        iconv_close(cd);
19548   ;
19549   return 0;
19550 }
19551 _ACEOF
19552 if ac_fn_c_try_link "$LINENO"; then :
19553   am_cv_func_iconv=yes
19554 fi
19555 rm -f core conftest.err conftest.$ac_objext \
19556     conftest$ac_exeext conftest.$ac_ext
19557     if test "$am_cv_func_iconv" != yes; then
19558       am_save_LIBS="$LIBS"
19559       LIBS="$LIBS $LIBICONV"
19560       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19561 /* end confdefs.h.  */
19562 #include <stdlib.h>
19563 #include <iconv.h>
19564 int
19565 main ()
19566 {
19567 iconv_t cd = iconv_open("","");
19568          iconv(cd,NULL,NULL,NULL,NULL);
19569          iconv_close(cd);
19570   ;
19571   return 0;
19572 }
19573 _ACEOF
19574 if ac_fn_c_try_link "$LINENO"; then :
19575   am_cv_lib_iconv=yes
19576         am_cv_func_iconv=yes
19577 fi
19578 rm -f core conftest.err conftest.$ac_objext \
19579     conftest$ac_exeext conftest.$ac_ext
19580       LIBS="$am_save_LIBS"
19581     fi
19582
19583 fi
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19585 $as_echo "$am_cv_func_iconv" >&6; }
19586   if test "$am_cv_func_iconv" = yes; then
19587
19588 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19589
19590   fi
19591   if test "$am_cv_lib_iconv" = yes; then
19592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19593 $as_echo_n "checking how to link with libiconv... " >&6; }
19594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19595 $as_echo "$LIBICONV" >&6; }
19596   else
19597             CPPFLAGS="$am_save_CPPFLAGS"
19598     LIBICONV=
19599     LTLIBICONV=
19600   fi
19601
19602
19603
19604   if test "$am_cv_func_iconv" = yes; then
19605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19606 $as_echo_n "checking for iconv declaration... " >&6; }
19607     if test "${am_cv_proto_iconv+set}" = set; then :
19608   $as_echo_n "(cached) " >&6
19609 else
19610
19611       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612 /* end confdefs.h.  */
19613
19614 #include <stdlib.h>
19615 #include <iconv.h>
19616 extern
19617 #ifdef __cplusplus
19618 "C"
19619 #endif
19620 #if defined(__STDC__) || defined(__cplusplus)
19621 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19622 #else
19623 size_t iconv();
19624 #endif
19625
19626 int
19627 main ()
19628 {
19629
19630   ;
19631   return 0;
19632 }
19633 _ACEOF
19634 if ac_fn_c_try_compile "$LINENO"; then :
19635   am_cv_proto_iconv_arg1=""
19636 else
19637   am_cv_proto_iconv_arg1="const"
19638 fi
19639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19640       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);"
19641 fi
19642
19643     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19644     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19645          }$am_cv_proto_iconv" >&5
19646 $as_echo "${ac_t:-
19647          }$am_cv_proto_iconv" >&6; }
19648
19649 cat >>confdefs.h <<_ACEOF
19650 #define ICONV_CONST $am_cv_proto_iconv_arg1
19651 _ACEOF
19652
19653   fi
19654
19655
19656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19657 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19658 if test "${am_cv_langinfo_codeset+set}" = set; then :
19659   $as_echo_n "(cached) " >&6
19660 else
19661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h.  */
19663 #include <langinfo.h>
19664 int
19665 main ()
19666 {
19667 char* cs = nl_langinfo(CODESET);
19668   ;
19669   return 0;
19670 }
19671 _ACEOF
19672 if ac_fn_c_try_link "$LINENO"; then :
19673   am_cv_langinfo_codeset=yes
19674 else
19675   am_cv_langinfo_codeset=no
19676 fi
19677 rm -f core conftest.err conftest.$ac_objext \
19678     conftest$ac_exeext conftest.$ac_ext
19679
19680 fi
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19682 $as_echo "$am_cv_langinfo_codeset" >&6; }
19683   if test $am_cv_langinfo_codeset = yes; then
19684
19685 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19686
19687   fi
19688
19689   if test $ac_cv_header_locale_h = yes; then
19690
19691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19692 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19693 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19694   $as_echo_n "(cached) " >&6
19695 else
19696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19697 /* end confdefs.h.  */
19698 #include <locale.h>
19699 int
19700 main ()
19701 {
19702 return LC_MESSAGES
19703   ;
19704   return 0;
19705 }
19706 _ACEOF
19707 if ac_fn_c_try_link "$LINENO"; then :
19708   gt_cv_val_LC_MESSAGES=yes
19709 else
19710   gt_cv_val_LC_MESSAGES=no
19711 fi
19712 rm -f core conftest.err conftest.$ac_objext \
19713     conftest$ac_exeext conftest.$ac_ext
19714 fi
19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19716 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19717   if test $gt_cv_val_LC_MESSAGES = yes; then
19718
19719 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19720
19721   fi
19722
19723   fi
19724
19725   if test -n "$INTL_MACOSX_LIBS"; then
19726     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19727   fi
19728
19729                       for ac_prog in bison
19730 do
19731   # Extract the first word of "$ac_prog", so it can be a program name with args.
19732 set dummy $ac_prog; ac_word=$2
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19734 $as_echo_n "checking for $ac_word... " >&6; }
19735 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19736   $as_echo_n "(cached) " >&6
19737 else
19738   if test -n "$INTLBISON"; then
19739   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19740 else
19741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19742 for as_dir in $PATH
19743 do
19744   IFS=$as_save_IFS
19745   test -z "$as_dir" && as_dir=.
19746     for ac_exec_ext in '' $ac_executable_extensions; do
19747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19748     ac_cv_prog_INTLBISON="$ac_prog"
19749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19750     break 2
19751   fi
19752 done
19753   done
19754 IFS=$as_save_IFS
19755
19756 fi
19757 fi
19758 INTLBISON=$ac_cv_prog_INTLBISON
19759 if test -n "$INTLBISON"; then
19760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19761 $as_echo "$INTLBISON" >&6; }
19762 else
19763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19764 $as_echo "no" >&6; }
19765 fi
19766
19767
19768   test -n "$INTLBISON" && break
19769 done
19770
19771   if test -z "$INTLBISON"; then
19772     ac_verc_fail=yes
19773   else
19774         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19775 $as_echo_n "checking version of bison... " >&6; }
19776     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19777     case $ac_prog_version in
19778       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19779       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19780          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19781       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19782     esac
19783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19784 $as_echo "$ac_prog_version" >&6; }
19785   fi
19786   if test $ac_verc_fail = yes; then
19787     INTLBISON=:
19788   fi
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19806 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19807 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19808   $as_echo_n "(cached) " >&6
19809 else
19810   gt_save_CPPFLAGS="$CPPFLAGS"
19811      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19812      gt_save_LIBS="$LIBS"
19813      LIBS="$LIBS -framework CoreFoundation"
19814      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815 /* end confdefs.h.  */
19816 #include <CFPreferences.h>
19817 int
19818 main ()
19819 {
19820 CFPreferencesCopyAppValue(NULL, NULL)
19821   ;
19822   return 0;
19823 }
19824 _ACEOF
19825 if ac_fn_c_try_link "$LINENO"; then :
19826   gt_cv_func_CFPreferencesCopyAppValue=yes
19827 else
19828   gt_cv_func_CFPreferencesCopyAppValue=no
19829 fi
19830 rm -f core conftest.err conftest.$ac_objext \
19831     conftest$ac_exeext conftest.$ac_ext
19832      CPPFLAGS="$gt_save_CPPFLAGS"
19833      LIBS="$gt_save_LIBS"
19834 fi
19835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19836 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19837   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19838
19839 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19840
19841   fi
19842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19843 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19844 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19845   $as_echo_n "(cached) " >&6
19846 else
19847   gt_save_CPPFLAGS="$CPPFLAGS"
19848      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19849      gt_save_LIBS="$LIBS"
19850      LIBS="$LIBS -framework CoreFoundation"
19851      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19852 /* end confdefs.h.  */
19853 #include <CFLocale.h>
19854 int
19855 main ()
19856 {
19857 CFLocaleCopyCurrent();
19858   ;
19859   return 0;
19860 }
19861 _ACEOF
19862 if ac_fn_c_try_link "$LINENO"; then :
19863   gt_cv_func_CFLocaleCopyCurrent=yes
19864 else
19865   gt_cv_func_CFLocaleCopyCurrent=no
19866 fi
19867 rm -f core conftest.err conftest.$ac_objext \
19868     conftest$ac_exeext conftest.$ac_ext
19869      CPPFLAGS="$gt_save_CPPFLAGS"
19870      LIBS="$gt_save_LIBS"
19871 fi
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19873 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19874   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19875
19876 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19877
19878   fi
19879   INTL_MACOSX_LIBS=
19880   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19881     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19882   fi
19883
19884
19885
19886
19887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19888 $as_echo_n "checking whether NLS is requested... " >&6; }
19889     # Check whether --enable-nls was given.
19890 if test "${enable_nls+set}" = set; then :
19891   enableval=$enable_nls; USE_NLS=$enableval
19892 else
19893   USE_NLS=yes
19894 fi
19895
19896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19897 $as_echo "$USE_NLS" >&6; }
19898
19899
19900
19901
19902     BUILD_INCLUDED_LIBINTL=no
19903     USE_INCLUDED_LIBINTL=no
19904
19905   LIBINTL=
19906   LTLIBINTL=
19907   POSUB=
19908
19909     if test "$USE_NLS" = "yes"; then
19910     gt_use_preinstalled_gnugettext=no
19911
19912       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19913 $as_echo_n "checking whether included gettext is requested... " >&6; }
19914
19915 # Check whether --with-included-gettext was given.
19916 if test "${with_included_gettext+set}" = set; then :
19917   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19918 else
19919   nls_cv_force_use_gnu_gettext=no
19920 fi
19921
19922       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19923 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19924
19925       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19926       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19927
19928
19929
19930
19931
19932
19933         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19934 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19935 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19936   $as_echo_n "(cached) " >&6
19937 else
19938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19939 /* end confdefs.h.  */
19940 #include <libintl.h>
19941 extern int _nl_msg_cat_cntr;
19942 extern int *_nl_domain_bindings;
19943 int
19944 main ()
19945 {
19946 bindtextdomain ("", "");
19947 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19948   ;
19949   return 0;
19950 }
19951 _ACEOF
19952 if ac_fn_c_try_link "$LINENO"; then :
19953   gt_cv_func_gnugettext1_libc=yes
19954 else
19955   gt_cv_func_gnugettext1_libc=no
19956 fi
19957 rm -f core conftest.err conftest.$ac_objext \
19958     conftest$ac_exeext conftest.$ac_ext
19959 fi
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19961 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19962
19963         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19964
19965
19966
19967     use_additional=yes
19968
19969   acl_save_prefix="$prefix"
19970   prefix="$acl_final_prefix"
19971   acl_save_exec_prefix="$exec_prefix"
19972   exec_prefix="$acl_final_exec_prefix"
19973
19974     eval additional_includedir=\"$includedir\"
19975     eval additional_libdir=\"$libdir\"
19976
19977   exec_prefix="$acl_save_exec_prefix"
19978   prefix="$acl_save_prefix"
19979
19980
19981 # Check whether --with-libintl-prefix was given.
19982 if test "${with_libintl_prefix+set}" = set; then :
19983   withval=$with_libintl_prefix;
19984     if test "X$withval" = "Xno"; then
19985       use_additional=no
19986     else
19987       if test "X$withval" = "X"; then
19988
19989   acl_save_prefix="$prefix"
19990   prefix="$acl_final_prefix"
19991   acl_save_exec_prefix="$exec_prefix"
19992   exec_prefix="$acl_final_exec_prefix"
19993
19994           eval additional_includedir=\"$includedir\"
19995           eval additional_libdir=\"$libdir\"
19996
19997   exec_prefix="$acl_save_exec_prefix"
19998   prefix="$acl_save_prefix"
19999
20000       else
20001         additional_includedir="$withval/include"
20002         additional_libdir="$withval/lib"
20003       fi
20004     fi
20005
20006 fi
20007
20008       LIBINTL=
20009   LTLIBINTL=
20010   INCINTL=
20011   rpathdirs=
20012   ltrpathdirs=
20013   names_already_handled=
20014   names_next_round='intl '
20015   while test -n "$names_next_round"; do
20016     names_this_round="$names_next_round"
20017     names_next_round=
20018     for name in $names_this_round; do
20019       already_handled=
20020       for n in $names_already_handled; do
20021         if test "$n" = "$name"; then
20022           already_handled=yes
20023           break
20024         fi
20025       done
20026       if test -z "$already_handled"; then
20027         names_already_handled="$names_already_handled $name"
20028                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20029         eval value=\"\$HAVE_LIB$uppername\"
20030         if test -n "$value"; then
20031           if test "$value" = yes; then
20032             eval value=\"\$LIB$uppername\"
20033             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20034             eval value=\"\$LTLIB$uppername\"
20035             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20036           else
20037                                     :
20038           fi
20039         else
20040                               found_dir=
20041           found_la=
20042           found_so=
20043           found_a=
20044           if test $use_additional = yes; then
20045             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20046               found_dir="$additional_libdir"
20047               found_so="$additional_libdir/lib$name.$shlibext"
20048               if test -f "$additional_libdir/lib$name.la"; then
20049                 found_la="$additional_libdir/lib$name.la"
20050               fi
20051             else
20052               if test -f "$additional_libdir/lib$name.$libext"; then
20053                 found_dir="$additional_libdir"
20054                 found_a="$additional_libdir/lib$name.$libext"
20055                 if test -f "$additional_libdir/lib$name.la"; then
20056                   found_la="$additional_libdir/lib$name.la"
20057                 fi
20058               fi
20059             fi
20060           fi
20061           if test "X$found_dir" = "X"; then
20062             for x in $LDFLAGS $LTLIBINTL; do
20063
20064   acl_save_prefix="$prefix"
20065   prefix="$acl_final_prefix"
20066   acl_save_exec_prefix="$exec_prefix"
20067   exec_prefix="$acl_final_exec_prefix"
20068   eval x=\"$x\"
20069   exec_prefix="$acl_save_exec_prefix"
20070   prefix="$acl_save_prefix"
20071
20072               case "$x" in
20073                 -L*)
20074                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20075                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20076                     found_dir="$dir"
20077                     found_so="$dir/lib$name.$shlibext"
20078                     if test -f "$dir/lib$name.la"; then
20079                       found_la="$dir/lib$name.la"
20080                     fi
20081                   else
20082                     if test -f "$dir/lib$name.$libext"; then
20083                       found_dir="$dir"
20084                       found_a="$dir/lib$name.$libext"
20085                       if test -f "$dir/lib$name.la"; then
20086                         found_la="$dir/lib$name.la"
20087                       fi
20088                     fi
20089                   fi
20090                   ;;
20091               esac
20092               if test "X$found_dir" != "X"; then
20093                 break
20094               fi
20095             done
20096           fi
20097           if test "X$found_dir" != "X"; then
20098                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20099             if test "X$found_so" != "X"; then
20100                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20101                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20102               else
20103                                                                                 haveit=
20104                 for x in $ltrpathdirs; do
20105                   if test "X$x" = "X$found_dir"; then
20106                     haveit=yes
20107                     break
20108                   fi
20109                 done
20110                 if test -z "$haveit"; then
20111                   ltrpathdirs="$ltrpathdirs $found_dir"
20112                 fi
20113                                 if test "$hardcode_direct" = yes; then
20114                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20115                 else
20116                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20117                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20118                                                             haveit=
20119                     for x in $rpathdirs; do
20120                       if test "X$x" = "X$found_dir"; then
20121                         haveit=yes
20122                         break
20123                       fi
20124                     done
20125                     if test -z "$haveit"; then
20126                       rpathdirs="$rpathdirs $found_dir"
20127                     fi
20128                   else
20129                                                                                 haveit=
20130                     for x in $LDFLAGS $LIBINTL; do
20131
20132   acl_save_prefix="$prefix"
20133   prefix="$acl_final_prefix"
20134   acl_save_exec_prefix="$exec_prefix"
20135   exec_prefix="$acl_final_exec_prefix"
20136   eval x=\"$x\"
20137   exec_prefix="$acl_save_exec_prefix"
20138   prefix="$acl_save_prefix"
20139
20140                       if test "X$x" = "X-L$found_dir"; then
20141                         haveit=yes
20142                         break
20143                       fi
20144                     done
20145                     if test -z "$haveit"; then
20146                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20147                     fi
20148                     if test "$hardcode_minus_L" != no; then
20149                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20150                     else
20151                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20152                     fi
20153                   fi
20154                 fi
20155               fi
20156             else
20157               if test "X$found_a" != "X"; then
20158                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20159               else
20160                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20161               fi
20162             fi
20163                         additional_includedir=
20164             case "$found_dir" in
20165               */lib | */lib/)
20166                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20167                 additional_includedir="$basedir/include"
20168                 ;;
20169             esac
20170             if test "X$additional_includedir" != "X"; then
20171                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20172                 haveit=
20173                 if test "X$additional_includedir" = "X/usr/local/include"; then
20174                   if test -n "$GCC"; then
20175                     case $host_os in
20176                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20177                     esac
20178                   fi
20179                 fi
20180                 if test -z "$haveit"; then
20181                   for x in $CPPFLAGS $INCINTL; do
20182
20183   acl_save_prefix="$prefix"
20184   prefix="$acl_final_prefix"
20185   acl_save_exec_prefix="$exec_prefix"
20186   exec_prefix="$acl_final_exec_prefix"
20187   eval x=\"$x\"
20188   exec_prefix="$acl_save_exec_prefix"
20189   prefix="$acl_save_prefix"
20190
20191                     if test "X$x" = "X-I$additional_includedir"; then
20192                       haveit=yes
20193                       break
20194                     fi
20195                   done
20196                   if test -z "$haveit"; then
20197                     if test -d "$additional_includedir"; then
20198                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20199                     fi
20200                   fi
20201                 fi
20202               fi
20203             fi
20204                         if test -n "$found_la"; then
20205                                                         save_libdir="$libdir"
20206               case "$found_la" in
20207                 */* | *\\*) . "$found_la" ;;
20208                 *) . "./$found_la" ;;
20209               esac
20210               libdir="$save_libdir"
20211                             for dep in $dependency_libs; do
20212                 case "$dep" in
20213                   -L*)
20214                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20215                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20216                       haveit=
20217                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20218                         if test -n "$GCC"; then
20219                           case $host_os in
20220                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20221                           esac
20222                         fi
20223                       fi
20224                       if test -z "$haveit"; then
20225                         haveit=
20226                         for x in $LDFLAGS $LIBINTL; do
20227
20228   acl_save_prefix="$prefix"
20229   prefix="$acl_final_prefix"
20230   acl_save_exec_prefix="$exec_prefix"
20231   exec_prefix="$acl_final_exec_prefix"
20232   eval x=\"$x\"
20233   exec_prefix="$acl_save_exec_prefix"
20234   prefix="$acl_save_prefix"
20235
20236                           if test "X$x" = "X-L$additional_libdir"; then
20237                             haveit=yes
20238                             break
20239                           fi
20240                         done
20241                         if test -z "$haveit"; then
20242                           if test -d "$additional_libdir"; then
20243                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20244                           fi
20245                         fi
20246                         haveit=
20247                         for x in $LDFLAGS $LTLIBINTL; do
20248
20249   acl_save_prefix="$prefix"
20250   prefix="$acl_final_prefix"
20251   acl_save_exec_prefix="$exec_prefix"
20252   exec_prefix="$acl_final_exec_prefix"
20253   eval x=\"$x\"
20254   exec_prefix="$acl_save_exec_prefix"
20255   prefix="$acl_save_prefix"
20256
20257                           if test "X$x" = "X-L$additional_libdir"; then
20258                             haveit=yes
20259                             break
20260                           fi
20261                         done
20262                         if test -z "$haveit"; then
20263                           if test -d "$additional_libdir"; then
20264                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20265                           fi
20266                         fi
20267                       fi
20268                     fi
20269                     ;;
20270                   -R*)
20271                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20272                     if test "$enable_rpath" != no; then
20273                                                                   haveit=
20274                       for x in $rpathdirs; do
20275                         if test "X$x" = "X$dir"; then
20276                           haveit=yes
20277                           break
20278                         fi
20279                       done
20280                       if test -z "$haveit"; then
20281                         rpathdirs="$rpathdirs $dir"
20282                       fi
20283                                                                   haveit=
20284                       for x in $ltrpathdirs; do
20285                         if test "X$x" = "X$dir"; then
20286                           haveit=yes
20287                           break
20288                         fi
20289                       done
20290                       if test -z "$haveit"; then
20291                         ltrpathdirs="$ltrpathdirs $dir"
20292                       fi
20293                     fi
20294                     ;;
20295                   -l*)
20296                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20297                     ;;
20298                   *.la)
20299                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20300                     ;;
20301                   *)
20302                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20303                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20304                     ;;
20305                 esac
20306               done
20307             fi
20308           else
20309                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20310             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20311           fi
20312         fi
20313       fi
20314     done
20315   done
20316   if test "X$rpathdirs" != "X"; then
20317     if test -n "$hardcode_libdir_separator"; then
20318                         alldirs=
20319       for found_dir in $rpathdirs; do
20320         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20321       done
20322             acl_save_libdir="$libdir"
20323       libdir="$alldirs"
20324       eval flag=\"$hardcode_libdir_flag_spec\"
20325       libdir="$acl_save_libdir"
20326       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20327     else
20328             for found_dir in $rpathdirs; do
20329         acl_save_libdir="$libdir"
20330         libdir="$found_dir"
20331         eval flag=\"$hardcode_libdir_flag_spec\"
20332         libdir="$acl_save_libdir"
20333         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20334       done
20335     fi
20336   fi
20337   if test "X$ltrpathdirs" != "X"; then
20338             for found_dir in $ltrpathdirs; do
20339       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20340     done
20341   fi
20342
20343           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20344 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20345 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20346   $as_echo_n "(cached) " >&6
20347 else
20348   gt_save_CPPFLAGS="$CPPFLAGS"
20349             CPPFLAGS="$CPPFLAGS $INCINTL"
20350             gt_save_LIBS="$LIBS"
20351             LIBS="$LIBS $LIBINTL"
20352                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353 /* end confdefs.h.  */
20354 #include <libintl.h>
20355 extern int _nl_msg_cat_cntr;
20356 extern
20357 #ifdef __cplusplus
20358 "C"
20359 #endif
20360 const char *_nl_expand_alias (const char *);
20361 int
20362 main ()
20363 {
20364 bindtextdomain ("", "");
20365 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20366   ;
20367   return 0;
20368 }
20369 _ACEOF
20370 if ac_fn_c_try_link "$LINENO"; then :
20371   gt_cv_func_gnugettext1_libintl=yes
20372 else
20373   gt_cv_func_gnugettext1_libintl=no
20374 fi
20375 rm -f core conftest.err conftest.$ac_objext \
20376     conftest$ac_exeext conftest.$ac_ext
20377                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20378               LIBS="$LIBS $LIBICONV"
20379               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20380 /* end confdefs.h.  */
20381 #include <libintl.h>
20382 extern int _nl_msg_cat_cntr;
20383 extern
20384 #ifdef __cplusplus
20385 "C"
20386 #endif
20387 const char *_nl_expand_alias (const char *);
20388 int
20389 main ()
20390 {
20391 bindtextdomain ("", "");
20392 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20393   ;
20394   return 0;
20395 }
20396 _ACEOF
20397 if ac_fn_c_try_link "$LINENO"; then :
20398   LIBINTL="$LIBINTL $LIBICONV"
20399                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20400                 gt_cv_func_gnugettext1_libintl=yes
20401
20402 fi
20403 rm -f core conftest.err conftest.$ac_objext \
20404     conftest$ac_exeext conftest.$ac_ext
20405             fi
20406             CPPFLAGS="$gt_save_CPPFLAGS"
20407             LIBS="$gt_save_LIBS"
20408 fi
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20410 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20411         fi
20412
20413                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20414            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20415                 && test "$PACKAGE" != gettext-runtime \
20416                 && test "$PACKAGE" != gettext-tools; }; then
20417           gt_use_preinstalled_gnugettext=yes
20418         else
20419                     LIBINTL=
20420           LTLIBINTL=
20421           INCINTL=
20422         fi
20423
20424
20425         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20426                               nls_cv_use_gnu_gettext=yes
20427         fi
20428       fi
20429
20430       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20431                 BUILD_INCLUDED_LIBINTL=yes
20432         USE_INCLUDED_LIBINTL=yes
20433         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20434         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20435         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20436       fi
20437
20438       CATOBJEXT=
20439       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20440          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20441                 CATOBJEXT=.gmo
20442       fi
20443
20444
20445     if test -n "$INTL_MACOSX_LIBS"; then
20446       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20447          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20448                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20449         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20450       fi
20451     fi
20452
20453     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20454        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20455
20456 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20457
20458     else
20459       USE_NLS=no
20460     fi
20461   fi
20462
20463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20464 $as_echo_n "checking whether to use NLS... " >&6; }
20465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20466 $as_echo "$USE_NLS" >&6; }
20467   if test "$USE_NLS" = "yes"; then
20468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20469 $as_echo_n "checking where the gettext function comes from... " >&6; }
20470     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20471       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20472         gt_source="external libintl"
20473       else
20474         gt_source="libc"
20475       fi
20476     else
20477       gt_source="included intl directory"
20478     fi
20479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20480 $as_echo "$gt_source" >&6; }
20481   fi
20482
20483   if test "$USE_NLS" = "yes"; then
20484
20485     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20486       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20487         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20488 $as_echo_n "checking how to link with libintl... " >&6; }
20489         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20490 $as_echo "$LIBINTL" >&6; }
20491
20492   for element in $INCINTL; do
20493     haveit=
20494     for x in $CPPFLAGS; do
20495
20496   acl_save_prefix="$prefix"
20497   prefix="$acl_final_prefix"
20498   acl_save_exec_prefix="$exec_prefix"
20499   exec_prefix="$acl_final_exec_prefix"
20500   eval x=\"$x\"
20501   exec_prefix="$acl_save_exec_prefix"
20502   prefix="$acl_save_prefix"
20503
20504       if test "X$x" = "X$element"; then
20505         haveit=yes
20506         break
20507       fi
20508     done
20509     if test -z "$haveit"; then
20510       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20511     fi
20512   done
20513
20514       fi
20515
20516
20517 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20518
20519
20520 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20521
20522     fi
20523
20524         POSUB=po
20525   fi
20526
20527
20528             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20529       BUILD_INCLUDED_LIBINTL=yes
20530     fi
20531
20532
20533
20534
20535
20536         nls_cv_header_intl=
20537     nls_cv_header_libgt=
20538
20539         DATADIRNAME=share
20540
20541
20542         INSTOBJEXT=.mo
20543
20544
20545         GENCAT=gencat
20546
20547
20548         INTLOBJS=
20549     if test "$USE_INCLUDED_LIBINTL" = yes; then
20550       INTLOBJS="\$(GETTOBJS)"
20551     fi
20552
20553
20554         INTL_LIBTOOL_SUFFIX_PREFIX=
20555
20556
20557
20558     INTLLIBS="$LIBINTL"
20559
20560
20561
20562
20563
20564
20565 fi
20566
20567 support_mysql=no
20568 support_sqlite=no
20569 support_sqlite3=no
20570 support_postgresql=no
20571 support_dbi=no
20572 support_smartalloc=yes
20573 support_readline=yes
20574 support_conio=yes
20575 support_gnome=no
20576 support_bat=no
20577 support_wx_console=no
20578 support_tray_monitor=no
20579 support_tls=no
20580 support_crypto=no
20581 gnome_version=
20582 wx_version=
20583 support_static_tools=no
20584 support_static_fd=no
20585 support_static_sd=no
20586 support_static_dir=no
20587 support_static_cons=no
20588 support_python=no
20589 build_client_only=no
20590 build_dird=yes
20591 build_stored=yes
20592 cats=
20593 db_type=Internal
20594 support_lockmgr=no
20595 DB_TYPE=bdb
20596
20597
20598 # Check whether --enable-gnome was given.
20599 if test "${enable_gnome+set}" = set; then :
20600   enableval=$enable_gnome;
20601        if test x$enableval = xyes; then
20602           support_gnome=yes
20603        fi
20604
20605
20606 fi
20607
20608
20609 GNOME_DIR=
20610 if test x$support_gnome = xyes; then
20611    as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20612    as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20613 fi
20614 # AC_SUBST(GNOME_DIR)
20615
20616 # Check whether --enable-bat was given.
20617 if test "${enable_bat+set}" = set; then :
20618   enableval=$enable_bat;
20619        if test x$enableval = xyes; then
20620
20621 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20622
20623           support_bat=yes
20624        fi
20625
20626
20627 fi
20628
20629
20630 BAT_DIR=
20631 if test x$support_bat = xyes; then
20632    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20633    pkg=$?
20634    if test $pkg = 0; then
20635       BAT_DIR=src/qt-console
20636    else
20637       as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20638    fi
20639 fi
20640
20641 got_qwt=no
20642 QWT_INC=
20643 QWT_LDFLAGS=
20644 QWT_LIB=
20645 QWT=
20646 no_qwt=no
20647 if test x$support_bat = xyes; then
20648    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qwt support" >&5
20649 $as_echo_n "checking for qwt support... " >&6; }
20650
20651 # Check whether --with-qwt was given.
20652 if test "${with_qwt+set}" = set; then :
20653   withval=$with_qwt;
20654           case "$with_qwt" in
20655           no)
20656              no_qwt=yes
20657              ;;
20658           yes|*)
20659              if test -f ${with_qwt}/include/qwt.h; then
20660                 QWT_INC="${with_qwt}/include"
20661                 QWT_LDFLAGS="-L${with_qwt}/lib"
20662                 QWT_LIB="-lqwt"
20663                 QWT="qwt"
20664              fi
20665              ;;
20666           esac
20667
20668
20669 fi
20670
20671
20672             if test $no_qwt = no; then
20673       if test x$QWT_INC = x; then
20674          for root in /usr /usr/local; do
20675             for ver in qwt qwt5 qwt-qt4; do
20676                if test -f ${root}/include/${ver}/qwt.h; then
20677                   QWT_INC="${root}/include/${ver}"
20678                   if test -d ${root}/lib64/; then
20679                      QWT_LDFLAGS="-L${root}/lib64"
20680                   elif test -d ${root}/lib/64/; then
20681                      QWT_LDFLAGS="-L${root}/64"
20682                   else
20683                      QWT_LDFLAGS="-L${root}/lib"
20684                   fi
20685                   QWT_LIB="-lqwt"
20686                   QWT="qwt"
20687                   got_qwt=yes
20688                   break;
20689                fi
20690             done
20691          done
20692       fi
20693    fi
20694    if test x$QWT_INC = x; then
20695       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20696 $as_echo "no" >&6; }
20697    else
20698
20699 $as_echo "#define HAVE_QWT 1" >>confdefs.h
20700
20701       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20702 $as_echo "yes" >&6; }
20703    fi
20704 fi
20705
20706
20707
20708
20709
20710
20711
20712 # Check whether --enable-bwx-console was given.
20713 if test "${enable_bwx_console+set}" = set; then :
20714   enableval=$enable_bwx_console;
20715        if test x$enableval = xyes; then
20716           support_wx_console=yes
20717        fi
20718
20719
20720 fi
20721
20722
20723 WX_DIR=
20724 if test x$support_wx_console = xyes; then
20725    abc=`$WXCONFIG $WXFLAGS --cppflags`
20726    pkg=$?
20727    if test $pkg = 0; then
20728       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20729       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20730       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20731
20732
20733
20734       WX_DIR="src/wx-console"
20735    else
20736       echo " "
20737       echo "wx-config program not found. bwx-console disabled."
20738       echo " "
20739       support_wx_console=no
20740    fi
20741 fi
20742
20743
20744 # Check whether --enable-tray-monitor was given.
20745 if test "${enable_tray_monitor+set}" = set; then :
20746   enableval=$enable_tray_monitor;
20747        if test x$enableval = xyes; then
20748           support_tray_monitor=yes
20749        fi
20750
20751
20752 fi
20753
20754
20755 TRAY_MONITOR_DIR=
20756 if test x$support_tray_monitor = xyes; then
20757    abc=`$PKGCONFIG --exists gtk+-2.0`
20758    pkg=$?
20759    if test $pkg = 0; then
20760       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20761       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20762
20763
20764       TRAY_MONITOR_DIR=src/tray-monitor
20765       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20766       pkg=$?
20767       if test $pkg = 0; then
20768
20769 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20770
20771       fi
20772    fi
20773 fi
20774
20775
20776 # Check whether --enable-smartalloc was given.
20777 if test "${enable_smartalloc+set}" = set; then :
20778   enableval=$enable_smartalloc;
20779        if test x$enableval = xno; then
20780           support_smartalloc=no
20781        fi
20782
20783
20784 fi
20785
20786
20787 if test x$support_smartalloc = xyes; then
20788
20789 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20790
20791 fi
20792
20793 # Check whether --enable-lockmgr was given.
20794 if test "${enable_lockmgr+set}" = set; then :
20795   enableval=$enable_lockmgr;
20796        if test x$enableval = xyes; then
20797           support_lockmgr=yes
20798        fi
20799
20800
20801 fi
20802
20803
20804 if test x$support_lockmgr = xyes; then
20805
20806 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20807
20808 fi
20809
20810
20811 # Check whether --enable-static-tools was given.
20812 if test "${enable_static_tools+set}" = set; then :
20813   enableval=$enable_static_tools;
20814        if test x$enableval = xyes; then
20815           if test x$use_libtool = xyes; then
20816              as_fn_error "Libtool is enabled, not compatible with static tools,
20817   please rerun configure with --disable-libtool" "$LINENO" 5
20818           fi
20819           support_static_tools=yes
20820        fi
20821
20822
20823 fi
20824
20825
20826 TTOOL_LDFLAGS=
20827 if test x$support_static_tools = xyes; then
20828    TTOOL_LDFLAGS="-static"
20829 fi
20830
20831
20832 # Check whether --enable-static-fd was given.
20833 if test "${enable_static_fd+set}" = set; then :
20834   enableval=$enable_static_fd;
20835        if test x$enableval = xyes; then
20836           if test x$use_libtool = xyes; then
20837              as_fn_error "Libtool is enabled, not compatible with static tools,
20838   please rerun configure with --disable-libtool" "$LINENO" 5
20839           fi
20840           support_static_fd=yes
20841        fi
20842
20843
20844 fi
20845
20846
20847 STATIC_FD=
20848 if test x$support_static_fd = xyes; then
20849    STATIC_FD="static-bacula-fd"
20850 fi
20851
20852
20853 # Check whether --enable-static-sd was given.
20854 if test "${enable_static_sd+set}" = set; then :
20855   enableval=$enable_static_sd;
20856        if test x$enableval = xyes; then
20857           if test x$use_libtool = xyes; then
20858              as_fn_error "Libtool is enabled, not compatible with static tools,
20859   please rerun configure with --disable-libtool" "$LINENO" 5
20860           fi
20861           support_static_sd=yes
20862        fi
20863
20864
20865 fi
20866
20867
20868 STATIC_SD=
20869 if test x$support_static_sd = xyes; then
20870    STATIC_SD="static-bacula-sd"
20871 fi
20872
20873
20874 # Check whether --enable-static-dir was given.
20875 if test "${enable_static_dir+set}" = set; then :
20876   enableval=$enable_static_dir;
20877        if test x$enableval = xyes; then
20878           if test x$use_libtool = xyes; then
20879              as_fn_error "Libtool is enabled, not compatible with static tools,
20880   please rerun configure with --disable-libtool" "$LINENO" 5
20881           fi
20882           support_static_dir=yes
20883        fi
20884
20885
20886 fi
20887
20888
20889 STATIC_DIR=
20890 if test x$support_static_dir = xyes; then
20891    STATIC_DIR="static-bacula-dir"
20892 fi
20893
20894
20895 # Check whether --enable-static-cons was given.
20896 if test "${enable_static_cons+set}" = set; then :
20897   enableval=$enable_static_cons;
20898        if test x$enableval = xyes; then
20899           if test x$use_libtool = xyes; then
20900              as_fn_error "Libtool is enabled, not compatible with static tools,
20901   please rerun configure with --disable-libtool" "$LINENO" 5
20902           fi
20903           support_static_cons=yes
20904        fi
20905
20906
20907 fi
20908
20909
20910 STATIC_CONS=
20911 STATIC_GNOME_CONS=
20912 STATIC_WX_CONS=
20913 if test x$support_static_cons = xyes; then
20914    STATIC_CONS="static-bconsole"
20915    STATIC_GNOME_CONS="static-bgnome-console"
20916    STATIC_WX_CONS="static-bwx-console"
20917 fi
20918
20919
20920
20921
20922 # Check whether --enable-client-only was given.
20923 if test "${enable_client_only+set}" = set; then :
20924   enableval=$enable_client_only;
20925        if test x$enableval = xyes; then
20926           build_client_only=yes
20927           db_type=None
20928           DB_TYPE=none
20929        fi
20930
20931
20932 fi
20933
20934 if test x$build_client_only = xno; then
20935    ALL_DIRS="subdirs"
20936 else
20937    ALL_DIRS=""
20938 fi
20939
20940
20941 # Check whether --enable-build-dird was given.
20942 if test "${enable_build_dird+set}" = set; then :
20943   enableval=$enable_build_dird;
20944        if test x$enableval = xno; then
20945           build_dird=no
20946        fi
20947
20948
20949 fi
20950
20951 if test x$build_dird = xyes; then
20952    DIRD_DIR="src/dird"
20953    DIR_TOOLS="DIRTOOLS"
20954 else
20955    DIRD_DIR=""
20956    DIR_TOOLS="NODIRTOOLS"
20957 fi
20958
20959
20960
20961 # Check whether --enable-build-stored was given.
20962 if test "${enable_build_stored+set}" = set; then :
20963   enableval=$enable_build_stored;
20964       if test x$enableval = xno; then
20965          build_stored=no
20966       fi
20967
20968
20969 fi
20970
20971 if test x$build_stored = xyes; then
20972    STORED_DIR="src/stored"
20973 else
20974    STORED_DIR=""
20975 fi
20976
20977
20978 # Check whether --enable-conio was given.
20979 if test "${enable_conio+set}" = set; then :
20980   enableval=$enable_conio;
20981        if test x$enableval = xno; then
20982           support_conio=no
20983        fi
20984
20985
20986 fi
20987
20988
20989
20990 support_ipv6=yes
20991 # Check whether --enable-ipv6 was given.
20992 if test "${enable_ipv6+set}" = set; then :
20993   enableval=$enable_ipv6;
20994        if test x$enableval = xno; then
20995           support_ipv6=no
20996        fi
20997
20998
20999 fi
21000
21001
21002 if test x$support_ipv6 = xyes; then
21003     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21004 /* end confdefs.h.  */
21005  #include <sys/types.h>
21006 #include <sys/socket.h>
21007 #include <netinet/in.h>
21008 int
21009 main ()
21010 {
21011 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21012   ;
21013   return 0;
21014 }
21015 _ACEOF
21016 if ac_fn_c_try_link "$LINENO"; then :
21017   support_ipv6=yes
21018 else
21019   support_ipv6=no
21020 fi
21021 rm -f core conftest.err conftest.$ac_objext \
21022     conftest$ac_exeext conftest.$ac_ext
21023 fi
21024
21025 if test x$support_ipv6 = xyes; then
21026
21027 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21028
21029 fi
21030
21031 got_conio="no"
21032 if test x$support_conio = xyes; then
21033    ac_fn_c_check_header_mongrel "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
21034 if test "x$ac_cv_header_termcap_h" = x""yes; then :
21035    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21036 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21037 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21038   $as_echo_n "(cached) " >&6
21039 else
21040   ac_check_lib_save_LIBS=$LIBS
21041 LIBS="-ltermcap  $LIBS"
21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21043 /* end confdefs.h.  */
21044
21045 /* Override any GCC internal prototype to avoid an error.
21046    Use char because int might match the return type of a GCC
21047    builtin and then its argument prototype would still apply.  */
21048 #ifdef __cplusplus
21049 extern "C"
21050 #endif
21051 char tgetent ();
21052 int
21053 main ()
21054 {
21055 return tgetent ();
21056   ;
21057   return 0;
21058 }
21059 _ACEOF
21060 if ac_fn_c_try_link "$LINENO"; then :
21061   ac_cv_lib_termcap_tgetent=yes
21062 else
21063   ac_cv_lib_termcap_tgetent=no
21064 fi
21065 rm -f core conftest.err conftest.$ac_objext \
21066     conftest$ac_exeext conftest.$ac_ext
21067 LIBS=$ac_check_lib_save_LIBS
21068 fi
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21070 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21071 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21072    CONS_LIBS="-ltermcap"
21073     CONS_OBJ="conio.o"
21074     CONS_SRC="conio.c"
21075     got_conio="yes"
21076     support_readline=no
21077
21078 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21079
21080
21081 else
21082    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21083 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21084 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21085   $as_echo_n "(cached) " >&6
21086 else
21087   ac_check_lib_save_LIBS=$LIBS
21088 LIBS="-lncurses  $LIBS"
21089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21090 /* end confdefs.h.  */
21091
21092 /* Override any GCC internal prototype to avoid an error.
21093    Use char because int might match the return type of a GCC
21094    builtin and then its argument prototype would still apply.  */
21095 #ifdef __cplusplus
21096 extern "C"
21097 #endif
21098 char tgetent ();
21099 int
21100 main ()
21101 {
21102 return tgetent ();
21103   ;
21104   return 0;
21105 }
21106 _ACEOF
21107 if ac_fn_c_try_link "$LINENO"; then :
21108   ac_cv_lib_ncurses_tgetent=yes
21109 else
21110   ac_cv_lib_ncurses_tgetent=no
21111 fi
21112 rm -f core conftest.err conftest.$ac_objext \
21113     conftest$ac_exeext conftest.$ac_ext
21114 LIBS=$ac_check_lib_save_LIBS
21115 fi
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21117 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21118 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21119    CONS_LIBS="-lncurses"
21120       CONS_OBJ="conio.o"
21121       CONS_SRC="conio.c"
21122       got_conio="yes"
21123       support_readline=no
21124
21125 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21126
21127
21128 fi
21129
21130
21131 fi
21132
21133
21134 else
21135
21136     for ac_header in curses.h
21137 do :
21138   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21139 if test "x$ac_cv_header_curses_h" = x""yes; then :
21140   cat >>confdefs.h <<_ACEOF
21141 #define HAVE_CURSES_H 1
21142 _ACEOF
21143
21144 fi
21145
21146 done
21147
21148     ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
21149 #include <curses.h>
21150 #endif
21151
21152 "
21153 if test "x$ac_cv_header_term_h" = x""yes; then :
21154    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21155 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21156 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21157   $as_echo_n "(cached) " >&6
21158 else
21159   ac_check_lib_save_LIBS=$LIBS
21160 LIBS="-lcurses  $LIBS"
21161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21162 /* end confdefs.h.  */
21163
21164 /* Override any GCC internal prototype to avoid an error.
21165    Use char because int might match the return type of a GCC
21166    builtin and then its argument prototype would still apply.  */
21167 #ifdef __cplusplus
21168 extern "C"
21169 #endif
21170 char tgetent ();
21171 int
21172 main ()
21173 {
21174 return tgetent ();
21175   ;
21176   return 0;
21177 }
21178 _ACEOF
21179 if ac_fn_c_try_link "$LINENO"; then :
21180   ac_cv_lib_curses_tgetent=yes
21181 else
21182   ac_cv_lib_curses_tgetent=no
21183 fi
21184 rm -f core conftest.err conftest.$ac_objext \
21185     conftest$ac_exeext conftest.$ac_ext
21186 LIBS=$ac_check_lib_save_LIBS
21187 fi
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21189 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21190 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21191    CONS_LIBS="-lcurses"
21192          CONS_OBJ="conio.o"
21193          CONS_SRC="conio.c"
21194          got_conio="yes"
21195          support_readline=no
21196
21197 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21198
21199
21200 fi
21201
21202
21203 else
21204    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
21205 fi
21206
21207
21208
21209 fi
21210
21211
21212 fi
21213
21214
21215 # Check whether --enable-readline was given.
21216 if test "${enable_readline+set}" = set; then :
21217   enableval=$enable_readline;
21218        if test x$enableval = xno; then
21219           support_readline=no
21220        fi
21221
21222
21223 fi
21224
21225
21226 got_readline="no"
21227 READLINE_SRC=
21228 if test x$support_readline = xyes; then
21229
21230 # Check whether --with-readline was given.
21231 if test "${with_readline+set}" = set; then :
21232   withval=$with_readline;
21233           case "$with_readline" in
21234           no)
21235              :
21236              ;;
21237           yes|*)
21238              if test -f ${with_readline}/readline.h; then
21239                 CONS_INC="-I${with_readline}"
21240                 CONS_LDFLAGS="-L$with_readline"
21241              elif test -f ${with_readline}/include/readline/readline.h; then
21242                 CONS_INC="-I${with_readline}/include/readline"
21243                 CONS_LDFLAGS="-L${with_readline}/lib"
21244                 with_readline="${with_readline}/include/readline"
21245              else
21246                 with_readline="/usr/include/readline"
21247              fi
21248
21249              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21250 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21251 eval as_val=\$$as_ac_Header
21252    if test "x$as_val" = x""yes; then :
21253
21254
21255 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21256
21257                     CONS_LIBS="-lreadline -lhistory -ltermcap"
21258                     got_readline="yes"
21259
21260 else
21261
21262                     echo " "
21263                     echo "readline.h not found. readline turned off ..."
21264                     echo " "
21265
21266
21267 fi
21268
21269
21270              ;;
21271           esac
21272
21273 else
21274
21275                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21276 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21277
21278
21279 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21280
21281                 got_readline="yes"
21282                 CONS_INC="-I/usr/include/readline"
21283                 CONS_LIBS="-lreadline -ltermcap"
21284
21285 else
21286
21287                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21288 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21289 eval as_val=\$$as_ac_Header
21290    if test "x$as_val" = x""yes; then :
21291
21292
21293 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21294
21295                         got_readline="yes"
21296                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21297                         CONS_LIBS="-lreadline -lhistory -ltermcap"
21298                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21299                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21300
21301 else
21302
21303                         echo " "
21304                         echo "readline.h not found. readline turned off ..."
21305                         echo " "
21306
21307
21308 fi
21309
21310
21311
21312
21313 fi
21314
21315
21316
21317
21318 fi
21319
21320 fi
21321
21322
21323
21324
21325
21326
21327
21328
21329 MAKE_SHELL=/bin/sh
21330
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21332 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21333 if test "${ac_cv_header_stat_broken+set}" = set; then :
21334   $as_echo_n "(cached) " >&6
21335 else
21336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21337 /* end confdefs.h.  */
21338 #include <sys/types.h>
21339 #include <sys/stat.h>
21340
21341 #if defined S_ISBLK && defined S_IFDIR
21342 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21343 #endif
21344
21345 #if defined S_ISBLK && defined S_IFCHR
21346 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21347 #endif
21348
21349 #if defined S_ISLNK && defined S_IFREG
21350 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21351 #endif
21352
21353 #if defined S_ISSOCK && defined S_IFREG
21354 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21355 #endif
21356
21357 _ACEOF
21358 if ac_fn_c_try_compile "$LINENO"; then :
21359   ac_cv_header_stat_broken=no
21360 else
21361   ac_cv_header_stat_broken=yes
21362 fi
21363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21364 fi
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21366 $as_echo "$ac_cv_header_stat_broken" >&6; }
21367 if test $ac_cv_header_stat_broken = yes; then
21368
21369 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21370
21371 fi
21372
21373 ac_header_dirent=no
21374 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21375   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21377 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21379   $as_echo_n "(cached) " >&6
21380 else
21381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21382 /* end confdefs.h.  */
21383 #include <sys/types.h>
21384 #include <$ac_hdr>
21385
21386 int
21387 main ()
21388 {
21389 if ((DIR *) 0)
21390 return 0;
21391   ;
21392   return 0;
21393 }
21394 _ACEOF
21395 if ac_fn_c_try_compile "$LINENO"; then :
21396   eval "$as_ac_Header=yes"
21397 else
21398   eval "$as_ac_Header=no"
21399 fi
21400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21401 fi
21402 eval ac_res=\$$as_ac_Header
21403                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21404 $as_echo "$ac_res" >&6; }
21405 eval as_val=\$$as_ac_Header
21406    if test "x$as_val" = x""yes; then :
21407   cat >>confdefs.h <<_ACEOF
21408 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21409 _ACEOF
21410
21411 ac_header_dirent=$ac_hdr; break
21412 fi
21413
21414 done
21415 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21416 if test $ac_header_dirent = dirent.h; then
21417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21418 $as_echo_n "checking for library containing opendir... " >&6; }
21419 if test "${ac_cv_search_opendir+set}" = set; then :
21420   $as_echo_n "(cached) " >&6
21421 else
21422   ac_func_search_save_LIBS=$LIBS
21423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21424 /* end confdefs.h.  */
21425
21426 /* Override any GCC internal prototype to avoid an error.
21427    Use char because int might match the return type of a GCC
21428    builtin and then its argument prototype would still apply.  */
21429 #ifdef __cplusplus
21430 extern "C"
21431 #endif
21432 char opendir ();
21433 int
21434 main ()
21435 {
21436 return opendir ();
21437   ;
21438   return 0;
21439 }
21440 _ACEOF
21441 for ac_lib in '' dir; do
21442   if test -z "$ac_lib"; then
21443     ac_res="none required"
21444   else
21445     ac_res=-l$ac_lib
21446     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21447   fi
21448   if ac_fn_c_try_link "$LINENO"; then :
21449   ac_cv_search_opendir=$ac_res
21450 fi
21451 rm -f core conftest.err conftest.$ac_objext \
21452     conftest$ac_exeext
21453   if test "${ac_cv_search_opendir+set}" = set; then :
21454   break
21455 fi
21456 done
21457 if test "${ac_cv_search_opendir+set}" = set; then :
21458
21459 else
21460   ac_cv_search_opendir=no
21461 fi
21462 rm conftest.$ac_ext
21463 LIBS=$ac_func_search_save_LIBS
21464 fi
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21466 $as_echo "$ac_cv_search_opendir" >&6; }
21467 ac_res=$ac_cv_search_opendir
21468 if test "$ac_res" != no; then :
21469   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21470
21471 fi
21472
21473 else
21474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21475 $as_echo_n "checking for library containing opendir... " >&6; }
21476 if test "${ac_cv_search_opendir+set}" = set; then :
21477   $as_echo_n "(cached) " >&6
21478 else
21479   ac_func_search_save_LIBS=$LIBS
21480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21481 /* end confdefs.h.  */
21482
21483 /* Override any GCC internal prototype to avoid an error.
21484    Use char because int might match the return type of a GCC
21485    builtin and then its argument prototype would still apply.  */
21486 #ifdef __cplusplus
21487 extern "C"
21488 #endif
21489 char opendir ();
21490 int
21491 main ()
21492 {
21493 return opendir ();
21494   ;
21495   return 0;
21496 }
21497 _ACEOF
21498 for ac_lib in '' x; do
21499   if test -z "$ac_lib"; then
21500     ac_res="none required"
21501   else
21502     ac_res=-l$ac_lib
21503     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21504   fi
21505   if ac_fn_c_try_link "$LINENO"; then :
21506   ac_cv_search_opendir=$ac_res
21507 fi
21508 rm -f core conftest.err conftest.$ac_objext \
21509     conftest$ac_exeext
21510   if test "${ac_cv_search_opendir+set}" = set; then :
21511   break
21512 fi
21513 done
21514 if test "${ac_cv_search_opendir+set}" = set; then :
21515
21516 else
21517   ac_cv_search_opendir=no
21518 fi
21519 rm conftest.$ac_ext
21520 LIBS=$ac_func_search_save_LIBS
21521 fi
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21523 $as_echo "$ac_cv_search_opendir" >&6; }
21524 ac_res=$ac_cv_search_opendir
21525 if test "$ac_res" != no; then :
21526   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21527
21528 fi
21529
21530 fi
21531
21532 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21533 do :
21534   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21535 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21536 eval as_val=\$$as_ac_var
21537    if test "x$as_val" = x""yes; then :
21538   cat >>confdefs.h <<_ACEOF
21539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21540 _ACEOF
21541
21542 fi
21543 done
21544
21545 for ac_func in nanosleep nl_langinfo
21546 do :
21547   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21548 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21549 eval as_val=\$$as_ac_var
21550    if test "x$as_val" = x""yes; then :
21551   cat >>confdefs.h <<_ACEOF
21552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21553 _ACEOF
21554
21555 fi
21556 done
21557
21558 for ac_header in varargs.h
21559 do :
21560   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21561 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21562   cat >>confdefs.h <<_ACEOF
21563 #define HAVE_VARARGS_H 1
21564 _ACEOF
21565
21566 fi
21567
21568 done
21569
21570
21571
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21573 $as_echo_n "checking for Python support... " >&6; }
21574
21575 # Check whether --with-python was given.
21576 if test "${with_python+set}" = set; then :
21577   withval=$with_python;
21578        PYTHON_INCDIR=
21579        PYTHON_LIBS=
21580        if test "$withval" != "no"; then
21581           if test "$withval" = "yes"; then
21582              if test -e /usr/bin/python-config ; then
21583                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21584                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21585              else
21586                 for python_root in /usr /usr/local /usr/sfw; do
21587                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21588                       if test -f $python_root/include/${ver}/Python.h; then
21589                          PYTHON_INCDIR=-I$python_root/include/${ver}
21590                          if test -d $python_root/lib64/${ver}/config; then
21591                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21592                          else
21593                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21594                          fi
21595                          break
21596                       fi
21597                    done
21598                 done
21599
21600                 if test x$PYTHON_INCDIR = x; then
21601                    if test -f $prefix/include/Python.h; then
21602                       PYTHON_INCDIR=-I$prefix/include
21603                       if test -d $prefix/lib64/config; then
21604                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21605                       else
21606                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21607                       fi
21608                    else
21609                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21610 $as_echo "no" >&6; }
21611                       as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21612                    fi
21613                 fi
21614              fi
21615           else
21616              if test -e $withval/bin/python-config ; then
21617                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21618                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21619              elif test -f $withval/Python.h; then
21620                 PYTHON_INCDIR=-I$withval
21621                 PYTHON_LIBS="-L$withval/config -lpython"
21622              elif test -f $withval/include/Python.h; then
21623                 PYTHON_INCDIR=-I$withval/include
21624                 if test -d $withval/lib64/config; then
21625                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21626                 else
21627                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21628                 fi
21629              elif test -f $withval/include/python/Python.h; then
21630                 PYTHON_INCDIR=-I$withval/include/python
21631                 if test -d $withval/lib64/python/config; then
21632                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21633                 else
21634                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21635                 fi
21636              else
21637                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21638 $as_echo "no" >&6; }
21639                 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21640              fi
21641           fi
21642
21643           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21644
21645           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21646 $as_echo "yes" >&6; }
21647           support_python=yes
21648           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21649 $as_echo "$as_me: checking for more Python libs" >&6;}
21650           saved_LIBS="$LIBS"; LIBS=
21651           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21652 $as_echo_n "checking for library containing shm_open... " >&6; }
21653 if test "${ac_cv_search_shm_open+set}" = set; then :
21654   $as_echo_n "(cached) " >&6
21655 else
21656   ac_func_search_save_LIBS=$LIBS
21657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21658 /* end confdefs.h.  */
21659
21660 /* Override any GCC internal prototype to avoid an error.
21661    Use char because int might match the return type of a GCC
21662    builtin and then its argument prototype would still apply.  */
21663 #ifdef __cplusplus
21664 extern "C"
21665 #endif
21666 char shm_open ();
21667 int
21668 main ()
21669 {
21670 return shm_open ();
21671   ;
21672   return 0;
21673 }
21674 _ACEOF
21675 for ac_lib in '' rt; do
21676   if test -z "$ac_lib"; then
21677     ac_res="none required"
21678   else
21679     ac_res=-l$ac_lib
21680     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21681   fi
21682   if ac_fn_c_try_link "$LINENO"; then :
21683   ac_cv_search_shm_open=$ac_res
21684 fi
21685 rm -f core conftest.err conftest.$ac_objext \
21686     conftest$ac_exeext
21687   if test "${ac_cv_search_shm_open+set}" = set; then :
21688   break
21689 fi
21690 done
21691 if test "${ac_cv_search_shm_open+set}" = set; then :
21692
21693 else
21694   ac_cv_search_shm_open=no
21695 fi
21696 rm conftest.$ac_ext
21697 LIBS=$ac_func_search_save_LIBS
21698 fi
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21700 $as_echo "$ac_cv_search_shm_open" >&6; }
21701 ac_res=$ac_cv_search_shm_open
21702 if test "$ac_res" != no; then :
21703   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21704
21705 fi
21706
21707           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21708 $as_echo_n "checking for openpty in -lutil... " >&6; }
21709 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21710   $as_echo_n "(cached) " >&6
21711 else
21712   ac_check_lib_save_LIBS=$LIBS
21713 LIBS="-lutil  $LIBS"
21714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21715 /* end confdefs.h.  */
21716
21717 /* Override any GCC internal prototype to avoid an error.
21718    Use char because int might match the return type of a GCC
21719    builtin and then its argument prototype would still apply.  */
21720 #ifdef __cplusplus
21721 extern "C"
21722 #endif
21723 char openpty ();
21724 int
21725 main ()
21726 {
21727 return openpty ();
21728   ;
21729   return 0;
21730 }
21731 _ACEOF
21732 if ac_fn_c_try_link "$LINENO"; then :
21733   ac_cv_lib_util_openpty=yes
21734 else
21735   ac_cv_lib_util_openpty=no
21736 fi
21737 rm -f core conftest.err conftest.$ac_objext \
21738     conftest$ac_exeext conftest.$ac_ext
21739 LIBS=$ac_check_lib_save_LIBS
21740 fi
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21742 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21743 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21744   cat >>confdefs.h <<_ACEOF
21745 #define HAVE_LIBUTIL 1
21746 _ACEOF
21747
21748   LIBS="-lutil $LIBS"
21749
21750 fi
21751
21752           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21753           LIBS="$saved_LIBS"
21754        else
21755           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21756 $as_echo "no" >&6; }
21757        fi
21758
21759 else
21760
21761        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21762 $as_echo "no" >&6; }
21763
21764
21765 fi
21766
21767
21768
21769
21770 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21771 if test "x$ac_cv_func_socket" = x""yes; then :
21772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21773 $as_echo "using libc's socket" >&6; }
21774 else
21775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21776 $as_echo_n "checking for socket in -lxnet... " >&6; }
21777 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21778   $as_echo_n "(cached) " >&6
21779 else
21780   ac_check_lib_save_LIBS=$LIBS
21781 LIBS="-lxnet  $LIBS"
21782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21783 /* end confdefs.h.  */
21784
21785 /* Override any GCC internal prototype to avoid an error.
21786    Use char because int might match the return type of a GCC
21787    builtin and then its argument prototype would still apply.  */
21788 #ifdef __cplusplus
21789 extern "C"
21790 #endif
21791 char socket ();
21792 int
21793 main ()
21794 {
21795 return socket ();
21796   ;
21797   return 0;
21798 }
21799 _ACEOF
21800 if ac_fn_c_try_link "$LINENO"; then :
21801   ac_cv_lib_xnet_socket=yes
21802 else
21803   ac_cv_lib_xnet_socket=no
21804 fi
21805 rm -f core conftest.err conftest.$ac_objext \
21806     conftest$ac_exeext conftest.$ac_ext
21807 LIBS=$ac_check_lib_save_LIBS
21808 fi
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21810 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21811 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21812   cat >>confdefs.h <<_ACEOF
21813 #define HAVE_LIBXNET 1
21814 _ACEOF
21815
21816   LIBS="-lxnet $LIBS"
21817
21818 fi
21819
21820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21821 $as_echo_n "checking for socket in -lsocket... " >&6; }
21822 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21823   $as_echo_n "(cached) " >&6
21824 else
21825   ac_check_lib_save_LIBS=$LIBS
21826 LIBS="-lsocket  $LIBS"
21827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21828 /* end confdefs.h.  */
21829
21830 /* Override any GCC internal prototype to avoid an error.
21831    Use char because int might match the return type of a GCC
21832    builtin and then its argument prototype would still apply.  */
21833 #ifdef __cplusplus
21834 extern "C"
21835 #endif
21836 char socket ();
21837 int
21838 main ()
21839 {
21840 return socket ();
21841   ;
21842   return 0;
21843 }
21844 _ACEOF
21845 if ac_fn_c_try_link "$LINENO"; then :
21846   ac_cv_lib_socket_socket=yes
21847 else
21848   ac_cv_lib_socket_socket=no
21849 fi
21850 rm -f core conftest.err conftest.$ac_objext \
21851     conftest$ac_exeext conftest.$ac_ext
21852 LIBS=$ac_check_lib_save_LIBS
21853 fi
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21855 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21856 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21857   cat >>confdefs.h <<_ACEOF
21858 #define HAVE_LIBSOCKET 1
21859 _ACEOF
21860
21861   LIBS="-lsocket $LIBS"
21862
21863 fi
21864
21865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21866 $as_echo_n "checking for socket in -linet... " >&6; }
21867 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21868   $as_echo_n "(cached) " >&6
21869 else
21870   ac_check_lib_save_LIBS=$LIBS
21871 LIBS="-linet  $LIBS"
21872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21873 /* end confdefs.h.  */
21874
21875 /* Override any GCC internal prototype to avoid an error.
21876    Use char because int might match the return type of a GCC
21877    builtin and then its argument prototype would still apply.  */
21878 #ifdef __cplusplus
21879 extern "C"
21880 #endif
21881 char socket ();
21882 int
21883 main ()
21884 {
21885 return socket ();
21886   ;
21887   return 0;
21888 }
21889 _ACEOF
21890 if ac_fn_c_try_link "$LINENO"; then :
21891   ac_cv_lib_inet_socket=yes
21892 else
21893   ac_cv_lib_inet_socket=no
21894 fi
21895 rm -f core conftest.err conftest.$ac_objext \
21896     conftest$ac_exeext conftest.$ac_ext
21897 LIBS=$ac_check_lib_save_LIBS
21898 fi
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21900 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21901 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21902   cat >>confdefs.h <<_ACEOF
21903 #define HAVE_LIBINET 1
21904 _ACEOF
21905
21906   LIBS="-linet $LIBS"
21907
21908 fi
21909
21910 fi
21911
21912
21913 TCPW_MSG="no"
21914 WRAPLIBS=""
21915
21916 # Check whether --with-tcp-wrappers was given.
21917 if test "${with_tcp_wrappers+set}" = set; then :
21918   withval=$with_tcp_wrappers;
21919        if test "x$withval" != "xno" ; then
21920           saved_LIBS="$LIBS"
21921           LIBS="$saved_LIBS -lwrap"
21922           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21923 $as_echo_n "checking for library containing nanosleep... " >&6; }
21924 if test "${ac_cv_search_nanosleep+set}" = set; then :
21925   $as_echo_n "(cached) " >&6
21926 else
21927   ac_func_search_save_LIBS=$LIBS
21928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21929 /* end confdefs.h.  */
21930
21931 /* Override any GCC internal prototype to avoid an error.
21932    Use char because int might match the return type of a GCC
21933    builtin and then its argument prototype would still apply.  */
21934 #ifdef __cplusplus
21935 extern "C"
21936 #endif
21937 char nanosleep ();
21938 int
21939 main ()
21940 {
21941 return nanosleep ();
21942   ;
21943   return 0;
21944 }
21945 _ACEOF
21946 for ac_lib in '' rt; do
21947   if test -z "$ac_lib"; then
21948     ac_res="none required"
21949   else
21950     ac_res=-l$ac_lib
21951     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21952   fi
21953   if ac_fn_c_try_link "$LINENO"; then :
21954   ac_cv_search_nanosleep=$ac_res
21955 fi
21956 rm -f core conftest.err conftest.$ac_objext \
21957     conftest$ac_exeext
21958   if test "${ac_cv_search_nanosleep+set}" = set; then :
21959   break
21960 fi
21961 done
21962 if test "${ac_cv_search_nanosleep+set}" = set; then :
21963
21964 else
21965   ac_cv_search_nanosleep=no
21966 fi
21967 rm conftest.$ac_ext
21968 LIBS=$ac_func_search_save_LIBS
21969 fi
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21971 $as_echo "$ac_cv_search_nanosleep" >&6; }
21972 ac_res=$ac_cv_search_nanosleep
21973 if test "$ac_res" != no; then :
21974   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21975
21976 fi
21977
21978           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21979 $as_echo_n "checking for libwrap... " >&6; }
21980           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21981 /* end confdefs.h.  */
21982
21983                #include <sys/types.h>
21984                #include <tcpd.h>
21985                int deny_severity = 0;
21986                int allow_severity = 0;
21987                struct request_info *req;
21988
21989 int
21990 main ()
21991 {
21992
21993                 hosts_access(req);
21994
21995   ;
21996   return 0;
21997 }
21998 _ACEOF
21999 if ac_fn_c_try_link "$LINENO"; then :
22000
22001                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22002 $as_echo "yes" >&6; }
22003
22004 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22005
22006                  TCPW_MSG="yes"
22007                  LIBS="$saved_LIBS"
22008                  WRAPLIBS="-lwrap"
22009
22010 else
22011
22012                  LIBS="$saved_LIBS -lwrap -lnsl"
22013                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22014                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22015 /* end confdefs.h.  */
22016
22017                        #include <sys/types.h>
22018                        #include <tcpd.h>
22019                        int deny_severity = 0;
22020                        int allow_severity = 0;
22021                        struct request_info *req;
22022
22023 int
22024 main ()
22025 {
22026
22027                        hosts_access(req);
22028
22029   ;
22030   return 0;
22031 }
22032 _ACEOF
22033 if ac_fn_c_try_link "$LINENO"; then :
22034
22035                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22036 $as_echo "yes" >&6; }
22037
22038 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22039
22040                       TCPW_MSG="yes"
22041                       LIBS="$saved_LIBS"
22042                       WRAPLIBS="-lwrap"
22043
22044 else
22045
22046                       as_fn_error "*** libwrap missing" "$LINENO" 5
22047
22048
22049 fi
22050 rm -f core conftest.err conftest.$ac_objext \
22051     conftest$ac_exeext conftest.$ac_ext
22052
22053
22054 fi
22055 rm -f core conftest.err conftest.$ac_objext \
22056     conftest$ac_exeext conftest.$ac_ext
22057        fi
22058
22059
22060 fi
22061
22062
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22064 $as_echo_n "checking for OpenSSL... " >&6; }
22065
22066 # Check whether --with-openssl was given.
22067 if test "${with_openssl+set}" = set; then :
22068   withval=$with_openssl;
22069         with_openssl_directory=${withval}
22070
22071
22072 fi
22073
22074
22075 if test "x$with_openssl_directory" != "xno"; then
22076    OPENSSL_LIBS="-lssl -lcrypto"
22077    OPENSSL_INC=""
22078
22079    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22080       #
22081       # Make sure the $with_openssl_directory also makes sense
22082       #
22083       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22084          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22085          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22086       fi
22087    fi
22088
22089    saved_LIBS="${LIBS}"
22090    saved_CFLAGS="${CFLAGS}"
22091    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22092    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22093
22094    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22095 /* end confdefs.h.  */
22096
22097           #include <openssl/ssl.h>
22098
22099 int
22100 main ()
22101 {
22102
22103            CRYPTO_set_id_callback(NULL);
22104
22105   ;
22106   return 0;
22107 }
22108 _ACEOF
22109 if ac_fn_c_try_link "$LINENO"; then :
22110
22111           support_tls="yes"
22112           support_crypto="yes"
22113
22114 else
22115
22116           support_tls="no"
22117
22118
22119 fi
22120 rm -f core conftest.err conftest.$ac_objext \
22121     conftest$ac_exeext conftest.$ac_ext
22122
22123    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h.  */
22125
22126           #include <openssl/evp.h>
22127
22128 int
22129 main ()
22130 {
22131
22132           EVP_sha512();
22133
22134   ;
22135   return 0;
22136 }
22137 _ACEOF
22138 if ac_fn_c_try_link "$LINENO"; then :
22139
22140           ac_cv_openssl_sha2="yes"
22141
22142 else
22143
22144           ac_cv_openssl_sha2="no"
22145
22146
22147 fi
22148 rm -f core conftest.err conftest.$ac_objext \
22149     conftest$ac_exeext conftest.$ac_ext
22150
22151                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22152 /* end confdefs.h.  */
22153
22154           #include <openssl/evp.h>
22155
22156 int
22157 main ()
22158 {
22159
22160           EVP_aes_192_cbc();
22161
22162   ;
22163   return 0;
22164 }
22165 _ACEOF
22166 if ac_fn_c_try_link "$LINENO"; then :
22167
22168           ac_cv_openssl_export="no"
22169
22170 else
22171
22172           ac_cv_openssl_export="yes"
22173
22174
22175 fi
22176 rm -f core conftest.err conftest.$ac_objext \
22177     conftest$ac_exeext conftest.$ac_ext
22178
22179    LIBS="${saved_LIBS}"
22180    CFLAGS="${saved_CFLAGS}"
22181
22182    if test "$support_tls" = "yes"; then
22183
22184 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22185
22186
22187 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22188
22189
22190 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22191
22192    fi
22193
22194    if test "$ac_cv_openssl_sha2" = "yes"; then
22195
22196 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22197
22198    fi
22199
22200    if test "$ac_cv_openssl_export" = "yes"; then
22201
22202 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22203
22204    fi
22205 else
22206    support_tls="no"
22207    support_crypto="no"
22208    OPENSSL_LIBS=""
22209    OPENSSL_INC=""
22210 fi
22211
22212 if test "$support_tls" = "no"; then
22213    OPENSSL_LIBS=""
22214    OPENSSL_INC=""
22215 fi
22216
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22218 $as_echo "$support_tls" >&6; }
22219
22220
22221
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22223 $as_echo_n "checking for library containing dlopen... " >&6; }
22224 if test "${ac_cv_search_dlopen+set}" = set; then :
22225   $as_echo_n "(cached) " >&6
22226 else
22227   ac_func_search_save_LIBS=$LIBS
22228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22229 /* end confdefs.h.  */
22230
22231 /* Override any GCC internal prototype to avoid an error.
22232    Use char because int might match the return type of a GCC
22233    builtin and then its argument prototype would still apply.  */
22234 #ifdef __cplusplus
22235 extern "C"
22236 #endif
22237 char dlopen ();
22238 int
22239 main ()
22240 {
22241 return dlopen ();
22242   ;
22243   return 0;
22244 }
22245 _ACEOF
22246 for ac_lib in '' dl; do
22247   if test -z "$ac_lib"; then
22248     ac_res="none required"
22249   else
22250     ac_res=-l$ac_lib
22251     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22252   fi
22253   if ac_fn_c_try_link "$LINENO"; then :
22254   ac_cv_search_dlopen=$ac_res
22255 fi
22256 rm -f core conftest.err conftest.$ac_objext \
22257     conftest$ac_exeext
22258   if test "${ac_cv_search_dlopen+set}" = set; then :
22259   break
22260 fi
22261 done
22262 if test "${ac_cv_search_dlopen+set}" = set; then :
22263
22264 else
22265   ac_cv_search_dlopen=no
22266 fi
22267 rm conftest.$ac_ext
22268 LIBS=$ac_func_search_save_LIBS
22269 fi
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22271 $as_echo "$ac_cv_search_dlopen" >&6; }
22272 ac_res=$ac_cv_search_dlopen
22273 if test "$ac_res" != no; then :
22274   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22275
22276 fi
22277
22278
22279 working_dir=`eval echo ${prefix}/var/bacula/working`
22280
22281 # Check whether --with-working-dir was given.
22282 if test "${with_working_dir+set}" = set; then :
22283   withval=$with_working_dir;
22284        if test "x$withval" != "xno" ; then
22285          working_dir=$withval
22286        fi
22287
22288
22289 fi
22290
22291
22292
22293
22294 archivedir=/tmp
22295
22296 # Check whether --with-archivedir was given.
22297 if test "${with_archivedir+set}" = set; then :
22298   withval=$with_archivedir;
22299        if test "x$withval" != "xno" ; then
22300           archivedir=$withval
22301        fi
22302
22303
22304 fi
22305
22306
22307
22308
22309 basename=`hostname`
22310
22311 # Check whether --with-basename was given.
22312 if test "${with_basename+set}" = set; then :
22313   withval=$with_basename;
22314        if test "x$withval" != "xno" ; then
22315           basename=$withval
22316        fi
22317
22318
22319 fi
22320
22321
22322
22323
22324 hostname=`uname -n | cut -d '.' -f 1`
22325 if test x${hostname} = x ; then
22326   hostname="localhost"
22327 fi
22328
22329 # Check whether --with-hostname was given.
22330 if test "${with_hostname+set}" = set; then :
22331   withval=$with_hostname;
22332        if test "x$withval" != "xno" ; then
22333          hostname=$withval
22334        fi
22335
22336
22337 fi
22338
22339
22340
22341
22342
22343 scriptdir=`eval echo ${sysconfdir}`
22344
22345 # Check whether --with-scriptdir was given.
22346 if test "${with_scriptdir+set}" = set; then :
22347   withval=$with_scriptdir;
22348        if test "x$withval" != "xno" ; then
22349           scriptdir=$withval
22350        fi
22351
22352
22353 fi
22354
22355
22356
22357
22358
22359 bsrdir=/tmp
22360
22361 # Check whether --with-bsrdir was given.
22362 if test "${with_bsrdir+set}" = set; then :
22363   withval=$with_bsrdir;
22364        if test "x$withval" != "xno" ; then
22365           bsrdir=$withval
22366        fi
22367
22368
22369 fi
22370
22371
22372
22373
22374 logdir=/tmp
22375
22376 # Check whether --with-logdir was given.
22377 if test "${with_logdir+set}" = set; then :
22378   withval=$with_logdir;
22379        if test "x$withval" != "xno" ; then
22380           logdir=$withval
22381        fi
22382
22383
22384 fi
22385
22386
22387
22388
22389
22390 # ------------------------------------------
22391 # Where to place plugindir (plugin files)
22392 # ------------------------------------------
22393 plugindir=`eval echo ${libdir}`
22394
22395 # Check whether --with-plugindir was given.
22396 if test "${with_plugindir+set}" = set; then :
22397   withval=$with_plugindir;
22398        if test "x$withval" != "xno" ; then
22399           plugindir=$withval
22400        fi
22401
22402
22403 fi
22404
22405
22406
22407
22408 dump_email=root@localhost
22409
22410 # Check whether --with-dump-email was given.
22411 if test "${with_dump_email+set}" = set; then :
22412   withval=$with_dump_email;
22413        if test "x$withval" != "xno" ; then
22414           dump_email=$withval
22415        fi
22416
22417
22418 fi
22419
22420
22421
22422
22423 job_email=root@localhost
22424
22425 # Check whether --with-job-email was given.
22426 if test "${with_job_email+set}" = set; then :
22427   withval=$with_job_email;
22428        if test "x$withval" != "xno" ; then
22429           job_email=$withval
22430        fi
22431
22432
22433 fi
22434
22435
22436
22437
22438 smtp_host=localhost
22439
22440 # Check whether --with-smtp_host was given.
22441 if test "${with_smtp_host+set}" = set; then :
22442   withval=$with_smtp_host;
22443        if test "x$withval" != "xno" ; then
22444           smtp_host=$withval
22445        fi
22446
22447
22448 fi
22449
22450
22451
22452
22453 piddir=/var/run
22454
22455 # Check whether --with-pid-dir was given.
22456 if test "${with_pid_dir+set}" = set; then :
22457   withval=$with_pid_dir;
22458        if test "x$withval" != "xno" ; then
22459           piddir=$withval
22460        fi
22461
22462
22463 fi
22464
22465
22466 cat >>confdefs.h <<_ACEOF
22467 #define _PATH_BACULA_PIDDIR "$piddir"
22468 _ACEOF
22469
22470
22471
22472 subsysdir=/var/run/subsys
22473 if test -d /var/run/subsys; then
22474    subsysdir=/var/run/subsys
22475 elif test -d /var/lock/subsys; then
22476    subsysdir=/var/lock/subsys
22477 else
22478    subsysdir=/var/run/subsys
22479 fi
22480
22481 # Check whether --with-subsys-dir was given.
22482 if test "${with_subsys_dir+set}" = set; then :
22483   withval=$with_subsys_dir;
22484        if test "x$withval" != "xno" ; then
22485           subsysdir=$withval
22486        fi
22487
22488
22489 fi
22490
22491
22492
22493
22494 baseport=9101
22495
22496 # Check whether --with-baseport was given.
22497 if test "${with_baseport+set}" = set; then :
22498   withval=$with_baseport;
22499        if test "x$withval" != "xno" ; then
22500           baseport=$withval
22501        fi
22502
22503
22504 fi
22505
22506
22507
22508 dir_port=`expr $baseport`
22509 fd_port=`expr $baseport + 1`
22510 sd_port=`expr $fd_port + 1`
22511
22512
22513
22514
22515
22516 dir_password=
22517
22518 # Check whether --with-dir-password was given.
22519 if test "${with_dir_password+set}" = set; then :
22520   withval=$with_dir_password;
22521        if test "x$withval" != "xno" ; then
22522           dir_password=$withval
22523        fi
22524
22525
22526 fi
22527
22528
22529 if test "x$dir_password" = "x" ; then
22530    if test "x$OPENSSL" = "xnone" ; then
22531       key=`autoconf/randpass 33`
22532    else
22533       key=`openssl rand -base64 33`
22534    fi
22535    dir_password=$key
22536 fi
22537
22538 fd_password=
22539
22540 # Check whether --with-fd-password was given.
22541 if test "${with_fd_password+set}" = set; then :
22542   withval=$with_fd_password;
22543        if test "x$withval" != "xno" ; then
22544           fd_password=$withval
22545        fi
22546
22547
22548 fi
22549
22550
22551 if test "x$fd_password" = "x" ; then
22552    if test "x$OPENSSL" = "xnone" ; then
22553       key=`autoconf/randpass 37`
22554    else
22555       key=`openssl rand -base64 33`
22556    fi
22557    fd_password=$key
22558 fi
22559
22560 sd_password=
22561
22562 # Check whether --with-sd-password was given.
22563 if test "${with_sd_password+set}" = set; then :
22564   withval=$with_sd_password;
22565        if test "x$withval" != "xno" ; then
22566           sd_password=$withval
22567        fi
22568
22569
22570 fi
22571
22572
22573 if test "x$sd_password" = "x" ; then
22574    if test "x$OPENSSL" = "xnone" ; then
22575       key=`autoconf/randpass 41`
22576    else
22577       key=`openssl rand -base64 33`
22578    fi
22579    sd_password=$key
22580 fi
22581
22582 mon_dir_password=
22583
22584 # Check whether --with-mon-dir-password was given.
22585 if test "${with_mon_dir_password+set}" = set; then :
22586   withval=$with_mon_dir_password;
22587        if test "x$withval" != "xno" ; then
22588           mon_dir_password=$withval
22589        fi
22590
22591
22592 fi
22593
22594
22595 if test "x$mon_dir_password" = "x" ; then
22596    if test "x$OPENSSL" = "xnone" ; then
22597       key=`autoconf/randpass 33`
22598    else
22599       key=`openssl rand -base64 33`
22600    fi
22601    mon_dir_password=$key
22602 fi
22603
22604 mon_fd_password=
22605
22606 # Check whether --with-mon-fd-password was given.
22607 if test "${with_mon_fd_password+set}" = set; then :
22608   withval=$with_mon_fd_password;
22609        if test "x$withval" != "xno" ; then
22610           mon_fd_password=$withval
22611        fi
22612
22613
22614 fi
22615
22616
22617 if test "x$mon_fd_password" = "x" ; then
22618    if test "x$OPENSSL" = "xnone" ; then
22619       key=`autoconf/randpass 37`
22620    else
22621       key=`openssl rand -base64 33`
22622    fi
22623    mon_fd_password=$key
22624 fi
22625
22626 mon_sd_password=
22627
22628 # Check whether --with-mon-sd-password was given.
22629 if test "${with_mon_sd_password+set}" = set; then :
22630   withval=$with_mon_sd_password;
22631        if test "x$withval" != "xno" ; then
22632           mon_sd_password=$withval
22633        fi
22634
22635
22636 fi
22637
22638
22639 if test "x$mon_sd_password" = "x" ; then
22640    if test "x$OPENSSL" = "xnone" ; then
22641       key=`autoconf/randpass 41`
22642    else
22643       key=`openssl rand -base64 33`
22644    fi
22645    mon_sd_password=$key
22646 fi
22647
22648
22649
22650
22651
22652
22653
22654
22655 db_name=bacula
22656
22657 # Check whether --with-db_name was given.
22658 if test "${with_db_name+set}" = set; then :
22659   withval=$with_db_name;
22660        if test "x$withval" != "x" ; then
22661           db_name=$withval
22662        fi
22663
22664
22665 fi
22666
22667
22668
22669 db_user=bacula
22670
22671 # Check whether --with-db_user was given.
22672 if test "${with_db_user+set}" = set; then :
22673   withval=$with_db_user;
22674        if test "x$withval" != "x" ; then
22675           db_user=$withval
22676        fi
22677
22678
22679 fi
22680
22681
22682
22683 db_password=
22684
22685 # Check whether --with-db_password was given.
22686 if test "${with_db_password+set}" = set; then :
22687   withval=$with_db_password;
22688        if test "x$withval" != "x" ; then
22689           db_password=$withval
22690        fi
22691
22692
22693 fi
22694
22695
22696
22697 db_port=" "
22698
22699 # Check whether --with-db_port was given.
22700 if test "${with_db_port+set}" = set; then :
22701   withval=$with_db_port;
22702        if test "x$withval" != "x" ; then
22703           db_port=$withval
22704        fi
22705
22706
22707 fi
22708
22709
22710
22711 #
22712 # Handle users and groups for each daemon
22713 #
22714 dir_user=
22715
22716 # Check whether --with-dir_user was given.
22717 if test "${with_dir_user+set}" = set; then :
22718   withval=$with_dir_user;
22719        if test "x$withval" != "x" ; then
22720            dir_user=$withval
22721        fi
22722
22723
22724 fi
22725
22726
22727 dir_group=
22728
22729 # Check whether --with-dir_group was given.
22730 if test "${with_dir_group+set}" = set; then :
22731   withval=$with_dir_group;
22732        if test "x$withval" != "x" ; then
22733           dir_group=$withval
22734        fi
22735
22736
22737 fi
22738
22739
22740 sd_user=
22741
22742 # Check whether --with-sd_user was given.
22743 if test "${with_sd_user+set}" = set; then :
22744   withval=$with_sd_user;
22745        if test "x$withval" != "x" ; then
22746           sd_user=$withval
22747        fi
22748
22749
22750 fi
22751
22752
22753 sd_group=
22754
22755 # Check whether --with-sd_group was given.
22756 if test "${with_sd_group+set}" = set; then :
22757   withval=$with_sd_group;
22758        if test "x$withval" != "x" ; then
22759           sd_group=$withval
22760        fi
22761
22762
22763 fi
22764
22765
22766 fd_user=
22767
22768 # Check whether --with-fd_user was given.
22769 if test "${with_fd_user+set}" = set; then :
22770   withval=$with_fd_user;
22771        if test "x$withval" != "x" ; then
22772           fd_user=$withval
22773        fi
22774
22775
22776 fi
22777
22778
22779 fd_group=
22780
22781 # Check whether --with-fd_group was given.
22782 if test "${with_fd_group+set}" = set; then :
22783   withval=$with_fd_group;
22784        if test "x$withval" != "x" ; then
22785           fd_group=$withval
22786        fi
22787
22788
22789 fi
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799 SBINPERM=0754
22800
22801 # Check whether --with-sbin-perm was given.
22802 if test "${with_sbin_perm+set}" = set; then :
22803   withval=$with_sbin_perm;
22804        if test "x$withval" != "x" ; then
22805           SBINPERM=$withval
22806        fi
22807
22808
22809 fi
22810
22811
22812
22813
22814 SQL_LIB=
22815
22816 db_found=no
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22818 $as_echo_n "checking for PostgreSQL support... " >&6; }
22819
22820 # Check whether --with-postgresql was given.
22821 if test "${with_postgresql+set}" = set; then :
22822   withval=$with_postgresql;
22823   if test "$withval" != "no"; then
22824       if test "$db_found" = "yes"; then
22825           { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
22826 $as_echo "error" >&6; }
22827           as_fn_error "\"You can configure for only one database.\"" "$LINENO" 5;
22828       fi
22829       if test "$withval" = "yes"; then
22830           PG_CONFIG=`which pg_config`
22831           if test -n "$PG_CONFIG";then
22832               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22833               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22834               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22835           elif test -f /usr/local/include/libpq-fe.h; then
22836               POSTGRESQL_INCDIR=/usr/local/include
22837               if test -d /usr/local/lib64; then
22838                  POSTGRESQL_LIBDIR=/usr/local/lib64
22839               else
22840                  POSTGRESQL_LIBDIR=/usr/local/lib
22841               fi
22842               POSTGRESQL_BINDIR=/usr/local/bin
22843           elif test -f /usr/include/libpq-fe.h; then
22844               POSTGRESQL_INCDIR=/usr/include
22845               if test -d /usr/lib64; then
22846                  POSTGRESQL_LIBDIR=/usr/lib64
22847               else
22848                  POSTGRESQL_LIBDIR=/usr/lib
22849               fi
22850               POSTGRESQL_BINDIR=/usr/bin
22851           elif test -f /usr/include/pgsql/libpq-fe.h; then
22852               POSTGRESQL_INCDIR=/usr/include/pgsql
22853               if test -d /usr/lib64/pgsql; then
22854                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22855               else
22856                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22857               fi
22858               POSTGRESQL_BINDIR=/usr/bin
22859           elif test -f /usr/include/postgresql/libpq-fe.h; then
22860               POSTGRESQL_INCDIR=/usr/include/postgresql
22861               if test -d /usr/lib64/postgresql; then
22862                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22863               else
22864                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22865               fi
22866               POSTGRESQL_BINDIR=/usr/bin
22867           else
22868               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22869 $as_echo "no" >&6; }
22870               as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22871           fi
22872       elif test -f $withval/include/libpq-fe.h; then
22873           POSTGRESQL_INCDIR=$withval/include
22874           POSTGRESQL_LIBDIR=$withval/lib
22875           POSTGRESQL_BINDIR=$withval/bin
22876       elif test -f $withval/include/postgresql/libpq-fe.h; then
22877           POSTGRESQL_INCDIR=$withval/include/postgresql
22878      if test -d $withval/lib64; then
22879          POSTGRESQL_LIBDIR=$withval/lib64
22880      else
22881          POSTGRESQL_LIBDIR=$withval/lib
22882      fi
22883           POSTGRESQL_BINDIR=$withval/bin
22884       else
22885           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22886 $as_echo "no" >&6; }
22887           as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22888       fi
22889       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
22890       ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22891 if test "x$ac_cv_func_crypt" = x""yes; then :
22892
22893 else
22894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22895 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22896 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22897   $as_echo_n "(cached) " >&6
22898 else
22899   ac_check_lib_save_LIBS=$LIBS
22900 LIBS="-lcrypt  $LIBS"
22901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22902 /* end confdefs.h.  */
22903
22904 /* Override any GCC internal prototype to avoid an error.
22905    Use char because int might match the return type of a GCC
22906    builtin and then its argument prototype would still apply.  */
22907 #ifdef __cplusplus
22908 extern "C"
22909 #endif
22910 char crypt ();
22911 int
22912 main ()
22913 {
22914 return crypt ();
22915   ;
22916   return 0;
22917 }
22918 _ACEOF
22919 if ac_fn_c_try_link "$LINENO"; then :
22920   ac_cv_lib_crypt_crypt=yes
22921 else
22922   ac_cv_lib_crypt_crypt=no
22923 fi
22924 rm -f core conftest.err conftest.$ac_objext \
22925     conftest$ac_exeext conftest.$ac_ext
22926 LIBS=$ac_check_lib_save_LIBS
22927 fi
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22929 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22930 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22931   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
22932 fi
22933
22934 fi
22935
22936       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
22937       SQL_LFLAGS=$POSTGRESQL_LFLAGS
22938       SQL_BINDIR=$POSTGRESQL_BINDIR
22939       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22940
22941       $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22942
22943       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22944 $as_echo "yes" >&6; }
22945       db_found=yes
22946       support_postgresql=yes
22947       db_type=PostgreSQL
22948       DB_TYPE=postgresql
22949   else
22950       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22951 $as_echo "no" >&6; }
22952   fi
22953
22954 else
22955
22956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22957 $as_echo "no" >&6; }
22958
22959 fi
22960
22961
22962
22963
22964
22965
22966
22967
22968 db_found=no
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22970 $as_echo_n "checking for MySQL support... " >&6; }
22971
22972 # Check whether --with-mysql was given.
22973 if test "${with_mysql+set}" = set; then :
22974   withval=$with_mysql;
22975   if test "$withval" != "no"; then
22976         if test "$withval" = "yes"; then
22977            if test -f /usr/local/mysql/include/mysql/mysql.h; then
22978                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
22979                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22980                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22981                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22982                    else
22983                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22984                    fi
22985                    MYSQL_BINDIR=/usr/local/mysql/bin
22986            elif test -f /usr/include/mysql/mysql.h; then
22987                    MYSQL_INCDIR=/usr/include/mysql
22988                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22989                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22990                            MYSQL_LIBDIR=/usr/lib64/mysql
22991                    elif test -f /usr/lib64/libmysqlclient_r.a \
22992                         -o -f /usr/lib64/libmysqlclient_r.so; then
22993                            MYSQL_LIBDIR=/usr/lib64
22994                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22995                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22996                            MYSQL_LIBDIR=/usr/lib/mysql
22997                    else
22998                            MYSQL_LIBDIR=/usr/lib
22999                    fi
23000                    MYSQL_BINDIR=/usr/bin
23001            elif test -f /usr/include/mysql.h; then
23002                    MYSQL_INCDIR=/usr/include
23003                    if test -f /usr/lib64/libmysqlclient_r.a \
23004                         -o -f /usr/lib64/libmysqlclient_r.so; then
23005                            MYSQL_LIBDIR=/usr/lib64
23006                    else
23007                            MYSQL_LIBDIR=/usr/lib
23008                    fi
23009                    MYSQL_BINDIR=/usr/bin
23010            elif test -f /usr/local/include/mysql/mysql.h; then
23011                    MYSQL_INCDIR=/usr/local/include/mysql
23012                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23013                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23014                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23015                    else
23016                            MYSQL_LIBDIR=/usr/local/lib/mysql
23017                    fi
23018                    MYSQL_BINDIR=/usr/local/bin
23019            elif test -f /usr/local/include/mysql.h; then
23020                    MYSQL_INCDIR=/usr/local/include
23021                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23022                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23023                            MYSQL_LIBDIR=/usr/local/lib64
23024                    else
23025                            MYSQL_LIBDIR=/usr/local/lib
23026                    fi
23027                    MYSQL_BINDIR=/usr/local/bin
23028            else
23029               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23030 $as_echo "no" >&6; }
23031               as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23032            fi
23033         else
23034            if test -f $withval/include/mysql/mysql.h; then
23035               MYSQL_INCDIR=$withval/include/mysql
23036               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23037                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23038                  MYSQL_LIBDIR=$withval/lib64/mysql
23039               elif test -f $withval/lib64/libmysqlclient_r.a \
23040                    -o -f $withval/lib64/libmysqlclient_r.so; then
23041                  MYSQL_LIBDIR=$withval/lib64
23042               elif test -f $withval/lib/libmysqlclient_r.a \
23043                    -o -f $withval/lib/libmysqlclient_r.so; then
23044                  MYSQL_LIBDIR=$withval/lib
23045               else
23046                  MYSQL_LIBDIR=$withval/lib/mysql
23047               fi
23048               MYSQL_BINDIR=$withval/bin
23049            elif test -f $withval/include/mysql.h; then
23050               MYSQL_INCDIR=$withval/include
23051               if test -f $withval/lib64/libmysqlclient_r.a \
23052                    -o -f $withval/lib64/libmysqlclient_r.so; then
23053                  MYSQL_LIBDIR=$withval/lib64
23054               else
23055                  MYSQL_LIBDIR=$withval/lib
23056               fi
23057               MYSQL_BINDIR=$withval/bin
23058            else
23059               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23060 $as_echo "no" >&6; }
23061               as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23062            fi
23063         fi
23064     SQL_INCLUDE=-I$MYSQL_INCDIR
23065     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23066          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23067        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23068        $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23069
23070     fi
23071     SQL_BINDIR=$MYSQL_BINDIR
23072     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23073
23074     $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23075
23076     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23077 $as_echo "yes" >&6; }
23078     db_found=yes
23079     support_mysql=yes
23080     db_type=MySQL
23081     DB_TYPE=mysql
23082
23083   else
23084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23085 $as_echo "no" >&6; }
23086   fi
23087
23088
23089 fi
23090
23091
23092
23093 # Check whether --with-embedded-mysql was given.
23094 if test "${with_embedded_mysql+set}" = set; then :
23095   withval=$with_embedded_mysql;
23096   if test "$withval" != "no"; then
23097         if test "$withval" = "yes"; then
23098                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23099                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23100                         if test -d /usr/local/mysql/lib64/mysql; then
23101                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23102                         else
23103                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23104                         fi
23105                         MYSQL_BINDIR=/usr/local/mysql/bin
23106                 elif test -f /usr/include/mysql/mysql.h; then
23107                         MYSQL_INCDIR=/usr/include/mysql
23108                         if test -d /usr/lib64/mysql; then
23109                                 MYSQL_LIBDIR=/usr/lib64/mysql
23110                         else
23111                                 MYSQL_LIBDIR=/usr/lib/mysql
23112                         fi
23113                         MYSQL_BINDIR=/usr/bin
23114                 elif test -f /usr/include/mysql.h; then
23115                         MYSQL_INCDIR=/usr/include
23116                         if test -d /usr/lib64; then
23117                                 MYSQL_LIBDIR=/usr/lib64
23118                         else
23119                                 MYSQL_LIBDIR=/usr/lib
23120                         fi
23121                         MYSQL_BINDIR=/usr/bin
23122                 elif test -f /usr/local/include/mysql/mysql.h; then
23123                         MYSQL_INCDIR=/usr/local/include/mysql
23124                         if test -d /usr/local/lib64/mysql; then
23125                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23126                         else
23127                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23128                         fi
23129                         MYSQL_BINDIR=/usr/local/bin
23130                 elif test -f /usr/local/include/mysql.h; then
23131                         MYSQL_INCDIR=/usr/local/include
23132                         if test -d /usr/local/lib64; then
23133                                 MYSQL_LIBDIR=/usr/local/lib64
23134                         else
23135                                 MYSQL_LIBDIR=/usr/local/lib
23136                         fi
23137                         MYSQL_BINDIR=/usr/local/bin
23138                 else
23139                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23140 $as_echo "no" >&6; }
23141                    as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23142                 fi
23143         else
23144                 if test -f $withval/include/mysql/mysql.h; then
23145                         MYSQL_INCDIR=$withval/include/mysql
23146                         if test -d $withval/lib64/mysql; then
23147                                 MYSQL_LIBDIR=$withval/lib64/mysql
23148                         else
23149                                 MYSQL_LIBDIR=$withval/lib/mysql
23150                         fi
23151                         MYSQL_BINDIR=$withval/bin
23152                 elif test -f $withval/include/mysql.h; then
23153                         MYSQL_INCDIR=$withval/include
23154                         if test -d $withval/lib64; then
23155                                 MYSQL_LIBDIR=$withval/lib64
23156                         else
23157                                 MYSQL_LIBDIR=$withval/lib
23158                         fi
23159                         MYSQL_BINDIR=$withval/bin
23160                 else
23161                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23162 $as_echo "no" >&6; }
23163                    as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23164                 fi
23165         fi
23166     SQL_INCLUDE=-I$MYSQL_INCDIR
23167     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23168     SQL_BINDIR=$MYSQL_BINDIR
23169     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23170
23171     $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23172
23173     $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23174
23175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23176 $as_echo "yes" >&6; }
23177     db_found=yes
23178     support_mysql=yes
23179     db_type=MySQL
23180     DB_TYPE=mysql
23181
23182   else
23183         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23184 $as_echo "no" >&6; }
23185   fi
23186
23187
23188 fi
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199 db_found=no
23200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23201 $as_echo_n "checking for SQLite3 support... " >&6; }
23202
23203 # Check whether --with-sqlite3 was given.
23204 if test "${with_sqlite3+set}" = set; then :
23205   withval=$with_sqlite3;
23206   if test "$withval" != "no"; then
23207      if test "$withval" = "yes"; then
23208         if test -f /usr/local/include/sqlite3.h; then
23209            SQLITE_INCDIR=/usr/local/include
23210            if test -d /usr/local/lib64; then
23211               SQLITE_LIBDIR=/usr/local/lib64
23212            else
23213               SQLITE_LIBDIR=/usr/local/lib
23214            fi
23215            SQLITE_BINDIR=/usr/local/bin
23216         elif test -f /usr/include/sqlite3.h; then
23217            SQLITE_INCDIR=/usr/include
23218            if test -d /usr/lib64; then
23219               SQLITE_LIBDIR=/usr/lib64
23220            else
23221               SQLITE_LIBDIR=/usr/lib
23222            fi
23223            SQLITE_BINDIR=/usr/bin
23224         elif test -f $prefix/include/sqlite3.h; then
23225            SQLITE_INCDIR=$prefix/include
23226            if test -d $prefix/lib64; then
23227               SQLITE_LIBDIR=$prefix/lib64
23228            else
23229               SQLITE_LIBDIR=$prefix/lib
23230            fi
23231            SQLITE_BINDIR=$prefix/bin
23232         else
23233            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23234 $as_echo "no" >&6; }
23235            as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23236         fi
23237      else
23238         if test -f $withval/sqlite3.h; then
23239            SQLITE_INCDIR=$withval
23240            SQLITE_LIBDIR=$withval
23241            SQLITE_BINDIR=$withval
23242         elif test -f $withval/include/sqlite3.h; then
23243            SQLITE_INCDIR=$withval/include
23244            if test -d $withval/lib64; then
23245               SQLITE_LIBDIR=$withval/lib64
23246            else
23247               SQLITE_LIBDIR=$withval/lib
23248            fi
23249            SQLITE_BINDIR=$withval/bin
23250         else
23251            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23252 $as_echo "no" >&6; }
23253            as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23254         fi
23255      fi
23256      SQL_INCLUDE=-I$SQLITE_INCDIR
23257      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
23258      SQL_BINDIR=$SQLITE_BINDIR
23259      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
23260
23261      $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23262
23263      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23264 $as_echo "yes" >&6; }
23265      db_found=yes
23266      support_sqlite3=yes
23267      db_type=SQLite3
23268      DB_TYPE=sqlite3
23269
23270   else
23271      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23272 $as_echo "no" >&6; }
23273   fi
23274
23275 else
23276
23277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23278 $as_echo "no" >&6; }
23279
23280 fi
23281
23282
23283
23284
23285
23286
23287
23288 # BA_CHECK_SQLITE_DB
23289
23290
23291 db_found=no
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23293 $as_echo_n "checking for DBI support... " >&6; }
23294
23295 # Check whether --with-dbi was given.
23296 if test "${with_dbi+set}" = set; then :
23297   withval=$with_dbi;
23298   if test "$withval" != "no"; then
23299      if test "$withval" = "yes"; then
23300         if test -f /usr/local/include/dbi/dbi.h; then
23301            DBI_INCDIR=/usr/local/dbi/include
23302            if test -d /usr/local/lib64; then
23303               DBI_LIBDIR=/usr/local/lib64
23304            else
23305               DBI_LIBDIR=/usr/local/lib
23306            fi
23307            DBI_BINDIR=/usr/local/bin
23308         elif test -f /usr/include/dbi/dbi.h; then
23309            DBI_INCDIR=/usr/include
23310            if test -d /usr/lib64; then
23311               DBI_LIBDIR=/usr/lib64
23312            else
23313               DBI_LIBDIR=/usr/lib
23314            fi
23315            DBI_BINDIR=/usr/bin
23316         elif test -f $prefix/include/dbi/dbi.h; then
23317            DBI_INCDIR=$prefix/include
23318            if test -d $prefix/lib64; then
23319               DBI_LIBDIR=$prefix/lib64
23320            else
23321               DBI_LIBDIR=$prefix/lib
23322            fi
23323            DBI_BINDIR=$prefix/bin
23324         else
23325            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23326 $as_echo "no" >&6; }
23327            as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23328         fi
23329         if test -d /usr/local/lib/dbd; then
23330            DRIVERDIR=/usr/local/lib/dbd
23331            if test -d /usr/local/lib64/dbd; then
23332               DRIVERDIR=/usr/local/lib64/dbd
23333            else
23334               DRIVERDIR=/usr/local/lib/dbd
23335            fi
23336         elif test -d /usr/lib/dbd; then
23337            DRIVERDIR=/usr/lib/dbd
23338            if test -d /usr/lib64/dbd; then
23339               DRIVERDIR=/usr/lib64/dbd
23340            else
23341               DRIVERDIR=/usr/lib/dbd
23342            fi
23343         elif test -d $prefix/lib/dbd; then
23344            if test -d $prefix/lib64/dbd; then
23345               DRIVERDIR=$prefix/lib64/dbd
23346            else
23347               DRIVERDIR=$prefix/lib/dbd
23348            fi
23349         elif test -d /usr/local/lib64/dbd; then
23350            DRIVERDIR=/usr/local/lib64/dbd
23351         elif test -d /usr/lib64/dbd; then
23352            DRIVERDIR=/usr/lib64/dbd
23353         elif test -d $prefix/lib64/dbd; then
23354            DRIVERDIR=$prefix/lib64/dbd
23355         else
23356            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23357 $as_echo "no" >&6; }
23358            as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23359         fi
23360      else
23361         if test -f $withval/dbi.h; then
23362            DBI_INCDIR=$withval
23363            DBI_LIBDIR=$withval
23364            DBI_BINDIR=$withval
23365         elif test -f $withval/include/dbi/dbi.h; then
23366            DBI_INCDIR=$withval/include
23367            if test -d $withval/lib64; then
23368               DBI_LIBDIR=$withval/lib64
23369            else
23370               DBI_LIBDIR=$withval/lib
23371            fi
23372            DBI_BINDIR=$withval/bin
23373         else
23374            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23375 $as_echo "no" >&6; }
23376            as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23377         fi
23378         if test -d $withval/dbd; then
23379            DRIVERDIR=$withval/dbd
23380         elif test -d $withval/lib/; then
23381            if test -d $withval/lib64/dbd; then
23382               DRIVERDIR=$withval/lib64/dbd
23383            else
23384               DRIVERDIR=$withval/lib/dbd
23385            fi
23386         elif test -d $withval/lib64/dbd; then
23387            DRIVERDIR=$withval/lib64/dbd
23388         else
23389            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23390 $as_echo "no" >&6; }
23391            as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23392         fi
23393      fi
23394      SQL_INCLUDE=-I$DBI_INCDIR
23395      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
23396      SQL_BINDIR=$DBI_BINDIR
23397      SQL_LIB=$DBI_LIBDIR/libdbi.a
23398      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23399
23400
23401 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23402
23403      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23404 $as_echo "yes" >&6; }
23405      db_found=yes
23406      support_dbi=yes
23407      db_type=DBI
23408      DB_TYPE=dbi
23409      uncomment_dbi=" "
23410
23411   else
23412      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23413 $as_echo "no" >&6; }
23414   fi
23415
23416 else
23417
23418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23419 $as_echo "no" >&6; }
23420
23421 fi
23422
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432 db_found=no
23433 db_prog=no
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23435 $as_echo_n "checking for DBI drivers support... " >&6; }
23436
23437 # Check whether --with-dbi-driver was given.
23438 if test "${with_dbi_driver+set}" = set; then :
23439   withval=$with_dbi_driver;
23440   if test "$withval" != "no"; then
23441      case $withval in
23442         "mysql")
23443            db_prog="mysql"
23444            if test -f /usr/local/mysql/bin/mysql; then
23445               SQL_BINDIR=/usr/local/mysql/bin
23446               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23447                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23448                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
23449               else
23450                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
23451               fi
23452            elif test -f /usr/bin/mysql; then
23453               SQL_BINDIR=/usr/bin
23454               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23455                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23456                   SQL_LIBDIR=/usr/lib64/mysql
23457               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23458                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23459                   SQL_LIBDIR=/usr/lib/mysql
23460               else
23461                   SQL_LIBDIR=/usr/lib
23462               fi
23463            elif test -f /usr/local/bin/mysql; then
23464               SQL_BINDIR=/usr/local/bin
23465               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23466                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23467                   SQL_LIBDIR=/usr/local/lib64/mysql
23468               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23469                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23470                   SQL_LIBDIR=/usr/local/lib/mysql
23471               else
23472                   SQL_LIBDIR=/usr/local/lib
23473               fi
23474            elif test -f $withval/bin/mysql; then
23475               SQL_BINDIR=$withval/bin
23476               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23477                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23478                   SQL_LIBDIR=$withval/lib64/mysql
23479               elif test -f $withval/lib64/libmysqlclient_r.a \
23480                   -o -f $withval/lib64/libmysqlclient_r.so; then
23481                   SQL_LIBDIR=$withval/lib64
23482               elif test -f $withval/lib/libmysqlclient_r.a \
23483                   -o -f $withval/lib/libmysqlclient_r.so; then
23484                   SQL_LIBDIR=$withval/lib/
23485               else
23486                   SQL_LIBDIR=$withval/lib/mysql
23487               fi
23488            else
23489               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23490 $as_echo "no" >&6; }
23491               as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23492            fi
23493            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23494               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23495            else
23496               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23497            fi
23498         ;;
23499         "postgresql")
23500            db_prog="postgresql"
23501            PG_CONFIG=`which pg_config`
23502            if test -n "$PG_CONFIG"; then
23503               SQL_BINDIR=`"$PG_CONFIG" --bindir`
23504               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
23505            elif test -f /usr/local/bin/psql; then
23506               SQL_BINDIR=/usr/local/bin
23507               if test -d /usr/local/lib64; then
23508                  SQL_LIBDIR=/usr/local/lib64
23509               else
23510                  SQL_LIBDIR=/usr/local/lib
23511               fi
23512            elif test -f /usr/bin/psql; then
23513               SQL_BINDIR=/usr/local/bin
23514               if test -d /usr/lib64/postgresql; then
23515                  SQL_LIBDIR=/usr/lib64/postgresql
23516               elif test -d /usr/lib/postgresql; then
23517                  SQL_LIBDIR=/usr/lib/postgresql
23518               elif test -d /usr/lib64; then
23519                  SQL_LIBDIR=/usr/lib64
23520               else
23521                  SQL_LIBDIR=/usr/lib
23522               fi
23523            elif test -f $withval/bin/psql; then
23524               SQL_BINDIR=$withval/bin
23525               if test -d $withval/lib64; then
23526                  SQL_LIBDIR=$withval/lib64
23527               else
23528                  SQL_LIBDIR=$withval/lib
23529               fi
23530            else
23531               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23532 $as_echo "no" >&6; }
23533               as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23534            fi
23535            if test -f $SQL_LIBDIR/libpq.so; then
23536               DB_PROG_LIB=$SQL_LIBDIR/libpq.so
23537            else
23538               DB_PROG_LIB=$SQL_LIBDIR/libpq.a
23539            fi
23540         ;;
23541         "sqlite")
23542            db_prog="sqlite"
23543            if test -f /usr/local/bin/sqlite; then
23544               SQL_BINDIR=/usr/local/bin
23545               if test -d /usr/local/lib64; then
23546                  SQL_LIBDIR=/usr/local/lib64
23547               else
23548                  SQL_LIBDIR=/usr/local/lib
23549               fi
23550            elif test -f /usr/bin/sqlite; then
23551               SQL_BINDIR=/usr/bin
23552               if test -d /usr/lib64; then
23553                  SQL_LIBDIR=/usr/lib64
23554               else
23555                  SQL_LIBDIR=/usr/lib
23556               fi
23557            elif test -f $withval/bin/sqlite; then
23558               SQL_BINDIR=$withval/bin
23559               if test -d $withval/lib64; then
23560                  SQL_LIBDIR=$withval/lib64
23561               else
23562                  SQL_LIBDIR=$withval/lib
23563               fi
23564            else
23565               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23566 $as_echo "no" >&6; }
23567               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23568            fi
23569            if test -f $SQL_LIBDIR/libsqlite.so; then
23570               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
23571            else
23572               DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
23573            fi
23574         ;;
23575         "sqlite3")
23576            db_prog="sqlite3"
23577            if test -f /usr/local/bin/sqlite3; then
23578               SQL_BINDIR=/usr/local/bin
23579               if test -d /usr/local/lib64; then
23580                  SQL_LIBDIR=/usr/local/lib64
23581               else
23582                  SQL_LIBDIR=/usr/local/lib
23583               fi
23584            elif test -f /usr/bin/sqlite3; then
23585               SQL_BINDIR=/usr/bin
23586               if test -d /usr/lib64; then
23587                  SQL_LIBDIR=/usr/lib64
23588               else
23589                  SQL_LIBDIR=/usr/lib
23590               fi
23591            elif test -f $withval/bin/sqlite3; then
23592               SQL_BINDIR=$withval/bin
23593               if test -d $withval/lib64; then
23594                  SQL_LIBDIR=$withval/lib64
23595               else
23596                  SQL_LIBDIR=$withval/lib
23597               fi
23598            else
23599               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23600 $as_echo "no" >&6; }
23601               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23602            fi
23603            if test -f $SQL_LIBDIR/libsqlite3.so; then
23604               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
23605            else
23606               DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
23607            fi
23608         ;;
23609         *)
23610            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23611 $as_echo "no" >&6; }
23612            as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23613         ;;
23614      esac
23615
23616      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23617 $as_echo "yes" >&6; }
23618      DB_PROG=$db_prog
23619   else
23620      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23621 $as_echo "no" >&6; }
23622   fi
23623
23624 else
23625
23626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23627 $as_echo "no" >&6; }
23628
23629 fi
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640 support_batch_insert=no
23641 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
23642 pkg=$?
23643 if test $pkg = 0; then
23644    support_batch_insert=yes
23645    # Check whether --enable-batch-insert was given.
23646 if test "${enable_batch_insert+set}" = set; then :
23647   enableval=$enable_batch_insert;
23648           if test x$enableval = xno; then
23649              support_batch_insert=no
23650           else
23651              support_batch_insert=yes
23652           fi
23653
23654
23655 fi
23656
23657 fi
23658
23659 if test x$DB_TYPE = xpostgresql; then
23660    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23661 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23662 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23663   $as_echo_n "(cached) " >&6
23664 else
23665   ac_check_lib_save_LIBS=$LIBS
23666 LIBS="-lpq  $LIBS"
23667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23668 /* end confdefs.h.  */
23669
23670 /* Override any GCC internal prototype to avoid an error.
23671    Use char because int might match the return type of a GCC
23672    builtin and then its argument prototype would still apply.  */
23673 #ifdef __cplusplus
23674 extern "C"
23675 #endif
23676 char PQisthreadsafe ();
23677 int
23678 main ()
23679 {
23680 return PQisthreadsafe ();
23681   ;
23682   return 0;
23683 }
23684 _ACEOF
23685 if ac_fn_c_try_link "$LINENO"; then :
23686   ac_cv_lib_pq_PQisthreadsafe=yes
23687 else
23688   ac_cv_lib_pq_PQisthreadsafe=no
23689 fi
23690 rm -f core conftest.err conftest.$ac_objext \
23691     conftest$ac_exeext conftest.$ac_ext
23692 LIBS=$ac_check_lib_save_LIBS
23693 fi
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23695 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23696 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23697   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23698
23699 fi
23700
23701    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23702 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23703 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23704   $as_echo_n "(cached) " >&6
23705 else
23706   ac_check_lib_save_LIBS=$LIBS
23707 LIBS="-lpq  $LIBS"
23708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23709 /* end confdefs.h.  */
23710
23711 /* Override any GCC internal prototype to avoid an error.
23712    Use char because int might match the return type of a GCC
23713    builtin and then its argument prototype would still apply.  */
23714 #ifdef __cplusplus
23715 extern "C"
23716 #endif
23717 char PQputCopyData ();
23718 int
23719 main ()
23720 {
23721 return PQputCopyData ();
23722   ;
23723   return 0;
23724 }
23725 _ACEOF
23726 if ac_fn_c_try_link "$LINENO"; then :
23727   ac_cv_lib_pq_PQputCopyData=yes
23728 else
23729   ac_cv_lib_pq_PQputCopyData=no
23730 fi
23731 rm -f core conftest.err conftest.$ac_objext \
23732     conftest$ac_exeext conftest.$ac_ext
23733 LIBS=$ac_check_lib_save_LIBS
23734 fi
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23736 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23737 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23738   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23739
23740 fi
23741
23742    if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23743     then
23744         support_batch_insert=no
23745    fi
23746 fi
23747
23748 if test x$DB_TYPE = xdbi; then
23749    DB_TYPE=$DB_PROG
23750    db_type=$DB_PROG
23751    pkg=1
23752       if test $DB_PROG = postgresql; then
23753       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23754 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23755 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23756   $as_echo_n "(cached) " >&6
23757 else
23758   ac_check_lib_save_LIBS=$LIBS
23759 LIBS="-lpq  $LIBS"
23760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23761 /* end confdefs.h.  */
23762
23763 /* Override any GCC internal prototype to avoid an error.
23764    Use char because int might match the return type of a GCC
23765    builtin and then its argument prototype would still apply.  */
23766 #ifdef __cplusplus
23767 extern "C"
23768 #endif
23769 char PQisthreadsafe ();
23770 int
23771 main ()
23772 {
23773 return PQisthreadsafe ();
23774   ;
23775   return 0;
23776 }
23777 _ACEOF
23778 if ac_fn_c_try_link "$LINENO"; then :
23779   ac_cv_lib_pq_PQisthreadsafe=yes
23780 else
23781   ac_cv_lib_pq_PQisthreadsafe=no
23782 fi
23783 rm -f core conftest.err conftest.$ac_objext \
23784     conftest$ac_exeext conftest.$ac_ext
23785 LIBS=$ac_check_lib_save_LIBS
23786 fi
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23788 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23789 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23790   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23791
23792 fi
23793
23794       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23795 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23796 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23797   $as_echo_n "(cached) " >&6
23798 else
23799   ac_check_lib_save_LIBS=$LIBS
23800 LIBS="-lpq  $LIBS"
23801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23802 /* end confdefs.h.  */
23803
23804 /* Override any GCC internal prototype to avoid an error.
23805    Use char because int might match the return type of a GCC
23806    builtin and then its argument prototype would still apply.  */
23807 #ifdef __cplusplus
23808 extern "C"
23809 #endif
23810 char PQputCopyData ();
23811 int
23812 main ()
23813 {
23814 return PQputCopyData ();
23815   ;
23816   return 0;
23817 }
23818 _ACEOF
23819 if ac_fn_c_try_link "$LINENO"; then :
23820   ac_cv_lib_pq_PQputCopyData=yes
23821 else
23822   ac_cv_lib_pq_PQputCopyData=no
23823 fi
23824 rm -f core conftest.err conftest.$ac_objext \
23825     conftest$ac_exeext conftest.$ac_ext
23826 LIBS=$ac_check_lib_save_LIBS
23827 fi
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23829 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23830 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23831   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23832
23833 fi
23834
23835       test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
23836       pkg=$?
23837    fi
23838
23839    if test $DB_PROG = mysql; then
23840       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23841       pkg=$?
23842    fi
23843
23844    if test $DB_PROG = sqlite3; then
23845       A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
23846       pkg=$?
23847    fi
23848
23849    if test $pkg = 0; then
23850       # Check whether --enable-batch-insert was given.
23851 if test "${enable_batch_insert+set}" = set; then :
23852   enableval=$enable_batch_insert;
23853              if test x$enableval = xno; then
23854                 support_batch_insert=no
23855              else
23856                 support_batch_insert=yes
23857              fi
23858
23859
23860 fi
23861
23862    fi
23863 else
23864       uncomment_dbi="#"
23865 fi
23866
23867
23868
23869 if test $support_batch_insert = yes ; then
23870
23871 $as_echo "#define HAVE_BATCH_FILE_INSERT 1" >>confdefs.h
23872
23873 fi
23874
23875 $as_echo "#define PROTOTYPES 1" >>confdefs.h
23876
23877
23878 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
23879    if test -z "$CCOPTS"; then
23880       CCOPTS='-g -O2 -Wall'
23881    fi
23882    CFLAGS="$CCOPTS"
23883 fi
23884
23885
23886
23887 largefile_support="no"
23888
23889    # Check whether --enable-largefile was given.
23890 if test "${enable_largefile+set}" = set; then :
23891   enableval=$enable_largefile;
23892 fi
23893
23894    if test "$enable_largefile" != no; then
23895      if test -n "$ac_tool_prefix"; then
23896   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
23897 set dummy ${ac_tool_prefix}getconf; ac_word=$2
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23899 $as_echo_n "checking for $ac_word... " >&6; }
23900 if test "${ac_cv_prog_GETCONF+set}" = set; then :
23901   $as_echo_n "(cached) " >&6
23902 else
23903   if test -n "$GETCONF"; then
23904   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
23905 else
23906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23907 for as_dir in $PATH
23908 do
23909   IFS=$as_save_IFS
23910   test -z "$as_dir" && as_dir=.
23911     for ac_exec_ext in '' $ac_executable_extensions; do
23912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23913     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
23914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23915     break 2
23916   fi
23917 done
23918   done
23919 IFS=$as_save_IFS
23920
23921 fi
23922 fi
23923 GETCONF=$ac_cv_prog_GETCONF
23924 if test -n "$GETCONF"; then
23925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
23926 $as_echo "$GETCONF" >&6; }
23927 else
23928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23929 $as_echo "no" >&6; }
23930 fi
23931
23932
23933 fi
23934 if test -z "$ac_cv_prog_GETCONF"; then
23935   ac_ct_GETCONF=$GETCONF
23936   # Extract the first word of "getconf", so it can be a program name with args.
23937 set dummy getconf; ac_word=$2
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23939 $as_echo_n "checking for $ac_word... " >&6; }
23940 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
23941   $as_echo_n "(cached) " >&6
23942 else
23943   if test -n "$ac_ct_GETCONF"; then
23944   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
23945 else
23946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23947 for as_dir in $PATH
23948 do
23949   IFS=$as_save_IFS
23950   test -z "$as_dir" && as_dir=.
23951     for ac_exec_ext in '' $ac_executable_extensions; do
23952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23953     ac_cv_prog_ac_ct_GETCONF="getconf"
23954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23955     break 2
23956   fi
23957 done
23958   done
23959 IFS=$as_save_IFS
23960
23961 fi
23962 fi
23963 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
23964 if test -n "$ac_ct_GETCONF"; then
23965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
23966 $as_echo "$ac_ct_GETCONF" >&6; }
23967 else
23968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23969 $as_echo "no" >&6; }
23970 fi
23971
23972   if test "x$ac_ct_GETCONF" = x; then
23973     GETCONF=""
23974   else
23975     case $cross_compiling:$ac_tool_warned in
23976 yes:)
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23979 ac_tool_warned=yes ;;
23980 esac
23981     GETCONF=$ac_ct_GETCONF
23982   fi
23983 else
23984   GETCONF="$ac_cv_prog_GETCONF"
23985 fi
23986
23987      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
23988 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
23989 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
23990   $as_echo_n "(cached) " >&6
23991 else
23992   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
23993         ac_cv_sys_largefile_CFLAGS=no
23994         case "$host_os" in
23995            # IRIX 6.2 and later require cc -n32.
23996            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
23997              if test "$GCC" != yes; then
23998                ac_cv_sys_largefile_CFLAGS=-n32
23999              fi
24000              ac_save_CC="$CC"
24001              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24002              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24003 /* end confdefs.h.  */
24004
24005 int
24006 main ()
24007 {
24008
24009   ;
24010   return 0;
24011 }
24012 _ACEOF
24013 if ac_fn_c_try_link "$LINENO"; then :
24014
24015 else
24016   ac_cv_sys_largefile_CFLAGS=no
24017 fi
24018 rm -f core conftest.err conftest.$ac_objext \
24019     conftest$ac_exeext conftest.$ac_ext
24020              CC="$ac_save_CC"
24021            esac
24022       }
24023 fi
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24025 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24026      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24027 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24028 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24029   $as_echo_n "(cached) " >&6
24030 else
24031   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24032         ac_cv_sys_largefile_LDFLAGS=no
24033
24034       }
24035 fi
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24037 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24038      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24039 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24040 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24041   $as_echo_n "(cached) " >&6
24042 else
24043   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24044         ac_cv_sys_largefile_LIBS=no
24045
24046       }
24047 fi
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24049 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24050
24051      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24052        case "$ac_flag" in
24053        no) ;;
24054        -D_FILE_OFFSET_BITS=*) ;;
24055        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24056        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24057        -D?* | -I?*)
24058          case "$ac_flag" in
24059    no) ;;
24060    ?*)
24061      case "$CPPFLAGS" in
24062      '') CPPFLAGS="$ac_flag" ;;
24063      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24064      esac ;;
24065    esac ;;
24066        *)
24067          case "$ac_flag" in
24068    no) ;;
24069    ?*)
24070      case "$CFLAGS" in
24071      '') CFLAGS="$ac_flag" ;;
24072      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24073      esac ;;
24074    esac ;;
24075        esac
24076      done
24077      case "$ac_cv_sys_largefile_LDFLAGS" in
24078    no) ;;
24079    ?*)
24080      case "$LDFLAGS" in
24081      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24082      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24083      esac ;;
24084    esac
24085      case "$ac_cv_sys_largefile_LIBS" in
24086    no) ;;
24087    ?*)
24088      case "$LIBS" in
24089      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24090      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24091      esac ;;
24092    esac
24093      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24094 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24095 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24096   $as_echo_n "(cached) " >&6
24097 else
24098   ac_cv_sys_file_offset_bits=no
24099       ac_cv_sys_file_offset_bits=64
24100       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24101         case "$ac_flag" in
24102         -D_FILE_OFFSET_BITS)
24103           ac_cv_sys_file_offset_bits=1 ;;
24104         -D_FILE_OFFSET_BITS=*)
24105           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24106         esac
24107       done
24108
24109 fi
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24111 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24112    if test "$ac_cv_sys_file_offset_bits" != no; then
24113
24114 cat >>confdefs.h <<_ACEOF
24115 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24116 _ACEOF
24117
24118    fi
24119      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24120 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24121 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24122   $as_echo_n "(cached) " >&6
24123 else
24124   ac_cv_sys_largefile_source=no
24125       ac_cv_sys_largefile_source=1
24126       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24127         case "$ac_flag" in
24128         -D_LARGEFILE_SOURCE)
24129           ac_cv_sys_largefile_source=1 ;;
24130         -D_LARGEFILE_SOURCE=*)
24131           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24132         esac
24133       done
24134
24135 fi
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24137 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24138    if test "$ac_cv_sys_largefile_source" != no; then
24139
24140 cat >>confdefs.h <<_ACEOF
24141 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24142 _ACEOF
24143
24144    fi
24145      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24146 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24147 if test "${ac_cv_sys_large_files+set}" = set; then :
24148   $as_echo_n "(cached) " >&6
24149 else
24150   ac_cv_sys_large_files=no
24151       ac_cv_sys_large_files=1
24152       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24153         case "$ac_flag" in
24154         -D_LARGE_FILES)
24155           ac_cv_sys_large_files=1 ;;
24156         -D_LARGE_FILES=*)
24157           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24158         esac
24159       done
24160
24161 fi
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24163 $as_echo "$ac_cv_sys_large_files" >&6; }
24164    if test "$ac_cv_sys_large_files" != no; then
24165
24166 cat >>confdefs.h <<_ACEOF
24167 #define _LARGE_FILES $ac_cv_sys_large_files
24168 _ACEOF
24169
24170    fi
24171    fi
24172
24173
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24175 $as_echo_n "checking for X... " >&6; }
24176
24177
24178 # Check whether --with-x was given.
24179 if test "${with_x+set}" = set; then :
24180   withval=$with_x;
24181 fi
24182
24183 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24184 if test "x$with_x" = xno; then
24185   # The user explicitly disabled X.
24186   have_x=disabled
24187 else
24188   case $x_includes,$x_libraries in #(
24189     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24190     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24191   $as_echo_n "(cached) " >&6
24192 else
24193   # One or both of the vars are not set, and there is no cached value.
24194 ac_x_includes=no ac_x_libraries=no
24195 rm -f -r conftest.dir
24196 if mkdir conftest.dir; then
24197   cd conftest.dir
24198   cat >Imakefile <<'_ACEOF'
24199 incroot:
24200         @echo incroot='${INCROOT}'
24201 usrlibdir:
24202         @echo usrlibdir='${USRLIBDIR}'
24203 libdir:
24204         @echo libdir='${LIBDIR}'
24205 _ACEOF
24206   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24207     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24208     for ac_var in incroot usrlibdir libdir; do
24209       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24210     done
24211     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24212     for ac_extension in a so sl dylib la dll; do
24213       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24214          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24215         ac_im_usrlibdir=$ac_im_libdir; break
24216       fi
24217     done
24218     # Screen out bogus values from the imake configuration.  They are
24219     # bogus both because they are the default anyway, and because
24220     # using them would break gcc on systems where it needs fixed includes.
24221     case $ac_im_incroot in
24222         /usr/include) ac_x_includes= ;;
24223         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24224     esac
24225     case $ac_im_usrlibdir in
24226         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24227         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24228     esac
24229   fi
24230   cd ..
24231   rm -f -r conftest.dir
24232 fi
24233
24234 # Standard set of common directories for X headers.
24235 # Check X11 before X11Rn because it is often a symlink to the current release.
24236 ac_x_header_dirs='
24237 /usr/X11/include
24238 /usr/X11R7/include
24239 /usr/X11R6/include
24240 /usr/X11R5/include
24241 /usr/X11R4/include
24242
24243 /usr/include/X11
24244 /usr/include/X11R7
24245 /usr/include/X11R6
24246 /usr/include/X11R5
24247 /usr/include/X11R4
24248
24249 /usr/local/X11/include
24250 /usr/local/X11R7/include
24251 /usr/local/X11R6/include
24252 /usr/local/X11R5/include
24253 /usr/local/X11R4/include
24254
24255 /usr/local/include/X11
24256 /usr/local/include/X11R7
24257 /usr/local/include/X11R6
24258 /usr/local/include/X11R5
24259 /usr/local/include/X11R4
24260
24261 /usr/X386/include
24262 /usr/x386/include
24263 /usr/XFree86/include/X11
24264
24265 /usr/include
24266 /usr/local/include
24267 /usr/unsupported/include
24268 /usr/athena/include
24269 /usr/local/x11r5/include
24270 /usr/lpp/Xamples/include
24271
24272 /usr/openwin/include
24273 /usr/openwin/share/include'
24274
24275 if test "$ac_x_includes" = no; then
24276   # Guess where to find include files, by looking for Xlib.h.
24277   # First, try using that file with no special directory specified.
24278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24279 /* end confdefs.h.  */
24280 #include <X11/Xlib.h>
24281 _ACEOF
24282 if ac_fn_c_try_cpp "$LINENO"; then :
24283   # We can compile using X headers with no special include directory.
24284 ac_x_includes=
24285 else
24286   for ac_dir in $ac_x_header_dirs; do
24287   if test -r "$ac_dir/X11/Xlib.h"; then
24288     ac_x_includes=$ac_dir
24289     break
24290   fi
24291 done
24292 fi
24293 rm -f conftest.err conftest.$ac_ext
24294 fi # $ac_x_includes = no
24295
24296 if test "$ac_x_libraries" = no; then
24297   # Check for the libraries.
24298   # See if we find them without any special options.
24299   # Don't add to $LIBS permanently.
24300   ac_save_LIBS=$LIBS
24301   LIBS="-lX11 $LIBS"
24302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24303 /* end confdefs.h.  */
24304 #include <X11/Xlib.h>
24305 int
24306 main ()
24307 {
24308 XrmInitialize ()
24309   ;
24310   return 0;
24311 }
24312 _ACEOF
24313 if ac_fn_c_try_link "$LINENO"; then :
24314   LIBS=$ac_save_LIBS
24315 # We can link X programs with no special library path.
24316 ac_x_libraries=
24317 else
24318   LIBS=$ac_save_LIBS
24319 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24320 do
24321   # Don't even attempt the hair of trying to link an X program!
24322   for ac_extension in a so sl dylib la dll; do
24323     if test -r "$ac_dir/libX11.$ac_extension"; then
24324       ac_x_libraries=$ac_dir
24325       break 2
24326     fi
24327   done
24328 done
24329 fi
24330 rm -f core conftest.err conftest.$ac_objext \
24331     conftest$ac_exeext conftest.$ac_ext
24332 fi # $ac_x_libraries = no
24333
24334 case $ac_x_includes,$ac_x_libraries in #(
24335   no,* | *,no | *\'*)
24336     # Didn't find X, or a directory has "'" in its name.
24337     ac_cv_have_x="have_x=no";; #(
24338   *)
24339     # Record where we found X for the cache.
24340     ac_cv_have_x="have_x=yes\
24341         ac_x_includes='$ac_x_includes'\
24342         ac_x_libraries='$ac_x_libraries'"
24343 esac
24344 fi
24345 ;; #(
24346     *) have_x=yes;;
24347   esac
24348   eval "$ac_cv_have_x"
24349 fi # $with_x != no
24350
24351 if test "$have_x" != yes; then
24352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24353 $as_echo "$have_x" >&6; }
24354   no_x=yes
24355 else
24356   # If each of the values was on the command line, it overrides each guess.
24357   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24358   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24359   # Update the cache value to reflect the command line values.
24360   ac_cv_have_x="have_x=yes\
24361         ac_x_includes='$x_includes'\
24362         ac_x_libraries='$x_libraries'"
24363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24364 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24365 fi
24366
24367 if test "$no_x" = yes; then
24368   # Not all programs may use this symbol, but it does not hurt to define it.
24369
24370 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24371
24372   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24373 else
24374   if test -n "$x_includes"; then
24375     X_CFLAGS="$X_CFLAGS -I$x_includes"
24376   fi
24377
24378   # It would also be nice to do this for all -L options, not just this one.
24379   if test -n "$x_libraries"; then
24380     X_LIBS="$X_LIBS -L$x_libraries"
24381     # For Solaris; some versions of Sun CC require a space after -R and
24382     # others require no space.  Words are not sufficient . . . .
24383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24384 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24385     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24386     ac_xsave_c_werror_flag=$ac_c_werror_flag
24387     ac_c_werror_flag=yes
24388     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24389 /* end confdefs.h.  */
24390
24391 int
24392 main ()
24393 {
24394
24395   ;
24396   return 0;
24397 }
24398 _ACEOF
24399 if ac_fn_c_try_link "$LINENO"; then :
24400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24401 $as_echo "no" >&6; }
24402        X_LIBS="$X_LIBS -R$x_libraries"
24403 else
24404   LIBS="$ac_xsave_LIBS -R $x_libraries"
24405        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24406 /* end confdefs.h.  */
24407
24408 int
24409 main ()
24410 {
24411
24412   ;
24413   return 0;
24414 }
24415 _ACEOF
24416 if ac_fn_c_try_link "$LINENO"; then :
24417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24418 $as_echo "yes" >&6; }
24419           X_LIBS="$X_LIBS -R $x_libraries"
24420 else
24421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24422 $as_echo "neither works" >&6; }
24423 fi
24424 rm -f core conftest.err conftest.$ac_objext \
24425     conftest$ac_exeext conftest.$ac_ext
24426 fi
24427 rm -f core conftest.err conftest.$ac_objext \
24428     conftest$ac_exeext conftest.$ac_ext
24429     ac_c_werror_flag=$ac_xsave_c_werror_flag
24430     LIBS=$ac_xsave_LIBS
24431   fi
24432
24433   # Check for system-dependent libraries X programs must link with.
24434   # Do this before checking for the system-independent R6 libraries
24435   # (-lICE), since we may need -lsocket or whatever for X linking.
24436
24437   if test "$ISC" = yes; then
24438     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24439   else
24440     # Martyn Johnson says this is needed for Ultrix, if the X
24441     # libraries were built with DECnet support.  And Karl Berry says
24442     # the Alpha needs dnet_stub (dnet does not exist).
24443     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24444     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24445 /* end confdefs.h.  */
24446
24447 /* Override any GCC internal prototype to avoid an error.
24448    Use char because int might match the return type of a GCC
24449    builtin and then its argument prototype would still apply.  */
24450 #ifdef __cplusplus
24451 extern "C"
24452 #endif
24453 char XOpenDisplay ();
24454 int
24455 main ()
24456 {
24457 return XOpenDisplay ();
24458   ;
24459   return 0;
24460 }
24461 _ACEOF
24462 if ac_fn_c_try_link "$LINENO"; then :
24463
24464 else
24465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24466 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24467 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24468   $as_echo_n "(cached) " >&6
24469 else
24470   ac_check_lib_save_LIBS=$LIBS
24471 LIBS="-ldnet  $LIBS"
24472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24473 /* end confdefs.h.  */
24474
24475 /* Override any GCC internal prototype to avoid an error.
24476    Use char because int might match the return type of a GCC
24477    builtin and then its argument prototype would still apply.  */
24478 #ifdef __cplusplus
24479 extern "C"
24480 #endif
24481 char dnet_ntoa ();
24482 int
24483 main ()
24484 {
24485 return dnet_ntoa ();
24486   ;
24487   return 0;
24488 }
24489 _ACEOF
24490 if ac_fn_c_try_link "$LINENO"; then :
24491   ac_cv_lib_dnet_dnet_ntoa=yes
24492 else
24493   ac_cv_lib_dnet_dnet_ntoa=no
24494 fi
24495 rm -f core conftest.err conftest.$ac_objext \
24496     conftest$ac_exeext conftest.$ac_ext
24497 LIBS=$ac_check_lib_save_LIBS
24498 fi
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24500 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24501 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24502   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24503 fi
24504
24505     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24506       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24507 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24508 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24509   $as_echo_n "(cached) " >&6
24510 else
24511   ac_check_lib_save_LIBS=$LIBS
24512 LIBS="-ldnet_stub  $LIBS"
24513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24514 /* end confdefs.h.  */
24515
24516 /* Override any GCC internal prototype to avoid an error.
24517    Use char because int might match the return type of a GCC
24518    builtin and then its argument prototype would still apply.  */
24519 #ifdef __cplusplus
24520 extern "C"
24521 #endif
24522 char dnet_ntoa ();
24523 int
24524 main ()
24525 {
24526 return dnet_ntoa ();
24527   ;
24528   return 0;
24529 }
24530 _ACEOF
24531 if ac_fn_c_try_link "$LINENO"; then :
24532   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24533 else
24534   ac_cv_lib_dnet_stub_dnet_ntoa=no
24535 fi
24536 rm -f core conftest.err conftest.$ac_objext \
24537     conftest$ac_exeext conftest.$ac_ext
24538 LIBS=$ac_check_lib_save_LIBS
24539 fi
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24541 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24542 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24543   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24544 fi
24545
24546     fi
24547 fi
24548 rm -f core conftest.err conftest.$ac_objext \
24549     conftest$ac_exeext conftest.$ac_ext
24550     LIBS="$ac_xsave_LIBS"
24551
24552     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24553     # to get the SysV transport functions.
24554     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24555     # needs -lnsl.
24556     # The nsl library prevents programs from opening the X display
24557     # on Irix 5.2, according to T.E. Dickey.
24558     # The functions gethostbyname, getservbyname, and inet_addr are
24559     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24560     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24561 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24562
24563 fi
24564
24565     if test $ac_cv_func_gethostbyname = no; then
24566       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24567 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24568 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24569   $as_echo_n "(cached) " >&6
24570 else
24571   ac_check_lib_save_LIBS=$LIBS
24572 LIBS="-lnsl  $LIBS"
24573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24574 /* end confdefs.h.  */
24575
24576 /* Override any GCC internal prototype to avoid an error.
24577    Use char because int might match the return type of a GCC
24578    builtin and then its argument prototype would still apply.  */
24579 #ifdef __cplusplus
24580 extern "C"
24581 #endif
24582 char gethostbyname ();
24583 int
24584 main ()
24585 {
24586 return gethostbyname ();
24587   ;
24588   return 0;
24589 }
24590 _ACEOF
24591 if ac_fn_c_try_link "$LINENO"; then :
24592   ac_cv_lib_nsl_gethostbyname=yes
24593 else
24594   ac_cv_lib_nsl_gethostbyname=no
24595 fi
24596 rm -f core conftest.err conftest.$ac_objext \
24597     conftest$ac_exeext conftest.$ac_ext
24598 LIBS=$ac_check_lib_save_LIBS
24599 fi
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24601 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24602 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24603   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24604 fi
24605
24606       if test $ac_cv_lib_nsl_gethostbyname = no; then
24607         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24608 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24609 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24610   $as_echo_n "(cached) " >&6
24611 else
24612   ac_check_lib_save_LIBS=$LIBS
24613 LIBS="-lbsd  $LIBS"
24614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24615 /* end confdefs.h.  */
24616
24617 /* Override any GCC internal prototype to avoid an error.
24618    Use char because int might match the return type of a GCC
24619    builtin and then its argument prototype would still apply.  */
24620 #ifdef __cplusplus
24621 extern "C"
24622 #endif
24623 char gethostbyname ();
24624 int
24625 main ()
24626 {
24627 return gethostbyname ();
24628   ;
24629   return 0;
24630 }
24631 _ACEOF
24632 if ac_fn_c_try_link "$LINENO"; then :
24633   ac_cv_lib_bsd_gethostbyname=yes
24634 else
24635   ac_cv_lib_bsd_gethostbyname=no
24636 fi
24637 rm -f core conftest.err conftest.$ac_objext \
24638     conftest$ac_exeext conftest.$ac_ext
24639 LIBS=$ac_check_lib_save_LIBS
24640 fi
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24642 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24643 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24644   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24645 fi
24646
24647       fi
24648     fi
24649
24650     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24651     # socket/setsockopt and other routines are undefined under SCO ODT
24652     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24653     # on later versions), says Simon Leinen: it contains gethostby*
24654     # variants that don't use the name server (or something).  -lsocket
24655     # must be given before -lnsl if both are needed.  We assume that
24656     # if connect needs -lnsl, so does gethostbyname.
24657     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24658 if test "x$ac_cv_func_connect" = x""yes; then :
24659
24660 fi
24661
24662     if test $ac_cv_func_connect = no; then
24663       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24664 $as_echo_n "checking for connect in -lsocket... " >&6; }
24665 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24666   $as_echo_n "(cached) " >&6
24667 else
24668   ac_check_lib_save_LIBS=$LIBS
24669 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671 /* end confdefs.h.  */
24672
24673 /* Override any GCC internal prototype to avoid an error.
24674    Use char because int might match the return type of a GCC
24675    builtin and then its argument prototype would still apply.  */
24676 #ifdef __cplusplus
24677 extern "C"
24678 #endif
24679 char connect ();
24680 int
24681 main ()
24682 {
24683 return connect ();
24684   ;
24685   return 0;
24686 }
24687 _ACEOF
24688 if ac_fn_c_try_link "$LINENO"; then :
24689   ac_cv_lib_socket_connect=yes
24690 else
24691   ac_cv_lib_socket_connect=no
24692 fi
24693 rm -f core conftest.err conftest.$ac_objext \
24694     conftest$ac_exeext conftest.$ac_ext
24695 LIBS=$ac_check_lib_save_LIBS
24696 fi
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24698 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24699 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24700   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24701 fi
24702
24703     fi
24704
24705     # Guillermo Gomez says -lposix is necessary on A/UX.
24706     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24707 if test "x$ac_cv_func_remove" = x""yes; then :
24708
24709 fi
24710
24711     if test $ac_cv_func_remove = no; then
24712       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24713 $as_echo_n "checking for remove in -lposix... " >&6; }
24714 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24715   $as_echo_n "(cached) " >&6
24716 else
24717   ac_check_lib_save_LIBS=$LIBS
24718 LIBS="-lposix  $LIBS"
24719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24720 /* end confdefs.h.  */
24721
24722 /* Override any GCC internal prototype to avoid an error.
24723    Use char because int might match the return type of a GCC
24724    builtin and then its argument prototype would still apply.  */
24725 #ifdef __cplusplus
24726 extern "C"
24727 #endif
24728 char remove ();
24729 int
24730 main ()
24731 {
24732 return remove ();
24733   ;
24734   return 0;
24735 }
24736 _ACEOF
24737 if ac_fn_c_try_link "$LINENO"; then :
24738   ac_cv_lib_posix_remove=yes
24739 else
24740   ac_cv_lib_posix_remove=no
24741 fi
24742 rm -f core conftest.err conftest.$ac_objext \
24743     conftest$ac_exeext conftest.$ac_ext
24744 LIBS=$ac_check_lib_save_LIBS
24745 fi
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24747 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24748 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24749   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24750 fi
24751
24752     fi
24753
24754     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24755     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24756 if test "x$ac_cv_func_shmat" = x""yes; then :
24757
24758 fi
24759
24760     if test $ac_cv_func_shmat = no; then
24761       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24762 $as_echo_n "checking for shmat in -lipc... " >&6; }
24763 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24764   $as_echo_n "(cached) " >&6
24765 else
24766   ac_check_lib_save_LIBS=$LIBS
24767 LIBS="-lipc  $LIBS"
24768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24769 /* end confdefs.h.  */
24770
24771 /* Override any GCC internal prototype to avoid an error.
24772    Use char because int might match the return type of a GCC
24773    builtin and then its argument prototype would still apply.  */
24774 #ifdef __cplusplus
24775 extern "C"
24776 #endif
24777 char shmat ();
24778 int
24779 main ()
24780 {
24781 return shmat ();
24782   ;
24783   return 0;
24784 }
24785 _ACEOF
24786 if ac_fn_c_try_link "$LINENO"; then :
24787   ac_cv_lib_ipc_shmat=yes
24788 else
24789   ac_cv_lib_ipc_shmat=no
24790 fi
24791 rm -f core conftest.err conftest.$ac_objext \
24792     conftest$ac_exeext conftest.$ac_ext
24793 LIBS=$ac_check_lib_save_LIBS
24794 fi
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24796 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24797 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24798   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24799 fi
24800
24801     fi
24802   fi
24803
24804   # Check for libraries that X11R6 Xt/Xaw programs need.
24805   ac_save_LDFLAGS=$LDFLAGS
24806   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24807   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24808   # check for ICE first), but we must link in the order -lSM -lICE or
24809   # we get undefined symbols.  So assume we have SM if we have ICE.
24810   # These have to be linked with before -lX11, unlike the other
24811   # libraries we check for below, so use a different variable.
24812   # John Interrante, Karl Berry
24813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24814 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24815 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24816   $as_echo_n "(cached) " >&6
24817 else
24818   ac_check_lib_save_LIBS=$LIBS
24819 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24821 /* end confdefs.h.  */
24822
24823 /* Override any GCC internal prototype to avoid an error.
24824    Use char because int might match the return type of a GCC
24825    builtin and then its argument prototype would still apply.  */
24826 #ifdef __cplusplus
24827 extern "C"
24828 #endif
24829 char IceConnectionNumber ();
24830 int
24831 main ()
24832 {
24833 return IceConnectionNumber ();
24834   ;
24835   return 0;
24836 }
24837 _ACEOF
24838 if ac_fn_c_try_link "$LINENO"; then :
24839   ac_cv_lib_ICE_IceConnectionNumber=yes
24840 else
24841   ac_cv_lib_ICE_IceConnectionNumber=no
24842 fi
24843 rm -f core conftest.err conftest.$ac_objext \
24844     conftest$ac_exeext conftest.$ac_ext
24845 LIBS=$ac_check_lib_save_LIBS
24846 fi
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24848 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24849 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24850   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24851 fi
24852
24853   LDFLAGS=$ac_save_LDFLAGS
24854
24855 fi
24856
24857
24858 for ac_header in \
24859    assert.h \
24860    fcntl.h \
24861    grp.h \
24862    pwd.h \
24863    libc.h \
24864    limits.h \
24865    stdarg.h \
24866    stdlib.h \
24867    stdint.h \
24868    string.h \
24869    strings.h \
24870    termios.h \
24871    termcap.h \
24872    term.h \
24873    unistd.h \
24874    sys/bitypes.h \
24875    sys/byteorder.h \
24876    sys/ioctl.h \
24877    sys/select.h \
24878    sys/socket.h \
24879    sys/sockio.h \
24880    sys/stat.h \
24881    sys/time.h \
24882    sys/types.h \
24883    arpa/nameser.h \
24884    mtio.h \
24885    sys/mtio.h \
24886    sys/tape.h \
24887    regex.h \
24888
24889 do :
24890   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24891 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24892 eval as_val=\$$as_ac_Header
24893    if test "x$as_val" = x""yes; then :
24894   cat >>confdefs.h <<_ACEOF
24895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24896 _ACEOF
24897
24898 fi
24899
24900 done
24901
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24903 $as_echo_n "checking for ANSI C header files... " >&6; }
24904 if test "${ac_cv_header_stdc+set}" = set; then :
24905   $as_echo_n "(cached) " >&6
24906 else
24907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24908 /* end confdefs.h.  */
24909 #include <stdlib.h>
24910 #include <stdarg.h>
24911 #include <string.h>
24912 #include <float.h>
24913
24914 int
24915 main ()
24916 {
24917
24918   ;
24919   return 0;
24920 }
24921 _ACEOF
24922 if ac_fn_c_try_compile "$LINENO"; then :
24923   ac_cv_header_stdc=yes
24924 else
24925   ac_cv_header_stdc=no
24926 fi
24927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24928
24929 if test $ac_cv_header_stdc = yes; then
24930   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24932 /* end confdefs.h.  */
24933 #include <string.h>
24934
24935 _ACEOF
24936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24937   $EGREP "memchr" >/dev/null 2>&1; then :
24938
24939 else
24940   ac_cv_header_stdc=no
24941 fi
24942 rm -f conftest*
24943
24944 fi
24945
24946 if test $ac_cv_header_stdc = yes; then
24947   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24949 /* end confdefs.h.  */
24950 #include <stdlib.h>
24951
24952 _ACEOF
24953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24954   $EGREP "free" >/dev/null 2>&1; then :
24955
24956 else
24957   ac_cv_header_stdc=no
24958 fi
24959 rm -f conftest*
24960
24961 fi
24962
24963 if test $ac_cv_header_stdc = yes; then
24964   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24965   if test "$cross_compiling" = yes; then :
24966   :
24967 else
24968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24969 /* end confdefs.h.  */
24970 #include <ctype.h>
24971 #include <stdlib.h>
24972 #if ((' ' & 0x0FF) == 0x020)
24973 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24974 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24975 #else
24976 # define ISLOWER(c) \
24977                    (('a' <= (c) && (c) <= 'i') \
24978                      || ('j' <= (c) && (c) <= 'r') \
24979                      || ('s' <= (c) && (c) <= 'z'))
24980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24981 #endif
24982
24983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24984 int
24985 main ()
24986 {
24987   int i;
24988   for (i = 0; i < 256; i++)
24989     if (XOR (islower (i), ISLOWER (i))
24990         || toupper (i) != TOUPPER (i))
24991       return 2;
24992   return 0;
24993 }
24994 _ACEOF
24995 if ac_fn_c_try_run "$LINENO"; then :
24996
24997 else
24998   ac_cv_header_stdc=no
24999 fi
25000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25001   conftest.$ac_objext conftest.beam conftest.$ac_ext
25002 fi
25003
25004 fi
25005 fi
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25007 $as_echo "$ac_cv_header_stdc" >&6; }
25008 if test $ac_cv_header_stdc = yes; then
25009
25010 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25011
25012 fi
25013
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25015 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25016 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25017   $as_echo_n "(cached) " >&6
25018 else
25019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25020 /* end confdefs.h.  */
25021 #include <sys/types.h>
25022 int
25023 main ()
25024 {
25025 return makedev(0, 0);
25026   ;
25027   return 0;
25028 }
25029 _ACEOF
25030 if ac_fn_c_try_link "$LINENO"; then :
25031   ac_cv_header_sys_types_h_makedev=yes
25032 else
25033   ac_cv_header_sys_types_h_makedev=no
25034 fi
25035 rm -f core conftest.err conftest.$ac_objext \
25036     conftest$ac_exeext conftest.$ac_ext
25037
25038 fi
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25040 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25041
25042 if test $ac_cv_header_sys_types_h_makedev = no; then
25043 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25044 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25045
25046 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25047
25048 fi
25049
25050
25051
25052   if test $ac_cv_header_sys_mkdev_h = no; then
25053     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25054 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25055
25056 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25057
25058 fi
25059
25060
25061   fi
25062 fi
25063
25064 ac_header_dirent=no
25065 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25066   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25068 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25070   $as_echo_n "(cached) " >&6
25071 else
25072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25073 /* end confdefs.h.  */
25074 #include <sys/types.h>
25075 #include <$ac_hdr>
25076
25077 int
25078 main ()
25079 {
25080 if ((DIR *) 0)
25081 return 0;
25082   ;
25083   return 0;
25084 }
25085 _ACEOF
25086 if ac_fn_c_try_compile "$LINENO"; then :
25087   eval "$as_ac_Header=yes"
25088 else
25089   eval "$as_ac_Header=no"
25090 fi
25091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25092 fi
25093 eval ac_res=\$$as_ac_Header
25094                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25095 $as_echo "$ac_res" >&6; }
25096 eval as_val=\$$as_ac_Header
25097    if test "x$as_val" = x""yes; then :
25098   cat >>confdefs.h <<_ACEOF
25099 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25100 _ACEOF
25101
25102 ac_header_dirent=$ac_hdr; break
25103 fi
25104
25105 done
25106 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25107 if test $ac_header_dirent = dirent.h; then
25108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25109 $as_echo_n "checking for library containing opendir... " >&6; }
25110 if test "${ac_cv_search_opendir+set}" = set; then :
25111   $as_echo_n "(cached) " >&6
25112 else
25113   ac_func_search_save_LIBS=$LIBS
25114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h.  */
25116
25117 /* Override any GCC internal prototype to avoid an error.
25118    Use char because int might match the return type of a GCC
25119    builtin and then its argument prototype would still apply.  */
25120 #ifdef __cplusplus
25121 extern "C"
25122 #endif
25123 char opendir ();
25124 int
25125 main ()
25126 {
25127 return opendir ();
25128   ;
25129   return 0;
25130 }
25131 _ACEOF
25132 for ac_lib in '' dir; do
25133   if test -z "$ac_lib"; then
25134     ac_res="none required"
25135   else
25136     ac_res=-l$ac_lib
25137     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25138   fi
25139   if ac_fn_c_try_link "$LINENO"; then :
25140   ac_cv_search_opendir=$ac_res
25141 fi
25142 rm -f core conftest.err conftest.$ac_objext \
25143     conftest$ac_exeext
25144   if test "${ac_cv_search_opendir+set}" = set; then :
25145   break
25146 fi
25147 done
25148 if test "${ac_cv_search_opendir+set}" = set; then :
25149
25150 else
25151   ac_cv_search_opendir=no
25152 fi
25153 rm conftest.$ac_ext
25154 LIBS=$ac_func_search_save_LIBS
25155 fi
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25157 $as_echo "$ac_cv_search_opendir" >&6; }
25158 ac_res=$ac_cv_search_opendir
25159 if test "$ac_res" != no; then :
25160   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25161
25162 fi
25163
25164 else
25165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25166 $as_echo_n "checking for library containing opendir... " >&6; }
25167 if test "${ac_cv_search_opendir+set}" = set; then :
25168   $as_echo_n "(cached) " >&6
25169 else
25170   ac_func_search_save_LIBS=$LIBS
25171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25172 /* end confdefs.h.  */
25173
25174 /* Override any GCC internal prototype to avoid an error.
25175    Use char because int might match the return type of a GCC
25176    builtin and then its argument prototype would still apply.  */
25177 #ifdef __cplusplus
25178 extern "C"
25179 #endif
25180 char opendir ();
25181 int
25182 main ()
25183 {
25184 return opendir ();
25185   ;
25186   return 0;
25187 }
25188 _ACEOF
25189 for ac_lib in '' x; do
25190   if test -z "$ac_lib"; then
25191     ac_res="none required"
25192   else
25193     ac_res=-l$ac_lib
25194     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25195   fi
25196   if ac_fn_c_try_link "$LINENO"; then :
25197   ac_cv_search_opendir=$ac_res
25198 fi
25199 rm -f core conftest.err conftest.$ac_objext \
25200     conftest$ac_exeext
25201   if test "${ac_cv_search_opendir+set}" = set; then :
25202   break
25203 fi
25204 done
25205 if test "${ac_cv_search_opendir+set}" = set; then :
25206
25207 else
25208   ac_cv_search_opendir=no
25209 fi
25210 rm conftest.$ac_ext
25211 LIBS=$ac_func_search_save_LIBS
25212 fi
25213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25214 $as_echo "$ac_cv_search_opendir" >&6; }
25215 ac_res=$ac_cv_search_opendir
25216 if test "$ac_res" != no; then :
25217   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25218
25219 fi
25220
25221 fi
25222
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25224 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25225 if test "${ac_cv_header_stat_broken+set}" = set; then :
25226   $as_echo_n "(cached) " >&6
25227 else
25228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25229 /* end confdefs.h.  */
25230 #include <sys/types.h>
25231 #include <sys/stat.h>
25232
25233 #if defined S_ISBLK && defined S_IFDIR
25234 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25235 #endif
25236
25237 #if defined S_ISBLK && defined S_IFCHR
25238 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25239 #endif
25240
25241 #if defined S_ISLNK && defined S_IFREG
25242 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25243 #endif
25244
25245 #if defined S_ISSOCK && defined S_IFREG
25246 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25247 #endif
25248
25249 _ACEOF
25250 if ac_fn_c_try_compile "$LINENO"; then :
25251   ac_cv_header_stat_broken=no
25252 else
25253   ac_cv_header_stat_broken=yes
25254 fi
25255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25256 fi
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25258 $as_echo "$ac_cv_header_stat_broken" >&6; }
25259 if test $ac_cv_header_stat_broken = yes; then
25260
25261 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25262
25263 fi
25264
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25266 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25267 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25268   $as_echo_n "(cached) " >&6
25269 else
25270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25271 /* end confdefs.h.  */
25272 #include <sys/types.h>
25273 #include <sys/wait.h>
25274 #ifndef WEXITSTATUS
25275 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25276 #endif
25277 #ifndef WIFEXITED
25278 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25279 #endif
25280
25281 int
25282 main ()
25283 {
25284   int s;
25285   wait (&s);
25286   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25287   ;
25288   return 0;
25289 }
25290 _ACEOF
25291 if ac_fn_c_try_compile "$LINENO"; then :
25292   ac_cv_header_sys_wait_h=yes
25293 else
25294   ac_cv_header_sys_wait_h=no
25295 fi
25296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25297 fi
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25299 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25300 if test $ac_cv_header_sys_wait_h = yes; then
25301
25302 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25303
25304 fi
25305
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25307 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25308 if test "${ac_cv_header_time+set}" = set; then :
25309   $as_echo_n "(cached) " >&6
25310 else
25311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25312 /* end confdefs.h.  */
25313 #include <sys/types.h>
25314 #include <sys/time.h>
25315 #include <time.h>
25316
25317 int
25318 main ()
25319 {
25320 if ((struct tm *) 0)
25321 return 0;
25322   ;
25323   return 0;
25324 }
25325 _ACEOF
25326 if ac_fn_c_try_compile "$LINENO"; then :
25327   ac_cv_header_time=yes
25328 else
25329   ac_cv_header_time=no
25330 fi
25331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25332 fi
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25334 $as_echo "$ac_cv_header_time" >&6; }
25335 if test $ac_cv_header_time = yes; then
25336
25337 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25338
25339 fi
25340
25341 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25342 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25343
25344 cat >>confdefs.h <<_ACEOF
25345 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25346 _ACEOF
25347
25348
25349 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25350
25351 fi
25352
25353
25354 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25355 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25356
25357 cat >>confdefs.h <<_ACEOF
25358 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25359 _ACEOF
25360
25361
25362 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25363
25364 else
25365   case " $LIBOBJS " in
25366   *" fileblocks.$ac_objext "* ) ;;
25367   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25368  ;;
25369 esac
25370
25371 fi
25372
25373
25374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25375 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25376 if test "${ac_cv_struct_tm+set}" = set; then :
25377   $as_echo_n "(cached) " >&6
25378 else
25379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25380 /* end confdefs.h.  */
25381 #include <sys/types.h>
25382 #include <time.h>
25383
25384 int
25385 main ()
25386 {
25387 struct tm tm;
25388                                      int *p = &tm.tm_sec;
25389                                      return !p;
25390   ;
25391   return 0;
25392 }
25393 _ACEOF
25394 if ac_fn_c_try_compile "$LINENO"; then :
25395   ac_cv_struct_tm=time.h
25396 else
25397   ac_cv_struct_tm=sys/time.h
25398 fi
25399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25400 fi
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25402 $as_echo "$ac_cv_struct_tm" >&6; }
25403 if test $ac_cv_struct_tm = sys/time.h; then
25404
25405 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25406
25407 fi
25408
25409 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25410 #include <$ac_cv_struct_tm>
25411
25412 "
25413 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25414
25415 cat >>confdefs.h <<_ACEOF
25416 #define HAVE_STRUCT_TM_TM_ZONE 1
25417 _ACEOF
25418
25419
25420 fi
25421
25422 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25423
25424 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25425
25426 else
25427   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25428 "
25429 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25430   ac_have_decl=1
25431 else
25432   ac_have_decl=0
25433 fi
25434
25435 cat >>confdefs.h <<_ACEOF
25436 #define HAVE_DECL_TZNAME $ac_have_decl
25437 _ACEOF
25438
25439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25440 $as_echo_n "checking for tzname... " >&6; }
25441 if test "${ac_cv_var_tzname+set}" = set; then :
25442   $as_echo_n "(cached) " >&6
25443 else
25444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25445 /* end confdefs.h.  */
25446 #include <time.h>
25447 #if !HAVE_DECL_TZNAME
25448 extern char *tzname[];
25449 #endif
25450
25451 int
25452 main ()
25453 {
25454 return tzname[0][0];
25455   ;
25456   return 0;
25457 }
25458 _ACEOF
25459 if ac_fn_c_try_link "$LINENO"; then :
25460   ac_cv_var_tzname=yes
25461 else
25462   ac_cv_var_tzname=no
25463 fi
25464 rm -f core conftest.err conftest.$ac_objext \
25465     conftest$ac_exeext conftest.$ac_ext
25466 fi
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25468 $as_echo "$ac_cv_var_tzname" >&6; }
25469   if test $ac_cv_var_tzname = yes; then
25470
25471 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25472
25473   fi
25474 fi
25475
25476
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25478 $as_echo_n "checking for utime.h... " >&6; }
25479 if test "${ba_cv_header_utime_h+set}" = set; then :
25480   $as_echo_n "(cached) " >&6
25481 else
25482
25483        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25484 /* end confdefs.h.  */
25485
25486               #include <sys/types.h>
25487               #include <utime.h>
25488
25489 int
25490 main ()
25491 {
25492
25493               struct utimbuf foo
25494
25495   ;
25496   return 0;
25497 }
25498 _ACEOF
25499 if ac_fn_c_try_compile "$LINENO"; then :
25500
25501               ba_cv_header_utime_h=yes
25502
25503 else
25504
25505               ba_cv_header_utime_h=no
25506
25507
25508 fi
25509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25510
25511
25512 fi
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25514 $as_echo "$ba_cv_header_utime_h" >&6; }
25515 test $ba_cv_header_utime_h = yes &&
25516 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25517
25518
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25520 $as_echo_n "checking for socklen_t... " >&6; }
25521 if test "${ba_cv_header_socklen_t+set}" = set; then :
25522   $as_echo_n "(cached) " >&6
25523 else
25524
25525        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25526 /* end confdefs.h.  */
25527
25528               #include <sys/types.h>
25529               #include <sys/socket.h>
25530
25531 int
25532 main ()
25533 {
25534
25535               socklen_t x
25536
25537   ;
25538   return 0;
25539 }
25540 _ACEOF
25541 if ac_fn_c_try_compile "$LINENO"; then :
25542
25543              ba_cv_header_socklen_t=yes
25544
25545 else
25546
25547              ba_cv_header_socklen_t=no
25548
25549
25550 fi
25551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25552
25553
25554 fi
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25556 $as_echo "$ba_cv_header_socklen_t" >&6; }
25557 test $ba_cv_header_socklen_t = yes && $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25558
25559
25560 ac_ext=cpp
25561 ac_cpp='$CXXCPP $CPPFLAGS'
25562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25565
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25567 $as_echo_n "checking for typeof... " >&6; }
25568 if test "${ba_cv_have_typeof+set}" = set; then :
25569   $as_echo_n "(cached) " >&6
25570 else
25571
25572        if test "$cross_compiling" = yes; then :
25573
25574               ba_cv_have_typeof=no
25575
25576
25577 else
25578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25579 /* end confdefs.h.  */
25580
25581               main(){char *a = 0; a = (typeof a)a;}
25582
25583 _ACEOF
25584 if ac_fn_cxx_try_run "$LINENO"; then :
25585
25586               ba_cv_have_typeof=yes
25587
25588 else
25589
25590               ba_cv_have_typeof=no
25591
25592 fi
25593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25594   conftest.$ac_objext conftest.beam conftest.$ac_ext
25595 fi
25596
25597
25598
25599 fi
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25601 $as_echo "$ba_cv_have_typeof" >&6; }
25602 test $ba_cv_have_typeof = yes &&
25603 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25604
25605 ac_ext=c
25606 ac_cpp='$CPP $CPPFLAGS'
25607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25610
25611
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25613 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25614 if test "${ac_cv_c_const+set}" = set; then :
25615   $as_echo_n "(cached) " >&6
25616 else
25617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25618 /* end confdefs.h.  */
25619
25620 int
25621 main ()
25622 {
25623 /* FIXME: Include the comments suggested by Paul. */
25624 #ifndef __cplusplus
25625   /* Ultrix mips cc rejects this.  */
25626   typedef int charset[2];
25627   const charset cs;
25628   /* SunOS 4.1.1 cc rejects this.  */
25629   char const *const *pcpcc;
25630   char **ppc;
25631   /* NEC SVR4.0.2 mips cc rejects this.  */
25632   struct point {int x, y;};
25633   static struct point const zero = {0,0};
25634   /* AIX XL C 1.02.0.0 rejects this.
25635      It does not let you subtract one const X* pointer from another in
25636      an arm of an if-expression whose if-part is not a constant
25637      expression */
25638   const char *g = "string";
25639   pcpcc = &g + (g ? g-g : 0);
25640   /* HPUX 7.0 cc rejects these. */
25641   ++pcpcc;
25642   ppc = (char**) pcpcc;
25643   pcpcc = (char const *const *) ppc;
25644   { /* SCO 3.2v4 cc rejects this.  */
25645     char *t;
25646     char const *s = 0 ? (char *) 0 : (char const *) 0;
25647
25648     *t++ = 0;
25649     if (s) return 0;
25650   }
25651   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25652     int x[] = {25, 17};
25653     const int *foo = &x[0];
25654     ++foo;
25655   }
25656   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25657     typedef const int *iptr;
25658     iptr p = 0;
25659     ++p;
25660   }
25661   { /* AIX XL C 1.02.0.0 rejects this saying
25662        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25663     struct s { int j; const int *ap[3]; };
25664     struct s *b; b->j = 5;
25665   }
25666   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25667     const int foo = 10;
25668     if (!foo) return 0;
25669   }
25670   return !cs[0] && !zero.x;
25671 #endif
25672
25673   ;
25674   return 0;
25675 }
25676 _ACEOF
25677 if ac_fn_c_try_compile "$LINENO"; then :
25678   ac_cv_c_const=yes
25679 else
25680   ac_cv_c_const=no
25681 fi
25682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25683 fi
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25685 $as_echo "$ac_cv_c_const" >&6; }
25686 if test $ac_cv_c_const = no; then
25687
25688 $as_echo "#define const /**/" >>confdefs.h
25689
25690 fi
25691
25692
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
25694 $as_echo_n "checking how to get filesystem type... " >&6; }
25695 fstype=no
25696 # The order of these tests is important.
25697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25698 /* end confdefs.h.  */
25699
25700        #include <sys/statvfs.h>
25701        #include <sys/fstyp.h>
25702
25703 _ACEOF
25704 if ac_fn_c_try_cpp "$LINENO"; then :
25705   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
25706  fstype=SVR4
25707
25708 fi
25709 rm -f conftest.err conftest.$ac_ext
25710 if test $fstype = no; then
25711    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25712 /* end confdefs.h.  */
25713
25714           #include <sys/statfs.h>
25715           #include <sys/fstyp.h>
25716
25717 _ACEOF
25718 if ac_fn_c_try_cpp "$LINENO"; then :
25719   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
25720  fstype=SVR3
25721
25722 fi
25723 rm -f conftest.err conftest.$ac_ext
25724 fi
25725 if test $fstype = no; then
25726    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25727 /* end confdefs.h.  */
25728
25729           #include <sys/statfs.h>
25730           #include <sys/vmount.h>
25731
25732 _ACEOF
25733 if ac_fn_c_try_cpp "$LINENO"; then :
25734   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
25735  fstype=AIX
25736
25737 fi
25738 rm -f conftest.err conftest.$ac_ext
25739 fi
25740 if test $fstype = no; then
25741    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25742 /* end confdefs.h.  */
25743
25744           #include <mntent.h>
25745
25746 _ACEOF
25747 if ac_fn_c_try_cpp "$LINENO"; then :
25748   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
25749  fstype=4.3BSD
25750
25751 fi
25752 rm -f conftest.err conftest.$ac_ext
25753 fi
25754 if test $fstype = no; then
25755    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25756 /* end confdefs.h.  */
25757 #include <sys/mount.h>
25758
25759 _ACEOF
25760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25761   $EGREP "f_type;" >/dev/null 2>&1; then :
25762   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
25763  fstype=4.4BSD/OSF1
25764 fi
25765 rm -f conftest*
25766
25767 fi
25768 if test $fstype = no; then
25769    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25770 /* end confdefs.h.  */
25771
25772           #include <sys/mount.h>
25773           #include <sys/fs_types.h>
25774
25775 _ACEOF
25776 if ac_fn_c_try_cpp "$LINENO"; then :
25777   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
25778  fstype=Ultrix
25779
25780 fi
25781 rm -f conftest.err conftest.$ac_ext
25782 fi
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
25784 $as_echo "$fstype" >&6; }
25785
25786 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
25787 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
25788
25789 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
25790
25791 fi
25792
25793
25794
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
25796 $as_echo_n "checking return type of signal handlers... " >&6; }
25797 if test "${ac_cv_type_signal+set}" = set; then :
25798   $as_echo_n "(cached) " >&6
25799 else
25800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25801 /* end confdefs.h.  */
25802 #include <sys/types.h>
25803 #include <signal.h>
25804
25805 int
25806 main ()
25807 {
25808 return *(signal (0, 0)) (0) == 1;
25809   ;
25810   return 0;
25811 }
25812 _ACEOF
25813 if ac_fn_c_try_compile "$LINENO"; then :
25814   ac_cv_type_signal=int
25815 else
25816   ac_cv_type_signal=void
25817 fi
25818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25819 fi
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
25821 $as_echo "$ac_cv_type_signal" >&6; }
25822
25823 cat >>confdefs.h <<_ACEOF
25824 #define RETSIGTYPE $ac_cv_type_signal
25825 _ACEOF
25826
25827
25828
25829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
25830 $as_echo_n "checking for type of signal functions... " >&6; }
25831   if test "${bash_cv_signal_vintage+set}" = set; then :
25832   $as_echo_n "(cached) " >&6
25833 else
25834
25835     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25836 /* end confdefs.h.  */
25837 #include <signal.h>
25838 int
25839 main ()
25840 {
25841
25842       sigset_t ss;
25843       struct sigaction sa;
25844       sigemptyset(&ss); sigsuspend(&ss);
25845       sigaction(SIGINT, &sa, (struct sigaction *) 0);
25846       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
25847
25848   ;
25849   return 0;
25850 }
25851 _ACEOF
25852 if ac_fn_c_try_link "$LINENO"; then :
25853   bash_cv_signal_vintage="posix"
25854 else
25855
25856       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25857 /* end confdefs.h.  */
25858 #include <signal.h>
25859 int
25860 main ()
25861 {
25862
25863           int mask = sigmask(SIGINT);
25864           sigsetmask(mask); sigblock(mask); sigpause(mask);
25865
25866   ;
25867   return 0;
25868 }
25869 _ACEOF
25870 if ac_fn_c_try_link "$LINENO"; then :
25871   bash_cv_signal_vintage="4.2bsd"
25872 else
25873
25874         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25875 /* end confdefs.h.  */
25876
25877           #include <signal.h>
25878           RETSIGTYPE foo() { }
25879 int
25880 main ()
25881 {
25882
25883                   int mask = sigmask(SIGINT);
25884                   sigset(SIGINT, foo); sigrelse(SIGINT);
25885                   sighold(SIGINT); sigpause(SIGINT);
25886
25887   ;
25888   return 0;
25889 }
25890 _ACEOF
25891 if ac_fn_c_try_link "$LINENO"; then :
25892   bash_cv_signal_vintage="svr3"
25893 else
25894   bash_cv_signal_vintage="v7"
25895
25896 fi
25897 rm -f core conftest.err conftest.$ac_objext \
25898     conftest$ac_exeext conftest.$ac_ext
25899
25900 fi
25901 rm -f core conftest.err conftest.$ac_objext \
25902     conftest$ac_exeext conftest.$ac_ext
25903
25904 fi
25905 rm -f core conftest.err conftest.$ac_objext \
25906     conftest$ac_exeext conftest.$ac_ext
25907
25908 fi
25909
25910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
25911 $as_echo "$bash_cv_signal_vintage" >&6; }
25912   if test "$bash_cv_signal_vintage" = "posix"; then
25913     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
25914
25915   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
25916     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
25917
25918   elif test "$bash_cv_signal_vintage" = "svr3"; then
25919     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
25920
25921   fi
25922
25923 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
25924 if test "x$ac_cv_type_mode_t" = x""yes; then :
25925
25926 else
25927
25928 cat >>confdefs.h <<_ACEOF
25929 #define mode_t int
25930 _ACEOF
25931
25932 fi
25933
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
25935 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
25936 if test "${ac_cv_type_uid_t+set}" = set; then :
25937   $as_echo_n "(cached) " >&6
25938 else
25939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25940 /* end confdefs.h.  */
25941 #include <sys/types.h>
25942
25943 _ACEOF
25944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25945   $EGREP "uid_t" >/dev/null 2>&1; then :
25946   ac_cv_type_uid_t=yes
25947 else
25948   ac_cv_type_uid_t=no
25949 fi
25950 rm -f conftest*
25951
25952 fi
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
25954 $as_echo "$ac_cv_type_uid_t" >&6; }
25955 if test $ac_cv_type_uid_t = no; then
25956
25957 $as_echo "#define uid_t int" >>confdefs.h
25958
25959
25960 $as_echo "#define gid_t int" >>confdefs.h
25961
25962 fi
25963
25964 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25965 if test "x$ac_cv_type_size_t" = x""yes; then :
25966
25967 else
25968
25969 cat >>confdefs.h <<_ACEOF
25970 #define size_t unsigned int
25971 _ACEOF
25972
25973 fi
25974
25975 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
25976 if test "x$ac_cv_type_pid_t" = x""yes; then :
25977
25978 else
25979
25980 cat >>confdefs.h <<_ACEOF
25981 #define pid_t int
25982 _ACEOF
25983
25984 fi
25985
25986 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
25987 if test "x$ac_cv_type_off_t" = x""yes; then :
25988
25989 else
25990
25991 cat >>confdefs.h <<_ACEOF
25992 #define off_t long int
25993 _ACEOF
25994
25995 fi
25996
25997
25998   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
25999 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26000
26001 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26002
26003 else
26004   for ac_type in 'int' 'long int' 'long long int'; do
26005        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26006 /* end confdefs.h.  */
26007 $ac_includes_default
26008 int
26009 main ()
26010 {
26011 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26012 test_array [0] = 0
26013
26014   ;
26015   return 0;
26016 }
26017 _ACEOF
26018 if ac_fn_c_try_compile "$LINENO"; then :
26019
26020 cat >>confdefs.h <<_ACEOF
26021 #define intptr_t $ac_type
26022 _ACEOF
26023
26024           ac_type=
26025 fi
26026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26027        test -z "$ac_type" && break
26028      done
26029 fi
26030
26031
26032
26033   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26034 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26035
26036 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26037
26038 else
26039   for ac_type in 'unsigned int' 'unsigned long int' \
26040         'unsigned long long int'; do
26041        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26042 /* end confdefs.h.  */
26043 $ac_includes_default
26044 int
26045 main ()
26046 {
26047 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26048 test_array [0] = 0
26049
26050   ;
26051   return 0;
26052 }
26053 _ACEOF
26054 if ac_fn_c_try_compile "$LINENO"; then :
26055
26056 cat >>confdefs.h <<_ACEOF
26057 #define uintptr_t $ac_type
26058 _ACEOF
26059
26060           ac_type=
26061 fi
26062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26063        test -z "$ac_type" && break
26064      done
26065 fi
26066
26067
26068 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26069 if test "x$ac_cv_type_ino_t" = x""yes; then :
26070
26071 else
26072
26073 cat >>confdefs.h <<_ACEOF
26074 #define ino_t unsigned long
26075 _ACEOF
26076
26077 fi
26078
26079 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26080 if test "x$ac_cv_type_dev_t" = x""yes; then :
26081
26082 else
26083
26084 cat >>confdefs.h <<_ACEOF
26085 #define dev_t unsigned long
26086 _ACEOF
26087
26088 fi
26089
26090 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26091 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26092
26093 else
26094
26095 cat >>confdefs.h <<_ACEOF
26096 #define daddr_t long
26097 _ACEOF
26098
26099 fi
26100
26101 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26102 if test "x$ac_cv_type_major_t" = x""yes; then :
26103
26104 else
26105
26106 cat >>confdefs.h <<_ACEOF
26107 #define major_t int
26108 _ACEOF
26109
26110 fi
26111
26112 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26113 if test "x$ac_cv_type_minor_t" = x""yes; then :
26114
26115 else
26116
26117 cat >>confdefs.h <<_ACEOF
26118 #define minor_t int
26119 _ACEOF
26120
26121 fi
26122
26123 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26124 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26125
26126 else
26127
26128 cat >>confdefs.h <<_ACEOF
26129 #define ssize_t int
26130 _ACEOF
26131
26132 fi
26133
26134 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26135 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26136
26137 cat >>confdefs.h <<_ACEOF
26138 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26139 _ACEOF
26140
26141
26142 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26143
26144 else
26145   case " $LIBOBJS " in
26146   *" fileblocks.$ac_objext "* ) ;;
26147   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26148  ;;
26149 esac
26150
26151 fi
26152
26153
26154 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26155 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26156
26157 cat >>confdefs.h <<_ACEOF
26158 #define HAVE_STRUCT_STAT_ST_RDEV 1
26159 _ACEOF
26160
26161
26162 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26163
26164 fi
26165
26166
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26168 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26169 if test "${ac_cv_struct_tm+set}" = set; then :
26170   $as_echo_n "(cached) " >&6
26171 else
26172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26173 /* end confdefs.h.  */
26174 #include <sys/types.h>
26175 #include <time.h>
26176
26177 int
26178 main ()
26179 {
26180 struct tm tm;
26181                                      int *p = &tm.tm_sec;
26182                                      return !p;
26183   ;
26184   return 0;
26185 }
26186 _ACEOF
26187 if ac_fn_c_try_compile "$LINENO"; then :
26188   ac_cv_struct_tm=time.h
26189 else
26190   ac_cv_struct_tm=sys/time.h
26191 fi
26192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26193 fi
26194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26195 $as_echo "$ac_cv_struct_tm" >&6; }
26196 if test $ac_cv_struct_tm = sys/time.h; then
26197
26198 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26199
26200 fi
26201
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26203 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26204 if test "${ac_cv_c_const+set}" = set; then :
26205   $as_echo_n "(cached) " >&6
26206 else
26207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26208 /* end confdefs.h.  */
26209
26210 int
26211 main ()
26212 {
26213 /* FIXME: Include the comments suggested by Paul. */
26214 #ifndef __cplusplus
26215   /* Ultrix mips cc rejects this.  */
26216   typedef int charset[2];
26217   const charset cs;
26218   /* SunOS 4.1.1 cc rejects this.  */
26219   char const *const *pcpcc;
26220   char **ppc;
26221   /* NEC SVR4.0.2 mips cc rejects this.  */
26222   struct point {int x, y;};
26223   static struct point const zero = {0,0};
26224   /* AIX XL C 1.02.0.0 rejects this.
26225      It does not let you subtract one const X* pointer from another in
26226      an arm of an if-expression whose if-part is not a constant
26227      expression */
26228   const char *g = "string";
26229   pcpcc = &g + (g ? g-g : 0);
26230   /* HPUX 7.0 cc rejects these. */
26231   ++pcpcc;
26232   ppc = (char**) pcpcc;
26233   pcpcc = (char const *const *) ppc;
26234   { /* SCO 3.2v4 cc rejects this.  */
26235     char *t;
26236     char const *s = 0 ? (char *) 0 : (char const *) 0;
26237
26238     *t++ = 0;
26239     if (s) return 0;
26240   }
26241   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26242     int x[] = {25, 17};
26243     const int *foo = &x[0];
26244     ++foo;
26245   }
26246   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26247     typedef const int *iptr;
26248     iptr p = 0;
26249     ++p;
26250   }
26251   { /* AIX XL C 1.02.0.0 rejects this saying
26252        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26253     struct s { int j; const int *ap[3]; };
26254     struct s *b; b->j = 5;
26255   }
26256   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26257     const int foo = 10;
26258     if (!foo) return 0;
26259   }
26260   return !cs[0] && !zero.x;
26261 #endif
26262
26263   ;
26264   return 0;
26265 }
26266 _ACEOF
26267 if ac_fn_c_try_compile "$LINENO"; then :
26268   ac_cv_c_const=yes
26269 else
26270   ac_cv_c_const=no
26271 fi
26272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26273 fi
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26275 $as_echo "$ac_cv_c_const" >&6; }
26276 if test $ac_cv_c_const = no; then
26277
26278 $as_echo "#define const /**/" >>confdefs.h
26279
26280 fi
26281
26282
26283 # The cast to long int works around a bug in the HP C Compiler
26284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26286 # This bug is HP SR number 8606223364.
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26288 $as_echo_n "checking size of char... " >&6; }
26289 if test "${ac_cv_sizeof_char+set}" = set; then :
26290   $as_echo_n "(cached) " >&6
26291 else
26292   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26293
26294 else
26295   if test "$ac_cv_type_char" = yes; then
26296      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26298 { as_fn_set_status 77
26299 as_fn_error "cannot compute sizeof (char)
26300 See \`config.log' for more details." "$LINENO" 5; }; }
26301    else
26302      ac_cv_sizeof_char=0
26303    fi
26304 fi
26305
26306 fi
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26308 $as_echo "$ac_cv_sizeof_char" >&6; }
26309
26310
26311
26312 cat >>confdefs.h <<_ACEOF
26313 #define SIZEOF_CHAR $ac_cv_sizeof_char
26314 _ACEOF
26315
26316
26317 # The cast to long int works around a bug in the HP C Compiler
26318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26320 # This bug is HP SR number 8606223364.
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26322 $as_echo_n "checking size of short int... " >&6; }
26323 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26324   $as_echo_n "(cached) " >&6
26325 else
26326   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26327
26328 else
26329   if test "$ac_cv_type_short_int" = yes; then
26330      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26332 { as_fn_set_status 77
26333 as_fn_error "cannot compute sizeof (short int)
26334 See \`config.log' for more details." "$LINENO" 5; }; }
26335    else
26336      ac_cv_sizeof_short_int=0
26337    fi
26338 fi
26339
26340 fi
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26342 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26343
26344
26345
26346 cat >>confdefs.h <<_ACEOF
26347 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26348 _ACEOF
26349
26350
26351 # The cast to long int works around a bug in the HP C Compiler
26352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26354 # This bug is HP SR number 8606223364.
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26356 $as_echo_n "checking size of int... " >&6; }
26357 if test "${ac_cv_sizeof_int+set}" = set; then :
26358   $as_echo_n "(cached) " >&6
26359 else
26360   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26361
26362 else
26363   if test "$ac_cv_type_int" = yes; then
26364      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26366 { as_fn_set_status 77
26367 as_fn_error "cannot compute sizeof (int)
26368 See \`config.log' for more details." "$LINENO" 5; }; }
26369    else
26370      ac_cv_sizeof_int=0
26371    fi
26372 fi
26373
26374 fi
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26376 $as_echo "$ac_cv_sizeof_int" >&6; }
26377
26378
26379
26380 cat >>confdefs.h <<_ACEOF
26381 #define SIZEOF_INT $ac_cv_sizeof_int
26382 _ACEOF
26383
26384
26385 # The cast to long int works around a bug in the HP C Compiler
26386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26388 # This bug is HP SR number 8606223364.
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26390 $as_echo_n "checking size of long int... " >&6; }
26391 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26392   $as_echo_n "(cached) " >&6
26393 else
26394   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26395
26396 else
26397   if test "$ac_cv_type_long_int" = yes; then
26398      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26400 { as_fn_set_status 77
26401 as_fn_error "cannot compute sizeof (long int)
26402 See \`config.log' for more details." "$LINENO" 5; }; }
26403    else
26404      ac_cv_sizeof_long_int=0
26405    fi
26406 fi
26407
26408 fi
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26410 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26411
26412
26413
26414 cat >>confdefs.h <<_ACEOF
26415 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26416 _ACEOF
26417
26418
26419 # The cast to long int works around a bug in the HP C Compiler
26420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26422 # This bug is HP SR number 8606223364.
26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26424 $as_echo_n "checking size of long long int... " >&6; }
26425 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26426   $as_echo_n "(cached) " >&6
26427 else
26428   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26429
26430 else
26431   if test "$ac_cv_type_long_long_int" = yes; then
26432      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26434 { as_fn_set_status 77
26435 as_fn_error "cannot compute sizeof (long long int)
26436 See \`config.log' for more details." "$LINENO" 5; }; }
26437    else
26438      ac_cv_sizeof_long_long_int=0
26439    fi
26440 fi
26441
26442 fi
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26444 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26445
26446
26447
26448 cat >>confdefs.h <<_ACEOF
26449 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26450 _ACEOF
26451
26452
26453 # The cast to long int works around a bug in the HP C Compiler
26454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26456 # This bug is HP SR number 8606223364.
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26458 $as_echo_n "checking size of int *... " >&6; }
26459 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26460   $as_echo_n "(cached) " >&6
26461 else
26462   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26463
26464 else
26465   if test "$ac_cv_type_int_p" = yes; then
26466      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26468 { as_fn_set_status 77
26469 as_fn_error "cannot compute sizeof (int *)
26470 See \`config.log' for more details." "$LINENO" 5; }; }
26471    else
26472      ac_cv_sizeof_int_p=0
26473    fi
26474 fi
26475
26476 fi
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26478 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26479
26480
26481
26482 cat >>confdefs.h <<_ACEOF
26483 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26484 _ACEOF
26485
26486
26487
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26489 $as_echo_n "checking for u_int type... " >&6; }
26490 if test "${ac_cv_have_u_int+set}" = set; then :
26491   $as_echo_n "(cached) " >&6
26492 else
26493
26494        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26495 /* end confdefs.h.  */
26496
26497               #include <sys/types.h>
26498
26499 int
26500 main ()
26501 {
26502
26503               u_int a; a = 1;
26504
26505   ;
26506   return 0;
26507 }
26508 _ACEOF
26509 if ac_fn_c_try_compile "$LINENO"; then :
26510
26511               ac_cv_have_u_int="yes"
26512
26513 else
26514
26515               ac_cv_have_u_int="no"
26516
26517
26518 fi
26519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26520
26521
26522 fi
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
26524 $as_echo "$ac_cv_have_u_int" >&6; }
26525 if test "x$ac_cv_have_u_int" = "xyes" ; then
26526    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
26527
26528    have_u_int=1
26529 fi
26530
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
26532 $as_echo_n "checking for intmax_t type... " >&6; }
26533 if test "${ac_cv_have_intmax_t+set}" = set; then :
26534   $as_echo_n "(cached) " >&6
26535 else
26536
26537        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26538 /* end confdefs.h.  */
26539
26540               #include <sys/types.h>
26541
26542 int
26543 main ()
26544 {
26545
26546               intmax_t a; a = 1;
26547
26548   ;
26549   return 0;
26550 }
26551 _ACEOF
26552 if ac_fn_c_try_compile "$LINENO"; then :
26553
26554               ac_cv_have_intmax_t="yes"
26555
26556 else
26557
26558               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26559 /* end confdefs.h.  */
26560
26561                      #include <stdint.h>
26562
26563 int
26564 main ()
26565 {
26566
26567                      intmax_t a; a = 1;
26568
26569   ;
26570   return 0;
26571 }
26572 _ACEOF
26573 if ac_fn_c_try_compile "$LINENO"; then :
26574
26575                      ac_cv_have_intmax_t="yes"
26576
26577 else
26578
26579                      ac_cv_have_intmax_t="no"
26580
26581
26582 fi
26583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26584
26585
26586 fi
26587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26588
26589
26590 fi
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
26592 $as_echo "$ac_cv_have_intmax_t" >&6; }
26593 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26594    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
26595
26596    have_intmax_t=1
26597 fi
26598
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
26600 $as_echo_n "checking for u_intmax_t type... " >&6; }
26601 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
26602   $as_echo_n "(cached) " >&6
26603 else
26604
26605        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26606 /* end confdefs.h.  */
26607
26608               #include <sys/types.h>
26609
26610 int
26611 main ()
26612 {
26613
26614               u_intmax_t a; a = 1;
26615
26616   ;
26617   return 0;
26618 }
26619 _ACEOF
26620 if ac_fn_c_try_compile "$LINENO"; then :
26621
26622               ac_cv_have_u_intmax_t="yes"
26623
26624 else
26625
26626               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26627 /* end confdefs.h.  */
26628
26629                      #include <stdint.h>
26630
26631 int
26632 main ()
26633 {
26634
26635                     u_intmax_t a; a = 1;
26636
26637   ;
26638   return 0;
26639 }
26640 _ACEOF
26641 if ac_fn_c_try_compile "$LINENO"; then :
26642
26643                     ac_cv_have_u_intmax_t="yes"
26644
26645 else
26646
26647                     ac_cv_have_u_intmax_t="no"
26648
26649
26650 fi
26651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26652
26653
26654 fi
26655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26656
26657
26658 fi
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
26660 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
26661 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26662    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
26663
26664    have_u_intmax_t=1
26665 fi
26666
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
26668 $as_echo_n "checking for intXX_t types... " >&6; }
26669 if test "${ac_cv_have_intxx_t+set}" = set; then :
26670   $as_echo_n "(cached) " >&6
26671 else
26672
26673        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26674 /* end confdefs.h.  */
26675
26676               #include <sys/types.h>
26677
26678 int
26679 main ()
26680 {
26681
26682               int8_t a; int16_t b; int32_t c; a = b = c = 1;
26683
26684   ;
26685   return 0;
26686 }
26687 _ACEOF
26688 if ac_fn_c_try_compile "$LINENO"; then :
26689
26690               ac_cv_have_intxx_t="yes"
26691
26692 else
26693
26694               ac_cv_have_intxx_t="no"
26695
26696
26697 fi
26698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26699
26700
26701 fi
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
26703 $as_echo "$ac_cv_have_intxx_t" >&6; }
26704 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26705    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26706
26707    have_intxx_t=1
26708 fi
26709
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
26711 $as_echo_n "checking for int64_t type... " >&6; }
26712 if test "${ac_cv_have_int64_t+set}" = set; then :
26713   $as_echo_n "(cached) " >&6
26714 else
26715
26716        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26717 /* end confdefs.h.  */
26718
26719               #include <sys/types.h>
26720
26721 int
26722 main ()
26723 {
26724
26725               int64_t a; a = 1;
26726
26727   ;
26728   return 0;
26729 }
26730 _ACEOF
26731 if ac_fn_c_try_compile "$LINENO"; then :
26732
26733               ac_cv_have_int64_t="yes"
26734
26735 else
26736
26737               ac_cv_have_int64_t="no"
26738
26739
26740 fi
26741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26742
26743
26744 fi
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
26746 $as_echo "$ac_cv_have_int64_t" >&6; }
26747 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26748    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26749
26750    have_int64_t=1
26751 fi
26752
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
26754 $as_echo_n "checking for u_intXX_t types... " >&6; }
26755 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
26756   $as_echo_n "(cached) " >&6
26757 else
26758
26759        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26760 /* end confdefs.h.  */
26761
26762               #include <sys/types.h>
26763
26764 int
26765 main ()
26766 {
26767
26768               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26769
26770   ;
26771   return 0;
26772 }
26773 _ACEOF
26774 if ac_fn_c_try_compile "$LINENO"; then :
26775
26776              ac_cv_have_u_intxx_t="yes"
26777
26778 else
26779
26780              ac_cv_have_u_intxx_t="no"
26781
26782
26783 fi
26784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26785
26786
26787 fi
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
26789 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
26790 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26791    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26792
26793    have_u_intxx_t=1
26794 fi
26795
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
26797 $as_echo_n "checking for u_int64_t types... " >&6; }
26798 if test "${ac_cv_have_u_int64_t+set}" = set; then :
26799   $as_echo_n "(cached) " >&6
26800 else
26801
26802        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26803 /* end confdefs.h.  */
26804
26805               #include <sys/types.h>
26806
26807 int
26808 main ()
26809 {
26810
26811               u_int64_t a; a = 1;
26812
26813   ;
26814   return 0;
26815 }
26816 _ACEOF
26817 if ac_fn_c_try_compile "$LINENO"; then :
26818
26819              ac_cv_have_u_int64_t="yes"
26820
26821 else
26822
26823              ac_cv_have_u_int64_t="no"
26824
26825
26826 fi
26827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26828
26829
26830 fi
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
26832 $as_echo "$ac_cv_have_u_int64_t" >&6; }
26833 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26834    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26835
26836    have_u_int64_t=1
26837 fi
26838
26839 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26840     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26841 then
26842    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26843 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
26844    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26845 /* end confdefs.h.  */
26846
26847           #include <sys/bitypes.h>
26848
26849 int
26850 main ()
26851 {
26852
26853           int8_t a; int16_t b; int32_t c;
26854           u_int8_t e; u_int16_t f; u_int32_t g;
26855           a = b = c = e = f = g = 1;
26856
26857   ;
26858   return 0;
26859 }
26860 _ACEOF
26861 if ac_fn_c_try_compile "$LINENO"; then :
26862
26863           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
26864
26865           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
26866
26867           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
26868
26869           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26870 $as_echo "yes" >&6; }
26871
26872 else
26873
26874           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26875 $as_echo "no" >&6; }
26876
26877
26878 fi
26879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26880 fi
26881
26882 if test -z "$have_u_intxx_t" ; then
26883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
26884 $as_echo_n "checking for uintXX_t types... " >&6; }
26885 if test "${ac_cv_have_uintxx_t+set}" = set; then :
26886   $as_echo_n "(cached) " >&6
26887 else
26888
26889           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26890 /* end confdefs.h.  */
26891
26892                  #include <sys/types.h>
26893
26894 int
26895 main ()
26896 {
26897
26898                  uint8_t a; uint16_t b;
26899                  uint32_t c; a = b = c = 1;
26900
26901   ;
26902   return 0;
26903 }
26904 _ACEOF
26905 if ac_fn_c_try_compile "$LINENO"; then :
26906
26907                 ac_cv_have_uintxx_t="yes"
26908
26909 else
26910
26911                 ac_cv_have_uintxx_t="no"
26912
26913
26914 fi
26915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26916
26917
26918 fi
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
26920 $as_echo "$ac_cv_have_uintxx_t" >&6; }
26921    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26922       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
26923
26924    fi
26925 fi
26926
26927 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26928     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26929 then
26930    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26931 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
26932    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26933 /* end confdefs.h.  */
26934
26935           #include <sys/bitypes.h>
26936
26937 int
26938 main ()
26939 {
26940
26941           int64_t a; u_int64_t b;
26942           a = b = 1;
26943
26944   ;
26945   return 0;
26946 }
26947 _ACEOF
26948 if ac_fn_c_try_compile "$LINENO"; then :
26949
26950           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
26951
26952           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
26953
26954           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26955 $as_echo "yes" >&6; }
26956
26957 else
26958
26959           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26960 $as_echo "no" >&6; }
26961
26962
26963 fi
26964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26965 fi
26966
26967 if (test -z "$have_uintxx_t" && \
26968     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26969 then
26970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
26971 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
26972    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26973 /* end confdefs.h.  */
26974
26975           #include <sys/bitypes.h>
26976
26977 int
26978 main ()
26979 {
26980
26981           uint8_t a; uint16_t b;
26982           uint32_t c; a = b = c = 1;
26983
26984   ;
26985   return 0;
26986 }
26987 _ACEOF
26988 if ac_fn_c_try_compile "$LINENO"; then :
26989
26990           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
26991
26992           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26993 $as_echo "yes" >&6; }
26994
26995 else
26996
26997           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26998 $as_echo "no" >&6; }
26999
27000
27001 fi
27002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27003 fi
27004
27005 for ac_func in \
27006    fork \
27007    getcwd \
27008    gethostname \
27009    getpid \
27010    gettimeofday \
27011    setpgid \
27012    setpgrp \
27013    setsid \
27014    signal \
27015    strerror \
27016    strncmp \
27017    strncpy \
27018    vfprintf \
27019
27020 do :
27021   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27022 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27023 eval as_val=\$$as_ac_var
27024    if test "x$as_val" = x""yes; then :
27025   cat >>confdefs.h <<_ACEOF
27026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27027 _ACEOF
27028
27029 else
27030   echo 'configure: cannot find needed function.'; exit 1
27031
27032 fi
27033 done
27034
27035
27036 for ac_func in fchdir
27037 do :
27038   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27039 if test "x$ac_cv_func_fchdir" = x""yes; then :
27040   cat >>confdefs.h <<_ACEOF
27041 #define HAVE_FCHDIR 1
27042 _ACEOF
27043  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27044
27045 fi
27046 done
27047
27048 for ac_func in strtoll
27049 do :
27050   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27051 if test "x$ac_cv_func_strtoll" = x""yes; then :
27052   cat >>confdefs.h <<_ACEOF
27053 #define HAVE_STRTOLL 1
27054 _ACEOF
27055  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27056
27057 fi
27058 done
27059
27060 for ac_func in posix_fadvise
27061 do :
27062   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27063 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27064   cat >>confdefs.h <<_ACEOF
27065 #define HAVE_POSIX_FADVISE 1
27066 _ACEOF
27067
27068 fi
27069 done
27070
27071 for ac_func in fdatasync
27072 do :
27073   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27074 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27075   cat >>confdefs.h <<_ACEOF
27076 #define HAVE_FDATASYNC 1
27077 _ACEOF
27078
27079 fi
27080 done
27081
27082
27083 for ac_func in chflags
27084 do :
27085   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27086 if test "x$ac_cv_func_chflags" = x""yes; then :
27087   cat >>confdefs.h <<_ACEOF
27088 #define HAVE_CHFLAGS 1
27089 _ACEOF
27090
27091 fi
27092 done
27093
27094
27095 for ac_func in snprintf vsnprintf gethostid fseeko
27096 do :
27097   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27098 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27099 eval as_val=\$$as_ac_var
27100    if test "x$as_val" = x""yes; then :
27101   cat >>confdefs.h <<_ACEOF
27102 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27103 _ACEOF
27104
27105 fi
27106 done
27107
27108
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27110 $as_echo_n "checking for va_copy... " >&6; }
27111 if test "${ba_cv_va_copy+set}" = set; then :
27112   $as_echo_n "(cached) " >&6
27113 else
27114
27115        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27116 /* end confdefs.h.  */
27117
27118               #include <stdarg.h>
27119               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27120               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27121
27122 int
27123 main ()
27124 {
27125
27126               call_use_va_copy(1,2,3)
27127
27128   ;
27129   return 0;
27130 }
27131 _ACEOF
27132 if ac_fn_c_try_link "$LINENO"; then :
27133
27134               ba_cv_va_copy=yes,
27135
27136 else
27137
27138               ba_cv_va_copy=no
27139
27140
27141 fi
27142 rm -f core conftest.err conftest.$ac_objext \
27143     conftest$ac_exeext conftest.$ac_ext
27144
27145
27146 fi
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27148 $as_echo "$ba_cv_va_copy" >&6; }
27149 test $ba_cv_va_copy = yes &&
27150 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27151
27152
27153 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27154 do :
27155   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27157 eval as_val=\$$as_ac_var
27158    if test "x$as_val" = x""yes; then :
27159   cat >>confdefs.h <<_ACEOF
27160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27161 _ACEOF
27162
27163 fi
27164 done
27165
27166
27167 # If resolver functions are not in libc check for -lnsl or -lresolv.
27168 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27169 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27171 $as_echo "using libc's resolver" >&6; }
27172 else
27173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27174 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27175 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27176   $as_echo_n "(cached) " >&6
27177 else
27178   ac_check_lib_save_LIBS=$LIBS
27179 LIBS="-lnsl  $LIBS"
27180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27181 /* end confdefs.h.  */
27182
27183 /* Override any GCC internal prototype to avoid an error.
27184    Use char because int might match the return type of a GCC
27185    builtin and then its argument prototype would still apply.  */
27186 #ifdef __cplusplus
27187 extern "C"
27188 #endif
27189 char gethostbyname_r ();
27190 int
27191 main ()
27192 {
27193 return gethostbyname_r ();
27194   ;
27195   return 0;
27196 }
27197 _ACEOF
27198 if ac_fn_c_try_link "$LINENO"; then :
27199   ac_cv_lib_nsl_gethostbyname_r=yes
27200 else
27201   ac_cv_lib_nsl_gethostbyname_r=no
27202 fi
27203 rm -f core conftest.err conftest.$ac_objext \
27204     conftest$ac_exeext conftest.$ac_ext
27205 LIBS=$ac_check_lib_save_LIBS
27206 fi
27207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27208 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27209 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27210   cat >>confdefs.h <<_ACEOF
27211 #define HAVE_LIBNSL 1
27212 _ACEOF
27213
27214   LIBS="-lnsl $LIBS"
27215
27216 fi
27217
27218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27219 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27220 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27221   $as_echo_n "(cached) " >&6
27222 else
27223   ac_check_lib_save_LIBS=$LIBS
27224 LIBS="-lresolv  $LIBS"
27225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27226 /* end confdefs.h.  */
27227
27228 /* Override any GCC internal prototype to avoid an error.
27229    Use char because int might match the return type of a GCC
27230    builtin and then its argument prototype would still apply.  */
27231 #ifdef __cplusplus
27232 extern "C"
27233 #endif
27234 char gethostbyname_r ();
27235 int
27236 main ()
27237 {
27238 return gethostbyname_r ();
27239   ;
27240   return 0;
27241 }
27242 _ACEOF
27243 if ac_fn_c_try_link "$LINENO"; then :
27244   ac_cv_lib_resolv_gethostbyname_r=yes
27245 else
27246   ac_cv_lib_resolv_gethostbyname_r=no
27247 fi
27248 rm -f core conftest.err conftest.$ac_objext \
27249     conftest$ac_exeext conftest.$ac_ext
27250 LIBS=$ac_check_lib_save_LIBS
27251 fi
27252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27253 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27254 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27255   cat >>confdefs.h <<_ACEOF
27256 #define HAVE_LIBRESOLV 1
27257 _ACEOF
27258
27259   LIBS="-lresolv $LIBS"
27260
27261 fi
27262
27263 fi
27264
27265
27266 for ac_func in inet_pton
27267 do :
27268   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27269 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27270   cat >>confdefs.h <<_ACEOF
27271 #define HAVE_INET_PTON 1
27272 _ACEOF
27273  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27274
27275 fi
27276 done
27277
27278 for ac_func in inet_ntop
27279 do :
27280   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27281 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27282   cat >>confdefs.h <<_ACEOF
27283 #define HAVE_INET_NTOP 1
27284 _ACEOF
27285  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27286
27287 fi
27288 done
27289
27290 for ac_func in gethostbyname2
27291 do :
27292   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27293 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27294   cat >>confdefs.h <<_ACEOF
27295 #define HAVE_GETHOSTBYNAME2 1
27296 _ACEOF
27297  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27298
27299 fi
27300 done
27301
27302
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27304 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27305 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27306   $as_echo_n "(cached) " >&6
27307 else
27308
27309        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27310 /* end confdefs.h.  */
27311
27312               #include <sys/socket.h>
27313
27314 int
27315 main ()
27316 {
27317
27318               struct sockaddr s; s.sa_len;
27319
27320   ;
27321   return 0;
27322 }
27323 _ACEOF
27324 if ac_fn_c_try_compile "$LINENO"; then :
27325
27326              ac_cv_struct_sockaddr_sa_len=yes
27327
27328 else
27329   ac_cv_struct_sockaddr_sa_len=no
27330
27331
27332 fi
27333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27334
27335
27336 fi
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27338 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27339
27340 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27341
27342 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27343
27344 fi
27345
27346 for ac_func in strftime
27347 do :
27348   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27349 if test "x$ac_cv_func_strftime" = x""yes; then :
27350   cat >>confdefs.h <<_ACEOF
27351 #define HAVE_STRFTIME 1
27352 _ACEOF
27353
27354 else
27355   # strftime is in -lintl on SCO UNIX.
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27357 $as_echo_n "checking for strftime in -lintl... " >&6; }
27358 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27359   $as_echo_n "(cached) " >&6
27360 else
27361   ac_check_lib_save_LIBS=$LIBS
27362 LIBS="-lintl  $LIBS"
27363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27364 /* end confdefs.h.  */
27365
27366 /* Override any GCC internal prototype to avoid an error.
27367    Use char because int might match the return type of a GCC
27368    builtin and then its argument prototype would still apply.  */
27369 #ifdef __cplusplus
27370 extern "C"
27371 #endif
27372 char strftime ();
27373 int
27374 main ()
27375 {
27376 return strftime ();
27377   ;
27378   return 0;
27379 }
27380 _ACEOF
27381 if ac_fn_c_try_link "$LINENO"; then :
27382   ac_cv_lib_intl_strftime=yes
27383 else
27384   ac_cv_lib_intl_strftime=no
27385 fi
27386 rm -f core conftest.err conftest.$ac_objext \
27387     conftest$ac_exeext conftest.$ac_ext
27388 LIBS=$ac_check_lib_save_LIBS
27389 fi
27390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27391 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27392 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27393   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27394
27395 LIBS="-lintl $LIBS"
27396 fi
27397
27398 fi
27399 done
27400
27401 for ac_func in vprintf
27402 do :
27403   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27404 if test "x$ac_cv_func_vprintf" = x""yes; then :
27405   cat >>confdefs.h <<_ACEOF
27406 #define HAVE_VPRINTF 1
27407 _ACEOF
27408
27409 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27410 if test "x$ac_cv_func__doprnt" = x""yes; then :
27411
27412 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27413
27414 fi
27415
27416 fi
27417 done
27418
27419
27420 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27421 # for constant arguments.  Useless!
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27423 $as_echo_n "checking for working alloca.h... " >&6; }
27424 if test "${ac_cv_working_alloca_h+set}" = set; then :
27425   $as_echo_n "(cached) " >&6
27426 else
27427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27428 /* end confdefs.h.  */
27429 #include <alloca.h>
27430 int
27431 main ()
27432 {
27433 char *p = (char *) alloca (2 * sizeof (int));
27434                           if (p) return 0;
27435   ;
27436   return 0;
27437 }
27438 _ACEOF
27439 if ac_fn_c_try_link "$LINENO"; then :
27440   ac_cv_working_alloca_h=yes
27441 else
27442   ac_cv_working_alloca_h=no
27443 fi
27444 rm -f core conftest.err conftest.$ac_objext \
27445     conftest$ac_exeext conftest.$ac_ext
27446 fi
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27448 $as_echo "$ac_cv_working_alloca_h" >&6; }
27449 if test $ac_cv_working_alloca_h = yes; then
27450
27451 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27452
27453 fi
27454
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27456 $as_echo_n "checking for alloca... " >&6; }
27457 if test "${ac_cv_func_alloca_works+set}" = set; then :
27458   $as_echo_n "(cached) " >&6
27459 else
27460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27461 /* end confdefs.h.  */
27462 #ifdef __GNUC__
27463 # define alloca __builtin_alloca
27464 #else
27465 # ifdef _MSC_VER
27466 #  include <malloc.h>
27467 #  define alloca _alloca
27468 # else
27469 #  ifdef HAVE_ALLOCA_H
27470 #   include <alloca.h>
27471 #  else
27472 #   ifdef _AIX
27473  #pragma alloca
27474 #   else
27475 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27476 char *alloca ();
27477 #    endif
27478 #   endif
27479 #  endif
27480 # endif
27481 #endif
27482
27483 int
27484 main ()
27485 {
27486 char *p = (char *) alloca (1);
27487                                     if (p) return 0;
27488   ;
27489   return 0;
27490 }
27491 _ACEOF
27492 if ac_fn_c_try_link "$LINENO"; then :
27493   ac_cv_func_alloca_works=yes
27494 else
27495   ac_cv_func_alloca_works=no
27496 fi
27497 rm -f core conftest.err conftest.$ac_objext \
27498     conftest$ac_exeext conftest.$ac_ext
27499 fi
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27501 $as_echo "$ac_cv_func_alloca_works" >&6; }
27502
27503 if test $ac_cv_func_alloca_works = yes; then
27504
27505 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27506
27507 else
27508   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27509 # that cause trouble.  Some versions do not even contain alloca or
27510 # contain a buggy version.  If you still want to use their alloca,
27511 # use ar to extract alloca.o from them instead of compiling alloca.c.
27512
27513 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27514
27515 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27516
27517
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27519 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27520 if test "${ac_cv_os_cray+set}" = set; then :
27521   $as_echo_n "(cached) " >&6
27522 else
27523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27524 /* end confdefs.h.  */
27525 #if defined CRAY && ! defined CRAY2
27526 webecray
27527 #else
27528 wenotbecray
27529 #endif
27530
27531 _ACEOF
27532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27533   $EGREP "webecray" >/dev/null 2>&1; then :
27534   ac_cv_os_cray=yes
27535 else
27536   ac_cv_os_cray=no
27537 fi
27538 rm -f conftest*
27539
27540 fi
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
27542 $as_echo "$ac_cv_os_cray" >&6; }
27543 if test $ac_cv_os_cray = yes; then
27544   for ac_func in _getb67 GETB67 getb67; do
27545     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27546 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27547 eval as_val=\$$as_ac_var
27548    if test "x$as_val" = x""yes; then :
27549
27550 cat >>confdefs.h <<_ACEOF
27551 #define CRAY_STACKSEG_END $ac_func
27552 _ACEOF
27553
27554     break
27555 fi
27556
27557   done
27558 fi
27559
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
27561 $as_echo_n "checking stack direction for C alloca... " >&6; }
27562 if test "${ac_cv_c_stack_direction+set}" = set; then :
27563   $as_echo_n "(cached) " >&6
27564 else
27565   if test "$cross_compiling" = yes; then :
27566   ac_cv_c_stack_direction=0
27567 else
27568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27569 /* end confdefs.h.  */
27570 $ac_includes_default
27571 int
27572 find_stack_direction ()
27573 {
27574   static char *addr = 0;
27575   auto char dummy;
27576   if (addr == 0)
27577     {
27578       addr = &dummy;
27579       return find_stack_direction ();
27580     }
27581   else
27582     return (&dummy > addr) ? 1 : -1;
27583 }
27584
27585 int
27586 main ()
27587 {
27588   return find_stack_direction () < 0;
27589 }
27590 _ACEOF
27591 if ac_fn_c_try_run "$LINENO"; then :
27592   ac_cv_c_stack_direction=1
27593 else
27594   ac_cv_c_stack_direction=-1
27595 fi
27596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27597   conftest.$ac_objext conftest.beam conftest.$ac_ext
27598 fi
27599
27600 fi
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
27602 $as_echo "$ac_cv_c_stack_direction" >&6; }
27603 cat >>confdefs.h <<_ACEOF
27604 #define STACK_DIRECTION $ac_cv_c_stack_direction
27605 _ACEOF
27606
27607
27608 fi
27609
27610 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27611 # -lseq on Dynix/PTX, -lgen on Unixware.
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
27613 $as_echo_n "checking for library containing getmntent... " >&6; }
27614 if test "${ac_cv_search_getmntent+set}" = set; then :
27615   $as_echo_n "(cached) " >&6
27616 else
27617   ac_func_search_save_LIBS=$LIBS
27618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27619 /* end confdefs.h.  */
27620
27621 /* Override any GCC internal prototype to avoid an error.
27622    Use char because int might match the return type of a GCC
27623    builtin and then its argument prototype would still apply.  */
27624 #ifdef __cplusplus
27625 extern "C"
27626 #endif
27627 char getmntent ();
27628 int
27629 main ()
27630 {
27631 return getmntent ();
27632   ;
27633   return 0;
27634 }
27635 _ACEOF
27636 for ac_lib in '' sun seq gen; do
27637   if test -z "$ac_lib"; then
27638     ac_res="none required"
27639   else
27640     ac_res=-l$ac_lib
27641     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27642   fi
27643   if ac_fn_c_try_link "$LINENO"; then :
27644   ac_cv_search_getmntent=$ac_res
27645 fi
27646 rm -f core conftest.err conftest.$ac_objext \
27647     conftest$ac_exeext
27648   if test "${ac_cv_search_getmntent+set}" = set; then :
27649   break
27650 fi
27651 done
27652 if test "${ac_cv_search_getmntent+set}" = set; then :
27653
27654 else
27655   ac_cv_search_getmntent=no
27656 fi
27657 rm conftest.$ac_ext
27658 LIBS=$ac_func_search_save_LIBS
27659 fi
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
27661 $as_echo "$ac_cv_search_getmntent" >&6; }
27662 ac_res=$ac_cv_search_getmntent
27663 if test "$ac_res" != no; then :
27664   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27665   ac_cv_func_getmntent=yes
27666
27667 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
27668
27669 else
27670   ac_cv_func_getmntent=no
27671 fi
27672
27673
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
27675 $as_echo_n "checking whether closedir returns void... " >&6; }
27676 if test "${ac_cv_func_closedir_void+set}" = set; then :
27677   $as_echo_n "(cached) " >&6
27678 else
27679   if test "$cross_compiling" = yes; then :
27680   ac_cv_func_closedir_void=yes
27681 else
27682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27683 /* end confdefs.h.  */
27684 $ac_includes_default
27685 #include <$ac_header_dirent>
27686 #ifndef __cplusplus
27687 int closedir ();
27688 #endif
27689
27690 int
27691 main ()
27692 {
27693 return closedir (opendir (".")) != 0;
27694   ;
27695   return 0;
27696 }
27697 _ACEOF
27698 if ac_fn_c_try_run "$LINENO"; then :
27699   ac_cv_func_closedir_void=no
27700 else
27701   ac_cv_func_closedir_void=yes
27702 fi
27703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27704   conftest.$ac_objext conftest.beam conftest.$ac_ext
27705 fi
27706
27707 fi
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
27709 $as_echo "$ac_cv_func_closedir_void" >&6; }
27710 if test $ac_cv_func_closedir_void = yes; then
27711
27712 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
27713
27714 fi
27715
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
27717 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
27718 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
27719   $as_echo_n "(cached) " >&6
27720 else
27721   if test "$cross_compiling" = yes; then :
27722   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
27723 else
27724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27725 /* end confdefs.h.  */
27726 $ac_includes_default
27727 int
27728 main ()
27729 {
27730 /* If this system has a BSD-style setpgrp which takes arguments,
27731   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
27732   exit successfully. */
27733   return setpgrp (1,1) != -1;
27734   ;
27735   return 0;
27736 }
27737 _ACEOF
27738 if ac_fn_c_try_run "$LINENO"; then :
27739   ac_cv_func_setpgrp_void=no
27740 else
27741   ac_cv_func_setpgrp_void=yes
27742 fi
27743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27744   conftest.$ac_objext conftest.beam conftest.$ac_ext
27745 fi
27746
27747 fi
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
27749 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
27750 if test $ac_cv_func_setpgrp_void = yes; then
27751
27752 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
27753
27754 fi
27755             # AC_FUNC_FNMATCH    dnl use local version
27756
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
27758 $as_echo_n "checking for gettext in -lintl... " >&6; }
27759 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
27760   $as_echo_n "(cached) " >&6
27761 else
27762   ac_check_lib_save_LIBS=$LIBS
27763 LIBS="-lintl  $LIBS"
27764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27765 /* end confdefs.h.  */
27766
27767 /* Override any GCC internal prototype to avoid an error.
27768    Use char because int might match the return type of a GCC
27769    builtin and then its argument prototype would still apply.  */
27770 #ifdef __cplusplus
27771 extern "C"
27772 #endif
27773 char gettext ();
27774 int
27775 main ()
27776 {
27777 return gettext ();
27778   ;
27779   return 0;
27780 }
27781 _ACEOF
27782 if ac_fn_c_try_link "$LINENO"; then :
27783   ac_cv_lib_intl_gettext=yes
27784 else
27785   ac_cv_lib_intl_gettext=no
27786 fi
27787 rm -f core conftest.err conftest.$ac_objext \
27788     conftest$ac_exeext conftest.$ac_ext
27789 LIBS=$ac_check_lib_save_LIBS
27790 fi
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
27792 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
27793 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
27794   LIBS="$LIBS -lintl"
27795 fi
27796
27797
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
27799 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
27800 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
27801   $as_echo_n "(cached) " >&6
27802 else
27803   ac_check_lib_save_LIBS=$LIBS
27804 LIBS="-lsun  $LIBS"
27805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27806 /* end confdefs.h.  */
27807
27808 /* Override any GCC internal prototype to avoid an error.
27809    Use char because int might match the return type of a GCC
27810    builtin and then its argument prototype would still apply.  */
27811 #ifdef __cplusplus
27812 extern "C"
27813 #endif
27814 char getpwnam ();
27815 int
27816 main ()
27817 {
27818 return getpwnam ();
27819   ;
27820   return 0;
27821 }
27822 _ACEOF
27823 if ac_fn_c_try_link "$LINENO"; then :
27824   ac_cv_lib_sun_getpwnam=yes
27825 else
27826   ac_cv_lib_sun_getpwnam=no
27827 fi
27828 rm -f core conftest.err conftest.$ac_objext \
27829     conftest$ac_exeext conftest.$ac_ext
27830 LIBS=$ac_check_lib_save_LIBS
27831 fi
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
27833 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
27834 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
27835   cat >>confdefs.h <<_ACEOF
27836 #define HAVE_LIBSUN 1
27837 _ACEOF
27838
27839   LIBS="-lsun $LIBS"
27840
27841 fi
27842
27843
27844 for ac_header in zlib.h
27845 do :
27846   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27847 if test "x$ac_cv_header_zlib_h" = x""yes; then :
27848   cat >>confdefs.h <<_ACEOF
27849 #define HAVE_ZLIB_H 1
27850 _ACEOF
27851
27852 fi
27853
27854 done
27855
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
27857 $as_echo_n "checking for deflate in -lz... " >&6; }
27858 if test "${ac_cv_lib_z_deflate+set}" = set; then :
27859   $as_echo_n "(cached) " >&6
27860 else
27861   ac_check_lib_save_LIBS=$LIBS
27862 LIBS="-lz  $LIBS"
27863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27864 /* end confdefs.h.  */
27865
27866 /* Override any GCC internal prototype to avoid an error.
27867    Use char because int might match the return type of a GCC
27868    builtin and then its argument prototype would still apply.  */
27869 #ifdef __cplusplus
27870 extern "C"
27871 #endif
27872 char deflate ();
27873 int
27874 main ()
27875 {
27876 return deflate ();
27877   ;
27878   return 0;
27879 }
27880 _ACEOF
27881 if ac_fn_c_try_link "$LINENO"; then :
27882   ac_cv_lib_z_deflate=yes
27883 else
27884   ac_cv_lib_z_deflate=no
27885 fi
27886 rm -f core conftest.err conftest.$ac_objext \
27887     conftest$ac_exeext conftest.$ac_ext
27888 LIBS=$ac_check_lib_save_LIBS
27889 fi
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
27891 $as_echo "$ac_cv_lib_z_deflate" >&6; }
27892 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
27893   FDLIBS="-lz"
27894 fi
27895
27896 have_zlib=no
27897 if test x$FDLIBS = x-lz; then
27898    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
27899
27900    have_zlib=yes
27901 fi
27902
27903 support_acl=auto
27904 # Check whether --enable-acl was given.
27905 if test "${enable_acl+set}" = set; then :
27906   enableval=$enable_acl;
27907        if test x$enableval = xyes; then
27908           support_acl=yes
27909        elif test x$enableval = xno; then
27910           support_acl=no
27911        fi
27912
27913
27914 fi
27915
27916
27917 have_acl=no
27918 have_extended_acl=no
27919 if test x$support_acl = xyes -o x$support_acl = xauto; then
27920    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
27921 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
27922
27923 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
27924
27925 fi
27926
27927
27928    ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
27929 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
27930
27931           have_acl=yes
27932
27933 else
27934
27935           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
27936 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
27937 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
27938   $as_echo_n "(cached) " >&6
27939 else
27940   ac_check_lib_save_LIBS=$LIBS
27941 LIBS="-lacl  $LIBS"
27942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27943 /* end confdefs.h.  */
27944
27945 /* Override any GCC internal prototype to avoid an error.
27946    Use char because int might match the return type of a GCC
27947    builtin and then its argument prototype would still apply.  */
27948 #ifdef __cplusplus
27949 extern "C"
27950 #endif
27951 char acl_get_file ();
27952 int
27953 main ()
27954 {
27955 return acl_get_file ();
27956   ;
27957   return 0;
27958 }
27959 _ACEOF
27960 if ac_fn_c_try_link "$LINENO"; then :
27961   ac_cv_lib_acl_acl_get_file=yes
27962 else
27963   ac_cv_lib_acl_acl_get_file=no
27964 fi
27965 rm -f core conftest.err conftest.$ac_objext \
27966     conftest$ac_exeext conftest.$ac_ext
27967 LIBS=$ac_check_lib_save_LIBS
27968 fi
27969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
27970 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
27971 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
27972
27973                  have_acl=yes;
27974                  FDLIBS="-lacl $FDLIBS"
27975
27976 else
27977
27978                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
27979 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
27980 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
27981   $as_echo_n "(cached) " >&6
27982 else
27983   ac_check_lib_save_LIBS=$LIBS
27984 LIBS="-lpacl  $LIBS"
27985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27986 /* end confdefs.h.  */
27987
27988 /* Override any GCC internal prototype to avoid an error.
27989    Use char because int might match the return type of a GCC
27990    builtin and then its argument prototype would still apply.  */
27991 #ifdef __cplusplus
27992 extern "C"
27993 #endif
27994 char acl_get_file ();
27995 int
27996 main ()
27997 {
27998 return acl_get_file ();
27999   ;
28000   return 0;
28001 }
28002 _ACEOF
28003 if ac_fn_c_try_link "$LINENO"; then :
28004   ac_cv_lib_pacl_acl_get_file=yes
28005 else
28006   ac_cv_lib_pacl_acl_get_file=no
28007 fi
28008 rm -f core conftest.err conftest.$ac_objext \
28009     conftest$ac_exeext conftest.$ac_ext
28010 LIBS=$ac_check_lib_save_LIBS
28011 fi
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28013 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28014 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28015
28016                         have_acl=yes;
28017                         FDLIBS="-lpacl $FDLIBS"
28018
28019 else
28020
28021                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28022 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28023 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28024   $as_echo_n "(cached) " >&6
28025 else
28026   ac_check_lib_save_LIBS=$LIBS
28027 LIBS="-lsec  $LIBS"
28028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28029 /* end confdefs.h.  */
28030
28031 /* Override any GCC internal prototype to avoid an error.
28032    Use char because int might match the return type of a GCC
28033    builtin and then its argument prototype would still apply.  */
28034 #ifdef __cplusplus
28035 extern "C"
28036 #endif
28037 char acltotext ();
28038 int
28039 main ()
28040 {
28041 return acltotext ();
28042   ;
28043   return 0;
28044 }
28045 _ACEOF
28046 if ac_fn_c_try_link "$LINENO"; then :
28047   ac_cv_lib_sec_acltotext=yes
28048 else
28049   ac_cv_lib_sec_acltotext=no
28050 fi
28051 rm -f core conftest.err conftest.$ac_objext \
28052     conftest$ac_exeext conftest.$ac_ext
28053 LIBS=$ac_check_lib_save_LIBS
28054 fi
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28056 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28057 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28058
28059                                have_acl=yes;
28060                                FDLIBS="-lsec $FDLIBS"
28061
28062                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28063 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28064 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28065   $as_echo_n "(cached) " >&6
28066 else
28067   ac_check_lib_save_LIBS=$LIBS
28068 LIBS="-lsec  $LIBS"
28069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28070 /* end confdefs.h.  */
28071
28072 /* Override any GCC internal prototype to avoid an error.
28073    Use char because int might match the return type of a GCC
28074    builtin and then its argument prototype would still apply.  */
28075 #ifdef __cplusplus
28076 extern "C"
28077 #endif
28078 char acl_totext ();
28079 int
28080 main ()
28081 {
28082 return acl_totext ();
28083   ;
28084   return 0;
28085 }
28086 _ACEOF
28087 if ac_fn_c_try_link "$LINENO"; then :
28088   ac_cv_lib_sec_acl_totext=yes
28089 else
28090   ac_cv_lib_sec_acl_totext=no
28091 fi
28092 rm -f core conftest.err conftest.$ac_objext \
28093     conftest$ac_exeext conftest.$ac_ext
28094 LIBS=$ac_check_lib_save_LIBS
28095 fi
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28097 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28098 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28099
28100                                       have_extended_acl=yes
28101
28102
28103 fi
28104
28105
28106
28107 fi
28108
28109
28110
28111 fi
28112
28113
28114
28115 fi
28116
28117
28118
28119 fi
28120
28121
28122    if test x$support_acl = xyes -a $have_acl != yes; then
28123       as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28124   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28125    else
28126       if test $have_acl = yes; then
28127
28128 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28129
28130       fi
28131
28132       if test $have_extended_acl = yes; then
28133
28134 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28135
28136       fi
28137    fi
28138 fi
28139
28140 support_xattr=auto
28141 # Check whether --enable-xattr was given.
28142 if test "${enable_xattr+set}" = set; then :
28143   enableval=$enable_xattr;
28144        if test x$enableval = xyes; then
28145           support_xattr=yes
28146        elif test x$enableval = xno; then
28147           support_xattr=no
28148        fi
28149
28150
28151 fi
28152
28153
28154 have_xattr=no
28155 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28156             ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28157 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28158
28159 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28160
28161 fi
28162
28163
28164    ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28165 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28166
28167 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28168
28169 fi
28170
28171
28172    for ac_func in extattr_get_link extattr_set_link extattr_list_link
28173 do :
28174   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28175 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28176 eval as_val=\$$as_ac_var
28177    if test "x$as_val" = x""yes; then :
28178   cat >>confdefs.h <<_ACEOF
28179 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28180 _ACEOF
28181
28182           have_xattr=yes
28183
28184 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28185
28186
28187 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28188
28189
28190 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28191
28192
28193
28194 fi
28195 done
28196
28197
28198    if test $have_xattr = no; then
28199       for ac_func in extattr_get_file extattr_set_file extattr_list_file
28200 do :
28201   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28202 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28203 eval as_val=\$$as_ac_var
28204    if test "x$as_val" = x""yes; then :
28205   cat >>confdefs.h <<_ACEOF
28206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28207 _ACEOF
28208
28209              have_xattr=yes
28210
28211 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28212
28213
28214 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28215
28216
28217 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28218
28219
28220
28221 fi
28222 done
28223
28224    fi
28225
28226    if test $have_xattr = yes; then
28227       have_extattr_string_in_libc=no
28228       for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28229 do :
28230   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28231 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28232 eval as_val=\$$as_ac_var
28233    if test "x$as_val" = x""yes; then :
28234   cat >>confdefs.h <<_ACEOF
28235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28236 _ACEOF
28237
28238              have_extattr_string_in_libc=yes
28239
28240 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28241
28242
28243 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28244
28245
28246
28247 fi
28248 done
28249
28250
28251                         if test $have_extattr_string_in_libc = no; then
28252          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28253 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28254 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28255   $as_echo_n "(cached) " >&6
28256 else
28257   ac_check_lib_save_LIBS=$LIBS
28258 LIBS="-lutil  $LIBS"
28259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28260 /* end confdefs.h.  */
28261
28262 /* Override any GCC internal prototype to avoid an error.
28263    Use char because int might match the return type of a GCC
28264    builtin and then its argument prototype would still apply.  */
28265 #ifdef __cplusplus
28266 extern "C"
28267 #endif
28268 char extattr_namespace_to_string extattr_string_to_namespace ();
28269 int
28270 main ()
28271 {
28272 return extattr_namespace_to_string extattr_string_to_namespace ();
28273   ;
28274   return 0;
28275 }
28276 _ACEOF
28277 if ac_fn_c_try_link "$LINENO"; then :
28278   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28279 else
28280   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28281 fi
28282 rm -f core conftest.err conftest.$ac_objext \
28283     conftest$ac_exeext conftest.$ac_ext
28284 LIBS=$ac_check_lib_save_LIBS
28285 fi
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28287 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28288 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28289
28290
28291 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28292
28293
28294 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28295
28296                 FDLIBS="-lutil $FDLIBS"
28297
28298
28299 fi
28300
28301       fi
28302    fi
28303
28304             if test $have_xattr = no; then
28305       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
28306 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
28307
28308 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
28309
28310 fi
28311
28312
28313       for ac_func in llistxattr lgetxattr lsetxattr
28314 do :
28315   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28316 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28317 eval as_val=\$$as_ac_var
28318    if test "x$as_val" = x""yes; then :
28319   cat >>confdefs.h <<_ACEOF
28320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28321 _ACEOF
28322
28323              have_xattr=yes
28324
28325 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
28326
28327
28328 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
28329
28330
28331 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
28332
28333
28334
28335 fi
28336 done
28337
28338
28339       if test $have_xattr = no; then
28340          for ac_func in listxattr getxattr setxattr
28341 do :
28342   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28343 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28344 eval as_val=\$$as_ac_var
28345    if test "x$as_val" = x""yes; then :
28346   cat >>confdefs.h <<_ACEOF
28347 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28348 _ACEOF
28349
28350                 have_xattr=yes
28351
28352 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
28353
28354
28355 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
28356
28357
28358 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
28359
28360
28361
28362 fi
28363 done
28364
28365       fi
28366    fi
28367
28368             if test $have_xattr = no; then
28369       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
28370 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
28371
28372 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
28373
28374 fi
28375
28376
28377       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
28378 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
28379
28380 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
28381
28382 fi
28383
28384
28385       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
28386 if test "x$ac_cv_header_attr_h" = x""yes; then :
28387
28388 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
28389
28390 fi
28391
28392
28393
28394       for ac_func in openat fstatat unlinkat fchownat futimesat
28395 do :
28396   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28397 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28398 eval as_val=\$$as_ac_var
28399    if test "x$as_val" = x""yes; then :
28400   cat >>confdefs.h <<_ACEOF
28401 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28402 _ACEOF
28403
28404              have_xattr=yes
28405
28406 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
28407
28408
28409 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
28410
28411
28412 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
28413
28414
28415 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
28416
28417
28418 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
28419
28420
28421
28422 fi
28423 done
28424
28425
28426       if test $have_xattr = yes; then
28427          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
28428 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
28429 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
28430   $as_echo_n "(cached) " >&6
28431 else
28432   ac_check_lib_save_LIBS=$LIBS
28433 LIBS="-lnvpair  $LIBS"
28434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28435 /* end confdefs.h.  */
28436
28437 /* Override any GCC internal prototype to avoid an error.
28438    Use char because int might match the return type of a GCC
28439    builtin and then its argument prototype would still apply.  */
28440 #ifdef __cplusplus
28441 extern "C"
28442 #endif
28443 char nvlist_next_nvpair ();
28444 int
28445 main ()
28446 {
28447 return nvlist_next_nvpair ();
28448   ;
28449   return 0;
28450 }
28451 _ACEOF
28452 if ac_fn_c_try_link "$LINENO"; then :
28453   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
28454 else
28455   ac_cv_lib_nvpair_nvlist_next_nvpair=no
28456 fi
28457 rm -f core conftest.err conftest.$ac_objext \
28458     conftest$ac_exeext conftest.$ac_ext
28459 LIBS=$ac_check_lib_save_LIBS
28460 fi
28461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
28462 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
28463 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
28464
28465
28466 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
28467
28468                 FDLIBS="-lnvpair $FDLIBS"
28469
28470
28471 fi
28472
28473       fi
28474    fi
28475
28476    if test x$support_xattr = xyes -a $have_xattr != yes; then
28477       as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
28478   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
28479    else
28480       if test $have_xattr = yes; then
28481
28482 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
28483
28484       fi
28485    fi
28486 fi
28487
28488 PTHREAD_LIB=""
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
28490 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
28491 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
28492   $as_echo_n "(cached) " >&6
28493 else
28494   ac_check_lib_save_LIBS=$LIBS
28495 LIBS="-lpthread  $LIBS"
28496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28497 /* end confdefs.h.  */
28498
28499 /* Override any GCC internal prototype to avoid an error.
28500    Use char because int might match the return type of a GCC
28501    builtin and then its argument prototype would still apply.  */
28502 #ifdef __cplusplus
28503 extern "C"
28504 #endif
28505 char pthread_create ();
28506 int
28507 main ()
28508 {
28509 return pthread_create ();
28510   ;
28511   return 0;
28512 }
28513 _ACEOF
28514 if ac_fn_c_try_link "$LINENO"; then :
28515   ac_cv_lib_pthread_pthread_create=yes
28516 else
28517   ac_cv_lib_pthread_pthread_create=no
28518 fi
28519 rm -f core conftest.err conftest.$ac_objext \
28520     conftest$ac_exeext conftest.$ac_ext
28521 LIBS=$ac_check_lib_save_LIBS
28522 fi
28523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
28524 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
28525 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
28526   PTHREAD_LIB="-lpthread"
28527 else
28528
28529        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
28530 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
28531 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
28532   $as_echo_n "(cached) " >&6
28533 else
28534   ac_check_lib_save_LIBS=$LIBS
28535 LIBS="-lpthreads  $LIBS"
28536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28537 /* end confdefs.h.  */
28538
28539 /* Override any GCC internal prototype to avoid an error.
28540    Use char because int might match the return type of a GCC
28541    builtin and then its argument prototype would still apply.  */
28542 #ifdef __cplusplus
28543 extern "C"
28544 #endif
28545 char pthread_create ();
28546 int
28547 main ()
28548 {
28549 return pthread_create ();
28550   ;
28551   return 0;
28552 }
28553 _ACEOF
28554 if ac_fn_c_try_link "$LINENO"; then :
28555   ac_cv_lib_pthreads_pthread_create=yes
28556 else
28557   ac_cv_lib_pthreads_pthread_create=no
28558 fi
28559 rm -f core conftest.err conftest.$ac_objext \
28560     conftest$ac_exeext conftest.$ac_ext
28561 LIBS=$ac_check_lib_save_LIBS
28562 fi
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
28564 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
28565 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
28566   PTHREAD_LIB="-lpthreads"
28567 else
28568
28569               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
28570 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
28571 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
28572   $as_echo_n "(cached) " >&6
28573 else
28574   ac_check_lib_save_LIBS=$LIBS
28575 LIBS="-lc_r  $LIBS"
28576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28577 /* end confdefs.h.  */
28578
28579 /* Override any GCC internal prototype to avoid an error.
28580    Use char because int might match the return type of a GCC
28581    builtin and then its argument prototype would still apply.  */
28582 #ifdef __cplusplus
28583 extern "C"
28584 #endif
28585 char pthread_create ();
28586 int
28587 main ()
28588 {
28589 return pthread_create ();
28590   ;
28591   return 0;
28592 }
28593 _ACEOF
28594 if ac_fn_c_try_link "$LINENO"; then :
28595   ac_cv_lib_c_r_pthread_create=yes
28596 else
28597   ac_cv_lib_c_r_pthread_create=no
28598 fi
28599 rm -f core conftest.err conftest.$ac_objext \
28600     conftest$ac_exeext conftest.$ac_ext
28601 LIBS=$ac_check_lib_save_LIBS
28602 fi
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
28604 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
28605 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
28606   PTHREAD_LIB="-lc_r"
28607 else
28608
28609                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
28610 if test "x$ac_cv_func_pthread_create" = x""yes; then :
28611
28612 fi
28613
28614
28615
28616 fi
28617
28618
28619
28620 fi
28621
28622
28623
28624 fi
28625
28626
28627 for ac_header in sys/prctl.h sys/capability.h
28628 do :
28629   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28630 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28631 eval as_val=\$$as_ac_Header
28632    if test "x$as_val" = x""yes; then :
28633   cat >>confdefs.h <<_ACEOF
28634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28635 _ACEOF
28636
28637 fi
28638
28639 done
28640
28641 for ac_func in prctl setreuid
28642 do :
28643   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28644 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28645 eval as_val=\$$as_ac_var
28646    if test "x$as_val" = x""yes; then :
28647   cat >>confdefs.h <<_ACEOF
28648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28649 _ACEOF
28650
28651 fi
28652 done
28653
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
28655 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
28656 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
28657   $as_echo_n "(cached) " >&6
28658 else
28659   ac_check_lib_save_LIBS=$LIBS
28660 LIBS="-lcap  $LIBS"
28661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28662 /* end confdefs.h.  */
28663
28664 /* Override any GCC internal prototype to avoid an error.
28665    Use char because int might match the return type of a GCC
28666    builtin and then its argument prototype would still apply.  */
28667 #ifdef __cplusplus
28668 extern "C"
28669 #endif
28670 char cap_set_proc ();
28671 int
28672 main ()
28673 {
28674 return cap_set_proc ();
28675   ;
28676   return 0;
28677 }
28678 _ACEOF
28679 if ac_fn_c_try_link "$LINENO"; then :
28680   ac_cv_lib_cap_cap_set_proc=yes
28681 else
28682   ac_cv_lib_cap_cap_set_proc=no
28683 fi
28684 rm -f core conftest.err conftest.$ac_objext \
28685     conftest$ac_exeext conftest.$ac_ext
28686 LIBS=$ac_check_lib_save_LIBS
28687 fi
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
28689 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
28690 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
28691   CAP_LIBS="-lcap"
28692 else
28693   CAP_LIBS=
28694 fi
28695
28696 if test x$CAP_LIBS = x-lcap; then
28697
28698 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
28699
28700 fi
28701
28702
28703
28704 $as_echo "#define FDLIBS 1" >>confdefs.h
28705
28706
28707 CFLAGS=${CFLAGS--O}
28708
28709 if test x$have_gcc = xyes ; then
28710    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28711    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
28712 fi
28713 LDFLAGS=${LDFLAGS--O}
28714 DB_LIBS="${SQL_LFLAGS}"
28715 CPPFLAGS="$CPPFLAGS"
28716 CFLAGS="$CFLAGS"
28717
28718
28719
28720
28721
28722
28723
28724
28725
28726
28727
28728
28729
28730
28731
28732
28733 OBJLIST=
28734
28735
28736 lld="lld"
28737 llu="llu"
28738
28739 WCFLAGS=
28740 WLDFLAGS=
28741
28742 PFILES="platforms/Makefile"
28743 PSCMD="ps -e"
28744 WIN32=
28745 MACOSX=
28746
28747 hostname=`uname -n | cut -d '.' -f 1`
28748 if test x${hostname} = x ; then
28749    hostname="localhost"
28750 fi
28751 ping -c 1 $hostname 2>/dev/null 1>/dev/null
28752 if test ! $? = 0; then
28753   hostname="localhost"
28754 fi
28755
28756 case "$DISTNAME" in
28757 aix)
28758    DISTVER=`uname -r`
28759    PSCMD="ps -e -o pid,comm"
28760    PFILES="${PFILES} \
28761       platforms/aix/Makefile"
28762    TAPEDRIVE="/dev/rmt0.1"
28763   ;;
28764 alpha)
28765    DISTVER=`uname -r`
28766    PTHREAD_LIB="-lpthread -lexc"
28767    if test "${CC}" = "gcc" ; then
28768       lld="lld"
28769       llu="llu"
28770    else
28771       lld="ld"
28772       llu="lu"
28773    fi
28774    TAPEDRIVE="/dev/nrmt0"
28775   ;;
28776 bsdi)
28777    DISTVER=`uname -a |awk '{print $3}'`
28778    TAPEDRIVE="/dev/nrmt0"
28779    PTHREAD_LIB="-pthread"
28780    CFLAGS="${CFLAGS} -pthread"
28781    PSCMD="ps -ax -o pid,command"
28782    lld="qd"
28783    llu="qu"
28784    PFILES="${PFILES} \
28785        platforms/bsdi/Makefile \
28786        platforms/bsdi/bacula-fd \
28787        platforms/bsdi/bacula-sd \
28788        platforms/bsdi/bacula-dir"
28789    largefile_support="yes"
28790   ;;
28791 cygwin)
28792    DISTVER=`uname -a |awk '{print $3}'`
28793    TAPEDRIVE="/dev/nrst0"
28794    WIN32=win32
28795    WCFLAGS="-mwindows"
28796    WLDFLAGS="-mwindows"
28797   ;;
28798 darwin)
28799    DISTVER=`uname -r`
28800    TAPEDRIVE="/dev/nst0"
28801    PSCMD="ps -e -o pid,command"
28802    MACOSX=macosx
28803    PFILES="${PFILES} \
28804       platforms/darwin/Makefile"
28805   ;;
28806 osx)
28807    DISTVER=`uname -r`
28808    TAPEDRIVE="/dev/nst0"
28809    PSCMD="ps -e -o pid,command"
28810    MACOSX=macosx
28811    PFILES="${PFILES} \
28812       platforms/osx/Makefile"
28813   ;;
28814 debian)
28815    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
28816       DISTNAME="ubuntu"
28817    fi
28818    DISTVER=`cat /etc/debian_version`
28819    if test -f /etc/lsb-release ; then
28820       . /etc/lsb-release
28821       if test "x$DISTRIB_ID" != "x" ; then
28822          DISTNAME=$DISTRIB_ID
28823       fi
28824       if test "x$DISTRIB_RELEASE" != "x" ; then
28825          DISTVER=$DISTRIB_RELEASE
28826       fi
28827    fi
28828    if test "$DISTNAME" = "Ubuntu" ; then
28829       DISTNAME="ubuntu"
28830    fi
28831    TAPEDRIVE="/dev/nst0"
28832    PSCMD="ps -e -o pid,command"
28833    if test "$DISTNAME" = "ubuntu" ; then
28834       PFILES="${PFILES} \
28835          platforms/ubuntu/Makefile \
28836          platforms/ubuntu/bacula-fd \
28837          platforms/ubuntu/bacula-sd \
28838          platforms/ubuntu/bacula-dir"
28839    else
28840       PFILES="${PFILES} \
28841          platforms/debian/Makefile \
28842          platforms/debian/bacula-fd \
28843          platforms/debian/bacula-sd \
28844          platforms/debian/bacula-dir"
28845    fi
28846   ;;
28847 freebsd)
28848    DISTVER=`uname -a |awk '{print $3}'`
28849    VER=`echo $DISTVER | cut -c 1`
28850    if test x$VER = x4 ; then
28851       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
28852       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
28853    fi
28854    lld="qd"
28855    llu="qu"
28856    TAPEDRIVE="/dev/nrsa0"
28857    PSCMD="ps -ax -o pid,command"
28858    PFILES="${PFILES} \
28859        platforms/freebsd/Makefile \
28860        platforms/freebsd/bacula-fd \
28861        platforms/freebsd/bacula-sd \
28862        platforms/freebsd/bacula-dir"
28863    largefile_support="yes"
28864   ;;
28865 hpux)
28866    PSCMD="UNIX95=1; ps -e -o pid,comm"
28867    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
28868    DISTVER=`uname -r`
28869    TAPEDRIVE="/dev/rmt/0hnb"
28870    PTHREAD_LIB="-lpthread"
28871    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
28872
28873   ;;
28874 irix)
28875    DISTVER=`uname -r`
28876    TAPEDRIVE="/dev/rmt/0cbn"
28877    PSCMD="ps -e -o pid,comm"
28878    PFILES="${PFILES} \
28879        platforms/irix/Makefile \
28880        platforms/irix/bacula-fd \
28881        platforms/irix/bacula-sd \
28882        platforms/irix/bacula-dir"
28883   ;;
28884 netbsd)
28885    DISTVER=`uname -a |awk '{print $3}'`
28886    lld="qd"
28887    llu="qu"
28888    TAPEDRIVE="/dev/nrst0"
28889    PSCMD="ps -ax -o pid,command"
28890    PTHREAD_LIB="-pthread"
28891    CFLAGS="${CFLAGS} -pthread"
28892   ;;
28893 openbsd)
28894    DISTVER=`uname -a |awk '{print $3}'`
28895    lld="qd"
28896    llu="qu"
28897    TAPEDRIVE="/dev/nrst0"
28898    PSCMD="ps -ax -o pid,command"
28899    PTHREAD_LIB="-pthread"
28900    CFLAGS="${CFLAGS} -pthread"
28901    PFILES="${PFILES} \
28902        platforms/openbsd/Makefile \
28903        platforms/openbsd/bacula-fd \
28904        platforms/openbsd/bacula-sd \
28905        platforms/openbsd/bacula-dir"
28906   ;;
28907 redhat)
28908    if test -f /etc/whitebox-release ; then
28909       f=/etc/whitebox-release
28910    else
28911       f=/etc/redhat-release
28912    fi
28913    if test `cat $f | grep release |\
28914          cut -f 3 -d ' '`x = "Enterprise"x ; then
28915       DISTVER="Enterprise "`cat $f | grep release |\
28916           cut -f 6 -d ' '`
28917    else
28918        DISTVER=`cat /etc/redhat-release | grep release |\
28919            cut -f 5 -d ' '`
28920    fi
28921    TAPEDRIVE="/dev/nst0"
28922    PSCMD="ps -e -o pid,command"
28923    PFILES="${PFILES} \
28924        platforms/redhat/Makefile \
28925        platforms/redhat/bacula-fd \
28926        platforms/redhat/bacula-sd \
28927        platforms/redhat/bacula-dir
28928        "
28929   ;;
28930 mandrake)
28931    DISTVER=`cat /etc/mandrake-release | grep release |\
28932       cut -f 5 -d ' '`
28933    TAPEDRIVE="/dev/nst0"
28934    PSCMD="ps -e -o pid,command"
28935    PFILES="${PFILES} \
28936        platforms/mandrake/Makefile \
28937        platforms/mandrake/bacula-fd \
28938        platforms/mandrake/bacula-sd \
28939        platforms/mandrake/bacula-dir \
28940        platforms/mandrake/bacula.spec \
28941        "
28942   ;;
28943 gentoo)
28944    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
28945    TAPEDRIVE="/dev/nst0"
28946    PSCMD="ps -e -o pid,command"
28947    PFILES="${PFILES} \
28948        platforms/gentoo/Makefile \
28949     platforms/gentoo/bacula-init \
28950        platforms/gentoo/bacula-fd \
28951        platforms/gentoo/bacula-sd \
28952        platforms/gentoo/bacula-dir"
28953   ;;
28954 slackware)
28955    DISTVER=`cat /etc/slackware-version`
28956    TAPEDRIVE="/dev/nst0"
28957    PSCMD="ps -e -o pid,command"
28958    PFILES="${PFILES} \
28959        platforms/slackware/Makefile \
28960        platforms/slackware/rc.bacula-fd \
28961        platforms/slackware/rc.bacula-sd \
28962        platforms/slackware/rc.bacula-dir\
28963        platforms/slackware/functions.bacula"
28964   ;;
28965 solaris)
28966    DISTVER=`uname -r`
28967    TAPEDRIVE="/dev/rmt/0cbn"
28968    PSCMD="ps -e -o pid,comm"
28969    PFILES="${PFILES} \
28970        platforms/solaris/Makefile \
28971        platforms/solaris/bacula-fd \
28972        platforms/solaris/bacula-sd \
28973        platforms/solaris/bacula-dir"
28974    if test x$DISTVER = x5.6 ; then
28975        $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
28976
28977    fi
28978    LIBS="$LIBS -lresolv"
28979   ;;
28980 suse)
28981    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
28982        cut -f 3 -d ' '`
28983    TAPEDRIVE="/dev/nst0"
28984    PSCMD="ps -e -o pid,command"
28985    PFILES="${PFILES} \
28986        platforms/suse/Makefile \
28987        platforms/suse/bacula-fd \
28988        platforms/suse/bacula-sd \
28989        platforms/suse/bacula-dir \
28990        platforms/suse/bacula \
28991        platforms/suse/bacula.spec"
28992   ;;
28993 suse5)
28994    DISTNAME=suse
28995    DISTVER=5.x
28996    TAPEDRIVE="/dev/nst0"
28997    PSCMD="ps -e -o pid,command"
28998    PFILES="${PFILES} \
28999        platforms/suse/Makefile \
29000        platforms/suse/bacula-fd \
29001        platforms/suse/bacula-sd \
29002        platforms/suse/bacula-dir"
29003   ;;
29004 unknown)
29005    DISTVER=unknown
29006    TAPEDRIVE="/dev/nst0"
29007   ;;
29008 *)
29009   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29010   ;;
29011 esac
29012
29013
29014
29015 LIBS="$PTHREAD_LIB $LIBS"
29016
29017 cat >>confdefs.h <<_ACEOF
29018 #define lld "$lld"
29019 _ACEOF
29020
29021 cat >>confdefs.h <<_ACEOF
29022 #define llu "$llu"
29023 _ACEOF
29024
29025
29026
29027
29028
29029
29030
29031
29032 MCOMMON=./autoconf/Make.common
29033
29034
29035 if test "x${subsysdir}" = "x${sbindir}" ; then
29036    echo " "
29037    echo " "
29038    echo "You have set both --sbindir and --with-subsys-dir"
29039    echo "  equal to: ${subsysdir} "
29040    echo "This is not permitted. Please reconfigure."
29041    echo " "
29042    echo "Aborting configuration ..."
29043    echo " "
29044    echo " "
29045    exit 1
29046 fi
29047
29048 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole 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/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 src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database 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 examples/nagios/check_bacula/Makefile $PFILES"
29049
29050 ac_config_commands="$ac_config_commands default"
29051
29052 cat >confcache <<\_ACEOF
29053 # This file is a shell script that caches the results of configure
29054 # tests run on this system so they can be shared between configure
29055 # scripts and configure runs, see configure's option --config-cache.
29056 # It is not useful on other systems.  If it contains results you don't
29057 # want to keep, you may remove or edit it.
29058 #
29059 # config.status only pays attention to the cache file if you give it
29060 # the --recheck option to rerun configure.
29061 #
29062 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29063 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29064 # following values.
29065
29066 _ACEOF
29067
29068 # The following way of writing the cache mishandles newlines in values,
29069 # but we know of no workaround that is simple, portable, and efficient.
29070 # So, we kill variables containing newlines.
29071 # Ultrix sh set writes to stderr and can't be redirected directly,
29072 # and sets the high bit in the cache file unless we assign to the vars.
29073 (
29074   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29075     eval ac_val=\$$ac_var
29076     case $ac_val in #(
29077     *${as_nl}*)
29078       case $ac_var in #(
29079       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29081       esac
29082       case $ac_var in #(
29083       _ | IFS | as_nl) ;; #(
29084       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29085       *) { eval $ac_var=; unset $ac_var;} ;;
29086       esac ;;
29087     esac
29088   done
29089
29090   (set) 2>&1 |
29091     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29092     *${as_nl}ac_space=\ *)
29093       # `set' does not quote correctly, so add quotes: double-quote
29094       # substitution turns \\\\ into \\, and sed turns \\ into \.
29095       sed -n \
29096         "s/'/'\\\\''/g;
29097           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29098       ;; #(
29099     *)
29100       # `set' quotes correctly as required by POSIX, so do not add quotes.
29101       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29102       ;;
29103     esac |
29104     sort
29105 ) |
29106   sed '
29107      /^ac_cv_env_/b end
29108      t clear
29109      :clear
29110      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29111      t end
29112      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29113      :end' >>confcache
29114 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29115   if test -w "$cache_file"; then
29116     test "x$cache_file" != "x/dev/null" &&
29117       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29118 $as_echo "$as_me: updating cache $cache_file" >&6;}
29119     cat confcache >$cache_file
29120   else
29121     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29122 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29123   fi
29124 fi
29125 rm -f confcache
29126
29127 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29128 # Let make expand exec_prefix.
29129 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29130
29131 DEFS=-DHAVE_CONFIG_H
29132
29133 ac_libobjs=
29134 ac_ltlibobjs=
29135 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29136   # 1. Remove the extension, and $U if already installed.
29137   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29138   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29139   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29140   #    will be set to the directory where LIBOBJS objects are built.
29141   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29142   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29143 done
29144 LIBOBJS=$ac_libobjs
29145
29146 LTLIBOBJS=$ac_ltlibobjs
29147
29148
29149
29150 : ${CONFIG_STATUS=./config.status}
29151 ac_write_fail=0
29152 ac_clean_files_save=$ac_clean_files
29153 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29155 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29156 as_write_fail=0
29157 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29158 #! $SHELL
29159 # Generated by $as_me.
29160 # Run this file to recreate the current configuration.
29161 # Compiler output produced by configure, useful for debugging
29162 # configure, is in config.log if it exists.
29163
29164 debug=false
29165 ac_cs_recheck=false
29166 ac_cs_silent=false
29167
29168 SHELL=\${CONFIG_SHELL-$SHELL}
29169 export SHELL
29170 _ASEOF
29171 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29172 ## -------------------- ##
29173 ## M4sh Initialization. ##
29174 ## -------------------- ##
29175
29176 # Be more Bourne compatible
29177 DUALCASE=1; export DUALCASE # for MKS sh
29178 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29179   emulate sh
29180   NULLCMD=:
29181   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29182   # is contrary to our usage.  Disable this feature.
29183   alias -g '${1+"$@"}'='"$@"'
29184   setopt NO_GLOB_SUBST
29185 else
29186   case `(set -o) 2>/dev/null` in #(
29187   *posix*) :
29188     set -o posix ;; #(
29189   *) :
29190      ;;
29191 esac
29192 fi
29193
29194
29195 as_nl='
29196 '
29197 export as_nl
29198 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29199 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29200 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29201 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29202 # Prefer a ksh shell builtin over an external printf program on Solaris,
29203 # but without wasting forks for bash or zsh.
29204 if test -z "$BASH_VERSION$ZSH_VERSION" \
29205     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29206   as_echo='print -r --'
29207   as_echo_n='print -rn --'
29208 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29209   as_echo='printf %s\n'
29210   as_echo_n='printf %s'
29211 else
29212   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29213     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29214     as_echo_n='/usr/ucb/echo -n'
29215   else
29216     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29217     as_echo_n_body='eval
29218       arg=$1;
29219       case $arg in #(
29220       *"$as_nl"*)
29221         expr "X$arg" : "X\\(.*\\)$as_nl";
29222         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29223       esac;
29224       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29225     '
29226     export as_echo_n_body
29227     as_echo_n='sh -c $as_echo_n_body as_echo'
29228   fi
29229   export as_echo_body
29230   as_echo='sh -c $as_echo_body as_echo'
29231 fi
29232
29233 # The user is always right.
29234 if test "${PATH_SEPARATOR+set}" != set; then
29235   PATH_SEPARATOR=:
29236   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29237     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29238       PATH_SEPARATOR=';'
29239   }
29240 fi
29241
29242
29243 # IFS
29244 # We need space, tab and new line, in precisely that order.  Quoting is
29245 # there to prevent editors from complaining about space-tab.
29246 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29247 # splitting by setting IFS to empty value.)
29248 IFS=" ""        $as_nl"
29249
29250 # Find who we are.  Look in the path if we contain no directory separator.
29251 case $0 in #((
29252   *[\\/]* ) as_myself=$0 ;;
29253   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29254 for as_dir in $PATH
29255 do
29256   IFS=$as_save_IFS
29257   test -z "$as_dir" && as_dir=.
29258     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29259   done
29260 IFS=$as_save_IFS
29261
29262      ;;
29263 esac
29264 # We did not find ourselves, most probably we were run as `sh COMMAND'
29265 # in which case we are not to be found in the path.
29266 if test "x$as_myself" = x; then
29267   as_myself=$0
29268 fi
29269 if test ! -f "$as_myself"; then
29270   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29271   exit 1
29272 fi
29273
29274 # Unset variables that we do not need and which cause bugs (e.g. in
29275 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29276 # suppresses any "Segmentation fault" message there.  '((' could
29277 # trigger a bug in pdksh 5.2.14.
29278 for as_var in BASH_ENV ENV MAIL MAILPATH
29279 do eval test x\${$as_var+set} = xset \
29280   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
29281 done
29282 PS1='$ '
29283 PS2='> '
29284 PS4='+ '
29285
29286 # NLS nuisances.
29287 LC_ALL=C
29288 export LC_ALL
29289 LANGUAGE=C
29290 export LANGUAGE
29291
29292 # CDPATH.
29293 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29294
29295
29296 # as_fn_error ERROR [LINENO LOG_FD]
29297 # ---------------------------------
29298 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29299 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29300 # script with status $?, using 1 if that was 0.
29301 as_fn_error ()
29302 {
29303   as_status=$?; test $as_status -eq 0 && as_status=1
29304   if test "$3"; then
29305     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
29306     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29307   fi
29308   $as_echo "$as_me: error: $1" >&2
29309   as_fn_exit $as_status
29310 } # as_fn_error
29311
29312
29313 # as_fn_set_status STATUS
29314 # -----------------------
29315 # Set $? to STATUS, without forking.
29316 as_fn_set_status ()
29317 {
29318   return $1
29319 } # as_fn_set_status
29320
29321 # as_fn_exit STATUS
29322 # -----------------
29323 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29324 as_fn_exit ()
29325 {
29326   set +e
29327   as_fn_set_status $1
29328   exit $1
29329 } # as_fn_exit
29330
29331 # as_fn_unset VAR
29332 # ---------------
29333 # Portably unset VAR.
29334 as_fn_unset ()
29335 {
29336   { eval $1=; unset $1;}
29337 }
29338 as_unset=as_fn_unset
29339 # as_fn_append VAR VALUE
29340 # ----------------------
29341 # Append the text in VALUE to the end of the definition contained in VAR. Take
29342 # advantage of any shell optimizations that allow amortized linear growth over
29343 # repeated appends, instead of the typical quadratic growth present in naive
29344 # implementations.
29345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
29346   eval 'as_fn_append ()
29347   {
29348     eval $1+=\$2
29349   }'
29350 else
29351   as_fn_append ()
29352   {
29353     eval $1=\$$1\$2
29354   }
29355 fi # as_fn_append
29356
29357 # as_fn_arith ARG...
29358 # ------------------
29359 # Perform arithmetic evaluation on the ARGs, and store the result in the
29360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29361 # must be portable across $(()) and expr.
29362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
29363   eval 'as_fn_arith ()
29364   {
29365     as_val=$(( $* ))
29366   }'
29367 else
29368   as_fn_arith ()
29369   {
29370     as_val=`expr "$@" || test $? -eq 1`
29371   }
29372 fi # as_fn_arith
29373
29374
29375 if expr a : '\(a\)' >/dev/null 2>&1 &&
29376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29377   as_expr=expr
29378 else
29379   as_expr=false
29380 fi
29381
29382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29383   as_basename=basename
29384 else
29385   as_basename=false
29386 fi
29387
29388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29389   as_dirname=dirname
29390 else
29391   as_dirname=false
29392 fi
29393
29394 as_me=`$as_basename -- "$0" ||
29395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29396          X"$0" : 'X\(//\)$' \| \
29397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29398 $as_echo X/"$0" |
29399     sed '/^.*\/\([^/][^/]*\)\/*$/{
29400             s//\1/
29401             q
29402           }
29403           /^X\/\(\/\/\)$/{
29404             s//\1/
29405             q
29406           }
29407           /^X\/\(\/\).*/{
29408             s//\1/
29409             q
29410           }
29411           s/.*/./; q'`
29412
29413 # Avoid depending upon Character Ranges.
29414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29417 as_cr_digits='0123456789'
29418 as_cr_alnum=$as_cr_Letters$as_cr_digits
29419
29420 ECHO_C= ECHO_N= ECHO_T=
29421 case `echo -n x` in #(((((
29422 -n*)
29423   case `echo 'xy\c'` in
29424   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29425   xy)  ECHO_C='\c';;
29426   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29427        ECHO_T=' ';;
29428   esac;;
29429 *)
29430   ECHO_N='-n';;
29431 esac
29432
29433 rm -f conf$$ conf$$.exe conf$$.file
29434 if test -d conf$$.dir; then
29435   rm -f conf$$.dir/conf$$.file
29436 else
29437   rm -f conf$$.dir
29438   mkdir conf$$.dir 2>/dev/null
29439 fi
29440 if (echo >conf$$.file) 2>/dev/null; then
29441   if ln -s conf$$.file conf$$ 2>/dev/null; then
29442     as_ln_s='ln -s'
29443     # ... but there are two gotchas:
29444     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29445     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29446     # In both cases, we have to default to `cp -p'.
29447     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29448       as_ln_s='cp -p'
29449   elif ln conf$$.file conf$$ 2>/dev/null; then
29450     as_ln_s=ln
29451   else
29452     as_ln_s='cp -p'
29453   fi
29454 else
29455   as_ln_s='cp -p'
29456 fi
29457 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29458 rmdir conf$$.dir 2>/dev/null
29459
29460
29461 # as_fn_mkdir_p
29462 # -------------
29463 # Create "$as_dir" as a directory, including parents if necessary.
29464 as_fn_mkdir_p ()
29465 {
29466
29467   case $as_dir in #(
29468   -*) as_dir=./$as_dir;;
29469   esac
29470   test -d "$as_dir" || eval $as_mkdir_p || {
29471     as_dirs=
29472     while :; do
29473       case $as_dir in #(
29474       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29475       *) as_qdir=$as_dir;;
29476       esac
29477       as_dirs="'$as_qdir' $as_dirs"
29478       as_dir=`$as_dirname -- "$as_dir" ||
29479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29480          X"$as_dir" : 'X\(//\)[^/]' \| \
29481          X"$as_dir" : 'X\(//\)$' \| \
29482          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29483 $as_echo X"$as_dir" |
29484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29485             s//\1/
29486             q
29487           }
29488           /^X\(\/\/\)[^/].*/{
29489             s//\1/
29490             q
29491           }
29492           /^X\(\/\/\)$/{
29493             s//\1/
29494             q
29495           }
29496           /^X\(\/\).*/{
29497             s//\1/
29498             q
29499           }
29500           s/.*/./; q'`
29501       test -d "$as_dir" && break
29502     done
29503     test -z "$as_dirs" || eval "mkdir $as_dirs"
29504   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
29505
29506
29507 } # as_fn_mkdir_p
29508 if mkdir -p . 2>/dev/null; then
29509   as_mkdir_p='mkdir -p "$as_dir"'
29510 else
29511   test -d ./-p && rmdir ./-p
29512   as_mkdir_p=false
29513 fi
29514
29515 if test -x / >/dev/null 2>&1; then
29516   as_test_x='test -x'
29517 else
29518   if ls -dL / >/dev/null 2>&1; then
29519     as_ls_L_option=L
29520   else
29521     as_ls_L_option=
29522   fi
29523   as_test_x='
29524     eval sh -c '\''
29525       if test -d "$1"; then
29526         test -d "$1/.";
29527       else
29528         case $1 in #(
29529         -*)set "./$1";;
29530         esac;
29531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29532         ???[sx]*):;;*)false;;esac;fi
29533     '\'' sh
29534   '
29535 fi
29536 as_executable_p=$as_test_x
29537
29538 # Sed expression to map a string onto a valid CPP name.
29539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29540
29541 # Sed expression to map a string onto a valid variable name.
29542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29543
29544
29545 exec 6>&1
29546 ## ----------------------------------- ##
29547 ## Main body of $CONFIG_STATUS script. ##
29548 ## ----------------------------------- ##
29549 _ASEOF
29550 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29551
29552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29553 # Save the log message, to keep $0 and so on meaningful, and to
29554 # report actual input values of CONFIG_FILES etc. instead of their
29555 # values after options handling.
29556 ac_log="
29557 This file was extended by $as_me, which was
29558 generated by GNU Autoconf 2.65.  Invocation command line was
29559
29560   CONFIG_FILES    = $CONFIG_FILES
29561   CONFIG_HEADERS  = $CONFIG_HEADERS
29562   CONFIG_LINKS    = $CONFIG_LINKS
29563   CONFIG_COMMANDS = $CONFIG_COMMANDS
29564   $ $0 $@
29565
29566 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29567 "
29568
29569 _ACEOF
29570
29571 case $ac_config_files in *"
29572 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29573 esac
29574
29575 case $ac_config_headers in *"
29576 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29577 esac
29578
29579
29580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29581 # Files that config.status was made for.
29582 config_files="$ac_config_files"
29583 config_headers="$ac_config_headers"
29584 config_commands="$ac_config_commands"
29585
29586 _ACEOF
29587
29588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29589 ac_cs_usage="\
29590 \`$as_me' instantiates files and other configuration actions
29591 from templates according to the current configuration.  Unless the files
29592 and actions are specified as TAGs, all are instantiated by default.
29593
29594 Usage: $0 [OPTION]... [TAG]...
29595
29596   -h, --help       print this help, then exit
29597   -V, --version    print version number and configuration settings, then exit
29598       --config     print configuration, then exit
29599   -q, --quiet, --silent
29600                    do not print progress messages
29601   -d, --debug      don't remove temporary files
29602       --recheck    update $as_me by reconfiguring in the same conditions
29603       --file=FILE[:TEMPLATE]
29604                    instantiate the configuration file FILE
29605       --header=FILE[:TEMPLATE]
29606                    instantiate the configuration header FILE
29607
29608 Configuration files:
29609 $config_files
29610
29611 Configuration headers:
29612 $config_headers
29613
29614 Configuration commands:
29615 $config_commands
29616
29617 Report bugs to the package provider."
29618
29619 _ACEOF
29620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29621 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29622 ac_cs_version="\\
29623 config.status
29624 configured by $0, generated by GNU Autoconf 2.65,
29625   with options \\"\$ac_cs_config\\"
29626
29627 Copyright (C) 2009 Free Software Foundation, Inc.
29628 This config.status script is free software; the Free Software Foundation
29629 gives unlimited permission to copy, distribute and modify it."
29630
29631 ac_pwd='$ac_pwd'
29632 srcdir='$srcdir'
29633 INSTALL='$INSTALL'
29634 AWK='$AWK'
29635 test -n "\$AWK" || AWK=awk
29636 _ACEOF
29637
29638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29639 # The default lists apply if the user does not specify any file.
29640 ac_need_defaults=:
29641 while test $# != 0
29642 do
29643   case $1 in
29644   --*=*)
29645     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29646     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29647     ac_shift=:
29648     ;;
29649   *)
29650     ac_option=$1
29651     ac_optarg=$2
29652     ac_shift=shift
29653     ;;
29654   esac
29655
29656   case $ac_option in
29657   # Handling of the options.
29658   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29659     ac_cs_recheck=: ;;
29660   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29661     $as_echo "$ac_cs_version"; exit ;;
29662   --config | --confi | --conf | --con | --co | --c )
29663     $as_echo "$ac_cs_config"; exit ;;
29664   --debug | --debu | --deb | --de | --d | -d )
29665     debug=: ;;
29666   --file | --fil | --fi | --f )
29667     $ac_shift
29668     case $ac_optarg in
29669     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29670     esac
29671     as_fn_append CONFIG_FILES " '$ac_optarg'"
29672     ac_need_defaults=false;;
29673   --header | --heade | --head | --hea )
29674     $ac_shift
29675     case $ac_optarg in
29676     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29677     esac
29678     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29679     ac_need_defaults=false;;
29680   --he | --h)
29681     # Conflict between --help and --header
29682     as_fn_error "ambiguous option: \`$1'
29683 Try \`$0 --help' for more information.";;
29684   --help | --hel | -h )
29685     $as_echo "$ac_cs_usage"; exit ;;
29686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29687   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29688     ac_cs_silent=: ;;
29689
29690   # This is an error.
29691   -*) as_fn_error "unrecognized option: \`$1'
29692 Try \`$0 --help' for more information." ;;
29693
29694   *) as_fn_append ac_config_targets " $1"
29695      ac_need_defaults=false ;;
29696
29697   esac
29698   shift
29699 done
29700
29701 ac_configure_extra_args=
29702
29703 if $ac_cs_silent; then
29704   exec 6>/dev/null
29705   ac_configure_extra_args="$ac_configure_extra_args --silent"
29706 fi
29707
29708 _ACEOF
29709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29710 if \$ac_cs_recheck; then
29711   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29712   shift
29713   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29714   CONFIG_SHELL='$SHELL'
29715   export CONFIG_SHELL
29716   exec "\$@"
29717 fi
29718
29719 _ACEOF
29720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29721 exec 5>>config.log
29722 {
29723   echo
29724   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29725 ## Running $as_me. ##
29726 _ASBOX
29727   $as_echo "$ac_log"
29728 } >&5
29729
29730 _ACEOF
29731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29732 #
29733 # INIT-COMMANDS
29734 #
29735
29736
29737 # The HP-UX ksh and POSIX shell print the target directory to stdout
29738 # if CDPATH is set.
29739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29740
29741 sed_quote_subst='$sed_quote_subst'
29742 double_quote_subst='$double_quote_subst'
29743 delay_variable_subst='$delay_variable_subst'
29744 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29745 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29746 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29747 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29748 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29749 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29750 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29751 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29752 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29753 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29754 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29755 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29756 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29757 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29758 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29759 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29760 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29761 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29762 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29763 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29764 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29765 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29766 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29767 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29768 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29769 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29770 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29771 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29772 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29773 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29774 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29775 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29776 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29777 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29778 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29779 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29780 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29781 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29782 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29783 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29784 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29785 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29786 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29787 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29788 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"`'
29789 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"`'
29790 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29791 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29792 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29793 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29794 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29795 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29796 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29797 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29798 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29799 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29800 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29801 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29802 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29803 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29804 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29805 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29806 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29807 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29808 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29809 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29810 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29811 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29812 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29813 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29814 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29815 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29816 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29817 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29818 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29819 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29820 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29821 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29822 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29823 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29824 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29825 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29826 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29827 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29828 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29829 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29830 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29831 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29832 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29833 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29834 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29835 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29836 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29837 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29838 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29839 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29840 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29841 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29842 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29843 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29844 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29845 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29846 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29847 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29848 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29849 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29850 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29851 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29852 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29853 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29854 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29855 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29856 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29857 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29858 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29859 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29860 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29861 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29862 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
29863 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29864 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29865 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29866 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29867 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29868 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29869 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29870 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29871 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29872 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29873 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29874 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29875 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29876 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29877 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29878 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29879 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29880 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29881 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29882 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29883 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29884 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29885 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29886 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29887 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29888 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29889 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29890 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29891 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29892 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29893 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29894 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29895 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29896 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29897 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29898 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29899 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29900 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29901 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29902 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29903 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29904 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29905 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29906 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29907 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29908 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29909 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29910 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29911 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29912 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29913 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29914 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29915
29916 LTCC='$LTCC'
29917 LTCFLAGS='$LTCFLAGS'
29918 compiler='$compiler_DEFAULT'
29919
29920 # Quote evaled strings.
29921 for var in SED \
29922 GREP \
29923 EGREP \
29924 FGREP \
29925 LD \
29926 NM \
29927 LN_S \
29928 lt_SP2NL \
29929 lt_NL2SP \
29930 reload_flag \
29931 OBJDUMP \
29932 deplibs_check_method \
29933 file_magic_cmd \
29934 AR \
29935 AR_FLAGS \
29936 STRIP \
29937 RANLIB \
29938 CC \
29939 CFLAGS \
29940 compiler \
29941 lt_cv_sys_global_symbol_pipe \
29942 lt_cv_sys_global_symbol_to_cdecl \
29943 lt_cv_sys_global_symbol_to_c_name_address \
29944 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29945 SHELL \
29946 ECHO \
29947 lt_prog_compiler_no_builtin_flag \
29948 lt_prog_compiler_wl \
29949 lt_prog_compiler_pic \
29950 lt_prog_compiler_static \
29951 lt_cv_prog_compiler_c_o \
29952 need_locks \
29953 DSYMUTIL \
29954 NMEDIT \
29955 LIPO \
29956 OTOOL \
29957 OTOOL64 \
29958 shrext_cmds \
29959 export_dynamic_flag_spec \
29960 whole_archive_flag_spec \
29961 compiler_needs_object \
29962 with_gnu_ld \
29963 allow_undefined_flag \
29964 no_undefined_flag \
29965 hardcode_libdir_flag_spec \
29966 hardcode_libdir_flag_spec_ld \
29967 hardcode_libdir_separator \
29968 fix_srcfile_path \
29969 exclude_expsyms \
29970 include_expsyms \
29971 file_list_spec \
29972 variables_saved_for_relink \
29973 libname_spec \
29974 library_names_spec \
29975 soname_spec \
29976 finish_eval \
29977 old_striplib \
29978 striplib \
29979 compiler_lib_search_dirs \
29980 predep_objects \
29981 postdep_objects \
29982 predeps \
29983 postdeps \
29984 compiler_lib_search_path \
29985 LD_CXX \
29986 compiler_CXX \
29987 lt_prog_compiler_no_builtin_flag_CXX \
29988 lt_prog_compiler_wl_CXX \
29989 lt_prog_compiler_pic_CXX \
29990 lt_prog_compiler_static_CXX \
29991 lt_cv_prog_compiler_c_o_CXX \
29992 export_dynamic_flag_spec_CXX \
29993 whole_archive_flag_spec_CXX \
29994 compiler_needs_object_CXX \
29995 with_gnu_ld_CXX \
29996 allow_undefined_flag_CXX \
29997 no_undefined_flag_CXX \
29998 hardcode_libdir_flag_spec_CXX \
29999 hardcode_libdir_flag_spec_ld_CXX \
30000 hardcode_libdir_separator_CXX \
30001 fix_srcfile_path_CXX \
30002 exclude_expsyms_CXX \
30003 include_expsyms_CXX \
30004 file_list_spec_CXX \
30005 compiler_lib_search_dirs_CXX \
30006 predep_objects_CXX \
30007 postdep_objects_CXX \
30008 predeps_CXX \
30009 postdeps_CXX \
30010 compiler_lib_search_path_CXX; do
30011     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30012     *[\\\\\\\`\\"\\\$]*)
30013       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30014       ;;
30015     *)
30016       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30017       ;;
30018     esac
30019 done
30020
30021 # Double-quote double-evaled strings.
30022 for var in reload_cmds \
30023 old_postinstall_cmds \
30024 old_postuninstall_cmds \
30025 old_archive_cmds \
30026 extract_expsyms_cmds \
30027 old_archive_from_new_cmds \
30028 old_archive_from_expsyms_cmds \
30029 archive_cmds \
30030 archive_expsym_cmds \
30031 module_cmds \
30032 module_expsym_cmds \
30033 export_symbols_cmds \
30034 prelink_cmds \
30035 postinstall_cmds \
30036 postuninstall_cmds \
30037 finish_cmds \
30038 sys_lib_search_path_spec \
30039 sys_lib_dlsearch_path_spec \
30040 old_archive_cmds_CXX \
30041 old_archive_from_new_cmds_CXX \
30042 old_archive_from_expsyms_cmds_CXX \
30043 archive_cmds_CXX \
30044 archive_expsym_cmds_CXX \
30045 module_cmds_CXX \
30046 module_expsym_cmds_CXX \
30047 export_symbols_cmds_CXX \
30048 prelink_cmds_CXX; do
30049     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30050     *[\\\\\\\`\\"\\\$]*)
30051       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30052       ;;
30053     *)
30054       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30055       ;;
30056     esac
30057 done
30058
30059 # Fix-up fallback echo if it was mangled by the above quoting rules.
30060 case \$lt_ECHO in
30061 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30062   ;;
30063 esac
30064
30065 ac_aux_dir='$ac_aux_dir'
30066 xsi_shell='$xsi_shell'
30067 lt_shell_append='$lt_shell_append'
30068
30069 # See if we are running on zsh, and set the options which allow our
30070 # commands through without removal of \ escapes INIT.
30071 if test -n "\${ZSH_VERSION+set}" ; then
30072    setopt NO_GLOB_SUBST
30073 fi
30074
30075
30076     PACKAGE='$PACKAGE'
30077     VERSION='$VERSION'
30078     TIMESTAMP='$TIMESTAMP'
30079     RM='$RM'
30080     ofile='$ofile'
30081
30082
30083
30084
30085
30086 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30087     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30088     # from automake.
30089     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30090     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30091     LINGUAS="${LINGUAS-%UNSET%}"
30092
30093
30094 _ACEOF
30095
30096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30097
30098 # Handling of arguments.
30099 for ac_config_target in $ac_config_targets
30100 do
30101   case $ac_config_target in
30102     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30103     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30104     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30105     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30106     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30107     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30108     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30109     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30110     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30111     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30112     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30113     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30114     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30115     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30116     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30117     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30118     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30119     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30120     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30121     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30122     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30123     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30124     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30125     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30126     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30127     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30128     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30129     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30130     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30131     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30132     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30133     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30134     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30135     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30136     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30137     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30138     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30139     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30140     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30141     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30142     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30143     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30144     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30145     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30146     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30147     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30148     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30149     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30150     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30151     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30152     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30153     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30154     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30155     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30156     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30157     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30158     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30159     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30160     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30161     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30162     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30163     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30164     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30165     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30166     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30167     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30168     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30169     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30170     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30171     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30172     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30173     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30174     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30175     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30176     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30177     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30178     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30179     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30180     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30181     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30182     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30183     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30184     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30185     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30186     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30187     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30188     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30189     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30190     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30191     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30192     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30193     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30194     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30195     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30196     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30197     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30198     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30199     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30200     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30201     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30202     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30203     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30204     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30205     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30206     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30207     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30208     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30209     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30210     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30211     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30212     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30213
30214   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30215   esac
30216 done
30217
30218
30219 # If the user did not use the arguments to specify the items to instantiate,
30220 # then the envvar interface is used.  Set only those that are not.
30221 # We use the long form for the default assignment because of an extremely
30222 # bizarre bug on SunOS 4.1.3.
30223 if $ac_need_defaults; then
30224   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30225   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30226   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30227 fi
30228
30229 # Have a temporary directory for convenience.  Make it in the build tree
30230 # simply because there is no reason against having it here, and in addition,
30231 # creating and moving files from /tmp can sometimes cause problems.
30232 # Hook for its removal unless debugging.
30233 # Note that there is a small window in which the directory will not be cleaned:
30234 # after its creation but before its name has been assigned to `$tmp'.
30235 $debug ||
30236 {
30237   tmp=
30238   trap 'exit_status=$?
30239   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30240 ' 0
30241   trap 'as_fn_exit 1' 1 2 13 15
30242 }
30243 # Create a (secure) tmp directory for tmp files.
30244
30245 {
30246   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30247   test -n "$tmp" && test -d "$tmp"
30248 }  ||
30249 {
30250   tmp=./conf$$-$RANDOM
30251   (umask 077 && mkdir "$tmp")
30252 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30253
30254 # Set up the scripts for CONFIG_FILES section.
30255 # No need to generate them if there are no CONFIG_FILES.
30256 # This happens for instance with `./config.status config.h'.
30257 if test -n "$CONFIG_FILES"; then
30258
30259 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30260   ac_cs_awk_getline=:
30261   ac_cs_awk_pipe_init=
30262   ac_cs_awk_read_file='
30263       while ((getline aline < (F[key])) > 0)
30264         print(aline)
30265       close(F[key])'
30266   ac_cs_awk_pipe_fini=
30267 else
30268   ac_cs_awk_getline=false
30269   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30270   ac_cs_awk_read_file='
30271       print "|#_!!_#|"
30272       print "cat " F[key] " &&"
30273       '$ac_cs_awk_pipe_init
30274   # The final `:' finishes the AND list.
30275   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
30276 fi
30277 ac_cr=`echo X | tr X '\015'`
30278 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30279 # But we know of no other shell where ac_cr would be empty at this
30280 # point, so we can use a bashism as a fallback.
30281 if test "x$ac_cr" = x; then
30282   eval ac_cr=\$\'\\r\'
30283 fi
30284 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30285 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30286   ac_cs_awk_cr='\r'
30287 else
30288   ac_cs_awk_cr=$ac_cr
30289 fi
30290
30291 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30292 _ACEOF
30293
30294 # Create commands to substitute file output variables.
30295 {
30296   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30297   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30298   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
30299   echo "_ACAWK" &&
30300   echo "_ACEOF"
30301 } >conf$$files.sh &&
30302 . ./conf$$files.sh ||
30303   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30304 rm -f conf$$files.sh
30305
30306 {
30307   echo "cat >conf$$subs.awk <<_ACEOF" &&
30308   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30309   echo "_ACEOF"
30310 } >conf$$subs.sh ||
30311   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30312 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30313 ac_delim='%!_!# '
30314 for ac_last_try in false false false false false :; do
30315   . ./conf$$subs.sh ||
30316     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30317
30318   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30319   if test $ac_delim_n = $ac_delim_num; then
30320     break
30321   elif $ac_last_try; then
30322     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
30323   else
30324     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30325   fi
30326 done
30327 rm -f conf$$subs.sh
30328
30329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30330 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30331 _ACEOF
30332 sed -n '
30333 h
30334 s/^/S["/; s/!.*/"]=/
30335 p
30336 g
30337 s/^[^!]*!//
30338 :repl
30339 t repl
30340 s/'"$ac_delim"'$//
30341 t delim
30342 :nl
30343 h
30344 s/\(.\{148\}\)..*/\1/
30345 t more1
30346 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30347 p
30348 n
30349 b repl
30350 :more1
30351 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30352 p
30353 g
30354 s/.\{148\}//
30355 t nl
30356 :delim
30357 h
30358 s/\(.\{148\}\)..*/\1/
30359 t more2
30360 s/["\\]/\\&/g; s/^/"/; s/$/"/
30361 p
30362 b
30363 :more2
30364 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30365 p
30366 g
30367 s/.\{148\}//
30368 t delim
30369 ' <conf$$subs.awk | sed '
30370 /^[^""]/{
30371   N
30372   s/\n//
30373 }
30374 ' >>$CONFIG_STATUS || ac_write_fail=1
30375 rm -f conf$$subs.awk
30376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30377 _ACAWK
30378 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30379   for (key in S) S_is_set[key] = 1
30380   FS = "\a"
30381   \$ac_cs_awk_pipe_init
30382 }
30383 {
30384   line = $ 0
30385   nfields = split(line, field, "@")
30386   substed = 0
30387   len = length(field[1])
30388   for (i = 2; i < nfields; i++) {
30389     key = field[i]
30390     keylen = length(key)
30391     if (S_is_set[key]) {
30392       value = S[key]
30393       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30394       len += length(value) + length(field[++i])
30395       substed = 1
30396     } else
30397       len += 1 + keylen
30398   }
30399   if (nfields == 3 && !substed) {
30400     key = field[2]
30401     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
30402       \$ac_cs_awk_read_file
30403       next
30404     }
30405   }
30406   print line
30407 }
30408 \$ac_cs_awk_pipe_fini
30409 _ACAWK
30410 _ACEOF
30411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30412 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30413   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30414 else
30415   cat
30416 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30417   || as_fn_error "could not setup config files machinery" "$LINENO" 5
30418 _ACEOF
30419
30420 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30421 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30422 # trailing colons and then remove the whole line if VPATH becomes empty
30423 # (actually we leave an empty line to preserve line numbers).
30424 if test "x$srcdir" = x.; then
30425   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30426 s/:*\$(srcdir):*/:/
30427 s/:*\${srcdir}:*/:/
30428 s/:*@srcdir@:*/:/
30429 s/^\([^=]*=[     ]*\):*/\1/
30430 s/:*$//
30431 s/^[^=]*=[       ]*$//
30432 }'
30433 fi
30434
30435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30436 fi # test -n "$CONFIG_FILES"
30437
30438 # Set up the scripts for CONFIG_HEADERS section.
30439 # No need to generate them if there are no CONFIG_HEADERS.
30440 # This happens for instance with `./config.status Makefile'.
30441 if test -n "$CONFIG_HEADERS"; then
30442 cat >"$tmp/defines.awk" <<\_ACAWK ||
30443 BEGIN {
30444 _ACEOF
30445
30446 # Transform confdefs.h into an awk script `defines.awk', embedded as
30447 # here-document in config.status, that substitutes the proper values into
30448 # config.h.in to produce config.h.
30449
30450 # Create a delimiter string that does not exist in confdefs.h, to ease
30451 # handling of long lines.
30452 ac_delim='%!_!# '
30453 for ac_last_try in false false :; do
30454   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30455   if test -z "$ac_t"; then
30456     break
30457   elif $ac_last_try; then
30458     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
30459   else
30460     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30461   fi
30462 done
30463
30464 # For the awk script, D is an array of macro values keyed by name,
30465 # likewise P contains macro parameters if any.  Preserve backslash
30466 # newline sequences.
30467
30468 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30469 sed -n '
30470 s/.\{148\}/&'"$ac_delim"'/g
30471 t rset
30472 :rset
30473 s/^[     ]*#[    ]*define[       ][      ]*/ /
30474 t def
30475 d
30476 :def
30477 s/\\$//
30478 t bsnl
30479 s/["\\]/\\&/g
30480 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30481 D["\1"]=" \3"/p
30482 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30483 d
30484 :bsnl
30485 s/["\\]/\\&/g
30486 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30487 D["\1"]=" \3\\\\\\n"\\/p
30488 t cont
30489 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30490 t cont
30491 d
30492 :cont
30493 n
30494 s/.\{148\}/&'"$ac_delim"'/g
30495 t clear
30496 :clear
30497 s/\\$//
30498 t bsnlc
30499 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30500 d
30501 :bsnlc
30502 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30503 b cont
30504 ' <confdefs.h | sed '
30505 s/'"$ac_delim"'/"\\\
30506 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30507
30508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30509   for (key in D) D_is_set[key] = 1
30510   FS = "\a"
30511 }
30512 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30513   line = \$ 0
30514   split(line, arg, " ")
30515   if (arg[1] == "#") {
30516     defundef = arg[2]
30517     mac1 = arg[3]
30518   } else {
30519     defundef = substr(arg[1], 2)
30520     mac1 = arg[2]
30521   }
30522   split(mac1, mac2, "(") #)
30523   macro = mac2[1]
30524   prefix = substr(line, 1, index(line, defundef) - 1)
30525   if (D_is_set[macro]) {
30526     # Preserve the white space surrounding the "#".
30527     print prefix "define", macro P[macro] D[macro]
30528     next
30529   } else {
30530     # Replace #undef with comments.  This is necessary, for example,
30531     # in the case of _POSIX_SOURCE, which is predefined and required
30532     # on some systems where configure will not decide to define it.
30533     if (defundef == "undef") {
30534       print "/*", prefix defundef, macro, "*/"
30535       next
30536     }
30537   }
30538 }
30539 { print }
30540 _ACAWK
30541 _ACEOF
30542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30543   as_fn_error "could not setup config headers machinery" "$LINENO" 5
30544 fi # test -n "$CONFIG_HEADERS"
30545
30546
30547 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
30548 shift
30549 for ac_tag
30550 do
30551   case $ac_tag in
30552   :[FHLC]) ac_mode=$ac_tag; continue;;
30553   esac
30554   case $ac_mode$ac_tag in
30555   :[FHL]*:*);;
30556   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
30557   :[FH]-) ac_tag=-:-;;
30558   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30559   esac
30560   ac_save_IFS=$IFS
30561   IFS=:
30562   set x $ac_tag
30563   IFS=$ac_save_IFS
30564   shift
30565   ac_file=$1
30566   shift
30567
30568   case $ac_mode in
30569   :L) ac_source=$1;;
30570   :[FH])
30571     ac_file_inputs=
30572     for ac_f
30573     do
30574       case $ac_f in
30575       -) ac_f="$tmp/stdin";;
30576       *) # Look for the file first in the build tree, then in the source tree
30577          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30578          # because $ac_f cannot contain `:'.
30579          test -f "$ac_f" ||
30580            case $ac_f in
30581            [\\/$]*) false;;
30582            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30583            esac ||
30584            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30585       esac
30586       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30587       as_fn_append ac_file_inputs " '$ac_f'"
30588     done
30589
30590     # Let's still pretend it is `configure' which instantiates (i.e., don't
30591     # use $as_me), people would be surprised to read:
30592     #    /* config.h.  Generated by config.status.  */
30593     configure_input='Generated from '`
30594           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30595         `' by configure.'
30596     if test x"$ac_file" != x-; then
30597       configure_input="$ac_file.  $configure_input"
30598       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30599 $as_echo "$as_me: creating $ac_file" >&6;}
30600     fi
30601     # Neutralize special characters interpreted by sed in replacement strings.
30602     case $configure_input in #(
30603     *\&* | *\|* | *\\* )
30604        ac_sed_conf_input=`$as_echo "$configure_input" |
30605        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30606     *) ac_sed_conf_input=$configure_input;;
30607     esac
30608
30609     case $ac_tag in
30610     *:-:* | *:-) cat >"$tmp/stdin" \
30611       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30612     esac
30613     ;;
30614   esac
30615
30616   ac_dir=`$as_dirname -- "$ac_file" ||
30617 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30618          X"$ac_file" : 'X\(//\)[^/]' \| \
30619          X"$ac_file" : 'X\(//\)$' \| \
30620          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30621 $as_echo X"$ac_file" |
30622     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30623             s//\1/
30624             q
30625           }
30626           /^X\(\/\/\)[^/].*/{
30627             s//\1/
30628             q
30629           }
30630           /^X\(\/\/\)$/{
30631             s//\1/
30632             q
30633           }
30634           /^X\(\/\).*/{
30635             s//\1/
30636             q
30637           }
30638           s/.*/./; q'`
30639   as_dir="$ac_dir"; as_fn_mkdir_p
30640   ac_builddir=.
30641
30642 case "$ac_dir" in
30643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30644 *)
30645   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30646   # A ".." for each directory in $ac_dir_suffix.
30647   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30648   case $ac_top_builddir_sub in
30649   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30650   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30651   esac ;;
30652 esac
30653 ac_abs_top_builddir=$ac_pwd
30654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30655 # for backward compatibility:
30656 ac_top_builddir=$ac_top_build_prefix
30657
30658 case $srcdir in
30659   .)  # We are building in place.
30660     ac_srcdir=.
30661     ac_top_srcdir=$ac_top_builddir_sub
30662     ac_abs_top_srcdir=$ac_pwd ;;
30663   [\\/]* | ?:[\\/]* )  # Absolute name.
30664     ac_srcdir=$srcdir$ac_dir_suffix;
30665     ac_top_srcdir=$srcdir
30666     ac_abs_top_srcdir=$srcdir ;;
30667   *) # Relative name.
30668     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30669     ac_top_srcdir=$ac_top_build_prefix$srcdir
30670     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30671 esac
30672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30673
30674
30675   case $ac_mode in
30676   :F)
30677   #
30678   # CONFIG_FILE
30679   #
30680
30681   case $INSTALL in
30682   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30683   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30684   esac
30685 _ACEOF
30686
30687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30688 # If the template does not know about datarootdir, expand it.
30689 # FIXME: This hack should be removed a few years after 2.60.
30690 ac_datarootdir_hack=; ac_datarootdir_seen=
30691 ac_sed_dataroot='
30692 /datarootdir/ {
30693   p
30694   q
30695 }
30696 /@datadir@/p
30697 /@docdir@/p
30698 /@infodir@/p
30699 /@localedir@/p
30700 /@mandir@/p'
30701 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30702 *datarootdir*) ac_datarootdir_seen=yes;;
30703 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30704   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30705 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30706 _ACEOF
30707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30708   ac_datarootdir_hack='
30709   s&@datadir@&$datadir&g
30710   s&@docdir@&$docdir&g
30711   s&@infodir@&$infodir&g
30712   s&@localedir@&$localedir&g
30713   s&@mandir@&$mandir&g
30714   s&\\\${datarootdir}&$datarootdir&g' ;;
30715 esac
30716 _ACEOF
30717
30718 # Neutralize VPATH when `$srcdir' = `.'.
30719 # Shell code in configure.ac might set extrasub.
30720 # FIXME: do we really want to maintain this feature?
30721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30722 ac_sed_extra="$ac_vpsub
30723 $extrasub
30724 _ACEOF
30725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30726 :t
30727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30728 s|@configure_input@|$ac_sed_conf_input|;t t
30729 s&@top_builddir@&$ac_top_builddir_sub&;t t
30730 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30731 s&@srcdir@&$ac_srcdir&;t t
30732 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30733 s&@top_srcdir@&$ac_top_srcdir&;t t
30734 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30735 s&@builddir@&$ac_builddir&;t t
30736 s&@abs_builddir@&$ac_abs_builddir&;t t
30737 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30738 s&@INSTALL@&$ac_INSTALL&;t t
30739 $ac_datarootdir_hack
30740 "
30741 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30742 if $ac_cs_awk_getline; then
30743   $AWK -f "$tmp/subs.awk"
30744 else
30745   $AWK -f "$tmp/subs.awk" | $SHELL
30746 fi >$tmp/out \
30747   || as_fn_error "could not create $ac_file" "$LINENO" 5
30748
30749 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30750   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30751   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30752   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30753 which seems to be undefined.  Please make sure it is defined." >&5
30754 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30755 which seems to be undefined.  Please make sure it is defined." >&2;}
30756
30757   rm -f "$tmp/stdin"
30758   case $ac_file in
30759   -) cat "$tmp/out" && rm -f "$tmp/out";;
30760   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30761   esac \
30762   || as_fn_error "could not create $ac_file" "$LINENO" 5
30763  ;;
30764   :H)
30765   #
30766   # CONFIG_HEADER
30767   #
30768   if test x"$ac_file" != x-; then
30769     {
30770       $as_echo "/* $configure_input  */" \
30771       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30772     } >"$tmp/config.h" \
30773       || as_fn_error "could not create $ac_file" "$LINENO" 5
30774     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30775       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30776 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30777     else
30778       rm -f "$ac_file"
30779       mv "$tmp/config.h" "$ac_file" \
30780         || as_fn_error "could not create $ac_file" "$LINENO" 5
30781     fi
30782   else
30783     $as_echo "/* $configure_input  */" \
30784       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30785       || as_fn_error "could not create -" "$LINENO" 5
30786   fi
30787  ;;
30788
30789   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30790 $as_echo "$as_me: executing $ac_file commands" >&6;}
30791  ;;
30792   esac
30793
30794
30795   case $ac_file$ac_mode in
30796     "libtool":C)
30797
30798     # See if we are running on zsh, and set the options which allow our
30799     # commands through without removal of \ escapes.
30800     if test -n "${ZSH_VERSION+set}" ; then
30801       setopt NO_GLOB_SUBST
30802     fi
30803
30804     cfgfile="${ofile}T"
30805     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30806     $RM "$cfgfile"
30807
30808     cat <<_LT_EOF >> "$cfgfile"
30809 #! $SHELL
30810
30811 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30812 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30813 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30814 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30815 #
30816 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30817 #                 2006, 2007, 2008 Free Software Foundation, Inc.
30818 #   Written by Gordon Matzigkeit, 1996
30819 #
30820 #   This file is part of GNU Libtool.
30821 #
30822 # GNU Libtool is free software; you can redistribute it and/or
30823 # modify it under the terms of the GNU General Public License as
30824 # published by the Free Software Foundation; either version 2 of
30825 # the License, or (at your option) any later version.
30826 #
30827 # As a special exception to the GNU General Public License,
30828 # if you distribute this file as part of a program or library that
30829 # is built using GNU Libtool, you may include this file under the
30830 # same distribution terms that you use for the rest of that program.
30831 #
30832 # GNU Libtool is distributed in the hope that it will be useful,
30833 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30834 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30835 # GNU General Public License for more details.
30836 #
30837 # You should have received a copy of the GNU General Public License
30838 # along with GNU Libtool; see the file COPYING.  If not, a copy
30839 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30840 # obtained by writing to the Free Software Foundation, Inc.,
30841 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30842
30843
30844 # The names of the tagged configurations supported by this script.
30845 available_tags="CXX "
30846
30847 # ### BEGIN LIBTOOL CONFIG
30848
30849 # Which release of libtool.m4 was used?
30850 macro_version=$macro_version
30851 macro_revision=$macro_revision
30852
30853 # Whether or not to build shared libraries.
30854 build_libtool_libs=$enable_shared
30855
30856 # Whether or not to build static libraries.
30857 build_old_libs=$enable_static
30858
30859 # What type of objects to build.
30860 pic_mode=$pic_mode
30861
30862 # Whether or not to optimize for fast installation.
30863 fast_install=$enable_fast_install
30864
30865 # The host system.
30866 host_alias=$host_alias
30867 host=$host
30868 host_os=$host_os
30869
30870 # The build system.
30871 build_alias=$build_alias
30872 build=$build
30873 build_os=$build_os
30874
30875 # A sed program that does not truncate output.
30876 SED=$lt_SED
30877
30878 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30879 Xsed="\$SED -e 1s/^X//"
30880
30881 # A grep program that handles long lines.
30882 GREP=$lt_GREP
30883
30884 # An ERE matcher.
30885 EGREP=$lt_EGREP
30886
30887 # A literal string matcher.
30888 FGREP=$lt_FGREP
30889
30890 # A BSD- or MS-compatible name lister.
30891 NM=$lt_NM
30892
30893 # Whether we need soft or hard links.
30894 LN_S=$lt_LN_S
30895
30896 # What is the maximum length of a command?
30897 max_cmd_len=$max_cmd_len
30898
30899 # Object file suffix (normally "o").
30900 objext=$ac_objext
30901
30902 # Executable file suffix (normally "").
30903 exeext=$exeext
30904
30905 # whether the shell understands "unset".
30906 lt_unset=$lt_unset
30907
30908 # turn spaces into newlines.
30909 SP2NL=$lt_lt_SP2NL
30910
30911 # turn newlines into spaces.
30912 NL2SP=$lt_lt_NL2SP
30913
30914 # How to create reloadable object files.
30915 reload_flag=$lt_reload_flag
30916 reload_cmds=$lt_reload_cmds
30917
30918 # An object symbol dumper.
30919 OBJDUMP=$lt_OBJDUMP
30920
30921 # Method to check whether dependent libraries are shared objects.
30922 deplibs_check_method=$lt_deplibs_check_method
30923
30924 # Command to use when deplibs_check_method == "file_magic".
30925 file_magic_cmd=$lt_file_magic_cmd
30926
30927 # The archiver.
30928 AR=$lt_AR
30929 AR_FLAGS=$lt_AR_FLAGS
30930
30931 # A symbol stripping program.
30932 STRIP=$lt_STRIP
30933
30934 # Commands used to install an old-style archive.
30935 RANLIB=$lt_RANLIB
30936 old_postinstall_cmds=$lt_old_postinstall_cmds
30937 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30938
30939 # A C compiler.
30940 LTCC=$lt_CC
30941
30942 # LTCC compiler flags.
30943 LTCFLAGS=$lt_CFLAGS
30944
30945 # Take the output of nm and produce a listing of raw symbols and C names.
30946 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30947
30948 # Transform the output of nm in a proper C declaration.
30949 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30950
30951 # Transform the output of nm in a C name address pair.
30952 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30953
30954 # Transform the output of nm in a C name address pair when lib prefix is needed.
30955 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30956
30957 # The name of the directory that contains temporary libtool files.
30958 objdir=$objdir
30959
30960 # Shell to use when invoking shell scripts.
30961 SHELL=$lt_SHELL
30962
30963 # An echo program that does not interpret backslashes.
30964 ECHO=$lt_ECHO
30965
30966 # Used to examine libraries when file_magic_cmd begins with "file".
30967 MAGIC_CMD=$MAGIC_CMD
30968
30969 # Must we lock files when doing compilation?
30970 need_locks=$lt_need_locks
30971
30972 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30973 DSYMUTIL=$lt_DSYMUTIL
30974
30975 # Tool to change global to local symbols on Mac OS X.
30976 NMEDIT=$lt_NMEDIT
30977
30978 # Tool to manipulate fat objects and archives on Mac OS X.
30979 LIPO=$lt_LIPO
30980
30981 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30982 OTOOL=$lt_OTOOL
30983
30984 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30985 OTOOL64=$lt_OTOOL64
30986
30987 # Old archive suffix (normally "a").
30988 libext=$libext
30989
30990 # Shared library suffix (normally ".so").
30991 shrext_cmds=$lt_shrext_cmds
30992
30993 # The commands to extract the exported symbol list from a shared archive.
30994 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30995
30996 # Variables whose values should be saved in libtool wrapper scripts and
30997 # restored at link time.
30998 variables_saved_for_relink=$lt_variables_saved_for_relink
30999
31000 # Do we need the "lib" prefix for modules?
31001 need_lib_prefix=$need_lib_prefix
31002
31003 # Do we need a version for libraries?
31004 need_version=$need_version
31005
31006 # Library versioning type.
31007 version_type=$version_type
31008
31009 # Shared library runtime path variable.
31010 runpath_var=$runpath_var
31011
31012 # Shared library path variable.
31013 shlibpath_var=$shlibpath_var
31014
31015 # Is shlibpath searched before the hard-coded library search path?
31016 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31017
31018 # Format of library name prefix.
31019 libname_spec=$lt_libname_spec
31020
31021 # List of archive names.  First name is the real one, the rest are links.
31022 # The last name is the one that the linker finds with -lNAME
31023 library_names_spec=$lt_library_names_spec
31024
31025 # The coded name of the library, if different from the real name.
31026 soname_spec=$lt_soname_spec
31027
31028 # Command to use after installation of a shared archive.
31029 postinstall_cmds=$lt_postinstall_cmds
31030
31031 # Command to use after uninstallation of a shared archive.
31032 postuninstall_cmds=$lt_postuninstall_cmds
31033
31034 # Commands used to finish a libtool library installation in a directory.
31035 finish_cmds=$lt_finish_cmds
31036
31037 # As "finish_cmds", except a single script fragment to be evaled but
31038 # not shown.
31039 finish_eval=$lt_finish_eval
31040
31041 # Whether we should hardcode library paths into libraries.
31042 hardcode_into_libs=$hardcode_into_libs
31043
31044 # Compile-time system search path for libraries.
31045 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31046
31047 # Run-time system search path for libraries.
31048 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31049
31050 # Whether dlopen is supported.
31051 dlopen_support=$enable_dlopen
31052
31053 # Whether dlopen of programs is supported.
31054 dlopen_self=$enable_dlopen_self
31055
31056 # Whether dlopen of statically linked programs is supported.
31057 dlopen_self_static=$enable_dlopen_self_static
31058
31059 # Commands to strip libraries.
31060 old_striplib=$lt_old_striplib
31061 striplib=$lt_striplib
31062
31063
31064 # The linker used to build libraries.
31065 LD=$lt_LD
31066
31067 # Commands used to build an old-style archive.
31068 old_archive_cmds=$lt_old_archive_cmds
31069
31070 # A language specific compiler.
31071 CC=$lt_compiler
31072
31073 # Is the compiler the GNU compiler?
31074 with_gcc=$GCC
31075
31076 # Compiler flag to turn off builtin functions.
31077 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31078
31079 # How to pass a linker flag through the compiler.
31080 wl=$lt_lt_prog_compiler_wl
31081
31082 # Additional compiler flags for building library objects.
31083 pic_flag=$lt_lt_prog_compiler_pic
31084
31085 # Compiler flag to prevent dynamic linking.
31086 link_static_flag=$lt_lt_prog_compiler_static
31087
31088 # Does compiler simultaneously support -c and -o options?
31089 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31090
31091 # Whether or not to add -lc for building shared libraries.
31092 build_libtool_need_lc=$archive_cmds_need_lc
31093
31094 # Whether or not to disallow shared libs when runtime libs are static.
31095 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31096
31097 # Compiler flag to allow reflexive dlopens.
31098 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31099
31100 # Compiler flag to generate shared objects directly from archives.
31101 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31102
31103 # Whether the compiler copes with passing no objects directly.
31104 compiler_needs_object=$lt_compiler_needs_object
31105
31106 # Create an old-style archive from a shared archive.
31107 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31108
31109 # Create a temporary old-style archive to link instead of a shared archive.
31110 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31111
31112 # Commands used to build a shared archive.
31113 archive_cmds=$lt_archive_cmds
31114 archive_expsym_cmds=$lt_archive_expsym_cmds
31115
31116 # Commands used to build a loadable module if different from building
31117 # a shared archive.
31118 module_cmds=$lt_module_cmds
31119 module_expsym_cmds=$lt_module_expsym_cmds
31120
31121 # Whether we are building with GNU ld or not.
31122 with_gnu_ld=$lt_with_gnu_ld
31123
31124 # Flag that allows shared libraries with undefined symbols to be built.
31125 allow_undefined_flag=$lt_allow_undefined_flag
31126
31127 # Flag that enforces no undefined symbols.
31128 no_undefined_flag=$lt_no_undefined_flag
31129
31130 # Flag to hardcode \$libdir into a binary during linking.
31131 # This must work even if \$libdir does not exist
31132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31133
31134 # If ld is used when linking, flag to hardcode \$libdir into a binary
31135 # during linking.  This must work even if \$libdir does not exist.
31136 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31137
31138 # Whether we need a single "-rpath" flag with a separated argument.
31139 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31140
31141 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31142 # DIR into the resulting binary.
31143 hardcode_direct=$hardcode_direct
31144
31145 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31146 # DIR into the resulting binary and the resulting library dependency is
31147 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31148 # library is relocated.
31149 hardcode_direct_absolute=$hardcode_direct_absolute
31150
31151 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31152 # into the resulting binary.
31153 hardcode_minus_L=$hardcode_minus_L
31154
31155 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31156 # into the resulting binary.
31157 hardcode_shlibpath_var=$hardcode_shlibpath_var
31158
31159 # Set to "yes" if building a shared library automatically hardcodes DIR
31160 # into the library and all subsequent libraries and executables linked
31161 # against it.
31162 hardcode_automatic=$hardcode_automatic
31163
31164 # Set to yes if linker adds runtime paths of dependent libraries
31165 # to runtime path list.
31166 inherit_rpath=$inherit_rpath
31167
31168 # Whether libtool must link a program against all its dependency libraries.
31169 link_all_deplibs=$link_all_deplibs
31170
31171 # Fix the shell variable \$srcfile for the compiler.
31172 fix_srcfile_path=$lt_fix_srcfile_path
31173
31174 # Set to "yes" if exported symbols are required.
31175 always_export_symbols=$always_export_symbols
31176
31177 # The commands to list exported symbols.
31178 export_symbols_cmds=$lt_export_symbols_cmds
31179
31180 # Symbols that should not be listed in the preloaded symbols.
31181 exclude_expsyms=$lt_exclude_expsyms
31182
31183 # Symbols that must always be exported.
31184 include_expsyms=$lt_include_expsyms
31185
31186 # Commands necessary for linking programs (against libraries) with templates.
31187 prelink_cmds=$lt_prelink_cmds
31188
31189 # Specify filename containing input files.
31190 file_list_spec=$lt_file_list_spec
31191
31192 # How to hardcode a shared library path into an executable.
31193 hardcode_action=$hardcode_action
31194
31195 # The directories searched by this compiler when creating a shared library.
31196 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31197
31198 # Dependencies to place before and after the objects being linked to
31199 # create a shared library.
31200 predep_objects=$lt_predep_objects
31201 postdep_objects=$lt_postdep_objects
31202 predeps=$lt_predeps
31203 postdeps=$lt_postdeps
31204
31205 # The library search path used internally by the compiler when linking
31206 # a shared library.
31207 compiler_lib_search_path=$lt_compiler_lib_search_path
31208
31209 # ### END LIBTOOL CONFIG
31210
31211 _LT_EOF
31212
31213   case $host_os in
31214   aix3*)
31215     cat <<\_LT_EOF >> "$cfgfile"
31216 # AIX sometimes has problems with the GCC collect2 program.  For some
31217 # reason, if we set the COLLECT_NAMES environment variable, the problems
31218 # vanish in a puff of smoke.
31219 if test "X${COLLECT_NAMES+set}" != Xset; then
31220   COLLECT_NAMES=
31221   export COLLECT_NAMES
31222 fi
31223 _LT_EOF
31224     ;;
31225   esac
31226
31227
31228 ltmain="$ac_aux_dir/ltmain.sh"
31229
31230
31231   # We use sed instead of cat because bash on DJGPP gets confused if
31232   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31233   # text mode, it properly converts lines to CR/LF.  This bash problem
31234   # is reportedly fixed, but why not run on old versions too?
31235   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31236     || (rm -f "$cfgfile"; exit 1)
31237
31238   case $xsi_shell in
31239   yes)
31240     cat << \_LT_EOF >> "$cfgfile"
31241
31242 # func_dirname file append nondir_replacement
31243 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31244 # otherwise set result to NONDIR_REPLACEMENT.
31245 func_dirname ()
31246 {
31247   case ${1} in
31248     */*) func_dirname_result="${1%/*}${2}" ;;
31249     *  ) func_dirname_result="${3}" ;;
31250   esac
31251 }
31252
31253 # func_basename file
31254 func_basename ()
31255 {
31256   func_basename_result="${1##*/}"
31257 }
31258
31259 # func_dirname_and_basename file append nondir_replacement
31260 # perform func_basename and func_dirname in a single function
31261 # call:
31262 #   dirname:  Compute the dirname of FILE.  If nonempty,
31263 #             add APPEND to the result, otherwise set result
31264 #             to NONDIR_REPLACEMENT.
31265 #             value returned in "$func_dirname_result"
31266 #   basename: Compute filename of FILE.
31267 #             value retuned in "$func_basename_result"
31268 # Implementation must be kept synchronized with func_dirname
31269 # and func_basename. For efficiency, we do not delegate to
31270 # those functions but instead duplicate the functionality here.
31271 func_dirname_and_basename ()
31272 {
31273   case ${1} in
31274     */*) func_dirname_result="${1%/*}${2}" ;;
31275     *  ) func_dirname_result="${3}" ;;
31276   esac
31277   func_basename_result="${1##*/}"
31278 }
31279
31280 # func_stripname prefix suffix name
31281 # strip PREFIX and SUFFIX off of NAME.
31282 # PREFIX and SUFFIX must not contain globbing or regex special
31283 # characters, hashes, percent signs, but SUFFIX may contain a leading
31284 # dot (in which case that matches only a dot).
31285 func_stripname ()
31286 {
31287   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31288   # positional parameters, so assign one to ordinary parameter first.
31289   func_stripname_result=${3}
31290   func_stripname_result=${func_stripname_result#"${1}"}
31291   func_stripname_result=${func_stripname_result%"${2}"}
31292 }
31293
31294 # func_opt_split
31295 func_opt_split ()
31296 {
31297   func_opt_split_opt=${1%%=*}
31298   func_opt_split_arg=${1#*=}
31299 }
31300
31301 # func_lo2o object
31302 func_lo2o ()
31303 {
31304   case ${1} in
31305     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31306     *)    func_lo2o_result=${1} ;;
31307   esac
31308 }
31309
31310 # func_xform libobj-or-source
31311 func_xform ()
31312 {
31313   func_xform_result=${1%.*}.lo
31314 }
31315
31316 # func_arith arithmetic-term...
31317 func_arith ()
31318 {
31319   func_arith_result=$(( $* ))
31320 }
31321
31322 # func_len string
31323 # STRING may not start with a hyphen.
31324 func_len ()
31325 {
31326   func_len_result=${#1}
31327 }
31328
31329 _LT_EOF
31330     ;;
31331   *) # Bourne compatible functions.
31332     cat << \_LT_EOF >> "$cfgfile"
31333
31334 # func_dirname file append nondir_replacement
31335 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31336 # otherwise set result to NONDIR_REPLACEMENT.
31337 func_dirname ()
31338 {
31339   # Extract subdirectory from the argument.
31340   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31341   if test "X$func_dirname_result" = "X${1}"; then
31342     func_dirname_result="${3}"
31343   else
31344     func_dirname_result="$func_dirname_result${2}"
31345   fi
31346 }
31347
31348 # func_basename file
31349 func_basename ()
31350 {
31351   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31352 }
31353
31354
31355 # func_stripname prefix suffix name
31356 # strip PREFIX and SUFFIX off of NAME.
31357 # PREFIX and SUFFIX must not contain globbing or regex special
31358 # characters, hashes, percent signs, but SUFFIX may contain a leading
31359 # dot (in which case that matches only a dot).
31360 # func_strip_suffix prefix name
31361 func_stripname ()
31362 {
31363   case ${2} in
31364     .*) func_stripname_result=`$ECHO "X${3}" \
31365            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31366     *)  func_stripname_result=`$ECHO "X${3}" \
31367            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31368   esac
31369 }
31370
31371 # sed scripts:
31372 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31373 my_sed_long_arg='1s/^-[^=]*=//'
31374
31375 # func_opt_split
31376 func_opt_split ()
31377 {
31378   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31379   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31380 }
31381
31382 # func_lo2o object
31383 func_lo2o ()
31384 {
31385   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31386 }
31387
31388 # func_xform libobj-or-source
31389 func_xform ()
31390 {
31391   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31392 }
31393
31394 # func_arith arithmetic-term...
31395 func_arith ()
31396 {
31397   func_arith_result=`expr "$@"`
31398 }
31399
31400 # func_len string
31401 # STRING may not start with a hyphen.
31402 func_len ()
31403 {
31404   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31405 }
31406
31407 _LT_EOF
31408 esac
31409
31410 case $lt_shell_append in
31411   yes)
31412     cat << \_LT_EOF >> "$cfgfile"
31413
31414 # func_append var value
31415 # Append VALUE to the end of shell variable VAR.
31416 func_append ()
31417 {
31418   eval "$1+=\$2"
31419 }
31420 _LT_EOF
31421     ;;
31422   *)
31423     cat << \_LT_EOF >> "$cfgfile"
31424
31425 # func_append var value
31426 # Append VALUE to the end of shell variable VAR.
31427 func_append ()
31428 {
31429   eval "$1=\$$1\$2"
31430 }
31431
31432 _LT_EOF
31433     ;;
31434   esac
31435
31436
31437   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31438     || (rm -f "$cfgfile"; exit 1)
31439
31440   mv -f "$cfgfile" "$ofile" ||
31441     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31442   chmod +x "$ofile"
31443
31444
31445     cat <<_LT_EOF >> "$ofile"
31446
31447 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31448
31449 # The linker used to build libraries.
31450 LD=$lt_LD_CXX
31451
31452 # Commands used to build an old-style archive.
31453 old_archive_cmds=$lt_old_archive_cmds_CXX
31454
31455 # A language specific compiler.
31456 CC=$lt_compiler_CXX
31457
31458 # Is the compiler the GNU compiler?
31459 with_gcc=$GCC_CXX
31460
31461 # Compiler flag to turn off builtin functions.
31462 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31463
31464 # How to pass a linker flag through the compiler.
31465 wl=$lt_lt_prog_compiler_wl_CXX
31466
31467 # Additional compiler flags for building library objects.
31468 pic_flag=$lt_lt_prog_compiler_pic_CXX
31469
31470 # Compiler flag to prevent dynamic linking.
31471 link_static_flag=$lt_lt_prog_compiler_static_CXX
31472
31473 # Does compiler simultaneously support -c and -o options?
31474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31475
31476 # Whether or not to add -lc for building shared libraries.
31477 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31478
31479 # Whether or not to disallow shared libs when runtime libs are static.
31480 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31481
31482 # Compiler flag to allow reflexive dlopens.
31483 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31484
31485 # Compiler flag to generate shared objects directly from archives.
31486 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31487
31488 # Whether the compiler copes with passing no objects directly.
31489 compiler_needs_object=$lt_compiler_needs_object_CXX
31490
31491 # Create an old-style archive from a shared archive.
31492 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31493
31494 # Create a temporary old-style archive to link instead of a shared archive.
31495 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31496
31497 # Commands used to build a shared archive.
31498 archive_cmds=$lt_archive_cmds_CXX
31499 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31500
31501 # Commands used to build a loadable module if different from building
31502 # a shared archive.
31503 module_cmds=$lt_module_cmds_CXX
31504 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31505
31506 # Whether we are building with GNU ld or not.
31507 with_gnu_ld=$lt_with_gnu_ld_CXX
31508
31509 # Flag that allows shared libraries with undefined symbols to be built.
31510 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31511
31512 # Flag that enforces no undefined symbols.
31513 no_undefined_flag=$lt_no_undefined_flag_CXX
31514
31515 # Flag to hardcode \$libdir into a binary during linking.
31516 # This must work even if \$libdir does not exist
31517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31518
31519 # If ld is used when linking, flag to hardcode \$libdir into a binary
31520 # during linking.  This must work even if \$libdir does not exist.
31521 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31522
31523 # Whether we need a single "-rpath" flag with a separated argument.
31524 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31525
31526 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31527 # DIR into the resulting binary.
31528 hardcode_direct=$hardcode_direct_CXX
31529
31530 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31531 # DIR into the resulting binary and the resulting library dependency is
31532 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31533 # library is relocated.
31534 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31535
31536 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31537 # into the resulting binary.
31538 hardcode_minus_L=$hardcode_minus_L_CXX
31539
31540 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31541 # into the resulting binary.
31542 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31543
31544 # Set to "yes" if building a shared library automatically hardcodes DIR
31545 # into the library and all subsequent libraries and executables linked
31546 # against it.
31547 hardcode_automatic=$hardcode_automatic_CXX
31548
31549 # Set to yes if linker adds runtime paths of dependent libraries
31550 # to runtime path list.
31551 inherit_rpath=$inherit_rpath_CXX
31552
31553 # Whether libtool must link a program against all its dependency libraries.
31554 link_all_deplibs=$link_all_deplibs_CXX
31555
31556 # Fix the shell variable \$srcfile for the compiler.
31557 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31558
31559 # Set to "yes" if exported symbols are required.
31560 always_export_symbols=$always_export_symbols_CXX
31561
31562 # The commands to list exported symbols.
31563 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31564
31565 # Symbols that should not be listed in the preloaded symbols.
31566 exclude_expsyms=$lt_exclude_expsyms_CXX
31567
31568 # Symbols that must always be exported.
31569 include_expsyms=$lt_include_expsyms_CXX
31570
31571 # Commands necessary for linking programs (against libraries) with templates.
31572 prelink_cmds=$lt_prelink_cmds_CXX
31573
31574 # Specify filename containing input files.
31575 file_list_spec=$lt_file_list_spec_CXX
31576
31577 # How to hardcode a shared library path into an executable.
31578 hardcode_action=$hardcode_action_CXX
31579
31580 # The directories searched by this compiler when creating a shared library.
31581 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31582
31583 # Dependencies to place before and after the objects being linked to
31584 # create a shared library.
31585 predep_objects=$lt_predep_objects_CXX
31586 postdep_objects=$lt_postdep_objects_CXX
31587 predeps=$lt_predeps_CXX
31588 postdeps=$lt_postdeps_CXX
31589
31590 # The library search path used internally by the compiler when linking
31591 # a shared library.
31592 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31593
31594 # ### END LIBTOOL TAG CONFIG: CXX
31595 _LT_EOF
31596
31597  ;;
31598     "default-1":C)
31599     for ac_file in $CONFIG_FILES; do
31600       # Support "outfile[:infile[:infile...]]"
31601       case "$ac_file" in
31602         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31603       esac
31604       # PO directories have a Makefile.in generated from Makefile.in.in.
31605       case "$ac_file" in */Makefile.in)
31606         # Adjust a relative srcdir.
31607         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31608         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31609         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31610         # In autoconf-2.13 it is called $ac_given_srcdir.
31611         # In autoconf-2.50 it is called $srcdir.
31612         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31613         case "$ac_given_srcdir" in
31614           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31615           /*) top_srcdir="$ac_given_srcdir" ;;
31616           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31617         esac
31618         # Treat a directory as a PO directory if and only if it has a
31619         # POTFILES.in file. This allows packages to have multiple PO
31620         # directories under different names or in different locations.
31621         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31622           rm -f "$ac_dir/POTFILES"
31623           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31624           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31625           POMAKEFILEDEPS="POTFILES.in"
31626           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31627           # on $ac_dir but don't depend on user-specified configuration
31628           # parameters.
31629           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31630             # The LINGUAS file contains the set of available languages.
31631             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31632               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31633             fi
31634             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31635             # Hide the ALL_LINGUAS assigment from automake.
31636             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31637             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31638           else
31639             # The set of available languages was given in configure.in.
31640             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31641           fi
31642           # Compute POFILES
31643           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31644           # Compute UPDATEPOFILES
31645           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31646           # Compute DUMMYPOFILES
31647           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31648           # Compute GMOFILES
31649           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31650           case "$ac_given_srcdir" in
31651             .) srcdirpre= ;;
31652             *) srcdirpre='$(srcdir)/' ;;
31653           esac
31654           POFILES=
31655           UPDATEPOFILES=
31656           DUMMYPOFILES=
31657           GMOFILES=
31658           for lang in $ALL_LINGUAS; do
31659             POFILES="$POFILES $srcdirpre$lang.po"
31660             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31661             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31662             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31663           done
31664           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31665           # environment variable.
31666           INST_LINGUAS=
31667           if test -n "$ALL_LINGUAS"; then
31668             for presentlang in $ALL_LINGUAS; do
31669               useit=no
31670               if test "%UNSET%" != "$LINGUAS"; then
31671                 desiredlanguages="$LINGUAS"
31672               else
31673                 desiredlanguages="$ALL_LINGUAS"
31674               fi
31675               for desiredlang in $desiredlanguages; do
31676                 # Use the presentlang catalog if desiredlang is
31677                 #   a. equal to presentlang, or
31678                 #   b. a variant of presentlang (because in this case,
31679                 #      presentlang can be used as a fallback for messages
31680                 #      which are not translated in the desiredlang catalog).
31681                 case "$desiredlang" in
31682                   "$presentlang"*) useit=yes;;
31683                 esac
31684               done
31685               if test $useit = yes; then
31686                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31687               fi
31688             done
31689           fi
31690           CATALOGS=
31691           if test -n "$INST_LINGUAS"; then
31692             for lang in $INST_LINGUAS; do
31693               CATALOGS="$CATALOGS $lang.gmo"
31694             done
31695           fi
31696           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31697           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"
31698           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31699             if test -f "$f"; then
31700               case "$f" in
31701                 *.orig | *.bak | *~) ;;
31702                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31703               esac
31704             fi
31705           done
31706         fi
31707         ;;
31708       esac
31709     done ;;
31710     "default":C)
31711  ;;
31712
31713   esac
31714 done # for ac_tag
31715
31716
31717 as_fn_exit 0
31718 _ACEOF
31719 ac_clean_files=$ac_clean_files_save
31720
31721 test $ac_write_fail = 0 ||
31722   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31723
31724
31725 # configure is writing to config.log, and then calls config.status.
31726 # config.status does its own redirection, appending to config.log.
31727 # Unfortunately, on DOS this fails, as config.log is still kept open
31728 # by configure, so config.status won't be able to write to it; its
31729 # output is simply discarded.  So we exec the FD to /dev/null,
31730 # effectively closing config.log, so it can be properly (re)opened and
31731 # appended to by config.status.  When coming back to configure, we
31732 # need to make the FD available again.
31733 if test "$no_create" != yes; then
31734   ac_cs_success=:
31735   ac_config_status_args=
31736   test "$silent" = yes &&
31737     ac_config_status_args="$ac_config_status_args --quiet"
31738   exec 5>/dev/null
31739   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31740   exec 5>>config.log
31741   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31742   # would make configure fail if this is the last instruction.
31743   $ac_cs_success || as_fn_exit $?
31744 fi
31745 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31746   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31747 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31748 fi
31749
31750
31751 if test "${support_bat}" = "yes" ; then
31752    if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31753       as_fn_error "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" "$LINENO" 5
31754    fi
31755
31756    QMAKEBIN="qmake"
31757
31758    if test "x$QMAKEQT4" != "xnone"; then
31759        QMAKEBIN=qmake-qt4
31760    fi
31761
31762    cd src/qt-console
31763    echo "Creating bat Makefile"
31764    touch bat
31765    chmod 755 bat
31766    $QMAKEBIN
31767    ${MAKE:-make} clean
31768    cd ${BUILD_DIR}
31769 fi
31770
31771 if test X"$GCC" = "Xyes" ; then
31772   echo "Doing make of dependencies"
31773   ${MAKE:-make} depend
31774 fi
31775
31776 cd src/qt-console
31777 chmod 755 install_conf_file build-depkgs-qt-console
31778 cd ${BUILD_DIR}
31779
31780 cd scripts
31781 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31782 chmod 755 dvd-handler dvd-simulator breload make_catalog_backup.pl
31783 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31784 cd ..
31785
31786 c=updatedb
31787 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
31788 chmod 755 $c/update_postgresql_tables_10_to_11
31789
31790 c=src/cats
31791
31792 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31793 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31794
31795 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31796 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31797
31798 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31799 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31800
31801 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31802 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31803
31804 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31805 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31806
31807 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31808 chmod 755 $c/sqlite
31809 chmod 755 $c/mysql
31810
31811 chmod 755 src/win32/build-depkgs-mingw32
31812
31813 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31814    largefile_support="yes"
31815 fi
31816
31817 if test X"$GCC" = "Xyes" ; then
31818                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31819    if test "x${CCVERSION}" = "x" ; then
31820       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31821    fi
31822    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31823    if test x"${CXXVERSION}" = x ; then
31824       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31825    fi
31826 fi
31827
31828 # clean up any old junk
31829 echo " "
31830 echo "Cleaning up"
31831 echo " "
31832 ${MAKE:-make} clean
31833
31834 if test "x${db_type}" = "xInternal" ; then
31835    echo " "
31836    echo " "
31837    echo "You have not specified either --enable-client-only or one of the"
31838    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
31839    echo "  This is not permitted. Please reconfigure."
31840    echo " "
31841    echo "Aborting the configuration ..."
31842    echo " "
31843    echo " "
31844    exit 1
31845 fi
31846
31847 echo "
31848 Configuration on `date`:
31849
31850    Host:                    ${host}${post_host} -- ${DISTNAME} ${DISTVER}
31851    Bacula version:          ${BACULA} ${VERSION} (${DATE})
31852    Source code location:    ${srcdir}
31853    Install binaries:        ${sbindir}
31854    Install libraries:       ${libdir}
31855    Install config files:    ${sysconfdir}
31856    Scripts directory:       ${scriptdir}
31857    Archive directory:       ${archivedir}
31858    Working directory:       ${working_dir}
31859    PID directory:           ${piddir}
31860    Subsys directory:        ${subsysdir}
31861    Man directory:           ${mandir}
31862    Data directory:          ${datarootdir}
31863    Plugin directory:        ${plugindir}
31864    C Compiler:              ${CC} ${CCVERSION}
31865    C++ Compiler:            ${CXX} ${CXXVERSION}
31866    Compiler flags:          ${WCFLAGS} ${CFLAGS}
31867    Linker flags:            ${WLDFLAGS} ${LDFLAGS}
31868    Libraries:               ${LIBS}
31869    Statically Linked Tools: ${support_static_tools}
31870    Statically Linked FD:    ${support_static_fd}
31871    Statically Linked SD:    ${support_static_sd}
31872    Statically Linked DIR:   ${support_static_dir}
31873    Statically Linked CONS:  ${support_static_cons}
31874    Database type:           ${db_type}
31875    Database port:           ${db_port}
31876    Database lib:            ${DB_LIBS}
31877    Database name:           ${db_name}
31878    Database user:           ${db_user}
31879
31880    Job Output Email:        ${job_email}
31881    Traceback Email:         ${dump_email}
31882    SMTP Host Address:       ${smtp_host}
31883
31884    Director Port:           ${dir_port}
31885    File daemon Port:        ${fd_port}
31886    Storage daemon Port:     ${sd_port}
31887
31888    Director User:           ${dir_user}
31889    Director Group:          ${dir_group}
31890    Storage Daemon User:     ${sd_user}
31891    Storage DaemonGroup:     ${sd_group}
31892    File Daemon User:        ${fd_user}
31893    File Daemon Group:       ${fd_group}
31894
31895    SQL binaries Directory   ${SQL_BINDIR}
31896
31897    Large file support:      $largefile_support
31898    Bacula conio support:    ${got_conio} ${CONS_LIBS}
31899    readline support:        ${got_readline} ${PRTREADLINE_SRC}
31900    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
31901    TLS support:             ${support_tls}
31902    Encryption support:      ${support_crypto}
31903    ZLIB support:            ${have_zlib}
31904    enable-smartalloc:       ${support_smartalloc}
31905    enable-lockmgr:          ${support_lockmgr}
31906    bat support:             ${support_bat} ${QWT_LDFLAGS}
31907    enable-gnome:            ${support_gnome} ${gnome_version}
31908    enable-bwx-console:      ${support_wx_console} ${wx_version}
31909    enable-tray-monitor:     ${support_tray_monitor}
31910    client-only:             ${build_client_only}
31911    build-dird:              ${build_dird}
31912    build-stored:            ${build_stored}
31913    ACL support:             ${have_acl}
31914    XATTR support:           ${have_xattr}
31915    Python support:          ${support_python} ${PYTHON_LIBS}
31916    Batch insert enabled:    ${support_batch_insert}
31917
31918   " > config.out
31919
31920 cat config.out
31921
31922 # create a small shell script useful for support with
31923 # configure options and config.out info
31924 cat > scripts/bacula_config << EOF
31925 #!/bin/sh
31926 cat << __EOC__
31927 $ $0 $ac_configure_args
31928 EOF
31929 cat config.out >> scripts/bacula_config
31930 echo __EOC__ >> scripts/bacula_config
31931 chmod 755 scripts/bacula_config
31932
31933 # Display a warning message if postgresql client lib is <= 8.1
31934 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
31935         -a x$support_batch_insert = xyes
31936 then
31937         echo "WARNING: Your PostgreSQL client library is too old to detect "
31938         echo " if it was compiled with --enable-thread-safety, consider to"
31939         echo " upgrade it in order to avoid problems with Batch insert mode"
31940         echo
31941 fi