]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
1d3f5d2c67be90873d8a774d75ebb9d32e8845f5
[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 DLIB
756 DINCLUDE
757 DEBUG
758 FDLIBS
759 CAP_LIBS
760 AFS_LIBS
761 AFS_CFLAGS
762 ZLIBS
763 LIBOBJS
764 X_EXTRA_LIBS
765 X_LIBS
766 X_PRE_LIBS
767 X_CFLAGS
768 XMKMF
769 GETCONF
770 SHARED_CATALOG_TARGETS
771 DEFAULT_DB_TYPE
772 DB_LIBS
773 DB_BACKENDS
774 DB_PROG_LIB
775 DB_PROG
776 uncomment_dbi
777 DBI_DBD_DRIVERDIR
778 DBI_BINDIR
779 DBI_INCLUDE
780 DBI_LIBS
781 INGRES_BINDIR
782 INGRES_INCLUDE
783 INGRES_LIBS
784 SQLITE_BINDIR
785 SQLITE_INCLUDE
786 SQLITE_LIBS
787 MYSQL_BINDIR
788 MYSQL_INCLUDE
789 MYSQL_LIBS
790 POSTGRESQL_BINDIR
791 POSTGRESQL_INCLUDE
792 POSTGRESQL_LIBS
793 SBINPERM
794 fd_group
795 fd_user
796 sd_group
797 sd_user
798 dir_group
799 dir_user
800 db_port
801 db_password
802 db_user
803 db_name
804 mon_sd_password
805 mon_fd_password
806 mon_dir_password
807 sd_password
808 fd_password
809 dir_password
810 sd_port
811 fd_port
812 dir_port
813 baseport
814 subsysdir
815 piddir
816 smtp_host
817 job_email
818 dump_email
819 plugindir
820 logdir
821 bsrdir
822 scriptdir
823 hostname
824 basename
825 archivedir
826 working_dir
827 OPENSSL_INC
828 OPENSSL_LIBS
829 PYTHON_INCDIR
830 PYTHON_LIBS
831 READLINE_SRC
832 CONS_LDFLAGS
833 CONS_LIBS
834 CONS_SRC
835 CONS_OBJ
836 CONS_INC
837 STORED_DIR
838 DIR_TOOLS
839 DIRD_DIR
840 ALL_DIRS
841 STATIC_WX_CONS
842 STATIC_GNOME_CONS
843 STATIC_CONS
844 STATIC_DIR
845 STATIC_SD
846 STATIC_FD
847 TTOOL_LDFLAGS
848 TRAY_MONITOR_DIR
849 TRAY_MONITOR_LDFLAGS
850 TRAY_MONITOR_CPPFLAGS
851 WX_DIR
852 WXCONS_LDFLAGS
853 WXCONS_CPPFLAGS
854 QWT
855 QWT_LIB
856 QWT_LDFLAGS
857 QWT_INC
858 BAT_DIR
859 INTL_LIBTOOL_SUFFIX_PREFIX
860 INTLOBJS
861 GENCAT
862 INSTOBJEXT
863 DATADIRNAME
864 CATOBJEXT
865 USE_INCLUDED_LIBINTL
866 BUILD_INCLUDED_LIBINTL
867 INTLBISON
868 HAVE_WPRINTF
869 HAVE_SNPRINTF
870 HAVE_ASPRINTF
871 HAVE_POSIX_PRINTF
872 GLIBC21
873 ALLOCA
874 GLIBC2
875 POSUB
876 LTLIBINTL
877 LIBINTL
878 INTLLIBS
879 LTLIBICONV
880 LIBICONV
881 INTL_MACOSX_LIBS
882 MSGMERGE
883 XGETTEXT
884 GMSGFMT
885 MSGFMT
886 USE_NLS
887 MKINSTALLDIRS
888 SET_MAKE
889 HAVE_DARWIN_OS_FALSE
890 HAVE_DARWIN_OS_TRUE
891 HAVE_IRIX_OS_FALSE
892 HAVE_IRIX_OS_TRUE
893 HAVE_SGI_OS_FALSE
894 HAVE_SGI_OS_TRUE
895 HAVE_BSDI_OS_FALSE
896 HAVE_BSDI_OS_TRUE
897 HAVE_OPENBSD_OS_FALSE
898 HAVE_OPENBSD_OS_TRUE
899 HAVE_NETBSD_OS_FALSE
900 HAVE_NETBSD_OS_TRUE
901 HAVE_FREEBSD_OS_FALSE
902 HAVE_FREEBSD_OS_TRUE
903 HAVE_LINUX_OS_FALSE
904 HAVE_LINUX_OS_TRUE
905 HAVE_HPUX_OS_FALSE
906 HAVE_HPUX_OS_TRUE
907 HAVE_AIX_OS_FALSE
908 HAVE_AIX_OS_TRUE
909 HAVE_OSF1_OS_FALSE
910 HAVE_OSF1_OS_TRUE
911 HAVE_SUN_OS_FALSE
912 HAVE_SUN_OS_TRUE
913 INCLUDE_UNINSTALL_TARGET
914 INCLUDE_INSTALL_TARGET
915 FD_PLUGIN_DIR
916 QMAKE_LIBTOOL
917 LIBTOOL_CLEAN_TARGET
918 LIBTOOL_UNINSTALL_TARGET
919 LIBTOOL_INSTALL_TARGET
920 DEFAULT_SHARED_OBJECT_TYPE
921 DEFAULT_ARCHIVE_TYPE
922 DEFAULT_OBJECT_TYPE
923 CXXCPP
924 OTOOL64
925 OTOOL
926 LIPO
927 NMEDIT
928 DSYMUTIL
929 lt_ECHO
930 RANLIB
931 STRIP
932 OBJDUMP
933 LN_S
934 NM
935 ac_ct_DUMPBIN
936 DUMPBIN
937 LD
938 FGREP
939 host_os
940 host_vendor
941 host_cpu
942 host
943 build_os
944 build_vendor
945 build_cpu
946 build
947 LIBTOOL
948 LOCAL_DEFS
949 LOCAL_LDFLAGS
950 LOCAL_CFLAGS
951 LOCAL_LIBS
952 MAKE_SHELL
953 ARFLAGS
954 AWK
955 PIDOF
956 CDRECORD
957 WXFLAGS
958 WXCONFIG
959 GMAKE
960 QMAKE
961 PKGCONFIG
962 DVDRWFORMAT
963 DVDRWMEDIAINFO
964 GROWISOFS
965 PYTHON
966 MKISOFS
967 DD
968 MTX
969 OPENSSL
970 AR
971 TBL
972 CMP
973 ECHO
974 SED
975 CP
976 REMOVE
977 MV
978 INSTALL_DATA
979 INSTALL_SCRIPT
980 INSTALL_PROGRAM
981 EGREP
982 GREP
983 CPP
984 ac_ct_CXX
985 CXXFLAGS
986 CXX
987 OBJEXT
988 EXEEXT
989 ac_ct_CC
990 CPPFLAGS
991 LDFLAGS
992 CFLAGS
993 CC
994 LIBBACFIND_LT_RELEASE
995 LIBBACCATS_LT_RELEASE
996 LIBBACSQL_LT_RELEASE
997 LIBBACPY_LT_RELEASE
998 LIBBACCFG_LT_RELEASE
999 LIBBAC_LT_RELEASE
1000 BDB_VERSION
1001 post_host
1002 BACULA
1003 LSMDATE
1004 DATE
1005 VERSION
1006 FALSEPRG
1007 TRUEPRG
1008 WIN32TOPDIR
1009 WIN32MAINDIR
1010 WIN32BUILDDIR
1011 TOP_DIR
1012 BUILD_DIR
1013 target_alias
1014 host_alias
1015 build_alias
1016 LIBS
1017 ECHO_T
1018 ECHO_N
1019 ECHO_C
1020 DEFS
1021 mandir
1022 localedir
1023 libdir
1024 psdir
1025 pdfdir
1026 dvidir
1027 htmldir
1028 infodir
1029 docdir
1030 oldincludedir
1031 includedir
1032 localstatedir
1033 sharedstatedir
1034 sysconfdir
1035 datadir
1036 datarootdir
1037 libexecdir
1038 sbindir
1039 bindir
1040 program_transform_name
1041 prefix
1042 exec_prefix
1043 PACKAGE_URL
1044 PACKAGE_BUGREPORT
1045 PACKAGE_STRING
1046 PACKAGE_VERSION
1047 PACKAGE_TARNAME
1048 PACKAGE_NAME
1049 PATH_SEPARATOR
1050 SHELL'
1051 ac_subst_files='MCOMMON'
1052 ac_user_opts='
1053 enable_option_checking
1054 enable_libtool
1055 enable_shared
1056 enable_static
1057 with_pic
1058 enable_fast_install
1059 with_gnu_ld
1060 enable_libtool_lock
1061 enable_includes
1062 enable_nls
1063 enable_rpath
1064 with_libiconv_prefix
1065 with_libintl_prefix
1066 with_included_gettext
1067 enable_gnome
1068 enable_bat
1069 enable_bwx_console
1070 enable_tray_monitor
1071 enable_smartalloc
1072 enable_lockmgr
1073 enable_static_tools
1074 enable_static_fd
1075 enable_static_sd
1076 enable_static_dir
1077 enable_static_cons
1078 enable_client_only
1079 enable_build_dird
1080 enable_build_stored
1081 enable_conio
1082 enable_ipv6
1083 enable_readline
1084 with_readline
1085 with_python
1086 with_tcp_wrappers
1087 with_openssl
1088 with_working_dir
1089 with_archivedir
1090 with_basename
1091 with_hostname
1092 with_scriptdir
1093 with_bsrdir
1094 with_logdir
1095 with_plugindir
1096 with_dump_email
1097 with_job_email
1098 with_smtp_host
1099 with_pid_dir
1100 with_subsys_dir
1101 with_baseport
1102 with_dir_password
1103 with_fd_password
1104 with_sd_password
1105 with_mon_dir_password
1106 with_mon_fd_password
1107 with_mon_sd_password
1108 with_db_name
1109 with_db_user
1110 with_db_password
1111 with_db_port
1112 with_dir_user
1113 with_dir_group
1114 with_sd_user
1115 with_sd_group
1116 with_fd_user
1117 with_fd_group
1118 with_sbin_perm
1119 with_postgresql
1120 with_mysql
1121 with_embedded_mysql
1122 with_sqlite3
1123 with_ingres
1124 with_dbi
1125 with_dbi_driver
1126 enable_batch_insert
1127 enable_largefile
1128 with_x
1129 enable_afs
1130 with_afsdir
1131 enable_acl
1132 enable_xattr
1133 '
1134       ac_precious_vars='build_alias
1135 host_alias
1136 target_alias
1137 CC
1138 CFLAGS
1139 LDFLAGS
1140 LIBS
1141 CPPFLAGS
1142 CXX
1143 CXXFLAGS
1144 CCC
1145 CPP
1146 WXCONFIG
1147 WXFLAGS
1148 CXXCPP
1149 XMKMF'
1150
1151
1152 # Initialize some variables set by options.
1153 ac_init_help=
1154 ac_init_version=false
1155 ac_unrecognized_opts=
1156 ac_unrecognized_sep=
1157 # The variables have the same names as the options, with
1158 # dashes changed to underlines.
1159 cache_file=/dev/null
1160 exec_prefix=NONE
1161 no_create=
1162 no_recursion=
1163 prefix=NONE
1164 program_prefix=NONE
1165 program_suffix=NONE
1166 program_transform_name=s,x,x,
1167 silent=
1168 site=
1169 srcdir=
1170 verbose=
1171 x_includes=NONE
1172 x_libraries=NONE
1173
1174 # Installation directory options.
1175 # These are left unexpanded so users can "make install exec_prefix=/foo"
1176 # and all the variables that are supposed to be based on exec_prefix
1177 # by default will actually change.
1178 # Use braces instead of parens because sh, perl, etc. also accept them.
1179 # (The list follows the same order as the GNU Coding Standards.)
1180 bindir='${exec_prefix}/bin'
1181 sbindir='${exec_prefix}/sbin'
1182 libexecdir='${exec_prefix}/libexec'
1183 datarootdir='${prefix}/share'
1184 datadir='${datarootdir}'
1185 sysconfdir='${prefix}/etc'
1186 sharedstatedir='${prefix}/com'
1187 localstatedir='${prefix}/var'
1188 includedir='${prefix}/include'
1189 oldincludedir='/usr/include'
1190 docdir='${datarootdir}/doc/${PACKAGE}'
1191 infodir='${datarootdir}/info'
1192 htmldir='${docdir}'
1193 dvidir='${docdir}'
1194 pdfdir='${docdir}'
1195 psdir='${docdir}'
1196 libdir='${exec_prefix}/lib'
1197 localedir='${datarootdir}/locale'
1198 mandir='${datarootdir}/man'
1199
1200 ac_prev=
1201 ac_dashdash=
1202 for ac_option
1203 do
1204   # If the previous option needs an argument, assign it.
1205   if test -n "$ac_prev"; then
1206     eval $ac_prev=\$ac_option
1207     ac_prev=
1208     continue
1209   fi
1210
1211   case $ac_option in
1212   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1213   *)    ac_optarg=yes ;;
1214   esac
1215
1216   # Accept the important Cygnus configure options, so we can diagnose typos.
1217
1218   case $ac_dashdash$ac_option in
1219   --)
1220     ac_dashdash=yes ;;
1221
1222   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1223     ac_prev=bindir ;;
1224   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1225     bindir=$ac_optarg ;;
1226
1227   -build | --build | --buil | --bui | --bu)
1228     ac_prev=build_alias ;;
1229   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1230     build_alias=$ac_optarg ;;
1231
1232   -cache-file | --cache-file | --cache-fil | --cache-fi \
1233   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1234     ac_prev=cache_file ;;
1235   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1236   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1237     cache_file=$ac_optarg ;;
1238
1239   --config-cache | -C)
1240     cache_file=config.cache ;;
1241
1242   -datadir | --datadir | --datadi | --datad)
1243     ac_prev=datadir ;;
1244   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1245     datadir=$ac_optarg ;;
1246
1247   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1248   | --dataroo | --dataro | --datar)
1249     ac_prev=datarootdir ;;
1250   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1251   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1252     datarootdir=$ac_optarg ;;
1253
1254   -disable-* | --disable-*)
1255     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258       as_fn_error "invalid feature name: $ac_useropt"
1259     ac_useropt_orig=$ac_useropt
1260     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261     case $ac_user_opts in
1262       *"
1263 "enable_$ac_useropt"
1264 "*) ;;
1265       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1266          ac_unrecognized_sep=', ';;
1267     esac
1268     eval enable_$ac_useropt=no ;;
1269
1270   -docdir | --docdir | --docdi | --doc | --do)
1271     ac_prev=docdir ;;
1272   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1273     docdir=$ac_optarg ;;
1274
1275   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1276     ac_prev=dvidir ;;
1277   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1278     dvidir=$ac_optarg ;;
1279
1280   -enable-* | --enable-*)
1281     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1282     # Reject names that are not valid shell variable names.
1283     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284       as_fn_error "invalid feature name: $ac_useropt"
1285     ac_useropt_orig=$ac_useropt
1286     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287     case $ac_user_opts in
1288       *"
1289 "enable_$ac_useropt"
1290 "*) ;;
1291       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1292          ac_unrecognized_sep=', ';;
1293     esac
1294     eval enable_$ac_useropt=\$ac_optarg ;;
1295
1296   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1297   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1298   | --exec | --exe | --ex)
1299     ac_prev=exec_prefix ;;
1300   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1301   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1302   | --exec=* | --exe=* | --ex=*)
1303     exec_prefix=$ac_optarg ;;
1304
1305   -gas | --gas | --ga | --g)
1306     # Obsolete; use --with-gas.
1307     with_gas=yes ;;
1308
1309   -help | --help | --hel | --he | -h)
1310     ac_init_help=long ;;
1311   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1312     ac_init_help=recursive ;;
1313   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1314     ac_init_help=short ;;
1315
1316   -host | --host | --hos | --ho)
1317     ac_prev=host_alias ;;
1318   -host=* | --host=* | --hos=* | --ho=*)
1319     host_alias=$ac_optarg ;;
1320
1321   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1322     ac_prev=htmldir ;;
1323   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1324   | --ht=*)
1325     htmldir=$ac_optarg ;;
1326
1327   -includedir | --includedir | --includedi | --included | --include \
1328   | --includ | --inclu | --incl | --inc)
1329     ac_prev=includedir ;;
1330   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1331   | --includ=* | --inclu=* | --incl=* | --inc=*)
1332     includedir=$ac_optarg ;;
1333
1334   -infodir | --infodir | --infodi | --infod | --info | --inf)
1335     ac_prev=infodir ;;
1336   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1337     infodir=$ac_optarg ;;
1338
1339   -libdir | --libdir | --libdi | --libd)
1340     ac_prev=libdir ;;
1341   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1342     libdir=$ac_optarg ;;
1343
1344   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1345   | --libexe | --libex | --libe)
1346     ac_prev=libexecdir ;;
1347   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1348   | --libexe=* | --libex=* | --libe=*)
1349     libexecdir=$ac_optarg ;;
1350
1351   -localedir | --localedir | --localedi | --localed | --locale)
1352     ac_prev=localedir ;;
1353   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1354     localedir=$ac_optarg ;;
1355
1356   -localstatedir | --localstatedir | --localstatedi | --localstated \
1357   | --localstate | --localstat | --localsta | --localst | --locals)
1358     ac_prev=localstatedir ;;
1359   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1360   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1361     localstatedir=$ac_optarg ;;
1362
1363   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1364     ac_prev=mandir ;;
1365   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1366     mandir=$ac_optarg ;;
1367
1368   -nfp | --nfp | --nf)
1369     # Obsolete; use --without-fp.
1370     with_fp=no ;;
1371
1372   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1373   | --no-cr | --no-c | -n)
1374     no_create=yes ;;
1375
1376   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1377   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1378     no_recursion=yes ;;
1379
1380   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1381   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1382   | --oldin | --oldi | --old | --ol | --o)
1383     ac_prev=oldincludedir ;;
1384   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1385   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1386   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1387     oldincludedir=$ac_optarg ;;
1388
1389   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1390     ac_prev=prefix ;;
1391   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1392     prefix=$ac_optarg ;;
1393
1394   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1395   | --program-pre | --program-pr | --program-p)
1396     ac_prev=program_prefix ;;
1397   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1398   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1399     program_prefix=$ac_optarg ;;
1400
1401   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1402   | --program-suf | --program-su | --program-s)
1403     ac_prev=program_suffix ;;
1404   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1405   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1406     program_suffix=$ac_optarg ;;
1407
1408   -program-transform-name | --program-transform-name \
1409   | --program-transform-nam | --program-transform-na \
1410   | --program-transform-n | --program-transform- \
1411   | --program-transform | --program-transfor \
1412   | --program-transfo | --program-transf \
1413   | --program-trans | --program-tran \
1414   | --progr-tra | --program-tr | --program-t)
1415     ac_prev=program_transform_name ;;
1416   -program-transform-name=* | --program-transform-name=* \
1417   | --program-transform-nam=* | --program-transform-na=* \
1418   | --program-transform-n=* | --program-transform-=* \
1419   | --program-transform=* | --program-transfor=* \
1420   | --program-transfo=* | --program-transf=* \
1421   | --program-trans=* | --program-tran=* \
1422   | --progr-tra=* | --program-tr=* | --program-t=*)
1423     program_transform_name=$ac_optarg ;;
1424
1425   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1426     ac_prev=pdfdir ;;
1427   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1428     pdfdir=$ac_optarg ;;
1429
1430   -psdir | --psdir | --psdi | --psd | --ps)
1431     ac_prev=psdir ;;
1432   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1433     psdir=$ac_optarg ;;
1434
1435   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1436   | -silent | --silent | --silen | --sile | --sil)
1437     silent=yes ;;
1438
1439   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1440     ac_prev=sbindir ;;
1441   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1442   | --sbi=* | --sb=*)
1443     sbindir=$ac_optarg ;;
1444
1445   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1446   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1447   | --sharedst | --shareds | --shared | --share | --shar \
1448   | --sha | --sh)
1449     ac_prev=sharedstatedir ;;
1450   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1451   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1452   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1453   | --sha=* | --sh=*)
1454     sharedstatedir=$ac_optarg ;;
1455
1456   -site | --site | --sit)
1457     ac_prev=site ;;
1458   -site=* | --site=* | --sit=*)
1459     site=$ac_optarg ;;
1460
1461   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1462     ac_prev=srcdir ;;
1463   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1464     srcdir=$ac_optarg ;;
1465
1466   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1467   | --syscon | --sysco | --sysc | --sys | --sy)
1468     ac_prev=sysconfdir ;;
1469   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1470   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1471     sysconfdir=$ac_optarg ;;
1472
1473   -target | --target | --targe | --targ | --tar | --ta | --t)
1474     ac_prev=target_alias ;;
1475   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1476     target_alias=$ac_optarg ;;
1477
1478   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1479     verbose=yes ;;
1480
1481   -version | --version | --versio | --versi | --vers | -V)
1482     ac_init_version=: ;;
1483
1484   -with-* | --with-*)
1485     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1486     # Reject names that are not valid shell variable names.
1487     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1488       as_fn_error "invalid package name: $ac_useropt"
1489     ac_useropt_orig=$ac_useropt
1490     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1491     case $ac_user_opts in
1492       *"
1493 "with_$ac_useropt"
1494 "*) ;;
1495       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1496          ac_unrecognized_sep=', ';;
1497     esac
1498     eval with_$ac_useropt=\$ac_optarg ;;
1499
1500   -without-* | --without-*)
1501     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1502     # Reject names that are not valid shell variable names.
1503     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1504       as_fn_error "invalid package name: $ac_useropt"
1505     ac_useropt_orig=$ac_useropt
1506     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1507     case $ac_user_opts in
1508       *"
1509 "with_$ac_useropt"
1510 "*) ;;
1511       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1512          ac_unrecognized_sep=', ';;
1513     esac
1514     eval with_$ac_useropt=no ;;
1515
1516   --x)
1517     # Obsolete; use --with-x.
1518     with_x=yes ;;
1519
1520   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1521   | --x-incl | --x-inc | --x-in | --x-i)
1522     ac_prev=x_includes ;;
1523   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1524   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1525     x_includes=$ac_optarg ;;
1526
1527   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1528   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1529     ac_prev=x_libraries ;;
1530   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1531   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1532     x_libraries=$ac_optarg ;;
1533
1534   -*) as_fn_error "unrecognized option: \`$ac_option'
1535 Try \`$0 --help' for more information."
1536     ;;
1537
1538   *=*)
1539     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1540     # Reject names that are not valid shell variable names.
1541     case $ac_envvar in #(
1542       '' | [0-9]* | *[!_$as_cr_alnum]* )
1543       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1544     esac
1545     eval $ac_envvar=\$ac_optarg
1546     export $ac_envvar ;;
1547
1548   *)
1549     # FIXME: should be removed in autoconf 3.0.
1550     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1551     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1552       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1553     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1554     ;;
1555
1556   esac
1557 done
1558
1559 if test -n "$ac_prev"; then
1560   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1561   as_fn_error "missing argument to $ac_option"
1562 fi
1563
1564 if test -n "$ac_unrecognized_opts"; then
1565   case $enable_option_checking in
1566     no) ;;
1567     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1568     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1569   esac
1570 fi
1571
1572 # Check all directory arguments for consistency.
1573 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1574                 datadir sysconfdir sharedstatedir localstatedir includedir \
1575                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1576                 libdir localedir mandir
1577 do
1578   eval ac_val=\$$ac_var
1579   # Remove trailing slashes.
1580   case $ac_val in
1581     */ )
1582       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1583       eval $ac_var=\$ac_val;;
1584   esac
1585   # Be sure to have absolute directory names.
1586   case $ac_val in
1587     [\\/$]* | ?:[\\/]* )  continue;;
1588     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1589   esac
1590   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1591 done
1592
1593 # There might be people who depend on the old broken behavior: `$host'
1594 # used to hold the argument of --host etc.
1595 # FIXME: To remove some day.
1596 build=$build_alias
1597 host=$host_alias
1598 target=$target_alias
1599
1600 # FIXME: To remove some day.
1601 if test "x$host_alias" != x; then
1602   if test "x$build_alias" = x; then
1603     cross_compiling=maybe
1604     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1605     If a cross compiler is detected then cross compile mode will be used." >&2
1606   elif test "x$build_alias" != "x$host_alias"; then
1607     cross_compiling=yes
1608   fi
1609 fi
1610
1611 ac_tool_prefix=
1612 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1613
1614 test "$silent" = yes && exec 6>/dev/null
1615
1616
1617 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1618 ac_ls_di=`ls -di .` &&
1619 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1620   as_fn_error "working directory cannot be determined"
1621 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1622   as_fn_error "pwd does not report name of working directory"
1623
1624
1625 # Find the source files, if location was not specified.
1626 if test -z "$srcdir"; then
1627   ac_srcdir_defaulted=yes
1628   # Try the directory containing this script, then the parent directory.
1629   ac_confdir=`$as_dirname -- "$as_myself" ||
1630 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1631          X"$as_myself" : 'X\(//\)[^/]' \| \
1632          X"$as_myself" : 'X\(//\)$' \| \
1633          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1634 $as_echo X"$as_myself" |
1635     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1636             s//\1/
1637             q
1638           }
1639           /^X\(\/\/\)[^/].*/{
1640             s//\1/
1641             q
1642           }
1643           /^X\(\/\/\)$/{
1644             s//\1/
1645             q
1646           }
1647           /^X\(\/\).*/{
1648             s//\1/
1649             q
1650           }
1651           s/.*/./; q'`
1652   srcdir=$ac_confdir
1653   if test ! -r "$srcdir/$ac_unique_file"; then
1654     srcdir=..
1655   fi
1656 else
1657   ac_srcdir_defaulted=no
1658 fi
1659 if test ! -r "$srcdir/$ac_unique_file"; then
1660   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1661   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1662 fi
1663 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1664 ac_abs_confdir=`(
1665         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1666         pwd)`
1667 # When building in place, set srcdir=.
1668 if test "$ac_abs_confdir" = "$ac_pwd"; then
1669   srcdir=.
1670 fi
1671 # Remove unnecessary trailing slashes from srcdir.
1672 # Double slashes in file names in object file debugging info
1673 # mess up M-x gdb in Emacs.
1674 case $srcdir in
1675 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1676 esac
1677 for ac_var in $ac_precious_vars; do
1678   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1679   eval ac_env_${ac_var}_value=\$${ac_var}
1680   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1681   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1682 done
1683
1684 #
1685 # Report the --help message.
1686 #
1687 if test "$ac_init_help" = "long"; then
1688   # Omit some internal or obsolete options to make the list less imposing.
1689   # This message is too long to be a string in the A/UX 3.1 sh.
1690   cat <<_ACEOF
1691 \`configure' configures this package to adapt to many kinds of systems.
1692
1693 Usage: $0 [OPTION]... [VAR=VALUE]...
1694
1695 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1696 VAR=VALUE.  See below for descriptions of some of the useful variables.
1697
1698 Defaults for the options are specified in brackets.
1699
1700 Configuration:
1701   -h, --help              display this help and exit
1702       --help=short        display options specific to this package
1703       --help=recursive    display the short help of all the included packages
1704   -V, --version           display version information and exit
1705   -q, --quiet, --silent   do not print \`checking...' messages
1706       --cache-file=FILE   cache test results in FILE [disabled]
1707   -C, --config-cache      alias for \`--cache-file=config.cache'
1708   -n, --no-create         do not create output files
1709       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1710
1711 Installation directories:
1712   --prefix=PREFIX         install architecture-independent files in PREFIX
1713                           [$ac_default_prefix]
1714   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1715                           [PREFIX]
1716
1717 By default, \`make install' will install all the files in
1718 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1719 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1720 for instance \`--prefix=\$HOME'.
1721
1722 For better control, use the options below.
1723
1724 Fine tuning of the installation directories:
1725   --bindir=DIR            user executables [EPREFIX/bin]
1726   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1727   --libexecdir=DIR        program executables [EPREFIX/libexec]
1728   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1729   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1730   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1731   --libdir=DIR            object code libraries [EPREFIX/lib]
1732   --includedir=DIR        C header files [PREFIX/include]
1733   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1734   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1735   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1736   --infodir=DIR           info documentation [DATAROOTDIR/info]
1737   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1738   --mandir=DIR            man documentation [DATAROOTDIR/man]
1739   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1740   --htmldir=DIR           html documentation [DOCDIR]
1741   --dvidir=DIR            dvi documentation [DOCDIR]
1742   --pdfdir=DIR            pdf documentation [DOCDIR]
1743   --psdir=DIR             ps documentation [DOCDIR]
1744 _ACEOF
1745
1746   cat <<\_ACEOF
1747
1748 X features:
1749   --x-includes=DIR    X include files are in DIR
1750   --x-libraries=DIR   X library files are in DIR
1751
1752 System types:
1753   --build=BUILD     configure for building on BUILD [guessed]
1754   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1755 _ACEOF
1756 fi
1757
1758 if test -n "$ac_init_help"; then
1759
1760   cat <<\_ACEOF
1761
1762 Optional Features:
1763   --disable-option-checking  ignore unrecognized --enable/--with options
1764   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1765   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1766   --enable-libtool        enable building using GNU libtool [default=yes]
1767   --enable-shared[=PKGS]  build shared libraries [default=yes]
1768   --enable-static[=PKGS]  build static libraries [default=no]
1769   --enable-fast-install[=PKGS]
1770                           optimize for fast installation [default=yes]
1771   --disable-libtool-lock  avoid locking (might break parallel builds)
1772   --enable-includes       enable installing of include files [default=no]
1773   --disable-nls           do not use Native Language Support
1774   --disable-rpath         do not hardcode runtime library paths
1775   --enable-gnome          enable build of bgnome-console GUI [default=no]
1776   --enable-bat            enable build of bat Qt4 GUI [default=no]
1777   --enable-bwx-console    enable build of wxWidgets console [default=no]
1778   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1779                           KDE [default=no]
1780   --enable-smartalloc     enable smartalloc debugging support [default=no]
1781   --enable-lockmgr        enable lock manager support [default=no]
1782   --enable-static-tools   enable static tape tools [default=no]
1783   --enable-static-fd      enable static File daemon [default=no]
1784   --enable-static-sd      enable static Storage daemon [default=no]
1785   --enable-static-dir     enable static Director [default=no]
1786   --enable-static-cons    enable static Console [default=no]
1787   --enable-client-only    build client (File daemon) only [default=no]
1788   --enable-build-dird     enable building of dird (Director) [default=yes]
1789   --enable-build-stored   enable building of stored (Storage daemon)
1790                           [default=yes]
1791   --disable-conio         disable conio support [default=no]
1792   --enable-ipv6           enable ipv6 support [default=yes]
1793   --disable-readline      disable readline support [default=yes]
1794   --enable-batch-insert   enable the DB batch insert code [default=yes]
1795   --disable-largefile     omit support for large files
1796   --disable-afs           disable afs support [default=auto]
1797   --disable-acl           disable acl support [default=auto]
1798   --disable-xattr         disable xattr support [default=auto]
1799
1800 Optional Packages:
1801   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1802   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1803   --with-pic              try to use only PIC/non-PIC objects [default=use
1804                           both]
1805   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1806   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1807   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1808   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1809   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1810   --without-libintl-prefix     don't search for libintl in includedir and libdir
1811   --with-included-gettext use the GNU gettext library included here
1812   --with-readline[=DIR]   specify readline library directory
1813   --with-python[=DIR]     Include Python support. DIR is the Python base
1814                           install directory, default is to search through a
1815                           number of common places for the Python files.
1816   --with-tcp-wrappers[=DIR]
1817                           enable tcpwrappers support
1818   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1819   --with-working-dir=PATH specify path of Bacula working directory
1820   --with-archivedir=PATH  specify path of SD archive directory
1821   --with-basename=RESNAME specify base resource name for daemons
1822   --with-hostname=RESNAME specify host name for daemons
1823   --with-scriptdir=PATH   specify path of Bacula scripts directory
1824   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1825   --with-logdir=PATH      specify path of Bacula logs directory
1826   --with-plugindir=PATH   specify path of Bacula plugins directory
1827   --with-dump-email=EMAIL dump email address
1828   --with-job-email=EMAIL  job output email address
1829   --with-smtp-host=HOST   SMTP mail host address
1830   --with-pid-dir=PATH     specify location of Bacula pid files
1831   --with-subsys-dir=PATH  specify location of Bacula subsys file
1832   --with-baseport=PORT    specify base port address for daemons
1833   --with-dir-password=PASSWORD
1834                           specify Director's password
1835   --with-fd-password=PASSWORD
1836                           specify Client's password
1837   --with-sd-password=PASSWORD
1838                           specify Storage daemon's password
1839   --with-mon-dir-password=PASSWORD
1840                           specify Director's password used by the monitor
1841   --with-mon-fd-password=PASSWORD
1842                           specify Client's password used by the monitor
1843   --with-mon-sd-password=PASSWORD
1844                           specify Storage daemon's password used by the
1845                           monitor
1846   --with-db-name=DBNAME   specify database name [default=bacula]
1847   --with-db-user=UNAME    specify database user [default=bacula]
1848   --with-db-password=PWD  specify database password [default=*none*]
1849   --with-db-port=DBPORT   specify a database port [default=null]
1850   --with-dir-user=USER    specify user for Director daemon
1851   --with-dir-group=GROUP  specify group for Director daemon
1852   --with-sd-user=USER     specify user for Storage daemon
1853   --with-sd-group=GROUP   specify group for Storage daemon
1854   --with-fd-user=USER     specify user for File daemon
1855   --with-fd-group=GROUP   specify group for File daemon
1856   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1857   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1858                           base install directory, [default=/usr/local/pgsql]
1859   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1860                           directory, default is to search through a number of
1861                           common places for the MySQL files.
1862   --with-embedded-mysql[=DIR]
1863                           Include MySQL support. DIR is the MySQL base install
1864                           directory, default is to search through a number of
1865                           common places for the MySQL files.
1866   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1867                           install directory, default is to search through a
1868                           number of common places for the SQLite3 files.
1869   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1870                           install directory, default is to search through a
1871                           number of common places for the Ingres files.
1872   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1873                           directory, default is to search through a number of
1874                           common places for the DBI files.
1875   --with-dbi-driver[=DRIVER]
1876                           Suport for DBI driver. DRIVER is the one DBI driver
1877                           like Mysql, Postgresql, others. Default is to not
1878                           configure any driver.
1879   --with-x                use the X Window System
1880   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1881
1882 Some influential environment variables:
1883   CC          C compiler command
1884   CFLAGS      C compiler flags
1885   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1886               nonstandard directory <lib dir>
1887   LIBS        libraries to pass to the linker, e.g. -l<library>
1888   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1889               you have headers in a nonstandard directory <include dir>
1890   CXX         C++ compiler command
1891   CXXFLAGS    C++ compiler flags
1892   CPP         C preprocessor
1893   WXCONFIG    wx-config command. On some systems, you must set it to
1894               wx-config-2.6 to use wxWidgets 2.6.
1895   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1896   CXXCPP      C++ preprocessor
1897   XMKMF       Path to xmkmf, Makefile generator for X Window System
1898
1899 Use these variables to override the choices made by `configure' or to help
1900 it to find libraries and programs with nonstandard names/locations.
1901
1902 Report bugs to the package provider.
1903 _ACEOF
1904 ac_status=$?
1905 fi
1906
1907 if test "$ac_init_help" = "recursive"; then
1908   # If there are subdirs, report their specific --help.
1909   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1910     test -d "$ac_dir" ||
1911       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1912       continue
1913     ac_builddir=.
1914
1915 case "$ac_dir" in
1916 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1917 *)
1918   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1919   # A ".." for each directory in $ac_dir_suffix.
1920   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1921   case $ac_top_builddir_sub in
1922   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1923   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1924   esac ;;
1925 esac
1926 ac_abs_top_builddir=$ac_pwd
1927 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1928 # for backward compatibility:
1929 ac_top_builddir=$ac_top_build_prefix
1930
1931 case $srcdir in
1932   .)  # We are building in place.
1933     ac_srcdir=.
1934     ac_top_srcdir=$ac_top_builddir_sub
1935     ac_abs_top_srcdir=$ac_pwd ;;
1936   [\\/]* | ?:[\\/]* )  # Absolute name.
1937     ac_srcdir=$srcdir$ac_dir_suffix;
1938     ac_top_srcdir=$srcdir
1939     ac_abs_top_srcdir=$srcdir ;;
1940   *) # Relative name.
1941     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1942     ac_top_srcdir=$ac_top_build_prefix$srcdir
1943     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1944 esac
1945 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1946
1947     cd "$ac_dir" || { ac_status=$?; continue; }
1948     # Check for guested configure.
1949     if test -f "$ac_srcdir/configure.gnu"; then
1950       echo &&
1951       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1952     elif test -f "$ac_srcdir/configure"; then
1953       echo &&
1954       $SHELL "$ac_srcdir/configure" --help=recursive
1955     else
1956       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1957     fi || ac_status=$?
1958     cd "$ac_pwd" || { ac_status=$?; break; }
1959   done
1960 fi
1961
1962 test -n "$ac_init_help" && exit $ac_status
1963 if $ac_init_version; then
1964   cat <<\_ACEOF
1965 configure
1966 generated by GNU Autoconf 2.65
1967
1968 Copyright (C) 2009 Free Software Foundation, Inc.
1969 This configure script is free software; the Free Software Foundation
1970 gives unlimited permission to copy, distribute and modify it.
1971 _ACEOF
1972   exit
1973 fi
1974
1975 ## ------------------------ ##
1976 ## Autoconf initialization. ##
1977 ## ------------------------ ##
1978
1979 # ac_fn_c_try_compile LINENO
1980 # --------------------------
1981 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_c_try_compile ()
1983 {
1984   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985   rm -f conftest.$ac_objext
1986   if { { ac_try="$ac_compile"
1987 case "(($ac_try" in
1988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989   *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993   (eval "$ac_compile") 2>conftest.err
1994   ac_status=$?
1995   if test -s conftest.err; then
1996     grep -v '^ *+' conftest.err >conftest.er1
1997     cat conftest.er1 >&5
1998     mv -f conftest.er1 conftest.err
1999   fi
2000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001   test $ac_status = 0; } && {
2002          test -z "$ac_c_werror_flag" ||
2003          test ! -s conftest.err
2004        } && test -s conftest.$ac_objext; then :
2005   ac_retval=0
2006 else
2007   $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010         ac_retval=1
2011 fi
2012   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013   as_fn_set_status $ac_retval
2014
2015 } # ac_fn_c_try_compile
2016
2017 # ac_fn_cxx_try_compile LINENO
2018 # ----------------------------
2019 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_cxx_try_compile ()
2021 {
2022   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023   rm -f conftest.$ac_objext
2024   if { { ac_try="$ac_compile"
2025 case "(($ac_try" in
2026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027   *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031   (eval "$ac_compile") 2>conftest.err
2032   ac_status=$?
2033   if test -s conftest.err; then
2034     grep -v '^ *+' conftest.err >conftest.er1
2035     cat conftest.er1 >&5
2036     mv -f conftest.er1 conftest.err
2037   fi
2038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039   test $ac_status = 0; } && {
2040          test -z "$ac_cxx_werror_flag" ||
2041          test ! -s conftest.err
2042        } && test -s conftest.$ac_objext; then :
2043   ac_retval=0
2044 else
2045   $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048         ac_retval=1
2049 fi
2050   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051   as_fn_set_status $ac_retval
2052
2053 } # ac_fn_cxx_try_compile
2054
2055 # ac_fn_c_try_cpp LINENO
2056 # ----------------------
2057 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2058 ac_fn_c_try_cpp ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   if { { ac_try="$ac_cpp conftest.$ac_ext"
2062 case "(($ac_try" in
2063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064   *) ac_try_echo=$ac_try;;
2065 esac
2066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067 $as_echo "$ac_try_echo"; } >&5
2068   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2069   ac_status=$?
2070   if test -s conftest.err; then
2071     grep -v '^ *+' conftest.err >conftest.er1
2072     cat conftest.er1 >&5
2073     mv -f conftest.er1 conftest.err
2074   fi
2075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076   test $ac_status = 0; } >/dev/null && {
2077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2078          test ! -s conftest.err
2079        }; then :
2080   ac_retval=0
2081 else
2082   $as_echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2084
2085     ac_retval=1
2086 fi
2087   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088   as_fn_set_status $ac_retval
2089
2090 } # ac_fn_c_try_cpp
2091
2092 # ac_fn_c_try_link LINENO
2093 # -----------------------
2094 # Try to link conftest.$ac_ext, and return whether this succeeded.
2095 ac_fn_c_try_link ()
2096 {
2097   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098   rm -f conftest.$ac_objext conftest$ac_exeext
2099   if { { ac_try="$ac_link"
2100 case "(($ac_try" in
2101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102   *) ac_try_echo=$ac_try;;
2103 esac
2104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105 $as_echo "$ac_try_echo"; } >&5
2106   (eval "$ac_link") 2>conftest.err
2107   ac_status=$?
2108   if test -s conftest.err; then
2109     grep -v '^ *+' conftest.err >conftest.er1
2110     cat conftest.er1 >&5
2111     mv -f conftest.er1 conftest.err
2112   fi
2113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114   test $ac_status = 0; } && {
2115          test -z "$ac_c_werror_flag" ||
2116          test ! -s conftest.err
2117        } && test -s conftest$ac_exeext && {
2118          test "$cross_compiling" = yes ||
2119          $as_test_x conftest$ac_exeext
2120        }; then :
2121   ac_retval=0
2122 else
2123   $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126         ac_retval=1
2127 fi
2128   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2129   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2130   # interfere with the next link command; also delete a directory that is
2131   # left behind by Apple's compiler.  We do this before executing the actions.
2132   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2133   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134   as_fn_set_status $ac_retval
2135
2136 } # ac_fn_c_try_link
2137
2138 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2139 # -------------------------------------------------------
2140 # Tests whether HEADER exists and can be compiled using the include files in
2141 # INCLUDES, setting the cache variable VAR accordingly.
2142 ac_fn_c_check_header_compile ()
2143 {
2144   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2148   $as_echo_n "(cached) " >&6
2149 else
2150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h.  */
2152 $4
2153 #include <$2>
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156   eval "$3=yes"
2157 else
2158   eval "$3=no"
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 fi
2162 eval ac_res=\$$3
2163                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166
2167 } # ac_fn_c_check_header_compile
2168
2169 # ac_fn_c_try_run LINENO
2170 # ----------------------
2171 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2172 # that executables *can* be run.
2173 ac_fn_c_try_run ()
2174 {
2175   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176   if { { ac_try="$ac_link"
2177 case "(($ac_try" in
2178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179   *) ac_try_echo=$ac_try;;
2180 esac
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183   (eval "$ac_link") 2>&5
2184   ac_status=$?
2185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2186   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2187   { { case "(($ac_try" in
2188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189   *) ac_try_echo=$ac_try;;
2190 esac
2191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2192 $as_echo "$ac_try_echo"; } >&5
2193   (eval "$ac_try") 2>&5
2194   ac_status=$?
2195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196   test $ac_status = 0; }; }; then :
2197   ac_retval=0
2198 else
2199   $as_echo "$as_me: program exited with status $ac_status" >&5
2200        $as_echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2202
2203        ac_retval=$ac_status
2204 fi
2205   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2206   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207   as_fn_set_status $ac_retval
2208
2209 } # ac_fn_c_try_run
2210
2211 # ac_fn_c_check_func LINENO FUNC VAR
2212 # ----------------------------------
2213 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2214 ac_fn_c_check_func ()
2215 {
2216   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2220   $as_echo_n "(cached) " >&6
2221 else
2222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h.  */
2224 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2226 #define $2 innocuous_$2
2227
2228 /* System header to define __stub macros and hopefully few prototypes,
2229     which can conflict with char $2 (); below.
2230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2231     <limits.h> exists even on freestanding compilers.  */
2232
2233 #ifdef __STDC__
2234 # include <limits.h>
2235 #else
2236 # include <assert.h>
2237 #endif
2238
2239 #undef $2
2240
2241 /* Override any GCC internal prototype to avoid an error.
2242    Use char because int might match the return type of a GCC
2243    builtin and then its argument prototype would still apply.  */
2244 #ifdef __cplusplus
2245 extern "C"
2246 #endif
2247 char $2 ();
2248 /* The GNU C library defines this for functions which it implements
2249     to always fail with ENOSYS.  Some functions are actually named
2250     something starting with __ and the normal name is an alias.  */
2251 #if defined __stub_$2 || defined __stub___$2
2252 choke me
2253 #endif
2254
2255 int
2256 main ()
2257 {
2258 return $2 ();
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_link "$LINENO"; then :
2264   eval "$3=yes"
2265 else
2266   eval "$3=no"
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext \
2269     conftest$ac_exeext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275
2276 } # ac_fn_c_check_func
2277
2278 # ac_fn_cxx_try_cpp LINENO
2279 # ------------------------
2280 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2281 ac_fn_cxx_try_cpp ()
2282 {
2283   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284   if { { ac_try="$ac_cpp conftest.$ac_ext"
2285 case "(($ac_try" in
2286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287   *) ac_try_echo=$ac_try;;
2288 esac
2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2292   ac_status=$?
2293   if test -s conftest.err; then
2294     grep -v '^ *+' conftest.err >conftest.er1
2295     cat conftest.er1 >&5
2296     mv -f conftest.er1 conftest.err
2297   fi
2298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299   test $ac_status = 0; } >/dev/null && {
2300          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2301          test ! -s conftest.err
2302        }; then :
2303   ac_retval=0
2304 else
2305   $as_echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2307
2308     ac_retval=1
2309 fi
2310   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2311   as_fn_set_status $ac_retval
2312
2313 } # ac_fn_cxx_try_cpp
2314
2315 # ac_fn_cxx_try_link LINENO
2316 # -------------------------
2317 # Try to link conftest.$ac_ext, and return whether this succeeded.
2318 ac_fn_cxx_try_link ()
2319 {
2320   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321   rm -f conftest.$ac_objext conftest$ac_exeext
2322   if { { ac_try="$ac_link"
2323 case "(($ac_try" in
2324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325   *) ac_try_echo=$ac_try;;
2326 esac
2327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2328 $as_echo "$ac_try_echo"; } >&5
2329   (eval "$ac_link") 2>conftest.err
2330   ac_status=$?
2331   if test -s conftest.err; then
2332     grep -v '^ *+' conftest.err >conftest.er1
2333     cat conftest.er1 >&5
2334     mv -f conftest.er1 conftest.err
2335   fi
2336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2337   test $ac_status = 0; } && {
2338          test -z "$ac_cxx_werror_flag" ||
2339          test ! -s conftest.err
2340        } && test -s conftest$ac_exeext && {
2341          test "$cross_compiling" = yes ||
2342          $as_test_x conftest$ac_exeext
2343        }; then :
2344   ac_retval=0
2345 else
2346   $as_echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2348
2349         ac_retval=1
2350 fi
2351   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2352   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2353   # interfere with the next link command; also delete a directory that is
2354   # left behind by Apple's compiler.  We do this before executing the actions.
2355   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2356   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2357   as_fn_set_status $ac_retval
2358
2359 } # ac_fn_cxx_try_link
2360
2361 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2362 # -------------------------------------------
2363 # Tests whether TYPE exists after having included INCLUDES, setting cache
2364 # variable VAR accordingly.
2365 ac_fn_c_check_type ()
2366 {
2367   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369 $as_echo_n "checking for $2... " >&6; }
2370 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2371   $as_echo_n "(cached) " >&6
2372 else
2373   eval "$3=no"
2374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h.  */
2376 $4
2377 int
2378 main ()
2379 {
2380 if (sizeof ($2))
2381          return 0;
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h.  */
2389 $4
2390 int
2391 main ()
2392 {
2393 if (sizeof (($2)))
2394             return 0;
2395   ;
2396   return 0;
2397 }
2398 _ACEOF
2399 if ac_fn_c_try_compile "$LINENO"; then :
2400
2401 else
2402   eval "$3=yes"
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 fi
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 fi
2408 eval ac_res=\$$3
2409                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2412
2413 } # ac_fn_c_check_type
2414
2415 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2416 # -------------------------------------------------------
2417 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2418 # the include files in INCLUDES and setting the cache variable VAR
2419 # accordingly.
2420 ac_fn_c_check_header_mongrel ()
2421 {
2422   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425 $as_echo_n "checking for $2... " >&6; }
2426 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2427   $as_echo_n "(cached) " >&6
2428 fi
2429 eval ac_res=\$$3
2430                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2432 else
2433   # Is the header compilable?
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2435 $as_echo_n "checking $2 usability... " >&6; }
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h.  */
2438 $4
2439 #include <$2>
2440 _ACEOF
2441 if ac_fn_c_try_compile "$LINENO"; then :
2442   ac_header_compiler=yes
2443 else
2444   ac_header_compiler=no
2445 fi
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2448 $as_echo "$ac_header_compiler" >&6; }
2449
2450 # Is the header present?
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2452 $as_echo_n "checking $2 presence... " >&6; }
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h.  */
2455 #include <$2>
2456 _ACEOF
2457 if ac_fn_c_try_cpp "$LINENO"; then :
2458   ac_header_preproc=yes
2459 else
2460   ac_header_preproc=no
2461 fi
2462 rm -f conftest.err conftest.$ac_ext
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2464 $as_echo "$ac_header_preproc" >&6; }
2465
2466 # So?  What about this header?
2467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2468   yes:no: )
2469     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2470 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2471     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2472 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2473     ;;
2474   no:yes:* )
2475     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2476 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2477     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2478 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2479     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2480 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2481     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2482 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2483     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2484 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2485     ;;
2486 esac
2487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2488 $as_echo_n "checking for $2... " >&6; }
2489 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2490   $as_echo_n "(cached) " >&6
2491 else
2492   eval "$3=\$ac_header_compiler"
2493 fi
2494 eval ac_res=\$$3
2495                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2496 $as_echo "$ac_res" >&6; }
2497 fi
2498   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2499
2500 } # ac_fn_c_check_header_mongrel
2501
2502 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2503 # --------------------------------------------
2504 # Tries to find the compile-time value of EXPR in a program that includes
2505 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2506 # computed
2507 ac_fn_c_compute_int ()
2508 {
2509   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510   if test "$cross_compiling" = yes; then
2511     # Depending upon the size, compute the lo and hi bounds.
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h.  */
2514 $4
2515 int
2516 main ()
2517 {
2518 static int test_array [1 - 2 * !(($2) >= 0)];
2519 test_array [0] = 0
2520
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526   ac_lo=0 ac_mid=0
2527   while :; do
2528     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h.  */
2530 $4
2531 int
2532 main ()
2533 {
2534 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2535 test_array [0] = 0
2536
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 if ac_fn_c_try_compile "$LINENO"; then :
2542   ac_hi=$ac_mid; break
2543 else
2544   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2545                         if test $ac_lo -le $ac_mid; then
2546                           ac_lo= ac_hi=
2547                           break
2548                         fi
2549                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2550 fi
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552   done
2553 else
2554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h.  */
2556 $4
2557 int
2558 main ()
2559 {
2560 static int test_array [1 - 2 * !(($2) < 0)];
2561 test_array [0] = 0
2562
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568   ac_hi=-1 ac_mid=-1
2569   while :; do
2570     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h.  */
2572 $4
2573 int
2574 main ()
2575 {
2576 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2577 test_array [0] = 0
2578
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 if ac_fn_c_try_compile "$LINENO"; then :
2584   ac_lo=$ac_mid; break
2585 else
2586   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2587                         if test $ac_mid -le $ac_hi; then
2588                           ac_lo= ac_hi=
2589                           break
2590                         fi
2591                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2592 fi
2593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594   done
2595 else
2596   ac_lo= ac_hi=
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 # Binary search between lo and hi bounds.
2602 while test "x$ac_lo" != "x$ac_hi"; do
2603   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h.  */
2606 $4
2607 int
2608 main ()
2609 {
2610 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2611 test_array [0] = 0
2612
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 if ac_fn_c_try_compile "$LINENO"; then :
2618   ac_hi=$ac_mid
2619 else
2620   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2621 fi
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 done
2624 case $ac_lo in #((
2625 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2626 '') ac_retval=1 ;;
2627 esac
2628   else
2629     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h.  */
2631 $4
2632 static long int longval () { return $2; }
2633 static unsigned long int ulongval () { return $2; }
2634 #include <stdio.h>
2635 #include <stdlib.h>
2636 int
2637 main ()
2638 {
2639
2640   FILE *f = fopen ("conftest.val", "w");
2641   if (! f)
2642     return 1;
2643   if (($2) < 0)
2644     {
2645       long int i = longval ();
2646       if (i != ($2))
2647         return 1;
2648       fprintf (f, "%ld", i);
2649     }
2650   else
2651     {
2652       unsigned long int i = ulongval ();
2653       if (i != ($2))
2654         return 1;
2655       fprintf (f, "%lu", i);
2656     }
2657   /* Do not output a trailing newline, as this causes \r\n confusion
2658      on some platforms.  */
2659   return ferror (f) || fclose (f) != 0;
2660
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 if ac_fn_c_try_run "$LINENO"; then :
2666   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2667 else
2668   ac_retval=1
2669 fi
2670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2671   conftest.$ac_objext conftest.beam conftest.$ac_ext
2672 rm -f conftest.val
2673
2674   fi
2675   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2676   as_fn_set_status $ac_retval
2677
2678 } # ac_fn_c_compute_int
2679
2680 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2681 # ----------------------------------------------------
2682 # Tries to find if the field MEMBER exists in type AGGR, after including
2683 # INCLUDES, setting cache variable VAR accordingly.
2684 ac_fn_c_check_member ()
2685 {
2686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2688 $as_echo_n "checking for $2.$3... " >&6; }
2689 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2690   $as_echo_n "(cached) " >&6
2691 else
2692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h.  */
2694 $5
2695 int
2696 main ()
2697 {
2698 static $2 ac_aggr;
2699 if (ac_aggr.$3)
2700 return 0;
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 if ac_fn_c_try_compile "$LINENO"; then :
2706   eval "$4=yes"
2707 else
2708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h.  */
2710 $5
2711 int
2712 main ()
2713 {
2714 static $2 ac_aggr;
2715 if (sizeof ac_aggr.$3)
2716 return 0;
2717   ;
2718   return 0;
2719 }
2720 _ACEOF
2721 if ac_fn_c_try_compile "$LINENO"; then :
2722   eval "$4=yes"
2723 else
2724   eval "$4=no"
2725 fi
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 fi
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 fi
2730 eval ac_res=\$$4
2731                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2732 $as_echo "$ac_res" >&6; }
2733   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734
2735 } # ac_fn_c_check_member
2736
2737 # ac_fn_c_check_decl LINENO SYMBOL VAR
2738 # ------------------------------------
2739 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2740 ac_fn_c_check_decl ()
2741 {
2742   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2744 $as_echo_n "checking whether $2 is declared... " >&6; }
2745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2746   $as_echo_n "(cached) " >&6
2747 else
2748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h.  */
2750 $4
2751 int
2752 main ()
2753 {
2754 #ifndef $2
2755   (void) $2;
2756 #endif
2757
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 if ac_fn_c_try_compile "$LINENO"; then :
2763   eval "$3=yes"
2764 else
2765   eval "$3=no"
2766 fi
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768 fi
2769 eval ac_res=\$$3
2770                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2771 $as_echo "$ac_res" >&6; }
2772   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2773
2774 } # ac_fn_c_check_decl
2775
2776 # ac_fn_cxx_try_run LINENO
2777 # ------------------------
2778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2779 # that executables *can* be run.
2780 ac_fn_cxx_try_run ()
2781 {
2782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783   if { { ac_try="$ac_link"
2784 case "(($ac_try" in
2785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786   *) ac_try_echo=$ac_try;;
2787 esac
2788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789 $as_echo "$ac_try_echo"; } >&5
2790   (eval "$ac_link") 2>&5
2791   ac_status=$?
2792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2794   { { case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2799 $as_echo "$ac_try_echo"; } >&5
2800   (eval "$ac_try") 2>&5
2801   ac_status=$?
2802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803   test $ac_status = 0; }; }; then :
2804   ac_retval=0
2805 else
2806   $as_echo "$as_me: program exited with status $ac_status" >&5
2807        $as_echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810        ac_retval=$ac_status
2811 fi
2812   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2813   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2814   as_fn_set_status $ac_retval
2815
2816 } # ac_fn_cxx_try_run
2817 cat >config.log <<_ACEOF
2818 This file contains any messages produced by compilers while
2819 running configure, to aid debugging if configure makes a mistake.
2820
2821 It was created by $as_me, which was
2822 generated by GNU Autoconf 2.65.  Invocation command line was
2823
2824   $ $0 $@
2825
2826 _ACEOF
2827 exec 5>>config.log
2828 {
2829 cat <<_ASUNAME
2830 ## --------- ##
2831 ## Platform. ##
2832 ## --------- ##
2833
2834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2839
2840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2841 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2842
2843 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2844 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2846 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2847 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2848 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2849 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2850
2851 _ASUNAME
2852
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856   IFS=$as_save_IFS
2857   test -z "$as_dir" && as_dir=.
2858     $as_echo "PATH: $as_dir"
2859   done
2860 IFS=$as_save_IFS
2861
2862 } >&5
2863
2864 cat >&5 <<_ACEOF
2865
2866
2867 ## ----------- ##
2868 ## Core tests. ##
2869 ## ----------- ##
2870
2871 _ACEOF
2872
2873
2874 # Keep a trace of the command line.
2875 # Strip out --no-create and --no-recursion so they do not pile up.
2876 # Strip out --silent because we don't want to record it for future runs.
2877 # Also quote any args containing shell meta-characters.
2878 # Make two passes to allow for proper duplicate-argument suppression.
2879 ac_configure_args=
2880 ac_configure_args0=
2881 ac_configure_args1=
2882 ac_must_keep_next=false
2883 for ac_pass in 1 2
2884 do
2885   for ac_arg
2886   do
2887     case $ac_arg in
2888     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2889     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2890     | -silent | --silent | --silen | --sile | --sil)
2891       continue ;;
2892     *\'*)
2893       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2894     esac
2895     case $ac_pass in
2896     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2897     2)
2898       as_fn_append ac_configure_args1 " '$ac_arg'"
2899       if test $ac_must_keep_next = true; then
2900         ac_must_keep_next=false # Got value, back to normal.
2901       else
2902         case $ac_arg in
2903           *=* | --config-cache | -C | -disable-* | --disable-* \
2904           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2905           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2906           | -with-* | --with-* | -without-* | --without-* | --x)
2907             case "$ac_configure_args0 " in
2908               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2909             esac
2910             ;;
2911           -* ) ac_must_keep_next=true ;;
2912         esac
2913       fi
2914       as_fn_append ac_configure_args " '$ac_arg'"
2915       ;;
2916     esac
2917   done
2918 done
2919 { ac_configure_args0=; unset ac_configure_args0;}
2920 { ac_configure_args1=; unset ac_configure_args1;}
2921
2922 # When interrupted or exit'd, cleanup temporary files, and complete
2923 # config.log.  We remove comments because anyway the quotes in there
2924 # would cause problems or look ugly.
2925 # WARNING: Use '\'' to represent an apostrophe within the trap.
2926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2927 trap 'exit_status=$?
2928   # Save into config.log some information that might help in debugging.
2929   {
2930     echo
2931
2932     cat <<\_ASBOX
2933 ## ---------------- ##
2934 ## Cache variables. ##
2935 ## ---------------- ##
2936 _ASBOX
2937     echo
2938     # The following way of writing the cache mishandles newlines in values,
2939 (
2940   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2941     eval ac_val=\$$ac_var
2942     case $ac_val in #(
2943     *${as_nl}*)
2944       case $ac_var in #(
2945       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2947       esac
2948       case $ac_var in #(
2949       _ | IFS | as_nl) ;; #(
2950       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2951       *) { eval $ac_var=; unset $ac_var;} ;;
2952       esac ;;
2953     esac
2954   done
2955   (set) 2>&1 |
2956     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2957     *${as_nl}ac_space=\ *)
2958       sed -n \
2959         "s/'\''/'\''\\\\'\'''\''/g;
2960           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2961       ;; #(
2962     *)
2963       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2964       ;;
2965     esac |
2966     sort
2967 )
2968     echo
2969
2970     cat <<\_ASBOX
2971 ## ----------------- ##
2972 ## Output variables. ##
2973 ## ----------------- ##
2974 _ASBOX
2975     echo
2976     for ac_var in $ac_subst_vars
2977     do
2978       eval ac_val=\$$ac_var
2979       case $ac_val in
2980       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2981       esac
2982       $as_echo "$ac_var='\''$ac_val'\''"
2983     done | sort
2984     echo
2985
2986     if test -n "$ac_subst_files"; then
2987       cat <<\_ASBOX
2988 ## ------------------- ##
2989 ## File substitutions. ##
2990 ## ------------------- ##
2991 _ASBOX
2992       echo
2993       for ac_var in $ac_subst_files
2994       do
2995         eval ac_val=\$$ac_var
2996         case $ac_val in
2997         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2998         esac
2999         $as_echo "$ac_var='\''$ac_val'\''"
3000       done | sort
3001       echo
3002     fi
3003
3004     if test -s confdefs.h; then
3005       cat <<\_ASBOX
3006 ## ----------- ##
3007 ## confdefs.h. ##
3008 ## ----------- ##
3009 _ASBOX
3010       echo
3011       cat confdefs.h
3012       echo
3013     fi
3014     test "$ac_signal" != 0 &&
3015       $as_echo "$as_me: caught signal $ac_signal"
3016     $as_echo "$as_me: exit $exit_status"
3017   } >&5
3018   rm -f core *.core core.conftest.* &&
3019     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3020     exit $exit_status
3021 ' 0
3022 for ac_signal in 1 2 13 15; do
3023   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3024 done
3025 ac_signal=0
3026
3027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3028 rm -f -r conftest* confdefs.h
3029
3030 $as_echo "/* confdefs.h */" > confdefs.h
3031
3032 # Predefined preprocessor variables.
3033
3034 cat >>confdefs.h <<_ACEOF
3035 #define PACKAGE_NAME "$PACKAGE_NAME"
3036 _ACEOF
3037
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3040 _ACEOF
3041
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3044 _ACEOF
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_STRING "$PACKAGE_STRING"
3048 _ACEOF
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3052 _ACEOF
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_URL "$PACKAGE_URL"
3056 _ACEOF
3057
3058
3059 # Let the site file select an alternate cache file if it wants to.
3060 # Prefer an explicitly selected file to automatically selected ones.
3061 ac_site_file1=NONE
3062 ac_site_file2=NONE
3063 if test -n "$CONFIG_SITE"; then
3064   ac_site_file1=$CONFIG_SITE
3065 elif test "x$prefix" != xNONE; then
3066   ac_site_file1=$prefix/share/config.site
3067   ac_site_file2=$prefix/etc/config.site
3068 else
3069   ac_site_file1=$ac_default_prefix/share/config.site
3070   ac_site_file2=$ac_default_prefix/etc/config.site
3071 fi
3072 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3073 do
3074   test "x$ac_site_file" = xNONE && continue
3075   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3076     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3077 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3078     sed 's/^/| /' "$ac_site_file" >&5
3079     . "$ac_site_file"
3080   fi
3081 done
3082
3083 if test -r "$cache_file"; then
3084   # Some versions of bash will fail to source /dev/null (special files
3085   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3086   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3087     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3088 $as_echo "$as_me: loading cache $cache_file" >&6;}
3089     case $cache_file in
3090       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3091       *)                      . "./$cache_file";;
3092     esac
3093   fi
3094 else
3095   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3096 $as_echo "$as_me: creating cache $cache_file" >&6;}
3097   >$cache_file
3098 fi
3099
3100 as_fn_append ac_header_list " stdlib.h"
3101 as_fn_append ac_header_list " unistd.h"
3102 as_fn_append ac_header_list " sys/param.h"
3103 # Check that the precious variables saved in the cache have kept the same
3104 # value.
3105 ac_cache_corrupted=false
3106 for ac_var in $ac_precious_vars; do
3107   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3108   eval ac_new_set=\$ac_env_${ac_var}_set
3109   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3110   eval ac_new_val=\$ac_env_${ac_var}_value
3111   case $ac_old_set,$ac_new_set in
3112     set,)
3113       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3114 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3115       ac_cache_corrupted=: ;;
3116     ,set)
3117       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3118 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3119       ac_cache_corrupted=: ;;
3120     ,);;
3121     *)
3122       if test "x$ac_old_val" != "x$ac_new_val"; then
3123         # differences in whitespace do not lead to failure.
3124         ac_old_val_w=`echo x $ac_old_val`
3125         ac_new_val_w=`echo x $ac_new_val`
3126         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3127           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3128 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3129           ac_cache_corrupted=:
3130         else
3131           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3132 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3133           eval $ac_var=\$ac_old_val
3134         fi
3135         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3136 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3137         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3138 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3139       fi;;
3140   esac
3141   # Pass precious variables to config.status.
3142   if test "$ac_new_set" = set; then
3143     case $ac_new_val in
3144     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3145     *) ac_arg=$ac_var=$ac_new_val ;;
3146     esac
3147     case " $ac_configure_args " in
3148       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3149       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3150     esac
3151   fi
3152 done
3153 if $ac_cache_corrupted; then
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3157 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3158   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3159 fi
3160 ## -------------------- ##
3161 ## Main body of script. ##
3162 ## -------------------- ##
3163
3164 ac_ext=c
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169
3170
3171 BUILD_DIR=`pwd`
3172 cd ..
3173 TOP_DIR=`pwd`
3174 cd ${BUILD_DIR}
3175
3176
3177 ac_aux_dir=
3178 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3179   for ac_t in install-sh install.sh shtool; do
3180     if test -f "$ac_dir/$ac_t"; then
3181       ac_aux_dir=$ac_dir
3182       ac_install_sh="$ac_aux_dir/$ac_t -c"
3183       break 2
3184     fi
3185   done
3186 done
3187 if test -z "$ac_aux_dir"; then
3188   as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3189 fi
3190
3191 # These three variables are undocumented and unsupported,
3192 # and are intended to be withdrawn in a future Autoconf release.
3193 # They can cause serious problems if a builder's source tree is in a directory
3194 # whose full name contains unusual characters.
3195 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3196 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3197 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3198
3199
3200 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3201
3202
3203 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3204 WIN32MAINDIR=${BUILD_DIR}
3205 WIN32TOPDIR=${TOP_DIR}
3206
3207
3208
3209
3210 for ac_prog in true
3211 do
3212   # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3217   $as_echo_n "(cached) " >&6
3218 else
3219   case $TRUEPRG in
3220   [\\/]* | ?:[\\/]*)
3221   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3222   ;;
3223   *)
3224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227   IFS=$as_save_IFS
3228   test -z "$as_dir" && as_dir=.
3229     for ac_exec_ext in '' $ac_executable_extensions; do
3230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233     break 2
3234   fi
3235 done
3236   done
3237 IFS=$as_save_IFS
3238
3239   ;;
3240 esac
3241 fi
3242 TRUEPRG=$ac_cv_path_TRUEPRG
3243 if test -n "$TRUEPRG"; then
3244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3245 $as_echo "$TRUEPRG" >&6; }
3246 else
3247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252   test -n "$TRUEPRG" && break
3253 done
3254 test -n "$TRUEPRG" || TRUEPRG=":"
3255
3256 for ac_prog in false
3257 do
3258   # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3263   $as_echo_n "(cached) " >&6
3264 else
3265   case $FALSEPRG in
3266   [\\/]* | ?:[\\/]*)
3267   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3268   ;;
3269   *)
3270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275     for ac_exec_ext in '' $ac_executable_extensions; do
3276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3277     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282   done
3283 IFS=$as_save_IFS
3284
3285   ;;
3286 esac
3287 fi
3288 FALSEPRG=$ac_cv_path_FALSEPRG
3289 if test -n "$FALSEPRG"; then
3290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3291 $as_echo "$FALSEPRG" >&6; }
3292 else
3293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 fi
3296
3297
3298   test -n "$FALSEPRG" && break
3299 done
3300 test -n "$FALSEPRG" || FALSEPRG=":"
3301
3302
3303
3304 post_host=
3305 if test "x$BACULA" != x; then
3306    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3307 fi
3308 BACULA=${BACULA:-Bacula}
3309 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3310 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3311 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3312 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3313
3314 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3315 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3316 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3317
3318 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3319 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3320 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3321
3322
3323 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3324 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3325
3326 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3327 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3328
3329
3330 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3331
3332 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3333
3334
3335 echo "configuring for ${BACULA} $VERSION ($DATE)"
3336
3337
3338
3339 ac_ext=c
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 if test -n "$ac_tool_prefix"; then
3345   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if test "${ac_cv_prog_CC+set}" = set; then :
3350   $as_echo_n "(cached) " >&6
3351 else
3352   if test -n "$CC"; then
3353   ac_cv_prog_CC="$CC" # Let the user override the test.
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3357 do
3358   IFS=$as_save_IFS
3359   test -z "$as_dir" && as_dir=.
3360     for ac_exec_ext in '' $ac_executable_extensions; do
3361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364     break 2
3365   fi
3366 done
3367   done
3368 IFS=$as_save_IFS
3369
3370 fi
3371 fi
3372 CC=$ac_cv_prog_CC
3373 if test -n "$CC"; then
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375 $as_echo "$CC" >&6; }
3376 else
3377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3379 fi
3380
3381
3382 fi
3383 if test -z "$ac_cv_prog_CC"; then
3384   ac_ct_CC=$CC
3385   # Extract the first word of "gcc", so it can be a program name with args.
3386 set dummy gcc; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3390   $as_echo_n "(cached) " >&6
3391 else
3392   if test -n "$ac_ct_CC"; then
3393   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400     for ac_exec_ext in '' $ac_executable_extensions; do
3401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402     ac_cv_prog_ac_ct_CC="gcc"
3403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407   done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3416 else
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421   if test "x$ac_ct_CC" = x; then
3422     CC=""
3423   else
3424     case $cross_compiling:$ac_tool_warned in
3425 yes:)
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3428 ac_tool_warned=yes ;;
3429 esac
3430     CC=$ac_ct_CC
3431   fi
3432 else
3433   CC="$ac_cv_prog_CC"
3434 fi
3435
3436 if test -z "$CC"; then
3437           if test -n "$ac_tool_prefix"; then
3438     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3439 set dummy ${ac_tool_prefix}cc; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_CC+set}" = set; then :
3443   $as_echo_n "(cached) " >&6
3444 else
3445   if test -n "$CC"; then
3446   ac_cv_prog_CC="$CC" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451   IFS=$as_save_IFS
3452   test -z "$as_dir" && as_dir=.
3453     for ac_exec_ext in '' $ac_executable_extensions; do
3454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455     ac_cv_prog_CC="${ac_tool_prefix}cc"
3456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457     break 2
3458   fi
3459 done
3460   done
3461 IFS=$as_save_IFS
3462
3463 fi
3464 fi
3465 CC=$ac_cv_prog_CC
3466 if test -n "$CC"; then
3467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468 $as_echo "$CC" >&6; }
3469 else
3470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474
3475   fi
3476 fi
3477 if test -z "$CC"; then
3478   # Extract the first word of "cc", so it can be a program name with args.
3479 set dummy cc; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if test "${ac_cv_prog_CC+set}" = set; then :
3483   $as_echo_n "(cached) " >&6
3484 else
3485   if test -n "$CC"; then
3486   ac_cv_prog_CC="$CC" # Let the user override the test.
3487 else
3488   ac_prog_rejected=no
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   test -z "$as_dir" && as_dir=.
3494     for ac_exec_ext in '' $ac_executable_extensions; do
3495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3497        ac_prog_rejected=yes
3498        continue
3499      fi
3500     ac_cv_prog_CC="cc"
3501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505   done
3506 IFS=$as_save_IFS
3507
3508 if test $ac_prog_rejected = yes; then
3509   # We found a bogon in the path, so make sure we never use it.
3510   set dummy $ac_cv_prog_CC
3511   shift
3512   if test $# != 0; then
3513     # We chose a different compiler from the bogus one.
3514     # However, it has the same basename, so the bogon will be chosen
3515     # first if we set CC to just the basename; use the full file name.
3516     shift
3517     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3518   fi
3519 fi
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532 fi
3533 if test -z "$CC"; then
3534   if test -n "$ac_tool_prefix"; then
3535   for ac_prog in cl.exe
3536   do
3537     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if test "${ac_cv_prog_CC+set}" = set; then :
3542   $as_echo_n "(cached) " >&6
3543 else
3544   if test -n "$CC"; then
3545   ac_cv_prog_CC="$CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   test -z "$as_dir" && as_dir=.
3552     for ac_exec_ext in '' $ac_executable_extensions; do
3553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556     break 2
3557   fi
3558 done
3559   done
3560 IFS=$as_save_IFS
3561
3562 fi
3563 fi
3564 CC=$ac_cv_prog_CC
3565 if test -n "$CC"; then
3566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 $as_echo "$CC" >&6; }
3568 else
3569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3571 fi
3572
3573
3574     test -n "$CC" && break
3575   done
3576 fi
3577 if test -z "$CC"; then
3578   ac_ct_CC=$CC
3579   for ac_prog in cl.exe
3580 do
3581   # Extract the first word of "$ac_prog", so it can be a program name with args.
3582 set dummy $ac_prog; ac_word=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3586   $as_echo_n "(cached) " >&6
3587 else
3588   if test -n "$ac_ct_CC"; then
3589   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590 else
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 for as_dir in $PATH
3593 do
3594   IFS=$as_save_IFS
3595   test -z "$as_dir" && as_dir=.
3596     for ac_exec_ext in '' $ac_executable_extensions; do
3597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3598     ac_cv_prog_ac_ct_CC="$ac_prog"
3599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600     break 2
3601   fi
3602 done
3603   done
3604 IFS=$as_save_IFS
3605
3606 fi
3607 fi
3608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3609 if test -n "$ac_ct_CC"; then
3610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3611 $as_echo "$ac_ct_CC" >&6; }
3612 else
3613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617
3618   test -n "$ac_ct_CC" && break
3619 done
3620
3621   if test "x$ac_ct_CC" = x; then
3622     CC=""
3623   else
3624     case $cross_compiling:$ac_tool_warned in
3625 yes:)
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3628 ac_tool_warned=yes ;;
3629 esac
3630     CC=$ac_ct_CC
3631   fi
3632 fi
3633
3634 fi
3635
3636
3637 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3639 as_fn_error "no acceptable C compiler found in \$PATH
3640 See \`config.log' for more details." "$LINENO" 5; }
3641
3642 # Provide some information about the compiler.
3643 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3644 set X $ac_compile
3645 ac_compiler=$2
3646 for ac_option in --version -v -V -qversion; do
3647   { { ac_try="$ac_compiler $ac_option >&5"
3648 case "(($ac_try" in
3649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650   *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3655   ac_status=$?
3656   if test -s conftest.err; then
3657     sed '10a\
3658 ... rest of stderr output deleted ...
3659          10q' conftest.err >conftest.er1
3660     cat conftest.er1 >&5
3661   fi
3662   rm -f conftest.er1 conftest.err
3663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664   test $ac_status = 0; }
3665 done
3666
3667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h.  */
3669
3670 int
3671 main ()
3672 {
3673
3674   ;
3675   return 0;
3676 }
3677 _ACEOF
3678 ac_clean_files_save=$ac_clean_files
3679 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3680 # Try to create an executable without -o first, disregard a.out.
3681 # It will help us diagnose broken compilers, and finding out an intuition
3682 # of exeext.
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3684 $as_echo_n "checking whether the C compiler works... " >&6; }
3685 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3686
3687 # The possible output files:
3688 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3689
3690 ac_rmfiles=
3691 for ac_file in $ac_files
3692 do
3693   case $ac_file in
3694     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3695     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3696   esac
3697 done
3698 rm -f $ac_rmfiles
3699
3700 if { { ac_try="$ac_link_default"
3701 case "(($ac_try" in
3702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703   *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707   (eval "$ac_link_default") 2>&5
3708   ac_status=$?
3709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710   test $ac_status = 0; }; then :
3711   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3712 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3713 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3714 # so that the user can short-circuit this test for compilers unknown to
3715 # Autoconf.
3716 for ac_file in $ac_files ''
3717 do
3718   test -f "$ac_file" || continue
3719   case $ac_file in
3720     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3721         ;;
3722     [ab].out )
3723         # We found the default executable, but exeext='' is most
3724         # certainly right.
3725         break;;
3726     *.* )
3727         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3728         then :; else
3729            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3730         fi
3731         # We set ac_cv_exeext here because the later test for it is not
3732         # safe: cross compilers may not add the suffix if given an `-o'
3733         # argument, so we may need to know it at that point already.
3734         # Even if this section looks crufty: it has the advantage of
3735         # actually working.
3736         break;;
3737     * )
3738         break;;
3739   esac
3740 done
3741 test "$ac_cv_exeext" = no && ac_cv_exeext=
3742
3743 else
3744   ac_file=''
3745 fi
3746 if test -z "$ac_file"; then :
3747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 $as_echo "no" >&6; }
3749 $as_echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 { as_fn_set_status 77
3755 as_fn_error "C compiler cannot create executables
3756 See \`config.log' for more details." "$LINENO" 5; }; }
3757 else
3758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3759 $as_echo "yes" >&6; }
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3762 $as_echo_n "checking for C compiler default output file name... " >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3764 $as_echo "$ac_file" >&6; }
3765 ac_exeext=$ac_cv_exeext
3766
3767 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3768 ac_clean_files=$ac_clean_files_save
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3770 $as_echo_n "checking for suffix of executables... " >&6; }
3771 if { { ac_try="$ac_link"
3772 case "(($ac_try" in
3773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774   *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778   (eval "$ac_link") 2>&5
3779   ac_status=$?
3780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781   test $ac_status = 0; }; then :
3782   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3783 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3784 # work properly (i.e., refer to `conftest.exe'), while it won't with
3785 # `rm'.
3786 for ac_file in conftest.exe conftest conftest.*; do
3787   test -f "$ac_file" || continue
3788   case $ac_file in
3789     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3790     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3791           break;;
3792     * ) break;;
3793   esac
3794 done
3795 else
3796   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798 as_fn_error "cannot compute suffix of executables: cannot compile and link
3799 See \`config.log' for more details." "$LINENO" 5; }
3800 fi
3801 rm -f conftest conftest$ac_cv_exeext
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3803 $as_echo "$ac_cv_exeext" >&6; }
3804
3805 rm -f conftest.$ac_ext
3806 EXEEXT=$ac_cv_exeext
3807 ac_exeext=$EXEEXT
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h.  */
3810 #include <stdio.h>
3811 int
3812 main ()
3813 {
3814 FILE *f = fopen ("conftest.out", "w");
3815  return ferror (f) || fclose (f) != 0;
3816
3817   ;
3818   return 0;
3819 }
3820 _ACEOF
3821 ac_clean_files="$ac_clean_files conftest.out"
3822 # Check that the compiler produces executables we can run.  If not, either
3823 # the compiler is broken, or we cross compile.
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3825 $as_echo_n "checking whether we are cross compiling... " >&6; }
3826 if test "$cross_compiling" != yes; then
3827   { { ac_try="$ac_link"
3828 case "(($ac_try" in
3829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830   *) ac_try_echo=$ac_try;;
3831 esac
3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833 $as_echo "$ac_try_echo"; } >&5
3834   (eval "$ac_link") 2>&5
3835   ac_status=$?
3836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837   test $ac_status = 0; }
3838   if { ac_try='./conftest$ac_cv_exeext'
3839   { { case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845   (eval "$ac_try") 2>&5
3846   ac_status=$?
3847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848   test $ac_status = 0; }; }; then
3849     cross_compiling=no
3850   else
3851     if test "$cross_compiling" = maybe; then
3852         cross_compiling=yes
3853     else
3854         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856 as_fn_error "cannot run C compiled programs.
3857 If you meant to cross compile, use \`--host'.
3858 See \`config.log' for more details." "$LINENO" 5; }
3859     fi
3860   fi
3861 fi
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3863 $as_echo "$cross_compiling" >&6; }
3864
3865 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3866 ac_clean_files=$ac_clean_files_save
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3868 $as_echo_n "checking for suffix of object files... " >&6; }
3869 if test "${ac_cv_objext+set}" = set; then :
3870   $as_echo_n "(cached) " >&6
3871 else
3872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h.  */
3874
3875 int
3876 main ()
3877 {
3878
3879   ;
3880   return 0;
3881 }
3882 _ACEOF
3883 rm -f conftest.o conftest.obj
3884 if { { ac_try="$ac_compile"
3885 case "(($ac_try" in
3886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887   *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891   (eval "$ac_compile") 2>&5
3892   ac_status=$?
3893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894   test $ac_status = 0; }; then :
3895   for ac_file in conftest.o conftest.obj conftest.*; do
3896   test -f "$ac_file" || continue;
3897   case $ac_file in
3898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3899     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3900        break;;
3901   esac
3902 done
3903 else
3904   $as_echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909 as_fn_error "cannot compute suffix of object files: cannot compile
3910 See \`config.log' for more details." "$LINENO" 5; }
3911 fi
3912 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3913 fi
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3915 $as_echo "$ac_cv_objext" >&6; }
3916 OBJEXT=$ac_cv_objext
3917 ac_objext=$OBJEXT
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3919 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3920 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3921   $as_echo_n "(cached) " >&6
3922 else
3923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h.  */
3925
3926 int
3927 main ()
3928 {
3929 #ifndef __GNUC__
3930        choke me
3931 #endif
3932
3933   ;
3934   return 0;
3935 }
3936 _ACEOF
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938   ac_compiler_gnu=yes
3939 else
3940   ac_compiler_gnu=no
3941 fi
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3944
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3947 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3948 if test $ac_compiler_gnu = yes; then
3949   GCC=yes
3950 else
3951   GCC=
3952 fi
3953 ac_test_CFLAGS=${CFLAGS+set}
3954 ac_save_CFLAGS=$CFLAGS
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3956 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3957 if test "${ac_cv_prog_cc_g+set}" = set; then :
3958   $as_echo_n "(cached) " >&6
3959 else
3960   ac_save_c_werror_flag=$ac_c_werror_flag
3961    ac_c_werror_flag=yes
3962    ac_cv_prog_cc_g=no
3963    CFLAGS="-g"
3964    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h.  */
3966
3967 int
3968 main ()
3969 {
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976   ac_cv_prog_cc_g=yes
3977 else
3978   CFLAGS=""
3979       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h.  */
3981
3982 int
3983 main ()
3984 {
3985
3986   ;
3987   return 0;
3988 }
3989 _ACEOF
3990 if ac_fn_c_try_compile "$LINENO"; then :
3991
3992 else
3993   ac_c_werror_flag=$ac_save_c_werror_flag
3994          CFLAGS="-g"
3995          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h.  */
3997
3998 int
3999 main ()
4000 {
4001
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007   ac_cv_prog_cc_g=yes
4008 fi
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 fi
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 fi
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014    ac_c_werror_flag=$ac_save_c_werror_flag
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4017 $as_echo "$ac_cv_prog_cc_g" >&6; }
4018 if test "$ac_test_CFLAGS" = set; then
4019   CFLAGS=$ac_save_CFLAGS
4020 elif test $ac_cv_prog_cc_g = yes; then
4021   if test "$GCC" = yes; then
4022     CFLAGS="-g -O2"
4023   else
4024     CFLAGS="-g"
4025   fi
4026 else
4027   if test "$GCC" = yes; then
4028     CFLAGS="-O2"
4029   else
4030     CFLAGS=
4031   fi
4032 fi
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4034 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4035 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4036   $as_echo_n "(cached) " >&6
4037 else
4038   ac_cv_prog_cc_c89=no
4039 ac_save_CC=$CC
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h.  */
4042 #include <stdarg.h>
4043 #include <stdio.h>
4044 #include <sys/types.h>
4045 #include <sys/stat.h>
4046 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4047 struct buf { int x; };
4048 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4049 static char *e (p, i)
4050      char **p;
4051      int i;
4052 {
4053   return p[i];
4054 }
4055 static char *f (char * (*g) (char **, int), char **p, ...)
4056 {
4057   char *s;
4058   va_list v;
4059   va_start (v,p);
4060   s = g (p, va_arg (v,int));
4061   va_end (v);
4062   return s;
4063 }
4064
4065 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4066    function prototypes and stuff, but not '\xHH' hex character constants.
4067    These don't provoke an error unfortunately, instead are silently treated
4068    as 'x'.  The following induces an error, until -std is added to get
4069    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4070    array size at least.  It's necessary to write '\x00'==0 to get something
4071    that's true only with -std.  */
4072 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4073
4074 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4075    inside strings and character constants.  */
4076 #define FOO(x) 'x'
4077 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4078
4079 int test (int i, double x);
4080 struct s1 {int (*f) (int a);};
4081 struct s2 {int (*f) (double a);};
4082 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4083 int argc;
4084 char **argv;
4085 int
4086 main ()
4087 {
4088 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4094         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4095 do
4096   CC="$ac_save_CC $ac_arg"
4097   if ac_fn_c_try_compile "$LINENO"; then :
4098   ac_cv_prog_cc_c89=$ac_arg
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext
4101   test "x$ac_cv_prog_cc_c89" != "xno" && break
4102 done
4103 rm -f conftest.$ac_ext
4104 CC=$ac_save_CC
4105
4106 fi
4107 # AC_CACHE_VAL
4108 case "x$ac_cv_prog_cc_c89" in
4109   x)
4110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4111 $as_echo "none needed" >&6; } ;;
4112   xno)
4113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114 $as_echo "unsupported" >&6; } ;;
4115   *)
4116     CC="$CC $ac_cv_prog_cc_c89"
4117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4118 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4119 esac
4120 if test "x$ac_cv_prog_cc_c89" != xno; then :
4121
4122 fi
4123
4124 ac_ext=c
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129
4130 ac_ext=cpp
4131 ac_cpp='$CXXCPP $CPPFLAGS'
4132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4135 if test -z "$CXX"; then
4136   if test -n "$CCC"; then
4137     CXX=$CCC
4138   else
4139     if test -n "$ac_tool_prefix"; then
4140   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4141   do
4142     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if test "${ac_cv_prog_CXX+set}" = set; then :
4147   $as_echo_n "(cached) " >&6
4148 else
4149   if test -n "$CXX"; then
4150   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155   IFS=$as_save_IFS
4156   test -z "$as_dir" && as_dir=.
4157     for ac_exec_ext in '' $ac_executable_extensions; do
4158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161     break 2
4162   fi
4163 done
4164   done
4165 IFS=$as_save_IFS
4166
4167 fi
4168 fi
4169 CXX=$ac_cv_prog_CXX
4170 if test -n "$CXX"; then
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4172 $as_echo "$CXX" >&6; }
4173 else
4174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4176 fi
4177
4178
4179     test -n "$CXX" && break
4180   done
4181 fi
4182 if test -z "$CXX"; then
4183   ac_ct_CXX=$CXX
4184   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4185 do
4186   # Extract the first word of "$ac_prog", so it can be a program name with args.
4187 set dummy $ac_prog; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4191   $as_echo_n "(cached) " >&6
4192 else
4193   if test -n "$ac_ct_CXX"; then
4194   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201     for ac_exec_ext in '' $ac_executable_extensions; do
4202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203     ac_cv_prog_ac_ct_CXX="$ac_prog"
4204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205     break 2
4206   fi
4207 done
4208   done
4209 IFS=$as_save_IFS
4210
4211 fi
4212 fi
4213 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4214 if test -n "$ac_ct_CXX"; then
4215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4216 $as_echo "$ac_ct_CXX" >&6; }
4217 else
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4220 fi
4221
4222
4223   test -n "$ac_ct_CXX" && break
4224 done
4225
4226   if test "x$ac_ct_CXX" = x; then
4227     CXX="g++"
4228   else
4229     case $cross_compiling:$ac_tool_warned in
4230 yes:)
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4233 ac_tool_warned=yes ;;
4234 esac
4235     CXX=$ac_ct_CXX
4236   fi
4237 fi
4238
4239   fi
4240 fi
4241 # Provide some information about the compiler.
4242 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4243 set X $ac_compile
4244 ac_compiler=$2
4245 for ac_option in --version -v -V -qversion; do
4246   { { ac_try="$ac_compiler $ac_option >&5"
4247 case "(($ac_try" in
4248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249   *) ac_try_echo=$ac_try;;
4250 esac
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4254   ac_status=$?
4255   if test -s conftest.err; then
4256     sed '10a\
4257 ... rest of stderr output deleted ...
4258          10q' conftest.err >conftest.er1
4259     cat conftest.er1 >&5
4260   fi
4261   rm -f conftest.er1 conftest.err
4262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263   test $ac_status = 0; }
4264 done
4265
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4267 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4268 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4269   $as_echo_n "(cached) " >&6
4270 else
4271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h.  */
4273
4274 int
4275 main ()
4276 {
4277 #ifndef __GNUC__
4278        choke me
4279 #endif
4280
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 if ac_fn_cxx_try_compile "$LINENO"; then :
4286   ac_compiler_gnu=yes
4287 else
4288   ac_compiler_gnu=no
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4292
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4295 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4296 if test $ac_compiler_gnu = yes; then
4297   GXX=yes
4298 else
4299   GXX=
4300 fi
4301 ac_test_CXXFLAGS=${CXXFLAGS+set}
4302 ac_save_CXXFLAGS=$CXXFLAGS
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4304 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4305 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4306   $as_echo_n "(cached) " >&6
4307 else
4308   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4309    ac_cxx_werror_flag=yes
4310    ac_cv_prog_cxx_g=no
4311    CXXFLAGS="-g"
4312    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h.  */
4314
4315 int
4316 main ()
4317 {
4318
4319   ;
4320   return 0;
4321 }
4322 _ACEOF
4323 if ac_fn_cxx_try_compile "$LINENO"; then :
4324   ac_cv_prog_cxx_g=yes
4325 else
4326   CXXFLAGS=""
4327       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h.  */
4329
4330 int
4331 main ()
4332 {
4333
4334   ;
4335   return 0;
4336 }
4337 _ACEOF
4338 if ac_fn_cxx_try_compile "$LINENO"; then :
4339
4340 else
4341   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4342          CXXFLAGS="-g"
4343          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h.  */
4345
4346 int
4347 main ()
4348 {
4349
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354 if ac_fn_cxx_try_compile "$LINENO"; then :
4355   ac_cv_prog_cxx_g=yes
4356 fi
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360 fi
4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4363 fi
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4365 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4366 if test "$ac_test_CXXFLAGS" = set; then
4367   CXXFLAGS=$ac_save_CXXFLAGS
4368 elif test $ac_cv_prog_cxx_g = yes; then
4369   if test "$GXX" = yes; then
4370     CXXFLAGS="-g -O2"
4371   else
4372     CXXFLAGS="-g"
4373   fi
4374 else
4375   if test "$GXX" = yes; then
4376     CXXFLAGS="-O2"
4377   else
4378     CXXFLAGS=
4379   fi
4380 fi
4381 ac_ext=c
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386
4387 if test "x$CC" != xcc; then
4388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4389 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4390 else
4391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4392 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4393 fi
4394 set dummy $CC; ac_cc=`$as_echo "$2" |
4395                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4396 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4397   $as_echo_n "(cached) " >&6
4398 else
4399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h.  */
4401
4402 int
4403 main ()
4404 {
4405
4406   ;
4407   return 0;
4408 }
4409 _ACEOF
4410 # Make sure it works both with $CC and with simple cc.
4411 # We do the test twice because some compilers refuse to overwrite an
4412 # existing .o file with -o, though they will create one.
4413 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4414 rm -f conftest2.*
4415 if { { case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421   (eval "$ac_try") 2>&5
4422   ac_status=$?
4423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424   test $ac_status = 0; } &&
4425    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427   *) ac_try_echo=$ac_try;;
4428 esac
4429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431   (eval "$ac_try") 2>&5
4432   ac_status=$?
4433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4434   test $ac_status = 0; };
4435 then
4436   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4437   if test "x$CC" != xcc; then
4438     # Test first that cc exists at all.
4439     if { ac_try='cc -c conftest.$ac_ext >&5'
4440   { { case "(($ac_try" in
4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442   *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446   (eval "$ac_try") 2>&5
4447   ac_status=$?
4448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449   test $ac_status = 0; }; }; then
4450       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4451       rm -f conftest2.*
4452       if { { case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458   (eval "$ac_try") 2>&5
4459   ac_status=$?
4460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461   test $ac_status = 0; } &&
4462          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464   *) ac_try_echo=$ac_try;;
4465 esac
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468   (eval "$ac_try") 2>&5
4469   ac_status=$?
4470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471   test $ac_status = 0; };
4472       then
4473         # cc works too.
4474         :
4475       else
4476         # cc exists but doesn't like -o.
4477         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4478       fi
4479     fi
4480   fi
4481 else
4482   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4483 fi
4484 rm -f core conftest*
4485
4486 fi
4487 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4489 $as_echo "yes" >&6; }
4490 else
4491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4493
4494 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4495
4496 fi
4497
4498 ac_ext=c
4499 ac_cpp='$CPP $CPPFLAGS'
4500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4504 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4505 # On Suns, sometimes $CPP names a directory.
4506 if test -n "$CPP" && test -d "$CPP"; then
4507   CPP=
4508 fi
4509 if test -z "$CPP"; then
4510   if test "${ac_cv_prog_CPP+set}" = set; then :
4511   $as_echo_n "(cached) " >&6
4512 else
4513       # Double quotes because CPP needs to be expanded
4514     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4515     do
4516       ac_preproc_ok=false
4517 for ac_c_preproc_warn_flag in '' yes
4518 do
4519   # Use a header file that comes with gcc, so configuring glibc
4520   # with a fresh cross-compiler works.
4521   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4522   # <limits.h> exists even on freestanding compilers.
4523   # On the NeXT, cc -E runs the code through the compiler's parser,
4524   # not just through cpp. "Syntax error" is here to catch this case.
4525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h.  */
4527 #ifdef __STDC__
4528 # include <limits.h>
4529 #else
4530 # include <assert.h>
4531 #endif
4532                      Syntax error
4533 _ACEOF
4534 if ac_fn_c_try_cpp "$LINENO"; then :
4535
4536 else
4537   # Broken: fails on valid input.
4538 continue
4539 fi
4540 rm -f conftest.err conftest.$ac_ext
4541
4542   # OK, works on sane cases.  Now check whether nonexistent headers
4543   # can be detected and how.
4544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h.  */
4546 #include <ac_nonexistent.h>
4547 _ACEOF
4548 if ac_fn_c_try_cpp "$LINENO"; then :
4549   # Broken: success on invalid input.
4550 continue
4551 else
4552   # Passes both tests.
4553 ac_preproc_ok=:
4554 break
4555 fi
4556 rm -f conftest.err conftest.$ac_ext
4557
4558 done
4559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560 rm -f conftest.err conftest.$ac_ext
4561 if $ac_preproc_ok; then :
4562   break
4563 fi
4564
4565     done
4566     ac_cv_prog_CPP=$CPP
4567
4568 fi
4569   CPP=$ac_cv_prog_CPP
4570 else
4571   ac_cv_prog_CPP=$CPP
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4574 $as_echo "$CPP" >&6; }
4575 ac_preproc_ok=false
4576 for ac_c_preproc_warn_flag in '' yes
4577 do
4578   # Use a header file that comes with gcc, so configuring glibc
4579   # with a fresh cross-compiler works.
4580   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4581   # <limits.h> exists even on freestanding compilers.
4582   # On the NeXT, cc -E runs the code through the compiler's parser,
4583   # not just through cpp. "Syntax error" is here to catch this case.
4584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h.  */
4586 #ifdef __STDC__
4587 # include <limits.h>
4588 #else
4589 # include <assert.h>
4590 #endif
4591                      Syntax error
4592 _ACEOF
4593 if ac_fn_c_try_cpp "$LINENO"; then :
4594
4595 else
4596   # Broken: fails on valid input.
4597 continue
4598 fi
4599 rm -f conftest.err conftest.$ac_ext
4600
4601   # OK, works on sane cases.  Now check whether nonexistent headers
4602   # can be detected and how.
4603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h.  */
4605 #include <ac_nonexistent.h>
4606 _ACEOF
4607 if ac_fn_c_try_cpp "$LINENO"; then :
4608   # Broken: success on invalid input.
4609 continue
4610 else
4611   # Passes both tests.
4612 ac_preproc_ok=:
4613 break
4614 fi
4615 rm -f conftest.err conftest.$ac_ext
4616
4617 done
4618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4619 rm -f conftest.err conftest.$ac_ext
4620 if $ac_preproc_ok; then :
4621
4622 else
4623   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4625 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4626 See \`config.log' for more details." "$LINENO" 5; }
4627 fi
4628
4629 ac_ext=c
4630 ac_cpp='$CPP $CPPFLAGS'
4631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634
4635
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4637 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4638 if test "${ac_cv_path_GREP+set}" = set; then :
4639   $as_echo_n "(cached) " >&6
4640 else
4641   if test -z "$GREP"; then
4642   ac_path_GREP_found=false
4643   # Loop through the user's path and test for each of PROGNAME-LIST
4644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4646 do
4647   IFS=$as_save_IFS
4648   test -z "$as_dir" && as_dir=.
4649     for ac_prog in grep ggrep; do
4650     for ac_exec_ext in '' $ac_executable_extensions; do
4651       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4652       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4653 # Check for GNU ac_path_GREP and select it if it is found.
4654   # Check for GNU $ac_path_GREP
4655 case `"$ac_path_GREP" --version 2>&1` in
4656 *GNU*)
4657   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4658 *)
4659   ac_count=0
4660   $as_echo_n 0123456789 >"conftest.in"
4661   while :
4662   do
4663     cat "conftest.in" "conftest.in" >"conftest.tmp"
4664     mv "conftest.tmp" "conftest.in"
4665     cp "conftest.in" "conftest.nl"
4666     $as_echo 'GREP' >> "conftest.nl"
4667     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4668     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4669     as_fn_arith $ac_count + 1 && ac_count=$as_val
4670     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4671       # Best one so far, save it but keep looking for a better one
4672       ac_cv_path_GREP="$ac_path_GREP"
4673       ac_path_GREP_max=$ac_count
4674     fi
4675     # 10*(2^10) chars as input seems more than enough
4676     test $ac_count -gt 10 && break
4677   done
4678   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4679 esac
4680
4681       $ac_path_GREP_found && break 3
4682     done
4683   done
4684   done
4685 IFS=$as_save_IFS
4686   if test -z "$ac_cv_path_GREP"; then
4687     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4688   fi
4689 else
4690   ac_cv_path_GREP=$GREP
4691 fi
4692
4693 fi
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4695 $as_echo "$ac_cv_path_GREP" >&6; }
4696  GREP="$ac_cv_path_GREP"
4697
4698
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4700 $as_echo_n "checking for egrep... " >&6; }
4701 if test "${ac_cv_path_EGREP+set}" = set; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4705    then ac_cv_path_EGREP="$GREP -E"
4706    else
4707      if test -z "$EGREP"; then
4708   ac_path_EGREP_found=false
4709   # Loop through the user's path and test for each of PROGNAME-LIST
4710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4712 do
4713   IFS=$as_save_IFS
4714   test -z "$as_dir" && as_dir=.
4715     for ac_prog in egrep; do
4716     for ac_exec_ext in '' $ac_executable_extensions; do
4717       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4718       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4719 # Check for GNU ac_path_EGREP and select it if it is found.
4720   # Check for GNU $ac_path_EGREP
4721 case `"$ac_path_EGREP" --version 2>&1` in
4722 *GNU*)
4723   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4724 *)
4725   ac_count=0
4726   $as_echo_n 0123456789 >"conftest.in"
4727   while :
4728   do
4729     cat "conftest.in" "conftest.in" >"conftest.tmp"
4730     mv "conftest.tmp" "conftest.in"
4731     cp "conftest.in" "conftest.nl"
4732     $as_echo 'EGREP' >> "conftest.nl"
4733     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4734     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4735     as_fn_arith $ac_count + 1 && ac_count=$as_val
4736     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4737       # Best one so far, save it but keep looking for a better one
4738       ac_cv_path_EGREP="$ac_path_EGREP"
4739       ac_path_EGREP_max=$ac_count
4740     fi
4741     # 10*(2^10) chars as input seems more than enough
4742     test $ac_count -gt 10 && break
4743   done
4744   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4745 esac
4746
4747       $ac_path_EGREP_found && break 3
4748     done
4749   done
4750   done
4751 IFS=$as_save_IFS
4752   if test -z "$ac_cv_path_EGREP"; then
4753     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4754   fi
4755 else
4756   ac_cv_path_EGREP=$EGREP
4757 fi
4758
4759    fi
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4762 $as_echo "$ac_cv_path_EGREP" >&6; }
4763  EGREP="$ac_cv_path_EGREP"
4764
4765
4766 if test $ac_cv_c_compiler_gnu = yes; then
4767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4768 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4769 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4770   $as_echo_n "(cached) " >&6
4771 else
4772     ac_pattern="Autoconf.*'x'"
4773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h.  */
4775 #include <sgtty.h>
4776 Autoconf TIOCGETP
4777 _ACEOF
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4780   ac_cv_prog_gcc_traditional=yes
4781 else
4782   ac_cv_prog_gcc_traditional=no
4783 fi
4784 rm -f conftest*
4785
4786
4787   if test $ac_cv_prog_gcc_traditional = no; then
4788     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h.  */
4790 #include <termio.h>
4791 Autoconf TCGETA
4792 _ACEOF
4793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4795   ac_cv_prog_gcc_traditional=yes
4796 fi
4797 rm -f conftest*
4798
4799   fi
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4802 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4803   if test $ac_cv_prog_gcc_traditional = yes; then
4804     CC="$CC -traditional"
4805   fi
4806 fi
4807
4808 BASECC=`basename $CC`
4809 have_gcc=no
4810 if test "x$BASECC" = xgcc; then
4811    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4812
4813    have_gcc=yes
4814 fi
4815 # Extract the first word of "$CXX", so it can be a program name with args.
4816 set dummy $CXX; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_path_CXX+set}" = set; then :
4820   $as_echo_n "(cached) " >&6
4821 else
4822   case $CXX in
4823   [\\/]* | ?:[\\/]*)
4824   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4825   ;;
4826   *)
4827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832     for ac_exec_ext in '' $ac_executable_extensions; do
4833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836     break 2
4837   fi
4838 done
4839   done
4840 IFS=$as_save_IFS
4841
4842   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4843   ;;
4844 esac
4845 fi
4846 CXX=$ac_cv_path_CXX
4847 if test -n "$CXX"; then
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4849 $as_echo "$CXX" >&6; }
4850 else
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4853 fi
4854
4855
4856 if test ! -e $CXX; then
4857    as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4858 fi
4859
4860 # Find a good install program.  We prefer a C program (faster),
4861 # so one script is as good as another.  But avoid the broken or
4862 # incompatible versions:
4863 # SysV /etc/install, /usr/sbin/install
4864 # SunOS /usr/etc/install
4865 # IRIX /sbin/install
4866 # AIX /bin/install
4867 # AmigaOS /C/install, which installs bootblocks on floppy discs
4868 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4869 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4870 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4871 # OS/2's system install, which has a completely different semantic
4872 # ./install, which can be erroneously created by make from ./install.sh.
4873 # Reject install programs that cannot install multiple files.
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4875 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4876 if test -z "$INSTALL"; then
4877 if test "${ac_cv_path_install+set}" = set; then :
4878   $as_echo_n "(cached) " >&6
4879 else
4880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883   IFS=$as_save_IFS
4884   test -z "$as_dir" && as_dir=.
4885     # Account for people who put trailing slashes in PATH elements.
4886 case $as_dir/ in #((
4887   ./ | .// | /[cC]/* | \
4888   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4889   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4890   /usr/ucb/* ) ;;
4891   *)
4892     # OSF1 and SCO ODT 3.0 have their own names for install.
4893     # Don't use installbsd from OSF since it installs stuff as root
4894     # by default.
4895     for ac_prog in ginstall scoinst install; do
4896       for ac_exec_ext in '' $ac_executable_extensions; do
4897         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4898           if test $ac_prog = install &&
4899             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4900             # AIX install.  It has an incompatible calling convention.
4901             :
4902           elif test $ac_prog = install &&
4903             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4904             # program-specific install script used by HP pwplus--don't use.
4905             :
4906           else
4907             rm -rf conftest.one conftest.two conftest.dir
4908             echo one > conftest.one
4909             echo two > conftest.two
4910             mkdir conftest.dir
4911             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4912               test -s conftest.one && test -s conftest.two &&
4913               test -s conftest.dir/conftest.one &&
4914               test -s conftest.dir/conftest.two
4915             then
4916               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4917               break 3
4918             fi
4919           fi
4920         fi
4921       done
4922     done
4923     ;;
4924 esac
4925
4926   done
4927 IFS=$as_save_IFS
4928
4929 rm -rf conftest.one conftest.two conftest.dir
4930
4931 fi
4932   if test "${ac_cv_path_install+set}" = set; then
4933     INSTALL=$ac_cv_path_install
4934   else
4935     # As a last resort, use the slow shell script.  Don't cache a
4936     # value for INSTALL within a source directory, because that will
4937     # break other packages using the cache if that directory is
4938     # removed, or if the value is a relative name.
4939     INSTALL=$ac_install_sh
4940   fi
4941 fi
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4943 $as_echo "$INSTALL" >&6; }
4944
4945 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4946 # It thinks the first close brace ends the variable substitution.
4947 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4948
4949 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4950
4951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4952
4953 # Extract the first word of "mv", so it can be a program name with args.
4954 set dummy mv; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if test "${ac_cv_path_MV+set}" = set; then :
4958   $as_echo_n "(cached) " >&6
4959 else
4960   case $MV in
4961   [\\/]* | ?:[\\/]*)
4962   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4963   ;;
4964   *)
4965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4967 do
4968   IFS=$as_save_IFS
4969   test -z "$as_dir" && as_dir=.
4970     for ac_exec_ext in '' $ac_executable_extensions; do
4971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974     break 2
4975   fi
4976 done
4977   done
4978 IFS=$as_save_IFS
4979
4980   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4981   ;;
4982 esac
4983 fi
4984 MV=$ac_cv_path_MV
4985 if test -n "$MV"; then
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4987 $as_echo "$MV" >&6; }
4988 else
4989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4991 fi
4992
4993
4994 # Extract the first word of "rm", so it can be a program name with args.
4995 set dummy rm; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if test "${ac_cv_path_REMOVE+set}" = set; then :
4999   $as_echo_n "(cached) " >&6
5000 else
5001   case $REMOVE in
5002   [\\/]* | ?:[\\/]*)
5003   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5004   ;;
5005   *)
5006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011     for ac_exec_ext in '' $ac_executable_extensions; do
5012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5013     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5015     break 2
5016   fi
5017 done
5018   done
5019 IFS=$as_save_IFS
5020
5021   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5022   ;;
5023 esac
5024 fi
5025 REMOVE=$ac_cv_path_REMOVE
5026 if test -n "$REMOVE"; then
5027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5028 $as_echo "$REMOVE" >&6; }
5029 else
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 fi
5033
5034
5035 # Extract the first word of "cp", so it can be a program name with args.
5036 set dummy cp; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if test "${ac_cv_path_CP+set}" = set; then :
5040   $as_echo_n "(cached) " >&6
5041 else
5042   case $CP in
5043   [\\/]* | ?:[\\/]*)
5044   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5045   ;;
5046   *)
5047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5049 do
5050   IFS=$as_save_IFS
5051   test -z "$as_dir" && as_dir=.
5052     for ac_exec_ext in '' $ac_executable_extensions; do
5053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5054     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5056     break 2
5057   fi
5058 done
5059   done
5060 IFS=$as_save_IFS
5061
5062   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5063   ;;
5064 esac
5065 fi
5066 CP=$ac_cv_path_CP
5067 if test -n "$CP"; then
5068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5069 $as_echo "$CP" >&6; }
5070 else
5071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5073 fi
5074
5075
5076 # Extract the first word of "sed", so it can be a program name with args.
5077 set dummy sed; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if test "${ac_cv_path_SED+set}" = set; then :
5081   $as_echo_n "(cached) " >&6
5082 else
5083   case $SED in
5084   [\\/]* | ?:[\\/]*)
5085   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5086   ;;
5087   *)
5088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093     for ac_exec_ext in '' $ac_executable_extensions; do
5094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097     break 2
5098   fi
5099 done
5100   done
5101 IFS=$as_save_IFS
5102
5103   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5104   ;;
5105 esac
5106 fi
5107 SED=$ac_cv_path_SED
5108 if test -n "$SED"; then
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5110 $as_echo "$SED" >&6; }
5111 else
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116
5117 # Extract the first word of "echo", so it can be a program name with args.
5118 set dummy echo; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_path_ECHO+set}" = set; then :
5122   $as_echo_n "(cached) " >&6
5123 else
5124   case $ECHO in
5125   [\\/]* | ?:[\\/]*)
5126   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5127   ;;
5128   *)
5129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134     for ac_exec_ext in '' $ac_executable_extensions; do
5135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138     break 2
5139   fi
5140 done
5141   done
5142 IFS=$as_save_IFS
5143
5144   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5145   ;;
5146 esac
5147 fi
5148 ECHO=$ac_cv_path_ECHO
5149 if test -n "$ECHO"; then
5150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5151 $as_echo "$ECHO" >&6; }
5152 else
5153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5155 fi
5156
5157
5158 # Extract the first word of "cmp", so it can be a program name with args.
5159 set dummy cmp; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if test "${ac_cv_path_CMP+set}" = set; then :
5163   $as_echo_n "(cached) " >&6
5164 else
5165   case $CMP in
5166   [\\/]* | ?:[\\/]*)
5167   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5168   ;;
5169   *)
5170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173   IFS=$as_save_IFS
5174   test -z "$as_dir" && as_dir=.
5175     for ac_exec_ext in '' $ac_executable_extensions; do
5176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5177     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179     break 2
5180   fi
5181 done
5182   done
5183 IFS=$as_save_IFS
5184
5185   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5186   ;;
5187 esac
5188 fi
5189 CMP=$ac_cv_path_CMP
5190 if test -n "$CMP"; then
5191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5192 $as_echo "$CMP" >&6; }
5193 else
5194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5196 fi
5197
5198
5199 # Extract the first word of "tbl", so it can be a program name with args.
5200 set dummy tbl; ac_word=$2
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if test "${ac_cv_path_TBL+set}" = set; then :
5204   $as_echo_n "(cached) " >&6
5205 else
5206   case $TBL in
5207   [\\/]* | ?:[\\/]*)
5208   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5209   ;;
5210   *)
5211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5213 do
5214   IFS=$as_save_IFS
5215   test -z "$as_dir" && as_dir=.
5216     for ac_exec_ext in '' $ac_executable_extensions; do
5217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220     break 2
5221   fi
5222 done
5223   done
5224 IFS=$as_save_IFS
5225
5226   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5227   ;;
5228 esac
5229 fi
5230 TBL=$ac_cv_path_TBL
5231 if test -n "$TBL"; then
5232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5233 $as_echo "$TBL" >&6; }
5234 else
5235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 fi
5238
5239
5240 # Extract the first word of "ar", so it can be a program name with args.
5241 set dummy ar; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_path_AR+set}" = set; then :
5245   $as_echo_n "(cached) " >&6
5246 else
5247   case $AR in
5248   [\\/]* | ?:[\\/]*)
5249   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5250   ;;
5251   *)
5252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5254 do
5255   IFS=$as_save_IFS
5256   test -z "$as_dir" && as_dir=.
5257     for ac_exec_ext in '' $ac_executable_extensions; do
5258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261     break 2
5262   fi
5263 done
5264   done
5265 IFS=$as_save_IFS
5266
5267   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5268   ;;
5269 esac
5270 fi
5271 AR=$ac_cv_path_AR
5272 if test -n "$AR"; then
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5274 $as_echo "$AR" >&6; }
5275 else
5276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5278 fi
5279
5280
5281 # Extract the first word of "openssl", so it can be a program name with args.
5282 set dummy openssl; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5286   $as_echo_n "(cached) " >&6
5287 else
5288   case $OPENSSL in
5289   [\\/]* | ?:[\\/]*)
5290   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5291   ;;
5292   *)
5293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296   IFS=$as_save_IFS
5297   test -z "$as_dir" && as_dir=.
5298     for ac_exec_ext in '' $ac_executable_extensions; do
5299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5300     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302     break 2
5303   fi
5304 done
5305   done
5306 IFS=$as_save_IFS
5307
5308   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5309   ;;
5310 esac
5311 fi
5312 OPENSSL=$ac_cv_path_OPENSSL
5313 if test -n "$OPENSSL"; then
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5315 $as_echo "$OPENSSL" >&6; }
5316 else
5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 fi
5320
5321
5322 # Extract the first word of "mtx", so it can be a program name with args.
5323 set dummy mtx; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_MTX+set}" = set; then :
5327   $as_echo_n "(cached) " >&6
5328 else
5329   case $MTX in
5330   [\\/]* | ?:[\\/]*)
5331   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5332   ;;
5333   *)
5334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339     for ac_exec_ext in '' $ac_executable_extensions; do
5340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343     break 2
5344   fi
5345 done
5346   done
5347 IFS=$as_save_IFS
5348
5349   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5350   ;;
5351 esac
5352 fi
5353 MTX=$ac_cv_path_MTX
5354 if test -n "$MTX"; then
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5356 $as_echo "$MTX" >&6; }
5357 else
5358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5360 fi
5361
5362
5363 # Extract the first word of "dd", so it can be a program name with args.
5364 set dummy dd; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_path_DD+set}" = set; then :
5368   $as_echo_n "(cached) " >&6
5369 else
5370   case $DD in
5371   [\\/]* | ?:[\\/]*)
5372   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5373   ;;
5374   *)
5375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378   IFS=$as_save_IFS
5379   test -z "$as_dir" && as_dir=.
5380     for ac_exec_ext in '' $ac_executable_extensions; do
5381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384     break 2
5385   fi
5386 done
5387   done
5388 IFS=$as_save_IFS
5389
5390   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5391   ;;
5392 esac
5393 fi
5394 DD=$ac_cv_path_DD
5395 if test -n "$DD"; then
5396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5397 $as_echo "$DD" >&6; }
5398 else
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5401 fi
5402
5403
5404 # Extract the first word of "mkisofs", so it can be a program name with args.
5405 set dummy mkisofs; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5409   $as_echo_n "(cached) " >&6
5410 else
5411   case $MKISOFS in
5412   [\\/]* | ?:[\\/]*)
5413   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5414   ;;
5415   *)
5416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419   IFS=$as_save_IFS
5420   test -z "$as_dir" && as_dir=.
5421     for ac_exec_ext in '' $ac_executable_extensions; do
5422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425     break 2
5426   fi
5427 done
5428   done
5429 IFS=$as_save_IFS
5430
5431   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5432   ;;
5433 esac
5434 fi
5435 MKISOFS=$ac_cv_path_MKISOFS
5436 if test -n "$MKISOFS"; then
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5438 $as_echo "$MKISOFS" >&6; }
5439 else
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5442 fi
5443
5444
5445 # Extract the first word of "python", so it can be a program name with args.
5446 set dummy python; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_path_PYTHON+set}" = set; then :
5450   $as_echo_n "(cached) " >&6
5451 else
5452   case $PYTHON in
5453   [\\/]* | ?:[\\/]*)
5454   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5455   ;;
5456   *)
5457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460   IFS=$as_save_IFS
5461   test -z "$as_dir" && as_dir=.
5462     for ac_exec_ext in '' $ac_executable_extensions; do
5463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466     break 2
5467   fi
5468 done
5469   done
5470 IFS=$as_save_IFS
5471
5472   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5473   ;;
5474 esac
5475 fi
5476 PYTHON=$ac_cv_path_PYTHON
5477 if test -n "$PYTHON"; then
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5479 $as_echo "$PYTHON" >&6; }
5480 else
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5483 fi
5484
5485
5486 # Extract the first word of "growisofs", so it can be a program name with args.
5487 set dummy growisofs; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493   case $GROWISOFS in
5494   [\\/]* | ?:[\\/]*)
5495   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5496   ;;
5497   *)
5498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501   IFS=$as_save_IFS
5502   test -z "$as_dir" && as_dir=.
5503     for ac_exec_ext in '' $ac_executable_extensions; do
5504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5505     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507     break 2
5508   fi
5509 done
5510   done
5511 IFS=$as_save_IFS
5512
5513   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5514   ;;
5515 esac
5516 fi
5517 GROWISOFS=$ac_cv_path_GROWISOFS
5518 if test -n "$GROWISOFS"; then
5519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5520 $as_echo "$GROWISOFS" >&6; }
5521 else
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5524 fi
5525
5526
5527 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5528 set dummy dvd+rw-mediainfo; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   case $DVDRWMEDIAINFO in
5535   [\\/]* | ?:[\\/]*)
5536   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5537   ;;
5538   *)
5539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5541 do
5542   IFS=$as_save_IFS
5543   test -z "$as_dir" && as_dir=.
5544     for ac_exec_ext in '' $ac_executable_extensions; do
5545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5546     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548     break 2
5549   fi
5550 done
5551   done
5552 IFS=$as_save_IFS
5553
5554   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5555   ;;
5556 esac
5557 fi
5558 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5559 if test -n "$DVDRWMEDIAINFO"; then
5560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5561 $as_echo "$DVDRWMEDIAINFO" >&6; }
5562 else
5563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5566
5567
5568 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5569 set dummy dvd+rw-format; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5573   $as_echo_n "(cached) " >&6
5574 else
5575   case $DVDRWFORMAT in
5576   [\\/]* | ?:[\\/]*)
5577   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5578   ;;
5579   *)
5580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583   IFS=$as_save_IFS
5584   test -z "$as_dir" && as_dir=.
5585     for ac_exec_ext in '' $ac_executable_extensions; do
5586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589     break 2
5590   fi
5591 done
5592   done
5593 IFS=$as_save_IFS
5594
5595   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5596   ;;
5597 esac
5598 fi
5599 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5600 if test -n "$DVDRWFORMAT"; then
5601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5602 $as_echo "$DVDRWFORMAT" >&6; }
5603 else
5604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5606 fi
5607
5608
5609 # Extract the first word of "pkg-config", so it can be a program name with args.
5610 set dummy pkg-config; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5614   $as_echo_n "(cached) " >&6
5615 else
5616   case $PKGCONFIG in
5617   [\\/]* | ?:[\\/]*)
5618   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5619   ;;
5620   *)
5621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5623 do
5624   IFS=$as_save_IFS
5625   test -z "$as_dir" && as_dir=.
5626     for ac_exec_ext in '' $ac_executable_extensions; do
5627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630     break 2
5631   fi
5632 done
5633   done
5634 IFS=$as_save_IFS
5635
5636   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5637   ;;
5638 esac
5639 fi
5640 PKGCONFIG=$ac_cv_path_PKGCONFIG
5641 if test -n "$PKGCONFIG"; then
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5643 $as_echo "$PKGCONFIG" >&6; }
5644 else
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5647 fi
5648
5649
5650 # Extract the first word of "qmake", so it can be a program name with args.
5651 set dummy qmake; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if test "${ac_cv_path_QMAKE+set}" = set; then :
5655   $as_echo_n "(cached) " >&6
5656 else
5657   case $QMAKE in
5658   [\\/]* | ?:[\\/]*)
5659   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5660   ;;
5661   *)
5662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5664 do
5665   IFS=$as_save_IFS
5666   test -z "$as_dir" && as_dir=.
5667     for ac_exec_ext in '' $ac_executable_extensions; do
5668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5669     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671     break 2
5672   fi
5673 done
5674   done
5675 IFS=$as_save_IFS
5676
5677   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5678   ;;
5679 esac
5680 fi
5681 QMAKE=$ac_cv_path_QMAKE
5682 if test -n "$QMAKE"; then
5683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5684 $as_echo "$QMAKE" >&6; }
5685 else
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5688 fi
5689
5690
5691 # Extract the first word of "gmake", so it can be a program name with args.
5692 set dummy gmake; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if test "${ac_cv_path_GMAKE+set}" = set; then :
5696   $as_echo_n "(cached) " >&6
5697 else
5698   case $GMAKE in
5699   [\\/]* | ?:[\\/]*)
5700   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5701   ;;
5702   *)
5703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706   IFS=$as_save_IFS
5707   test -z "$as_dir" && as_dir=.
5708     for ac_exec_ext in '' $ac_executable_extensions; do
5709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712     break 2
5713   fi
5714 done
5715   done
5716 IFS=$as_save_IFS
5717
5718   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5719   ;;
5720 esac
5721 fi
5722 GMAKE=$ac_cv_path_GMAKE
5723 if test -n "$GMAKE"; then
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5725 $as_echo "$GMAKE" >&6; }
5726 else
5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730
5731
5732
5733 if test "x$WXCONFIG" = x; then
5734    WXCONFIG=wx-config
5735 fi
5736 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5737 set dummy ${WXCONFIG}; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5741   $as_echo_n "(cached) " >&6
5742 else
5743   case $WXCONFIG in
5744   [\\/]* | ?:[\\/]*)
5745   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5746   ;;
5747   *)
5748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753     for ac_exec_ext in '' $ac_executable_extensions; do
5754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760   done
5761 IFS=$as_save_IFS
5762
5763   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5764   ;;
5765 esac
5766 fi
5767 WXCONFIG=$ac_cv_path_WXCONFIG
5768 if test -n "$WXCONFIG"; then
5769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5770 $as_echo "$WXCONFIG" >&6; }
5771 else
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5774 fi
5775
5776
5777
5778 # Extract the first word of "cdrecord", so it can be a program name with args.
5779 set dummy cdrecord; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5783   $as_echo_n "(cached) " >&6
5784 else
5785   case $CDRECORD in
5786   [\\/]* | ?:[\\/]*)
5787   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5788   ;;
5789   *)
5790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795     for ac_exec_ext in '' $ac_executable_extensions; do
5796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802   done
5803 IFS=$as_save_IFS
5804
5805   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5806   ;;
5807 esac
5808 fi
5809 CDRECORD=$ac_cv_path_CDRECORD
5810 if test -n "$CDRECORD"; then
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5812 $as_echo "$CDRECORD" >&6; }
5813 else
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5816 fi
5817
5818
5819 # Extract the first word of "pidof", so it can be a program name with args.
5820 set dummy pidof; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if test "${ac_cv_path_PIDOF+set}" = set; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   case $PIDOF in
5827   [\\/]* | ?:[\\/]*)
5828   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5829   ;;
5830   *)
5831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834   IFS=$as_save_IFS
5835   test -z "$as_dir" && as_dir=.
5836     for ac_exec_ext in '' $ac_executable_extensions; do
5837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5838     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840     break 2
5841   fi
5842 done
5843   done
5844 IFS=$as_save_IFS
5845
5846   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5847   ;;
5848 esac
5849 fi
5850 PIDOF=$ac_cv_path_PIDOF
5851 if test -n "$PIDOF"; then
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5853 $as_echo "$PIDOF" >&6; }
5854 else
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5857 fi
5858
5859
5860 for ac_prog in gawk mawk nawk awk
5861 do
5862   # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if test "${ac_cv_prog_AWK+set}" = set; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   if test -n "$AWK"; then
5870   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877     for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_prog_AWK="$ac_prog"
5880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884   done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 AWK=$ac_cv_prog_AWK
5890 if test -n "$AWK"; then
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5892 $as_echo "$AWK" >&6; }
5893 else
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898
5899   test -n "$AWK" && break
5900 done
5901
5902 # Some AWK programs fail, so test it and warn the user
5903 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5904       { if ((prog == $2) || (("(" prog ")") == $2) ||
5905       (("" prog "") == $2) ||
5906       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5907 else
5908   as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5909    The regex engine of $AWK is too broken to be used you
5910    might want to install GNU AWK.
5911    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5912 fi
5913 THE_AWK=$AWK
5914 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5915 set dummy $THE_AWK; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if test "${ac_cv_path_AWK+set}" = set; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921   case $AWK in
5922   [\\/]* | ?:[\\/]*)
5923   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5924   ;;
5925   *)
5926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929   IFS=$as_save_IFS
5930   test -z "$as_dir" && as_dir=.
5931     for ac_exec_ext in '' $ac_executable_extensions; do
5932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5933     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5935     break 2
5936   fi
5937 done
5938   done
5939 IFS=$as_save_IFS
5940
5941   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5942   ;;
5943 esac
5944 fi
5945 AWK=$ac_cv_path_AWK
5946 if test -n "$AWK"; then
5947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5948 $as_echo "$AWK" >&6; }
5949 else
5950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953
5954
5955
5956
5957 test -n "$ARFLAG" || ARFLAGS="cr"
5958
5959
5960 MAKE_SHELL=/bin/sh
5961
5962
5963
5964
5965
5966
5967
5968 use_libtool=yes
5969 # Check whether --enable-libtool was given.
5970 if test "${enable_libtool+set}" = set; then :
5971   enableval=$enable_libtool;
5972        if test x$enableval = xno; then
5973           use_libtool=no
5974        fi
5975
5976
5977 fi
5978
5979 case `pwd` in
5980   *\ * | *\     *)
5981     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5982 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5983 esac
5984
5985
5986
5987 macro_version='2.2.6'
5988 macro_revision='1.3012'
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002 ltmain="$ac_aux_dir/ltmain.sh"
6003
6004 # Make sure we can run config.sub.
6005 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6006   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6009 $as_echo_n "checking build system type... " >&6; }
6010 if test "${ac_cv_build+set}" = set; then :
6011   $as_echo_n "(cached) " >&6
6012 else
6013   ac_build_alias=$build_alias
6014 test "x$ac_build_alias" = x &&
6015   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6016 test "x$ac_build_alias" = x &&
6017   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6018 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6019   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6020
6021 fi
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6023 $as_echo "$ac_cv_build" >&6; }
6024 case $ac_cv_build in
6025 *-*-*) ;;
6026 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6027 esac
6028 build=$ac_cv_build
6029 ac_save_IFS=$IFS; IFS='-'
6030 set x $ac_cv_build
6031 shift
6032 build_cpu=$1
6033 build_vendor=$2
6034 shift; shift
6035 # Remember, the first character of IFS is used to create $*,
6036 # except with old shells:
6037 build_os=$*
6038 IFS=$ac_save_IFS
6039 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6040
6041
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6043 $as_echo_n "checking host system type... " >&6; }
6044 if test "${ac_cv_host+set}" = set; then :
6045   $as_echo_n "(cached) " >&6
6046 else
6047   if test "x$host_alias" = x; then
6048   ac_cv_host=$ac_cv_build
6049 else
6050   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6051     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6052 fi
6053
6054 fi
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6056 $as_echo "$ac_cv_host" >&6; }
6057 case $ac_cv_host in
6058 *-*-*) ;;
6059 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6060 esac
6061 host=$ac_cv_host
6062 ac_save_IFS=$IFS; IFS='-'
6063 set x $ac_cv_host
6064 shift
6065 host_cpu=$1
6066 host_vendor=$2
6067 shift; shift
6068 # Remember, the first character of IFS is used to create $*,
6069 # except with old shells:
6070 host_os=$*
6071 IFS=$ac_save_IFS
6072 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6073
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6076 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6077 if test "${ac_cv_path_SED+set}" = set; then :
6078   $as_echo_n "(cached) " >&6
6079 else
6080             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6081      for ac_i in 1 2 3 4 5 6 7; do
6082        ac_script="$ac_script$as_nl$ac_script"
6083      done
6084      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6085      { ac_script=; unset ac_script;}
6086      if test -z "$SED"; then
6087   ac_path_SED_found=false
6088   # Loop through the user's path and test for each of PROGNAME-LIST
6089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092   IFS=$as_save_IFS
6093   test -z "$as_dir" && as_dir=.
6094     for ac_prog in sed gsed; do
6095     for ac_exec_ext in '' $ac_executable_extensions; do
6096       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6097       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6098 # Check for GNU ac_path_SED and select it if it is found.
6099   # Check for GNU $ac_path_SED
6100 case `"$ac_path_SED" --version 2>&1` in
6101 *GNU*)
6102   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6103 *)
6104   ac_count=0
6105   $as_echo_n 0123456789 >"conftest.in"
6106   while :
6107   do
6108     cat "conftest.in" "conftest.in" >"conftest.tmp"
6109     mv "conftest.tmp" "conftest.in"
6110     cp "conftest.in" "conftest.nl"
6111     $as_echo '' >> "conftest.nl"
6112     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6113     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6114     as_fn_arith $ac_count + 1 && ac_count=$as_val
6115     if test $ac_count -gt ${ac_path_SED_max-0}; then
6116       # Best one so far, save it but keep looking for a better one
6117       ac_cv_path_SED="$ac_path_SED"
6118       ac_path_SED_max=$ac_count
6119     fi
6120     # 10*(2^10) chars as input seems more than enough
6121     test $ac_count -gt 10 && break
6122   done
6123   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6124 esac
6125
6126       $ac_path_SED_found && break 3
6127     done
6128   done
6129   done
6130 IFS=$as_save_IFS
6131   if test -z "$ac_cv_path_SED"; then
6132     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6133   fi
6134 else
6135   ac_cv_path_SED=$SED
6136 fi
6137
6138 fi
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6140 $as_echo "$ac_cv_path_SED" >&6; }
6141  SED="$ac_cv_path_SED"
6142   rm -f conftest.sed
6143
6144 test -z "$SED" && SED=sed
6145 Xsed="$SED -e 1s/^X//"
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6158 $as_echo_n "checking for fgrep... " >&6; }
6159 if test "${ac_cv_path_FGREP+set}" = set; then :
6160   $as_echo_n "(cached) " >&6
6161 else
6162   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6163    then ac_cv_path_FGREP="$GREP -F"
6164    else
6165      if test -z "$FGREP"; then
6166   ac_path_FGREP_found=false
6167   # Loop through the user's path and test for each of PROGNAME-LIST
6168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6170 do
6171   IFS=$as_save_IFS
6172   test -z "$as_dir" && as_dir=.
6173     for ac_prog in fgrep; do
6174     for ac_exec_ext in '' $ac_executable_extensions; do
6175       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6176       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6177 # Check for GNU ac_path_FGREP and select it if it is found.
6178   # Check for GNU $ac_path_FGREP
6179 case `"$ac_path_FGREP" --version 2>&1` in
6180 *GNU*)
6181   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6182 *)
6183   ac_count=0
6184   $as_echo_n 0123456789 >"conftest.in"
6185   while :
6186   do
6187     cat "conftest.in" "conftest.in" >"conftest.tmp"
6188     mv "conftest.tmp" "conftest.in"
6189     cp "conftest.in" "conftest.nl"
6190     $as_echo 'FGREP' >> "conftest.nl"
6191     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6192     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6193     as_fn_arith $ac_count + 1 && ac_count=$as_val
6194     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6195       # Best one so far, save it but keep looking for a better one
6196       ac_cv_path_FGREP="$ac_path_FGREP"
6197       ac_path_FGREP_max=$ac_count
6198     fi
6199     # 10*(2^10) chars as input seems more than enough
6200     test $ac_count -gt 10 && break
6201   done
6202   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6203 esac
6204
6205       $ac_path_FGREP_found && break 3
6206     done
6207   done
6208   done
6209 IFS=$as_save_IFS
6210   if test -z "$ac_cv_path_FGREP"; then
6211     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6212   fi
6213 else
6214   ac_cv_path_FGREP=$FGREP
6215 fi
6216
6217    fi
6218 fi
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6220 $as_echo "$ac_cv_path_FGREP" >&6; }
6221  FGREP="$ac_cv_path_FGREP"
6222
6223
6224 test -z "$GREP" && GREP=grep
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 # Check whether --with-gnu-ld was given.
6245 if test "${with_gnu_ld+set}" = set; then :
6246   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6247 else
6248   with_gnu_ld=no
6249 fi
6250
6251 ac_prog=ld
6252 if test "$GCC" = yes; then
6253   # Check if gcc -print-prog-name=ld gives a path.
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6255 $as_echo_n "checking for ld used by $CC... " >&6; }
6256   case $host in
6257   *-*-mingw*)
6258     # gcc leaves a trailing carriage return which upsets mingw
6259     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6260   *)
6261     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6262   esac
6263   case $ac_prog in
6264     # Accept absolute paths.
6265     [\\/]* | ?:[\\/]*)
6266       re_direlt='/[^/][^/]*/\.\./'
6267       # Canonicalize the pathname of ld
6268       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6269       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6270         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6271       done
6272       test -z "$LD" && LD="$ac_prog"
6273       ;;
6274   "")
6275     # If it fails, then pretend we aren't using GCC.
6276     ac_prog=ld
6277     ;;
6278   *)
6279     # If it is relative, then search for the first ld in PATH.
6280     with_gnu_ld=unknown
6281     ;;
6282   esac
6283 elif test "$with_gnu_ld" = yes; then
6284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6285 $as_echo_n "checking for GNU ld... " >&6; }
6286 else
6287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6288 $as_echo_n "checking for non-GNU ld... " >&6; }
6289 fi
6290 if test "${lt_cv_path_LD+set}" = set; then :
6291   $as_echo_n "(cached) " >&6
6292 else
6293   if test -z "$LD"; then
6294   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6295   for ac_dir in $PATH; do
6296     IFS="$lt_save_ifs"
6297     test -z "$ac_dir" && ac_dir=.
6298     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6299       lt_cv_path_LD="$ac_dir/$ac_prog"
6300       # Check to see if the program is GNU ld.  I'd rather use --version,
6301       # but apparently some variants of GNU ld only accept -v.
6302       # Break only if it was the GNU/non-GNU ld that we prefer.
6303       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6304       *GNU* | *'with BFD'*)
6305         test "$with_gnu_ld" != no && break
6306         ;;
6307       *)
6308         test "$with_gnu_ld" != yes && break
6309         ;;
6310       esac
6311     fi
6312   done
6313   IFS="$lt_save_ifs"
6314 else
6315   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6316 fi
6317 fi
6318
6319 LD="$lt_cv_path_LD"
6320 if test -n "$LD"; then
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6322 $as_echo "$LD" >&6; }
6323 else
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6326 fi
6327 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6329 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6330 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6331   $as_echo_n "(cached) " >&6
6332 else
6333   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6334 case `$LD -v 2>&1 </dev/null` in
6335 *GNU* | *'with BFD'*)
6336   lt_cv_prog_gnu_ld=yes
6337   ;;
6338 *)
6339   lt_cv_prog_gnu_ld=no
6340   ;;
6341 esac
6342 fi
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6344 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6345 with_gnu_ld=$lt_cv_prog_gnu_ld
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6356 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6357 if test "${lt_cv_path_NM+set}" = set; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   if test -n "$NM"; then
6361   # Let the user override the test.
6362   lt_cv_path_NM="$NM"
6363 else
6364   lt_nm_to_check="${ac_tool_prefix}nm"
6365   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6366     lt_nm_to_check="$lt_nm_to_check nm"
6367   fi
6368   for lt_tmp_nm in $lt_nm_to_check; do
6369     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6370     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6371       IFS="$lt_save_ifs"
6372       test -z "$ac_dir" && ac_dir=.
6373       tmp_nm="$ac_dir/$lt_tmp_nm"
6374       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6375         # Check to see if the nm accepts a BSD-compat flag.
6376         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6377         #   nm: unknown option "B" ignored
6378         # Tru64's nm complains that /dev/null is an invalid object file
6379         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6380         */dev/null* | *'Invalid file or object type'*)
6381           lt_cv_path_NM="$tmp_nm -B"
6382           break
6383           ;;
6384         *)
6385           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6386           */dev/null*)
6387             lt_cv_path_NM="$tmp_nm -p"
6388             break
6389             ;;
6390           *)
6391             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6392             continue # so that we can try to find one that supports BSD flags
6393             ;;
6394           esac
6395           ;;
6396         esac
6397       fi
6398     done
6399     IFS="$lt_save_ifs"
6400   done
6401   : ${lt_cv_path_NM=no}
6402 fi
6403 fi
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6405 $as_echo "$lt_cv_path_NM" >&6; }
6406 if test "$lt_cv_path_NM" != "no"; then
6407   NM="$lt_cv_path_NM"
6408 else
6409   # Didn't find any BSD compatible name lister, look for dumpbin.
6410   if test -n "$ac_tool_prefix"; then
6411   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6412   do
6413     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6418   $as_echo_n "(cached) " >&6
6419 else
6420   if test -n "$DUMPBIN"; then
6421   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428     for ac_exec_ext in '' $ac_executable_extensions; do
6429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435   done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 DUMPBIN=$ac_cv_prog_DUMPBIN
6441 if test -n "$DUMPBIN"; then
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6443 $as_echo "$DUMPBIN" >&6; }
6444 else
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449
6450     test -n "$DUMPBIN" && break
6451   done
6452 fi
6453 if test -z "$DUMPBIN"; then
6454   ac_ct_DUMPBIN=$DUMPBIN
6455   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6456 do
6457   # Extract the first word of "$ac_prog", so it can be a program name with args.
6458 set dummy $ac_prog; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6462   $as_echo_n "(cached) " >&6
6463 else
6464   if test -n "$ac_ct_DUMPBIN"; then
6465   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470   IFS=$as_save_IFS
6471   test -z "$as_dir" && as_dir=.
6472     for ac_exec_ext in '' $ac_executable_extensions; do
6473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476     break 2
6477   fi
6478 done
6479   done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6485 if test -n "$ac_ct_DUMPBIN"; then
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6487 $as_echo "$ac_ct_DUMPBIN" >&6; }
6488 else
6489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493
6494   test -n "$ac_ct_DUMPBIN" && break
6495 done
6496
6497   if test "x$ac_ct_DUMPBIN" = x; then
6498     DUMPBIN=":"
6499   else
6500     case $cross_compiling:$ac_tool_warned in
6501 yes:)
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504 ac_tool_warned=yes ;;
6505 esac
6506     DUMPBIN=$ac_ct_DUMPBIN
6507   fi
6508 fi
6509
6510
6511   if test "$DUMPBIN" != ":"; then
6512     NM="$DUMPBIN"
6513   fi
6514 fi
6515 test -z "$NM" && NM=nm
6516
6517
6518
6519
6520
6521
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6523 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6524 if test "${lt_cv_nm_interface+set}" = set; then :
6525   $as_echo_n "(cached) " >&6
6526 else
6527   lt_cv_nm_interface="BSD nm"
6528   echo "int some_variable = 0;" > conftest.$ac_ext
6529   (eval echo "\"\$as_me:6529: $ac_compile\"" >&5)
6530   (eval "$ac_compile" 2>conftest.err)
6531   cat conftest.err >&5
6532   (eval echo "\"\$as_me:6532: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6533   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6534   cat conftest.err >&5
6535   (eval echo "\"\$as_me:6535: output\"" >&5)
6536   cat conftest.out >&5
6537   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6538     lt_cv_nm_interface="MS dumpbin"
6539   fi
6540   rm -f conftest*
6541 fi
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6543 $as_echo "$lt_cv_nm_interface" >&6; }
6544
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6546 $as_echo_n "checking whether ln -s works... " >&6; }
6547 LN_S=$as_ln_s
6548 if test "$LN_S" = "ln -s"; then
6549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6550 $as_echo "yes" >&6; }
6551 else
6552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6553 $as_echo "no, using $LN_S" >&6; }
6554 fi
6555
6556 # find the maximum length of command line arguments
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6558 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6559 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562     i=0
6563   teststring="ABCD"
6564
6565   case $build_os in
6566   msdosdjgpp*)
6567     # On DJGPP, this test can blow up pretty badly due to problems in libc
6568     # (any single argument exceeding 2000 bytes causes a buffer overrun
6569     # during glob expansion).  Even if it were fixed, the result of this
6570     # check would be larger than it should be.
6571     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6572     ;;
6573
6574   gnu*)
6575     # Under GNU Hurd, this test is not required because there is
6576     # no limit to the length of command line arguments.
6577     # Libtool will interpret -1 as no limit whatsoever
6578     lt_cv_sys_max_cmd_len=-1;
6579     ;;
6580
6581   cygwin* | mingw* | cegcc*)
6582     # On Win9x/ME, this test blows up -- it succeeds, but takes
6583     # about 5 minutes as the teststring grows exponentially.
6584     # Worse, since 9x/ME are not pre-emptively multitasking,
6585     # you end up with a "frozen" computer, even though with patience
6586     # the test eventually succeeds (with a max line length of 256k).
6587     # Instead, let's just punt: use the minimum linelength reported by
6588     # all of the supported platforms: 8192 (on NT/2K/XP).
6589     lt_cv_sys_max_cmd_len=8192;
6590     ;;
6591
6592   amigaos*)
6593     # On AmigaOS with pdksh, this test takes hours, literally.
6594     # So we just punt and use a minimum line length of 8192.
6595     lt_cv_sys_max_cmd_len=8192;
6596     ;;
6597
6598   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6599     # This has been around since 386BSD, at least.  Likely further.
6600     if test -x /sbin/sysctl; then
6601       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6602     elif test -x /usr/sbin/sysctl; then
6603       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6604     else
6605       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6606     fi
6607     # And add a safety zone
6608     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6609     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6610     ;;
6611
6612   interix*)
6613     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6614     lt_cv_sys_max_cmd_len=196608
6615     ;;
6616
6617   osf*)
6618     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6619     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6620     # nice to cause kernel panics so lets avoid the loop below.
6621     # First set a reasonable default.
6622     lt_cv_sys_max_cmd_len=16384
6623     #
6624     if test -x /sbin/sysconfig; then
6625       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6626         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6627       esac
6628     fi
6629     ;;
6630   sco3.2v5*)
6631     lt_cv_sys_max_cmd_len=102400
6632     ;;
6633   sysv5* | sco5v6* | sysv4.2uw2*)
6634     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6635     if test -n "$kargmax"; then
6636       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6637     else
6638       lt_cv_sys_max_cmd_len=32768
6639     fi
6640     ;;
6641   *)
6642     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6643     if test -n "$lt_cv_sys_max_cmd_len"; then
6644       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6645       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6646     else
6647       # Make teststring a little bigger before we do anything with it.
6648       # a 1K string should be a reasonable start.
6649       for i in 1 2 3 4 5 6 7 8 ; do
6650         teststring=$teststring$teststring
6651       done
6652       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6653       # If test is not a shell built-in, we'll probably end up computing a
6654       # maximum length that is only half of the actual maximum length, but
6655       # we can't tell.
6656       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6657                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6658               test $i != 17 # 1/2 MB should be enough
6659       do
6660         i=`expr $i + 1`
6661         teststring=$teststring$teststring
6662       done
6663       # Only check the string length outside the loop.
6664       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6665       teststring=
6666       # Add a significant safety factor because C++ compilers can tack on
6667       # massive amounts of additional arguments before passing them to the
6668       # linker.  It appears as though 1/2 is a usable value.
6669       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6670     fi
6671     ;;
6672   esac
6673
6674 fi
6675
6676 if test -n $lt_cv_sys_max_cmd_len ; then
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6678 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6679 else
6680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6681 $as_echo "none" >&6; }
6682 fi
6683 max_cmd_len=$lt_cv_sys_max_cmd_len
6684
6685
6686
6687
6688
6689
6690 : ${CP="cp -f"}
6691 : ${MV="mv -f"}
6692 : ${RM="rm -f"}
6693
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6695 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6696 # Try some XSI features
6697 xsi_shell=no
6698 ( _lt_dummy="a/b/c"
6699   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6700       = c,a/b,, \
6701     && eval 'test $(( 1 + 1 )) -eq 2 \
6702     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6703   && xsi_shell=yes
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6705 $as_echo "$xsi_shell" >&6; }
6706
6707
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6709 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6710 lt_shell_append=no
6711 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6712     >/dev/null 2>&1 \
6713   && lt_shell_append=yes
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6715 $as_echo "$lt_shell_append" >&6; }
6716
6717
6718 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6719   lt_unset=unset
6720 else
6721   lt_unset=false
6722 fi
6723
6724
6725
6726
6727
6728 # test EBCDIC or ASCII
6729 case `echo X|tr X '\101'` in
6730  A) # ASCII based system
6731     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6732   lt_SP2NL='tr \040 \012'
6733   lt_NL2SP='tr \015\012 \040\040'
6734   ;;
6735  *) # EBCDIC based system
6736   lt_SP2NL='tr \100 \n'
6737   lt_NL2SP='tr \r\n \100\100'
6738   ;;
6739 esac
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6750 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6751 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6752   $as_echo_n "(cached) " >&6
6753 else
6754   lt_cv_ld_reload_flag='-r'
6755 fi
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6757 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6758 reload_flag=$lt_cv_ld_reload_flag
6759 case $reload_flag in
6760 "" | " "*) ;;
6761 *) reload_flag=" $reload_flag" ;;
6762 esac
6763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6764 case $host_os in
6765   darwin*)
6766     if test "$GCC" = yes; then
6767       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6768     else
6769       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6770     fi
6771     ;;
6772 esac
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782 if test -n "$ac_tool_prefix"; then
6783   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6788   $as_echo_n "(cached) " >&6
6789 else
6790   if test -n "$OBJDUMP"; then
6791   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6792 else
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798     for ac_exec_ext in '' $ac_executable_extensions; do
6799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6800     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805   done
6806 IFS=$as_save_IFS
6807
6808 fi
6809 fi
6810 OBJDUMP=$ac_cv_prog_OBJDUMP
6811 if test -n "$OBJDUMP"; then
6812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6813 $as_echo "$OBJDUMP" >&6; }
6814 else
6815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816 $as_echo "no" >&6; }
6817 fi
6818
6819
6820 fi
6821 if test -z "$ac_cv_prog_OBJDUMP"; then
6822   ac_ct_OBJDUMP=$OBJDUMP
6823   # Extract the first word of "objdump", so it can be a program name with args.
6824 set dummy objdump; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   if test -n "$ac_ct_OBJDUMP"; then
6831   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836   IFS=$as_save_IFS
6837   test -z "$as_dir" && as_dir=.
6838     for ac_exec_ext in '' $ac_executable_extensions; do
6839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842     break 2
6843   fi
6844 done
6845   done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6851 if test -n "$ac_ct_OBJDUMP"; then
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6853 $as_echo "$ac_ct_OBJDUMP" >&6; }
6854 else
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859   if test "x$ac_ct_OBJDUMP" = x; then
6860     OBJDUMP="false"
6861   else
6862     case $cross_compiling:$ac_tool_warned in
6863 yes:)
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866 ac_tool_warned=yes ;;
6867 esac
6868     OBJDUMP=$ac_ct_OBJDUMP
6869   fi
6870 else
6871   OBJDUMP="$ac_cv_prog_OBJDUMP"
6872 fi
6873
6874 test -z "$OBJDUMP" && OBJDUMP=objdump
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6885 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6886 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   lt_cv_file_magic_cmd='$MAGIC_CMD'
6890 lt_cv_file_magic_test_file=
6891 lt_cv_deplibs_check_method='unknown'
6892 # Need to set the preceding variable on all platforms that support
6893 # interlibrary dependencies.
6894 # 'none' -- dependencies not supported.
6895 # `unknown' -- same as none, but documents that we really don't know.
6896 # 'pass_all' -- all dependencies passed with no checks.
6897 # 'test_compile' -- check by making test program.
6898 # 'file_magic [[regex]]' -- check by looking for files in library path
6899 # which responds to the $file_magic_cmd with a given extended regex.
6900 # If you have `file' or equivalent on your system and you're not sure
6901 # whether `pass_all' will *always* work, you probably want this one.
6902
6903 case $host_os in
6904 aix[4-9]*)
6905   lt_cv_deplibs_check_method=pass_all
6906   ;;
6907
6908 beos*)
6909   lt_cv_deplibs_check_method=pass_all
6910   ;;
6911
6912 bsdi[45]*)
6913   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6914   lt_cv_file_magic_cmd='/usr/bin/file -L'
6915   lt_cv_file_magic_test_file=/shlib/libc.so
6916   ;;
6917
6918 cygwin*)
6919   # func_win32_libid is a shell function defined in ltmain.sh
6920   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6921   lt_cv_file_magic_cmd='func_win32_libid'
6922   ;;
6923
6924 mingw* | pw32*)
6925   # Base MSYS/MinGW do not provide the 'file' command needed by
6926   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6927   # unless we find 'file', for example because we are cross-compiling.
6928   if ( file / ) >/dev/null 2>&1; then
6929     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6930     lt_cv_file_magic_cmd='func_win32_libid'
6931   else
6932     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6933     lt_cv_file_magic_cmd='$OBJDUMP -f'
6934   fi
6935   ;;
6936
6937 cegcc)
6938   # use the weaker test based on 'objdump'. See mingw*.
6939   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6940   lt_cv_file_magic_cmd='$OBJDUMP -f'
6941   ;;
6942
6943 darwin* | rhapsody*)
6944   lt_cv_deplibs_check_method=pass_all
6945   ;;
6946
6947 freebsd* | dragonfly*)
6948   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6949     case $host_cpu in
6950     i*86 )
6951       # Not sure whether the presence of OpenBSD here was a mistake.
6952       # Let's accept both of them until this is cleared up.
6953       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6954       lt_cv_file_magic_cmd=/usr/bin/file
6955       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6956       ;;
6957     esac
6958   else
6959     lt_cv_deplibs_check_method=pass_all
6960   fi
6961   ;;
6962
6963 gnu*)
6964   lt_cv_deplibs_check_method=pass_all
6965   ;;
6966
6967 hpux10.20* | hpux11*)
6968   lt_cv_file_magic_cmd=/usr/bin/file
6969   case $host_cpu in
6970   ia64*)
6971     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6972     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6973     ;;
6974   hppa*64*)
6975     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]'
6976     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6977     ;;
6978   *)
6979     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6980     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6981     ;;
6982   esac
6983   ;;
6984
6985 interix[3-9]*)
6986   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6987   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6988   ;;
6989
6990 irix5* | irix6* | nonstopux*)
6991   case $LD in
6992   *-32|*"-32 ") libmagic=32-bit;;
6993   *-n32|*"-n32 ") libmagic=N32;;
6994   *-64|*"-64 ") libmagic=64-bit;;
6995   *) libmagic=never-match;;
6996   esac
6997   lt_cv_deplibs_check_method=pass_all
6998   ;;
6999
7000 # This must be Linux ELF.
7001 linux* | k*bsd*-gnu)
7002   lt_cv_deplibs_check_method=pass_all
7003   ;;
7004
7005 netbsd*)
7006   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7007     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7008   else
7009     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7010   fi
7011   ;;
7012
7013 newos6*)
7014   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7015   lt_cv_file_magic_cmd=/usr/bin/file
7016   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7017   ;;
7018
7019 *nto* | *qnx*)
7020   lt_cv_deplibs_check_method=pass_all
7021   ;;
7022
7023 openbsd*)
7024   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7025     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7026   else
7027     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7028   fi
7029   ;;
7030
7031 osf3* | osf4* | osf5*)
7032   lt_cv_deplibs_check_method=pass_all
7033   ;;
7034
7035 rdos*)
7036   lt_cv_deplibs_check_method=pass_all
7037   ;;
7038
7039 solaris*)
7040   lt_cv_deplibs_check_method=pass_all
7041   ;;
7042
7043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7044   lt_cv_deplibs_check_method=pass_all
7045   ;;
7046
7047 sysv4 | sysv4.3*)
7048   case $host_vendor in
7049   motorola)
7050     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]'
7051     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7052     ;;
7053   ncr)
7054     lt_cv_deplibs_check_method=pass_all
7055     ;;
7056   sequent)
7057     lt_cv_file_magic_cmd='/bin/file'
7058     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7059     ;;
7060   sni)
7061     lt_cv_file_magic_cmd='/bin/file'
7062     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7063     lt_cv_file_magic_test_file=/lib/libc.so
7064     ;;
7065   siemens)
7066     lt_cv_deplibs_check_method=pass_all
7067     ;;
7068   pc)
7069     lt_cv_deplibs_check_method=pass_all
7070     ;;
7071   esac
7072   ;;
7073
7074 tpf*)
7075   lt_cv_deplibs_check_method=pass_all
7076   ;;
7077 esac
7078
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7081 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7082 file_magic_cmd=$lt_cv_file_magic_cmd
7083 deplibs_check_method=$lt_cv_deplibs_check_method
7084 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097 if test -n "$ac_tool_prefix"; then
7098   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}ar; ac_word=$2
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7101 $as_echo_n "checking for $ac_word... " >&6; }
7102 if test "${ac_cv_prog_AR+set}" = set; then :
7103   $as_echo_n "(cached) " >&6
7104 else
7105   if test -n "$AR"; then
7106   ac_cv_prog_AR="$AR" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111   IFS=$as_save_IFS
7112   test -z "$as_dir" && as_dir=.
7113     for ac_exec_ext in '' $ac_executable_extensions; do
7114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7115     ac_cv_prog_AR="${ac_tool_prefix}ar"
7116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7117     break 2
7118   fi
7119 done
7120   done
7121 IFS=$as_save_IFS
7122
7123 fi
7124 fi
7125 AR=$ac_cv_prog_AR
7126 if test -n "$AR"; then
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7128 $as_echo "$AR" >&6; }
7129 else
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133
7134
7135 fi
7136 if test -z "$ac_cv_prog_AR"; then
7137   ac_ct_AR=$AR
7138   # Extract the first word of "ar", so it can be a program name with args.
7139 set dummy ar; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7143   $as_echo_n "(cached) " >&6
7144 else
7145   if test -n "$ac_ct_AR"; then
7146   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151   IFS=$as_save_IFS
7152   test -z "$as_dir" && as_dir=.
7153     for ac_exec_ext in '' $ac_executable_extensions; do
7154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155     ac_cv_prog_ac_ct_AR="ar"
7156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157     break 2
7158   fi
7159 done
7160   done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7166 if test -n "$ac_ct_AR"; then
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7168 $as_echo "$ac_ct_AR" >&6; }
7169 else
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174   if test "x$ac_ct_AR" = x; then
7175     AR="false"
7176   else
7177     case $cross_compiling:$ac_tool_warned in
7178 yes:)
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7181 ac_tool_warned=yes ;;
7182 esac
7183     AR=$ac_ct_AR
7184   fi
7185 else
7186   AR="$ac_cv_prog_AR"
7187 fi
7188
7189 test -z "$AR" && AR=ar
7190 test -z "$AR_FLAGS" && AR_FLAGS=cru
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202 if test -n "$ac_tool_prefix"; then
7203   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7204 set dummy ${ac_tool_prefix}strip; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if test "${ac_cv_prog_STRIP+set}" = set; then :
7208   $as_echo_n "(cached) " >&6
7209 else
7210   if test -n "$STRIP"; then
7211   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216   IFS=$as_save_IFS
7217   test -z "$as_dir" && as_dir=.
7218     for ac_exec_ext in '' $ac_executable_extensions; do
7219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222     break 2
7223   fi
7224 done
7225   done
7226 IFS=$as_save_IFS
7227
7228 fi
7229 fi
7230 STRIP=$ac_cv_prog_STRIP
7231 if test -n "$STRIP"; then
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7233 $as_echo "$STRIP" >&6; }
7234 else
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 fi
7238
7239
7240 fi
7241 if test -z "$ac_cv_prog_STRIP"; then
7242   ac_ct_STRIP=$STRIP
7243   # Extract the first word of "strip", so it can be a program name with args.
7244 set dummy strip; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7248   $as_echo_n "(cached) " >&6
7249 else
7250   if test -n "$ac_ct_STRIP"; then
7251   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258     for ac_exec_ext in '' $ac_executable_extensions; do
7259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260     ac_cv_prog_ac_ct_STRIP="strip"
7261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265   done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7271 if test -n "$ac_ct_STRIP"; then
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7273 $as_echo "$ac_ct_STRIP" >&6; }
7274 else
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 fi
7278
7279   if test "x$ac_ct_STRIP" = x; then
7280     STRIP=":"
7281   else
7282     case $cross_compiling:$ac_tool_warned in
7283 yes:)
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7286 ac_tool_warned=yes ;;
7287 esac
7288     STRIP=$ac_ct_STRIP
7289   fi
7290 else
7291   STRIP="$ac_cv_prog_STRIP"
7292 fi
7293
7294 test -z "$STRIP" && STRIP=:
7295
7296
7297
7298
7299
7300
7301 if test -n "$ac_tool_prefix"; then
7302   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7307   $as_echo_n "(cached) " >&6
7308 else
7309   if test -n "$RANLIB"; then
7310   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315   IFS=$as_save_IFS
7316   test -z "$as_dir" && as_dir=.
7317     for ac_exec_ext in '' $ac_executable_extensions; do
7318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321     break 2
7322   fi
7323 done
7324   done
7325 IFS=$as_save_IFS
7326
7327 fi
7328 fi
7329 RANLIB=$ac_cv_prog_RANLIB
7330 if test -n "$RANLIB"; then
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7332 $as_echo "$RANLIB" >&6; }
7333 else
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7336 fi
7337
7338
7339 fi
7340 if test -z "$ac_cv_prog_RANLIB"; then
7341   ac_ct_RANLIB=$RANLIB
7342   # Extract the first word of "ranlib", so it can be a program name with args.
7343 set dummy ranlib; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7347   $as_echo_n "(cached) " >&6
7348 else
7349   if test -n "$ac_ct_RANLIB"; then
7350   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355   IFS=$as_save_IFS
7356   test -z "$as_dir" && as_dir=.
7357     for ac_exec_ext in '' $ac_executable_extensions; do
7358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359     ac_cv_prog_ac_ct_RANLIB="ranlib"
7360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361     break 2
7362   fi
7363 done
7364   done
7365 IFS=$as_save_IFS
7366
7367 fi
7368 fi
7369 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7370 if test -n "$ac_ct_RANLIB"; then
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7372 $as_echo "$ac_ct_RANLIB" >&6; }
7373 else
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7376 fi
7377
7378   if test "x$ac_ct_RANLIB" = x; then
7379     RANLIB=":"
7380   else
7381     case $cross_compiling:$ac_tool_warned in
7382 yes:)
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385 ac_tool_warned=yes ;;
7386 esac
7387     RANLIB=$ac_ct_RANLIB
7388   fi
7389 else
7390   RANLIB="$ac_cv_prog_RANLIB"
7391 fi
7392
7393 test -z "$RANLIB" && RANLIB=:
7394
7395
7396
7397
7398
7399
7400 # Determine commands to create old-style static archives.
7401 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7402 old_postinstall_cmds='chmod 644 $oldlib'
7403 old_postuninstall_cmds=
7404
7405 if test -n "$RANLIB"; then
7406   case $host_os in
7407   openbsd*)
7408     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7409     ;;
7410   *)
7411     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7412     ;;
7413   esac
7414   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7415 fi
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
7442
7443
7444
7445
7446
7447
7448
7449
7450 # If no C compiler was specified, use CC.
7451 LTCC=${LTCC-"$CC"}
7452
7453 # If no C compiler flags were specified, use CFLAGS.
7454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7455
7456 # Allow CC to be a program name with arguments.
7457 compiler=$CC
7458
7459
7460 # Check for command to grab the raw symbol name followed by C symbol from nm.
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7462 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7463 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7464   $as_echo_n "(cached) " >&6
7465 else
7466
7467 # These are sane defaults that work on at least a few old systems.
7468 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7469
7470 # Character class describing NM global symbol codes.
7471 symcode='[BCDEGRST]'
7472
7473 # Regexp to match symbols that can be accessed directly from C.
7474 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7475
7476 # Define system-specific variables.
7477 case $host_os in
7478 aix*)
7479   symcode='[BCDT]'
7480   ;;
7481 cygwin* | mingw* | pw32* | cegcc*)
7482   symcode='[ABCDGISTW]'
7483   ;;
7484 hpux*)
7485   if test "$host_cpu" = ia64; then
7486     symcode='[ABCDEGRST]'
7487   fi
7488   ;;
7489 irix* | nonstopux*)
7490   symcode='[BCDEGRST]'
7491   ;;
7492 osf*)
7493   symcode='[BCDEGQRST]'
7494   ;;
7495 solaris*)
7496   symcode='[BDRT]'
7497   ;;
7498 sco3.2v5*)
7499   symcode='[DT]'
7500   ;;
7501 sysv4.2uw2*)
7502   symcode='[DT]'
7503   ;;
7504 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7505   symcode='[ABDT]'
7506   ;;
7507 sysv4)
7508   symcode='[DFNSTU]'
7509   ;;
7510 esac
7511
7512 # If we're using GNU nm, then use its standard symbol codes.
7513 case `$NM -V 2>&1` in
7514 *GNU* | *'with BFD'*)
7515   symcode='[ABCDGIRSTW]' ;;
7516 esac
7517
7518 # Transform an extracted symbol line into a proper C declaration.
7519 # Some systems (esp. on ia64) link data and code symbols differently,
7520 # so use this general approach.
7521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7522
7523 # Transform an extracted symbol line into symbol name and symbol address
7524 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7525 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'"
7526
7527 # Handle CRLF in mingw tool chain
7528 opt_cr=
7529 case $build_os in
7530 mingw*)
7531   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7532   ;;
7533 esac
7534
7535 # Try without a prefix underscore, then with it.
7536 for ac_symprfx in "" "_"; do
7537
7538   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7539   symxfrm="\\1 $ac_symprfx\\2 \\2"
7540
7541   # Write the raw and C identifiers.
7542   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7543     # Fake it for dumpbin and say T for any non-static function
7544     # and D for any global variable.
7545     # Also find C++ and __fastcall symbols from MSVC++,
7546     # which start with @ or ?.
7547     lt_cv_sys_global_symbol_pipe="$AWK '"\
7548 "     {last_section=section; section=\$ 3};"\
7549 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7550 "     \$ 0!~/External *\|/{next};"\
7551 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7552 "     {if(hide[section]) next};"\
7553 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7554 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7555 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7556 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7557 "     ' prfx=^$ac_symprfx"
7558   else
7559     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7560   fi
7561
7562   # Check to see that the pipe works correctly.
7563   pipe_works=no
7564
7565   rm -f conftest*
7566   cat > conftest.$ac_ext <<_LT_EOF
7567 #ifdef __cplusplus
7568 extern "C" {
7569 #endif
7570 char nm_test_var;
7571 void nm_test_func(void);
7572 void nm_test_func(void){}
7573 #ifdef __cplusplus
7574 }
7575 #endif
7576 int main(){nm_test_var='a';nm_test_func();return(0);}
7577 _LT_EOF
7578
7579   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7580   (eval $ac_compile) 2>&5
7581   ac_status=$?
7582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7583   test $ac_status = 0; }; then
7584     # Now try to grab the symbols.
7585     nlist=conftest.nm
7586     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7587   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7588   ac_status=$?
7589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7590   test $ac_status = 0; } && test -s "$nlist"; then
7591       # Try sorting and uniquifying the output.
7592       if sort "$nlist" | uniq > "$nlist"T; then
7593         mv -f "$nlist"T "$nlist"
7594       else
7595         rm -f "$nlist"T
7596       fi
7597
7598       # Make sure that we snagged all the symbols we need.
7599       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7600         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7601           cat <<_LT_EOF > conftest.$ac_ext
7602 #ifdef __cplusplus
7603 extern "C" {
7604 #endif
7605
7606 _LT_EOF
7607           # Now generate the symbol file.
7608           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7609
7610           cat <<_LT_EOF >> conftest.$ac_ext
7611
7612 /* The mapping between symbol names and symbols.  */
7613 const struct {
7614   const char *name;
7615   void       *address;
7616 }
7617 lt__PROGRAM__LTX_preloaded_symbols[] =
7618 {
7619   { "@PROGRAM@", (void *) 0 },
7620 _LT_EOF
7621           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7622           cat <<\_LT_EOF >> conftest.$ac_ext
7623   {0, (void *) 0}
7624 };
7625
7626 /* This works around a problem in FreeBSD linker */
7627 #ifdef FREEBSD_WORKAROUND
7628 static const void *lt_preloaded_setup() {
7629   return lt__PROGRAM__LTX_preloaded_symbols;
7630 }
7631 #endif
7632
7633 #ifdef __cplusplus
7634 }
7635 #endif
7636 _LT_EOF
7637           # Now try linking the two files.
7638           mv conftest.$ac_objext conftstm.$ac_objext
7639           lt_save_LIBS="$LIBS"
7640           lt_save_CFLAGS="$CFLAGS"
7641           LIBS="conftstm.$ac_objext"
7642           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7643           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7644   (eval $ac_link) 2>&5
7645   ac_status=$?
7646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7648             pipe_works=yes
7649           fi
7650           LIBS="$lt_save_LIBS"
7651           CFLAGS="$lt_save_CFLAGS"
7652         else
7653           echo "cannot find nm_test_func in $nlist" >&5
7654         fi
7655       else
7656         echo "cannot find nm_test_var in $nlist" >&5
7657       fi
7658     else
7659       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7660     fi
7661   else
7662     echo "$progname: failed program was:" >&5
7663     cat conftest.$ac_ext >&5
7664   fi
7665   rm -rf conftest* conftst*
7666
7667   # Do not use the global_symbol_pipe unless it works.
7668   if test "$pipe_works" = yes; then
7669     break
7670   else
7671     lt_cv_sys_global_symbol_pipe=
7672   fi
7673 done
7674
7675 fi
7676
7677 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7678   lt_cv_sys_global_symbol_to_cdecl=
7679 fi
7680 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7682 $as_echo "failed" >&6; }
7683 else
7684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7685 $as_echo "ok" >&6; }
7686 fi
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709 # Check whether --enable-libtool-lock was given.
7710 if test "${enable_libtool_lock+set}" = set; then :
7711   enableval=$enable_libtool_lock;
7712 fi
7713
7714 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7715
7716 # Some flags need to be propagated to the compiler or linker for good
7717 # libtool support.
7718 case $host in
7719 ia64-*-hpux*)
7720   # Find out which ABI we are using.
7721   echo 'int i;' > conftest.$ac_ext
7722   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7723   (eval $ac_compile) 2>&5
7724   ac_status=$?
7725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7726   test $ac_status = 0; }; then
7727     case `/usr/bin/file conftest.$ac_objext` in
7728       *ELF-32*)
7729         HPUX_IA64_MODE="32"
7730         ;;
7731       *ELF-64*)
7732         HPUX_IA64_MODE="64"
7733         ;;
7734     esac
7735   fi
7736   rm -rf conftest*
7737   ;;
7738 *-*-irix6*)
7739   # Find out which ABI we are using.
7740   echo '#line 7740 "configure"' > conftest.$ac_ext
7741   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7742   (eval $ac_compile) 2>&5
7743   ac_status=$?
7744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745   test $ac_status = 0; }; then
7746     if test "$lt_cv_prog_gnu_ld" = yes; then
7747       case `/usr/bin/file conftest.$ac_objext` in
7748         *32-bit*)
7749           LD="${LD-ld} -melf32bsmip"
7750           ;;
7751         *N32*)
7752           LD="${LD-ld} -melf32bmipn32"
7753           ;;
7754         *64-bit*)
7755           LD="${LD-ld} -melf64bmip"
7756         ;;
7757       esac
7758     else
7759       case `/usr/bin/file conftest.$ac_objext` in
7760         *32-bit*)
7761           LD="${LD-ld} -32"
7762           ;;
7763         *N32*)
7764           LD="${LD-ld} -n32"
7765           ;;
7766         *64-bit*)
7767           LD="${LD-ld} -64"
7768           ;;
7769       esac
7770     fi
7771   fi
7772   rm -rf conftest*
7773   ;;
7774
7775 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7776 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7777   # Find out which ABI we are using.
7778   echo 'int i;' > conftest.$ac_ext
7779   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7780   (eval $ac_compile) 2>&5
7781   ac_status=$?
7782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7783   test $ac_status = 0; }; then
7784     case `/usr/bin/file conftest.o` in
7785       *32-bit*)
7786         case $host in
7787           x86_64-*kfreebsd*-gnu)
7788             LD="${LD-ld} -m elf_i386_fbsd"
7789             ;;
7790           x86_64-*linux*)
7791             LD="${LD-ld} -m elf_i386"
7792             ;;
7793           ppc64-*linux*|powerpc64-*linux*)
7794             LD="${LD-ld} -m elf32ppclinux"
7795             ;;
7796           s390x-*linux*)
7797             LD="${LD-ld} -m elf_s390"
7798             ;;
7799           sparc64-*linux*)
7800             LD="${LD-ld} -m elf32_sparc"
7801             ;;
7802         esac
7803         ;;
7804       *64-bit*)
7805         case $host in
7806           x86_64-*kfreebsd*-gnu)
7807             LD="${LD-ld} -m elf_x86_64_fbsd"
7808             ;;
7809           x86_64-*linux*)
7810             LD="${LD-ld} -m elf_x86_64"
7811             ;;
7812           ppc*-*linux*|powerpc*-*linux*)
7813             LD="${LD-ld} -m elf64ppc"
7814             ;;
7815           s390*-*linux*|s390*-*tpf*)
7816             LD="${LD-ld} -m elf64_s390"
7817             ;;
7818           sparc*-*linux*)
7819             LD="${LD-ld} -m elf64_sparc"
7820             ;;
7821         esac
7822         ;;
7823     esac
7824   fi
7825   rm -rf conftest*
7826   ;;
7827
7828 *-*-sco3.2v5*)
7829   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7830   SAVE_CFLAGS="$CFLAGS"
7831   CFLAGS="$CFLAGS -belf"
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7833 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7834 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7835   $as_echo_n "(cached) " >&6
7836 else
7837   ac_ext=c
7838 ac_cpp='$CPP $CPPFLAGS'
7839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7842
7843      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h.  */
7845
7846 int
7847 main ()
7848 {
7849
7850   ;
7851   return 0;
7852 }
7853 _ACEOF
7854 if ac_fn_c_try_link "$LINENO"; then :
7855   lt_cv_cc_needs_belf=yes
7856 else
7857   lt_cv_cc_needs_belf=no
7858 fi
7859 rm -f core conftest.err conftest.$ac_objext \
7860     conftest$ac_exeext conftest.$ac_ext
7861      ac_ext=c
7862 ac_cpp='$CPP $CPPFLAGS'
7863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7866
7867 fi
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7869 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7870   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7871     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7872     CFLAGS="$SAVE_CFLAGS"
7873   fi
7874   ;;
7875 sparc*-*solaris*)
7876   # Find out which ABI we are using.
7877   echo 'int i;' > conftest.$ac_ext
7878   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7879   (eval $ac_compile) 2>&5
7880   ac_status=$?
7881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7882   test $ac_status = 0; }; then
7883     case `/usr/bin/file conftest.o` in
7884     *64-bit*)
7885       case $lt_cv_prog_gnu_ld in
7886       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7887       *)
7888         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7889           LD="${LD-ld} -64"
7890         fi
7891         ;;
7892       esac
7893       ;;
7894     esac
7895   fi
7896   rm -rf conftest*
7897   ;;
7898 esac
7899
7900 need_locks="$enable_libtool_lock"
7901
7902
7903   case $host_os in
7904     rhapsody* | darwin*)
7905     if test -n "$ac_tool_prefix"; then
7906   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7907 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7911   $as_echo_n "(cached) " >&6
7912 else
7913   if test -n "$DSYMUTIL"; then
7914   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919   IFS=$as_save_IFS
7920   test -z "$as_dir" && as_dir=.
7921     for ac_exec_ext in '' $ac_executable_extensions; do
7922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7923     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925     break 2
7926   fi
7927 done
7928   done
7929 IFS=$as_save_IFS
7930
7931 fi
7932 fi
7933 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7934 if test -n "$DSYMUTIL"; then
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7936 $as_echo "$DSYMUTIL" >&6; }
7937 else
7938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7940 fi
7941
7942
7943 fi
7944 if test -z "$ac_cv_prog_DSYMUTIL"; then
7945   ac_ct_DSYMUTIL=$DSYMUTIL
7946   # Extract the first word of "dsymutil", so it can be a program name with args.
7947 set dummy dsymutil; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7951   $as_echo_n "(cached) " >&6
7952 else
7953   if test -n "$ac_ct_DSYMUTIL"; then
7954   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7958 do
7959   IFS=$as_save_IFS
7960   test -z "$as_dir" && as_dir=.
7961     for ac_exec_ext in '' $ac_executable_extensions; do
7962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965     break 2
7966   fi
7967 done
7968   done
7969 IFS=$as_save_IFS
7970
7971 fi
7972 fi
7973 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7974 if test -n "$ac_ct_DSYMUTIL"; then
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7976 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7977 else
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7980 fi
7981
7982   if test "x$ac_ct_DSYMUTIL" = x; then
7983     DSYMUTIL=":"
7984   else
7985     case $cross_compiling:$ac_tool_warned in
7986 yes:)
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7989 ac_tool_warned=yes ;;
7990 esac
7991     DSYMUTIL=$ac_ct_DSYMUTIL
7992   fi
7993 else
7994   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7995 fi
7996
7997     if test -n "$ac_tool_prefix"; then
7998   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7999 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8003   $as_echo_n "(cached) " >&6
8004 else
8005   if test -n "$NMEDIT"; then
8006   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8010 do
8011   IFS=$as_save_IFS
8012   test -z "$as_dir" && as_dir=.
8013     for ac_exec_ext in '' $ac_executable_extensions; do
8014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8015     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017     break 2
8018   fi
8019 done
8020   done
8021 IFS=$as_save_IFS
8022
8023 fi
8024 fi
8025 NMEDIT=$ac_cv_prog_NMEDIT
8026 if test -n "$NMEDIT"; then
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8028 $as_echo "$NMEDIT" >&6; }
8029 else
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8032 fi
8033
8034
8035 fi
8036 if test -z "$ac_cv_prog_NMEDIT"; then
8037   ac_ct_NMEDIT=$NMEDIT
8038   # Extract the first word of "nmedit", so it can be a program name with args.
8039 set dummy nmedit; ac_word=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8043   $as_echo_n "(cached) " >&6
8044 else
8045   if test -n "$ac_ct_NMEDIT"; then
8046   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8047 else
8048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 for as_dir in $PATH
8050 do
8051   IFS=$as_save_IFS
8052   test -z "$as_dir" && as_dir=.
8053     for ac_exec_ext in '' $ac_executable_extensions; do
8054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8055     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057     break 2
8058   fi
8059 done
8060   done
8061 IFS=$as_save_IFS
8062
8063 fi
8064 fi
8065 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8066 if test -n "$ac_ct_NMEDIT"; then
8067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8068 $as_echo "$ac_ct_NMEDIT" >&6; }
8069 else
8070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8072 fi
8073
8074   if test "x$ac_ct_NMEDIT" = x; then
8075     NMEDIT=":"
8076   else
8077     case $cross_compiling:$ac_tool_warned in
8078 yes:)
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8081 ac_tool_warned=yes ;;
8082 esac
8083     NMEDIT=$ac_ct_NMEDIT
8084   fi
8085 else
8086   NMEDIT="$ac_cv_prog_NMEDIT"
8087 fi
8088
8089     if test -n "$ac_tool_prefix"; then
8090   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8091 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if test "${ac_cv_prog_LIPO+set}" = set; then :
8095   $as_echo_n "(cached) " >&6
8096 else
8097   if test -n "$LIPO"; then
8098   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8102 do
8103   IFS=$as_save_IFS
8104   test -z "$as_dir" && as_dir=.
8105     for ac_exec_ext in '' $ac_executable_extensions; do
8106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8107     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109     break 2
8110   fi
8111 done
8112   done
8113 IFS=$as_save_IFS
8114
8115 fi
8116 fi
8117 LIPO=$ac_cv_prog_LIPO
8118 if test -n "$LIPO"; then
8119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8120 $as_echo "$LIPO" >&6; }
8121 else
8122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8124 fi
8125
8126
8127 fi
8128 if test -z "$ac_cv_prog_LIPO"; then
8129   ac_ct_LIPO=$LIPO
8130   # Extract the first word of "lipo", so it can be a program name with args.
8131 set dummy lipo; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8135   $as_echo_n "(cached) " >&6
8136 else
8137   if test -n "$ac_ct_LIPO"; then
8138   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143   IFS=$as_save_IFS
8144   test -z "$as_dir" && as_dir=.
8145     for ac_exec_ext in '' $ac_executable_extensions; do
8146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147     ac_cv_prog_ac_ct_LIPO="lipo"
8148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149     break 2
8150   fi
8151 done
8152   done
8153 IFS=$as_save_IFS
8154
8155 fi
8156 fi
8157 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8158 if test -n "$ac_ct_LIPO"; then
8159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8160 $as_echo "$ac_ct_LIPO" >&6; }
8161 else
8162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166   if test "x$ac_ct_LIPO" = x; then
8167     LIPO=":"
8168   else
8169     case $cross_compiling:$ac_tool_warned in
8170 yes:)
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8173 ac_tool_warned=yes ;;
8174 esac
8175     LIPO=$ac_ct_LIPO
8176   fi
8177 else
8178   LIPO="$ac_cv_prog_LIPO"
8179 fi
8180
8181     if test -n "$ac_tool_prefix"; then
8182   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8183 set dummy ${ac_tool_prefix}otool; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 $as_echo_n "checking for $ac_word... " >&6; }
8186 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8187   $as_echo_n "(cached) " >&6
8188 else
8189   if test -n "$OTOOL"; then
8190   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8191 else
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8194 do
8195   IFS=$as_save_IFS
8196   test -z "$as_dir" && as_dir=.
8197     for ac_exec_ext in '' $ac_executable_extensions; do
8198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8199     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201     break 2
8202   fi
8203 done
8204   done
8205 IFS=$as_save_IFS
8206
8207 fi
8208 fi
8209 OTOOL=$ac_cv_prog_OTOOL
8210 if test -n "$OTOOL"; then
8211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8212 $as_echo "$OTOOL" >&6; }
8213 else
8214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8216 fi
8217
8218
8219 fi
8220 if test -z "$ac_cv_prog_OTOOL"; then
8221   ac_ct_OTOOL=$OTOOL
8222   # Extract the first word of "otool", so it can be a program name with args.
8223 set dummy otool; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8227   $as_echo_n "(cached) " >&6
8228 else
8229   if test -n "$ac_ct_OTOOL"; then
8230   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8231 else
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8234 do
8235   IFS=$as_save_IFS
8236   test -z "$as_dir" && as_dir=.
8237     for ac_exec_ext in '' $ac_executable_extensions; do
8238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8239     ac_cv_prog_ac_ct_OTOOL="otool"
8240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241     break 2
8242   fi
8243 done
8244   done
8245 IFS=$as_save_IFS
8246
8247 fi
8248 fi
8249 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8250 if test -n "$ac_ct_OTOOL"; then
8251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8252 $as_echo "$ac_ct_OTOOL" >&6; }
8253 else
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8256 fi
8257
8258   if test "x$ac_ct_OTOOL" = x; then
8259     OTOOL=":"
8260   else
8261     case $cross_compiling:$ac_tool_warned in
8262 yes:)
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8265 ac_tool_warned=yes ;;
8266 esac
8267     OTOOL=$ac_ct_OTOOL
8268   fi
8269 else
8270   OTOOL="$ac_cv_prog_OTOOL"
8271 fi
8272
8273     if test -n "$ac_tool_prefix"; then
8274   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8275 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8279   $as_echo_n "(cached) " >&6
8280 else
8281   if test -n "$OTOOL64"; then
8282   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8283 else
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8286 do
8287   IFS=$as_save_IFS
8288   test -z "$as_dir" && as_dir=.
8289     for ac_exec_ext in '' $ac_executable_extensions; do
8290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8291     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293     break 2
8294   fi
8295 done
8296   done
8297 IFS=$as_save_IFS
8298
8299 fi
8300 fi
8301 OTOOL64=$ac_cv_prog_OTOOL64
8302 if test -n "$OTOOL64"; then
8303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8304 $as_echo "$OTOOL64" >&6; }
8305 else
8306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8308 fi
8309
8310
8311 fi
8312 if test -z "$ac_cv_prog_OTOOL64"; then
8313   ac_ct_OTOOL64=$OTOOL64
8314   # Extract the first word of "otool64", so it can be a program name with args.
8315 set dummy otool64; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8319   $as_echo_n "(cached) " >&6
8320 else
8321   if test -n "$ac_ct_OTOOL64"; then
8322   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8326 do
8327   IFS=$as_save_IFS
8328   test -z "$as_dir" && as_dir=.
8329     for ac_exec_ext in '' $ac_executable_extensions; do
8330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331     ac_cv_prog_ac_ct_OTOOL64="otool64"
8332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333     break 2
8334   fi
8335 done
8336   done
8337 IFS=$as_save_IFS
8338
8339 fi
8340 fi
8341 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8342 if test -n "$ac_ct_OTOOL64"; then
8343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8344 $as_echo "$ac_ct_OTOOL64" >&6; }
8345 else
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8348 fi
8349
8350   if test "x$ac_ct_OTOOL64" = x; then
8351     OTOOL64=":"
8352   else
8353     case $cross_compiling:$ac_tool_warned in
8354 yes:)
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8357 ac_tool_warned=yes ;;
8358 esac
8359     OTOOL64=$ac_ct_OTOOL64
8360   fi
8361 else
8362   OTOOL64="$ac_cv_prog_OTOOL64"
8363 fi
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8392 $as_echo_n "checking for -single_module linker flag... " >&6; }
8393 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8394   $as_echo_n "(cached) " >&6
8395 else
8396   lt_cv_apple_cc_single_mod=no
8397       if test -z "${LT_MULTI_MODULE}"; then
8398         # By default we will add the -single_module flag. You can override
8399         # by either setting the environment variable LT_MULTI_MODULE
8400         # non-empty at configure time, or by adding -multi_module to the
8401         # link flags.
8402         rm -rf libconftest.dylib*
8403         echo "int foo(void){return 1;}" > conftest.c
8404         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8405 -dynamiclib -Wl,-single_module conftest.c" >&5
8406         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8407           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8408         _lt_result=$?
8409         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8410           lt_cv_apple_cc_single_mod=yes
8411         else
8412           cat conftest.err >&5
8413         fi
8414         rm -rf libconftest.dylib*
8415         rm -f conftest.*
8416       fi
8417 fi
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8419 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8421 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8422 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8423   $as_echo_n "(cached) " >&6
8424 else
8425   lt_cv_ld_exported_symbols_list=no
8426       save_LDFLAGS=$LDFLAGS
8427       echo "_main" > conftest.sym
8428       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8429       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h.  */
8431
8432 int
8433 main ()
8434 {
8435
8436   ;
8437   return 0;
8438 }
8439 _ACEOF
8440 if ac_fn_c_try_link "$LINENO"; then :
8441   lt_cv_ld_exported_symbols_list=yes
8442 else
8443   lt_cv_ld_exported_symbols_list=no
8444 fi
8445 rm -f core conftest.err conftest.$ac_objext \
8446     conftest$ac_exeext conftest.$ac_ext
8447         LDFLAGS="$save_LDFLAGS"
8448
8449 fi
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8451 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8452     case $host_os in
8453     rhapsody* | darwin1.[012])
8454       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8455     darwin1.*)
8456       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8457     darwin*) # darwin 5.x on
8458       # if running on 10.5 or later, the deployment target defaults
8459       # to the OS version, if on x86, and 10.4, the deployment
8460       # target defaults to 10.4. Don't you love it?
8461       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8462         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8463           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8464         10.[012]*)
8465           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8466         10.*)
8467           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8468       esac
8469     ;;
8470   esac
8471     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8472       _lt_dar_single_mod='$single_module'
8473     fi
8474     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8475       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8476     else
8477       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8478     fi
8479     if test "$DSYMUTIL" != ":"; then
8480       _lt_dsymutil='~$DSYMUTIL $lib || :'
8481     else
8482       _lt_dsymutil=
8483     fi
8484     ;;
8485   esac
8486
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8488 $as_echo_n "checking for ANSI C header files... " >&6; }
8489 if test "${ac_cv_header_stdc+set}" = set; then :
8490   $as_echo_n "(cached) " >&6
8491 else
8492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h.  */
8494 #include <stdlib.h>
8495 #include <stdarg.h>
8496 #include <string.h>
8497 #include <float.h>
8498
8499 int
8500 main ()
8501 {
8502
8503   ;
8504   return 0;
8505 }
8506 _ACEOF
8507 if ac_fn_c_try_compile "$LINENO"; then :
8508   ac_cv_header_stdc=yes
8509 else
8510   ac_cv_header_stdc=no
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513
8514 if test $ac_cv_header_stdc = yes; then
8515   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h.  */
8518 #include <string.h>
8519
8520 _ACEOF
8521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8522   $EGREP "memchr" >/dev/null 2>&1; then :
8523
8524 else
8525   ac_cv_header_stdc=no
8526 fi
8527 rm -f conftest*
8528
8529 fi
8530
8531 if test $ac_cv_header_stdc = yes; then
8532   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h.  */
8535 #include <stdlib.h>
8536
8537 _ACEOF
8538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8539   $EGREP "free" >/dev/null 2>&1; then :
8540
8541 else
8542   ac_cv_header_stdc=no
8543 fi
8544 rm -f conftest*
8545
8546 fi
8547
8548 if test $ac_cv_header_stdc = yes; then
8549   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8550   if test "$cross_compiling" = yes; then :
8551   :
8552 else
8553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h.  */
8555 #include <ctype.h>
8556 #include <stdlib.h>
8557 #if ((' ' & 0x0FF) == 0x020)
8558 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8559 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8560 #else
8561 # define ISLOWER(c) \
8562                    (('a' <= (c) && (c) <= 'i') \
8563                      || ('j' <= (c) && (c) <= 'r') \
8564                      || ('s' <= (c) && (c) <= 'z'))
8565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8566 #endif
8567
8568 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8569 int
8570 main ()
8571 {
8572   int i;
8573   for (i = 0; i < 256; i++)
8574     if (XOR (islower (i), ISLOWER (i))
8575         || toupper (i) != TOUPPER (i))
8576       return 2;
8577   return 0;
8578 }
8579 _ACEOF
8580 if ac_fn_c_try_run "$LINENO"; then :
8581
8582 else
8583   ac_cv_header_stdc=no
8584 fi
8585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8586   conftest.$ac_objext conftest.beam conftest.$ac_ext
8587 fi
8588
8589 fi
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8592 $as_echo "$ac_cv_header_stdc" >&6; }
8593 if test $ac_cv_header_stdc = yes; then
8594
8595 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8596
8597 fi
8598
8599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8600 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8601                   inttypes.h stdint.h unistd.h
8602 do :
8603   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8604 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8605 "
8606 eval as_val=\$$as_ac_Header
8607    if test "x$as_val" = x""yes; then :
8608   cat >>confdefs.h <<_ACEOF
8609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8610 _ACEOF
8611
8612 fi
8613
8614 done
8615
8616
8617 for ac_header in dlfcn.h
8618 do :
8619   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8620 "
8621 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8622   cat >>confdefs.h <<_ACEOF
8623 #define HAVE_DLFCN_H 1
8624 _ACEOF
8625
8626 fi
8627
8628 done
8629
8630
8631
8632 ac_ext=cpp
8633 ac_cpp='$CXXCPP $CPPFLAGS'
8634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8637 if test -z "$CXX"; then
8638   if test -n "$CCC"; then
8639     CXX=$CCC
8640   else
8641     if test -n "$ac_tool_prefix"; then
8642   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8643   do
8644     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if test "${ac_cv_prog_CXX+set}" = set; then :
8649   $as_echo_n "(cached) " >&6
8650 else
8651   if test -n "$CXX"; then
8652   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657   IFS=$as_save_IFS
8658   test -z "$as_dir" && as_dir=.
8659     for ac_exec_ext in '' $ac_executable_extensions; do
8660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663     break 2
8664   fi
8665 done
8666   done
8667 IFS=$as_save_IFS
8668
8669 fi
8670 fi
8671 CXX=$ac_cv_prog_CXX
8672 if test -n "$CXX"; then
8673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8674 $as_echo "$CXX" >&6; }
8675 else
8676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8678 fi
8679
8680
8681     test -n "$CXX" && break
8682   done
8683 fi
8684 if test -z "$CXX"; then
8685   ac_ct_CXX=$CXX
8686   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8687 do
8688   # Extract the first word of "$ac_prog", so it can be a program name with args.
8689 set dummy $ac_prog; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8693   $as_echo_n "(cached) " >&6
8694 else
8695   if test -n "$ac_ct_CXX"; then
8696   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8697 else
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8700 do
8701   IFS=$as_save_IFS
8702   test -z "$as_dir" && as_dir=.
8703     for ac_exec_ext in '' $ac_executable_extensions; do
8704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705     ac_cv_prog_ac_ct_CXX="$ac_prog"
8706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707     break 2
8708   fi
8709 done
8710   done
8711 IFS=$as_save_IFS
8712
8713 fi
8714 fi
8715 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8716 if test -n "$ac_ct_CXX"; then
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8718 $as_echo "$ac_ct_CXX" >&6; }
8719 else
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8722 fi
8723
8724
8725   test -n "$ac_ct_CXX" && break
8726 done
8727
8728   if test "x$ac_ct_CXX" = x; then
8729     CXX="g++"
8730   else
8731     case $cross_compiling:$ac_tool_warned in
8732 yes:)
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8735 ac_tool_warned=yes ;;
8736 esac
8737     CXX=$ac_ct_CXX
8738   fi
8739 fi
8740
8741   fi
8742 fi
8743 # Provide some information about the compiler.
8744 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8745 set X $ac_compile
8746 ac_compiler=$2
8747 for ac_option in --version -v -V -qversion; do
8748   { { ac_try="$ac_compiler $ac_option >&5"
8749 case "(($ac_try" in
8750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751   *) ac_try_echo=$ac_try;;
8752 esac
8753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8754 $as_echo "$ac_try_echo"; } >&5
8755   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8756   ac_status=$?
8757   if test -s conftest.err; then
8758     sed '10a\
8759 ... rest of stderr output deleted ...
8760          10q' conftest.err >conftest.er1
8761     cat conftest.er1 >&5
8762   fi
8763   rm -f conftest.er1 conftest.err
8764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8765   test $ac_status = 0; }
8766 done
8767
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8769 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8770 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8771   $as_echo_n "(cached) " >&6
8772 else
8773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h.  */
8775
8776 int
8777 main ()
8778 {
8779 #ifndef __GNUC__
8780        choke me
8781 #endif
8782
8783   ;
8784   return 0;
8785 }
8786 _ACEOF
8787 if ac_fn_cxx_try_compile "$LINENO"; then :
8788   ac_compiler_gnu=yes
8789 else
8790   ac_compiler_gnu=no
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8794
8795 fi
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8797 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8798 if test $ac_compiler_gnu = yes; then
8799   GXX=yes
8800 else
8801   GXX=
8802 fi
8803 ac_test_CXXFLAGS=${CXXFLAGS+set}
8804 ac_save_CXXFLAGS=$CXXFLAGS
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8806 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8807 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8808   $as_echo_n "(cached) " >&6
8809 else
8810   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8811    ac_cxx_werror_flag=yes
8812    ac_cv_prog_cxx_g=no
8813    CXXFLAGS="-g"
8814    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h.  */
8816
8817 int
8818 main ()
8819 {
8820
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 if ac_fn_cxx_try_compile "$LINENO"; then :
8826   ac_cv_prog_cxx_g=yes
8827 else
8828   CXXFLAGS=""
8829       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h.  */
8831
8832 int
8833 main ()
8834 {
8835
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 if ac_fn_cxx_try_compile "$LINENO"; then :
8841
8842 else
8843   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8844          CXXFLAGS="-g"
8845          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h.  */
8847
8848 int
8849 main ()
8850 {
8851
8852   ;
8853   return 0;
8854 }
8855 _ACEOF
8856 if ac_fn_cxx_try_compile "$LINENO"; then :
8857   ac_cv_prog_cxx_g=yes
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862 fi
8863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8865 fi
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8867 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8868 if test "$ac_test_CXXFLAGS" = set; then
8869   CXXFLAGS=$ac_save_CXXFLAGS
8870 elif test $ac_cv_prog_cxx_g = yes; then
8871   if test "$GXX" = yes; then
8872     CXXFLAGS="-g -O2"
8873   else
8874     CXXFLAGS="-g"
8875   fi
8876 else
8877   if test "$GXX" = yes; then
8878     CXXFLAGS="-O2"
8879   else
8880     CXXFLAGS=
8881   fi
8882 fi
8883 ac_ext=c
8884 ac_cpp='$CPP $CPPFLAGS'
8885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8888
8889 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8890     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8891     (test "X$CXX" != "Xg++"))) ; then
8892   ac_ext=cpp
8893 ac_cpp='$CXXCPP $CPPFLAGS'
8894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8898 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8899 if test -z "$CXXCPP"; then
8900   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903       # Double quotes because CXXCPP needs to be expanded
8904     for CXXCPP in "$CXX -E" "/lib/cpp"
8905     do
8906       ac_preproc_ok=false
8907 for ac_cxx_preproc_warn_flag in '' yes
8908 do
8909   # Use a header file that comes with gcc, so configuring glibc
8910   # with a fresh cross-compiler works.
8911   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8912   # <limits.h> exists even on freestanding compilers.
8913   # On the NeXT, cc -E runs the code through the compiler's parser,
8914   # not just through cpp. "Syntax error" is here to catch this case.
8915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h.  */
8917 #ifdef __STDC__
8918 # include <limits.h>
8919 #else
8920 # include <assert.h>
8921 #endif
8922                      Syntax error
8923 _ACEOF
8924 if ac_fn_cxx_try_cpp "$LINENO"; then :
8925
8926 else
8927   # Broken: fails on valid input.
8928 continue
8929 fi
8930 rm -f conftest.err conftest.$ac_ext
8931
8932   # OK, works on sane cases.  Now check whether nonexistent headers
8933   # can be detected and how.
8934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h.  */
8936 #include <ac_nonexistent.h>
8937 _ACEOF
8938 if ac_fn_cxx_try_cpp "$LINENO"; then :
8939   # Broken: success on invalid input.
8940 continue
8941 else
8942   # Passes both tests.
8943 ac_preproc_ok=:
8944 break
8945 fi
8946 rm -f conftest.err conftest.$ac_ext
8947
8948 done
8949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8950 rm -f conftest.err conftest.$ac_ext
8951 if $ac_preproc_ok; then :
8952   break
8953 fi
8954
8955     done
8956     ac_cv_prog_CXXCPP=$CXXCPP
8957
8958 fi
8959   CXXCPP=$ac_cv_prog_CXXCPP
8960 else
8961   ac_cv_prog_CXXCPP=$CXXCPP
8962 fi
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8964 $as_echo "$CXXCPP" >&6; }
8965 ac_preproc_ok=false
8966 for ac_cxx_preproc_warn_flag in '' yes
8967 do
8968   # Use a header file that comes with gcc, so configuring glibc
8969   # with a fresh cross-compiler works.
8970   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8971   # <limits.h> exists even on freestanding compilers.
8972   # On the NeXT, cc -E runs the code through the compiler's parser,
8973   # not just through cpp. "Syntax error" is here to catch this case.
8974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h.  */
8976 #ifdef __STDC__
8977 # include <limits.h>
8978 #else
8979 # include <assert.h>
8980 #endif
8981                      Syntax error
8982 _ACEOF
8983 if ac_fn_cxx_try_cpp "$LINENO"; then :
8984
8985 else
8986   # Broken: fails on valid input.
8987 continue
8988 fi
8989 rm -f conftest.err conftest.$ac_ext
8990
8991   # OK, works on sane cases.  Now check whether nonexistent headers
8992   # can be detected and how.
8993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h.  */
8995 #include <ac_nonexistent.h>
8996 _ACEOF
8997 if ac_fn_cxx_try_cpp "$LINENO"; then :
8998   # Broken: success on invalid input.
8999 continue
9000 else
9001   # Passes both tests.
9002 ac_preproc_ok=:
9003 break
9004 fi
9005 rm -f conftest.err conftest.$ac_ext
9006
9007 done
9008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9009 rm -f conftest.err conftest.$ac_ext
9010 if $ac_preproc_ok; then :
9011
9012 else
9013   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9015 _lt_caught_CXX_error=yes; }
9016 fi
9017
9018 ac_ext=c
9019 ac_cpp='$CPP $CPPFLAGS'
9020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9023
9024 else
9025   _lt_caught_CXX_error=yes
9026 fi
9027
9028
9029
9030
9031
9032 # Set options
9033 # Check whether --enable-shared was given.
9034 if test "${enable_shared+set}" = set; then :
9035   enableval=$enable_shared; p=${PACKAGE-default}
9036     case $enableval in
9037     yes) enable_shared=yes ;;
9038     no) enable_shared=no ;;
9039     *)
9040       enable_shared=no
9041       # Look at the argument we got.  We use all the common list separators.
9042       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9043       for pkg in $enableval; do
9044         IFS="$lt_save_ifs"
9045         if test "X$pkg" = "X$p"; then
9046           enable_shared=yes
9047         fi
9048       done
9049       IFS="$lt_save_ifs"
9050       ;;
9051     esac
9052 else
9053   enable_shared=yes
9054 fi
9055
9056
9057
9058
9059
9060
9061
9062 # Check whether --enable-static was given.
9063 if test "${enable_static+set}" = set; then :
9064   enableval=$enable_static; p=${PACKAGE-default}
9065     case $enableval in
9066     yes) enable_static=yes ;;
9067     no) enable_static=no ;;
9068     *)
9069      enable_static=no
9070       # Look at the argument we got.  We use all the common list separators.
9071       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9072       for pkg in $enableval; do
9073         IFS="$lt_save_ifs"
9074         if test "X$pkg" = "X$p"; then
9075           enable_static=yes
9076         fi
9077       done
9078       IFS="$lt_save_ifs"
9079       ;;
9080     esac
9081 else
9082   enable_static=no
9083 fi
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094         enable_dlopen=no
9095
9096
9097   enable_win32_dll=no
9098
9099
9100
9101
9102
9103 # Check whether --with-pic was given.
9104 if test "${with_pic+set}" = set; then :
9105   withval=$with_pic; pic_mode="$withval"
9106 else
9107   pic_mode=default
9108 fi
9109
9110
9111 test -z "$pic_mode" && pic_mode=default
9112
9113
9114
9115
9116
9117
9118
9119   # Check whether --enable-fast-install was given.
9120 if test "${enable_fast_install+set}" = set; then :
9121   enableval=$enable_fast_install; p=${PACKAGE-default}
9122     case $enableval in
9123     yes) enable_fast_install=yes ;;
9124     no) enable_fast_install=no ;;
9125     *)
9126       enable_fast_install=no
9127       # Look at the argument we got.  We use all the common list separators.
9128       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9129       for pkg in $enableval; do
9130         IFS="$lt_save_ifs"
9131         if test "X$pkg" = "X$p"; then
9132           enable_fast_install=yes
9133         fi
9134       done
9135       IFS="$lt_save_ifs"
9136       ;;
9137     esac
9138 else
9139   enable_fast_install=yes
9140 fi
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152 # This can be used to rebuild libtool when needed
9153 LIBTOOL_DEPS="$ltmain"
9154
9155 # Always use our own libtool.
9156 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182 test -z "$LN_S" && LN_S="ln -s"
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197 if test -n "${ZSH_VERSION+set}" ; then
9198    setopt NO_GLOB_SUBST
9199 fi
9200
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9202 $as_echo_n "checking for objdir... " >&6; }
9203 if test "${lt_cv_objdir+set}" = set; then :
9204   $as_echo_n "(cached) " >&6
9205 else
9206   rm -f .libs 2>/dev/null
9207 mkdir .libs 2>/dev/null
9208 if test -d .libs; then
9209   lt_cv_objdir=.libs
9210 else
9211   # MS-DOS does not allow filenames that begin with a dot.
9212   lt_cv_objdir=_libs
9213 fi
9214 rmdir .libs 2>/dev/null
9215 fi
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9217 $as_echo "$lt_cv_objdir" >&6; }
9218 objdir=$lt_cv_objdir
9219
9220
9221
9222
9223
9224 cat >>confdefs.h <<_ACEOF
9225 #define LT_OBJDIR "$lt_cv_objdir/"
9226 _ACEOF
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244 case $host_os in
9245 aix3*)
9246   # AIX sometimes has problems with the GCC collect2 program.  For some
9247   # reason, if we set the COLLECT_NAMES environment variable, the problems
9248   # vanish in a puff of smoke.
9249   if test "X${COLLECT_NAMES+set}" != Xset; then
9250     COLLECT_NAMES=
9251     export COLLECT_NAMES
9252   fi
9253   ;;
9254 esac
9255
9256 # Sed substitution that helps us do robust quoting.  It backslashifies
9257 # metacharacters that are still active within double-quoted strings.
9258 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9259
9260 # Same as above, but do not quote variable references.
9261 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9262
9263 # Sed substitution to delay expansion of an escaped shell variable in a
9264 # double_quote_subst'ed string.
9265 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9266
9267 # Sed substitution to delay expansion of an escaped single quote.
9268 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9269
9270 # Sed substitution to avoid accidental globbing in evaled expressions
9271 no_glob_subst='s/\*/\\\*/g'
9272
9273 # Global variables:
9274 ofile=libtool
9275 can_build_shared=yes
9276
9277 # All known linkers require a `.a' archive for static linking (except MSVC,
9278 # which needs '.lib').
9279 libext=a
9280
9281 with_gnu_ld="$lt_cv_prog_gnu_ld"
9282
9283 old_CC="$CC"
9284 old_CFLAGS="$CFLAGS"
9285
9286 # Set sane defaults for various variables
9287 test -z "$CC" && CC=cc
9288 test -z "$LTCC" && LTCC=$CC
9289 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9290 test -z "$LD" && LD=ld
9291 test -z "$ac_objext" && ac_objext=o
9292
9293 for cc_temp in $compiler""; do
9294   case $cc_temp in
9295     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9296     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9297     \-*) ;;
9298     *) break;;
9299   esac
9300 done
9301 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9302
9303
9304 # Only perform the check for file, if the check method requires it
9305 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9306 case $deplibs_check_method in
9307 file_magic*)
9308   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9309     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9310 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9311 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9312   $as_echo_n "(cached) " >&6
9313 else
9314   case $MAGIC_CMD in
9315 [\\/*] |  ?:[\\/]*)
9316   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9317   ;;
9318 *)
9319   lt_save_MAGIC_CMD="$MAGIC_CMD"
9320   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9321   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9322   for ac_dir in $ac_dummy; do
9323     IFS="$lt_save_ifs"
9324     test -z "$ac_dir" && ac_dir=.
9325     if test -f $ac_dir/${ac_tool_prefix}file; then
9326       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9327       if test -n "$file_magic_test_file"; then
9328         case $deplibs_check_method in
9329         "file_magic "*)
9330           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9331           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9332           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9333             $EGREP "$file_magic_regex" > /dev/null; then
9334             :
9335           else
9336             cat <<_LT_EOF 1>&2
9337
9338 *** Warning: the command libtool uses to detect shared libraries,
9339 *** $file_magic_cmd, produces output that libtool cannot recognize.
9340 *** The result is that libtool may fail to recognize shared libraries
9341 *** as such.  This will affect the creation of libtool libraries that
9342 *** depend on shared libraries, but programs linked with such libtool
9343 *** libraries will work regardless of this problem.  Nevertheless, you
9344 *** may want to report the problem to your system manager and/or to
9345 *** bug-libtool@gnu.org
9346
9347 _LT_EOF
9348           fi ;;
9349         esac
9350       fi
9351       break
9352     fi
9353   done
9354   IFS="$lt_save_ifs"
9355   MAGIC_CMD="$lt_save_MAGIC_CMD"
9356   ;;
9357 esac
9358 fi
9359
9360 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9361 if test -n "$MAGIC_CMD"; then
9362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9363 $as_echo "$MAGIC_CMD" >&6; }
9364 else
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9367 fi
9368
9369
9370
9371
9372
9373 if test -z "$lt_cv_path_MAGIC_CMD"; then
9374   if test -n "$ac_tool_prefix"; then
9375     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9376 $as_echo_n "checking for file... " >&6; }
9377 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9378   $as_echo_n "(cached) " >&6
9379 else
9380   case $MAGIC_CMD in
9381 [\\/*] |  ?:[\\/]*)
9382   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9383   ;;
9384 *)
9385   lt_save_MAGIC_CMD="$MAGIC_CMD"
9386   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9387   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9388   for ac_dir in $ac_dummy; do
9389     IFS="$lt_save_ifs"
9390     test -z "$ac_dir" && ac_dir=.
9391     if test -f $ac_dir/file; then
9392       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9393       if test -n "$file_magic_test_file"; then
9394         case $deplibs_check_method in
9395         "file_magic "*)
9396           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9397           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9398           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9399             $EGREP "$file_magic_regex" > /dev/null; then
9400             :
9401           else
9402             cat <<_LT_EOF 1>&2
9403
9404 *** Warning: the command libtool uses to detect shared libraries,
9405 *** $file_magic_cmd, produces output that libtool cannot recognize.
9406 *** The result is that libtool may fail to recognize shared libraries
9407 *** as such.  This will affect the creation of libtool libraries that
9408 *** depend on shared libraries, but programs linked with such libtool
9409 *** libraries will work regardless of this problem.  Nevertheless, you
9410 *** may want to report the problem to your system manager and/or to
9411 *** bug-libtool@gnu.org
9412
9413 _LT_EOF
9414           fi ;;
9415         esac
9416       fi
9417       break
9418     fi
9419   done
9420   IFS="$lt_save_ifs"
9421   MAGIC_CMD="$lt_save_MAGIC_CMD"
9422   ;;
9423 esac
9424 fi
9425
9426 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9427 if test -n "$MAGIC_CMD"; then
9428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9429 $as_echo "$MAGIC_CMD" >&6; }
9430 else
9431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9433 fi
9434
9435
9436   else
9437     MAGIC_CMD=:
9438   fi
9439 fi
9440
9441   fi
9442   ;;
9443 esac
9444
9445 # Use C for the default configuration in the libtool script
9446
9447 lt_save_CC="$CC"
9448 ac_ext=c
9449 ac_cpp='$CPP $CPPFLAGS'
9450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9453
9454
9455 # Source file extension for C test sources.
9456 ac_ext=c
9457
9458 # Object file extension for compiled C test sources.
9459 objext=o
9460 objext=$objext
9461
9462 # Code to be used in simple compile tests
9463 lt_simple_compile_test_code="int some_variable = 0;"
9464
9465 # Code to be used in simple link tests
9466 lt_simple_link_test_code='int main(){return(0);}'
9467
9468
9469
9470
9471
9472
9473
9474 # If no C compiler was specified, use CC.
9475 LTCC=${LTCC-"$CC"}
9476
9477 # If no C compiler flags were specified, use CFLAGS.
9478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9479
9480 # Allow CC to be a program name with arguments.
9481 compiler=$CC
9482
9483 # Save the default compiler, since it gets overwritten when the other
9484 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9485 compiler_DEFAULT=$CC
9486
9487 # save warnings/boilerplate of simple test code
9488 ac_outfile=conftest.$ac_objext
9489 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9490 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9491 _lt_compiler_boilerplate=`cat conftest.err`
9492 $RM conftest*
9493
9494 ac_outfile=conftest.$ac_objext
9495 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9496 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9497 _lt_linker_boilerplate=`cat conftest.err`
9498 $RM -r conftest*
9499
9500
9501 ## CAVEAT EMPTOR:
9502 ## There is no encapsulation within the following macros, do not change
9503 ## the running order or otherwise move them around unless you know exactly
9504 ## what you are doing...
9505 if test -n "$compiler"; then
9506
9507 lt_prog_compiler_no_builtin_flag=
9508
9509 if test "$GCC" = yes; then
9510   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9511
9512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9513 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9514 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9515   $as_echo_n "(cached) " >&6
9516 else
9517   lt_cv_prog_compiler_rtti_exceptions=no
9518    ac_outfile=conftest.$ac_objext
9519    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9520    lt_compiler_flag="-fno-rtti -fno-exceptions"
9521    # Insert the option either (1) after the last *FLAGS variable, or
9522    # (2) before a word containing "conftest.", or (3) at the end.
9523    # Note that $ac_compile itself does not contain backslashes and begins
9524    # with a dollar sign (not a hyphen), so the echo should work correctly.
9525    # The option is referenced via a variable to avoid confusing sed.
9526    lt_compile=`echo "$ac_compile" | $SED \
9527    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9528    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9529    -e 's:$: $lt_compiler_flag:'`
9530    (eval echo "\"\$as_me:9530: $lt_compile\"" >&5)
9531    (eval "$lt_compile" 2>conftest.err)
9532    ac_status=$?
9533    cat conftest.err >&5
9534    echo "$as_me:9534: \$? = $ac_status" >&5
9535    if (exit $ac_status) && test -s "$ac_outfile"; then
9536      # The compiler can only warn and ignore the option if not recognized
9537      # So say no if there are warnings other than the usual output.
9538      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9539      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9540      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9541        lt_cv_prog_compiler_rtti_exceptions=yes
9542      fi
9543    fi
9544    $RM conftest*
9545
9546 fi
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9548 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9549
9550 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9551     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9552 else
9553     :
9554 fi
9555
9556 fi
9557
9558
9559
9560
9561
9562
9563   lt_prog_compiler_wl=
9564 lt_prog_compiler_pic=
9565 lt_prog_compiler_static=
9566
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9568 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9569
9570   if test "$GCC" = yes; then
9571     lt_prog_compiler_wl='-Wl,'
9572     lt_prog_compiler_static='-static'
9573
9574     case $host_os in
9575       aix*)
9576       # All AIX code is PIC.
9577       if test "$host_cpu" = ia64; then
9578         # AIX 5 now supports IA64 processor
9579         lt_prog_compiler_static='-Bstatic'
9580       fi
9581       ;;
9582
9583     amigaos*)
9584       case $host_cpu in
9585       powerpc)
9586             # see comment about AmigaOS4 .so support
9587             lt_prog_compiler_pic='-fPIC'
9588         ;;
9589       m68k)
9590             # FIXME: we need at least 68020 code to build shared libraries, but
9591             # adding the `-m68020' flag to GCC prevents building anything better,
9592             # like `-m68040'.
9593             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9594         ;;
9595       esac
9596       ;;
9597
9598     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9599       # PIC is the default for these OSes.
9600       ;;
9601
9602     mingw* | cygwin* | pw32* | os2* | cegcc*)
9603       # This hack is so that the source file can tell whether it is being
9604       # built for inclusion in a dll (and should export symbols for example).
9605       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9606       # (--disable-auto-import) libraries
9607       lt_prog_compiler_pic='-DDLL_EXPORT'
9608       ;;
9609
9610     darwin* | rhapsody*)
9611       # PIC is the default on this platform
9612       # Common symbols not allowed in MH_DYLIB files
9613       lt_prog_compiler_pic='-fno-common'
9614       ;;
9615
9616     hpux*)
9617       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9618       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9619       # sets the default TLS model and affects inlining.
9620       case $host_cpu in
9621       hppa*64*)
9622         # +Z the default
9623         ;;
9624       *)
9625         lt_prog_compiler_pic='-fPIC'
9626         ;;
9627       esac
9628       ;;
9629
9630     interix[3-9]*)
9631       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9632       # Instead, we relocate shared libraries at runtime.
9633       ;;
9634
9635     msdosdjgpp*)
9636       # Just because we use GCC doesn't mean we suddenly get shared libraries
9637       # on systems that don't support them.
9638       lt_prog_compiler_can_build_shared=no
9639       enable_shared=no
9640       ;;
9641
9642     *nto* | *qnx*)
9643       # QNX uses GNU C++, but need to define -shared option too, otherwise
9644       # it will coredump.
9645       lt_prog_compiler_pic='-fPIC -shared'
9646       ;;
9647
9648     sysv4*MP*)
9649       if test -d /usr/nec; then
9650         lt_prog_compiler_pic=-Kconform_pic
9651       fi
9652       ;;
9653
9654     *)
9655       lt_prog_compiler_pic='-fPIC'
9656       ;;
9657     esac
9658   else
9659     # PORTME Check for flag to pass linker flags through the system compiler.
9660     case $host_os in
9661     aix*)
9662       lt_prog_compiler_wl='-Wl,'
9663       if test "$host_cpu" = ia64; then
9664         # AIX 5 now supports IA64 processor
9665         lt_prog_compiler_static='-Bstatic'
9666       else
9667         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9668       fi
9669       ;;
9670
9671     mingw* | cygwin* | pw32* | os2* | cegcc*)
9672       # This hack is so that the source file can tell whether it is being
9673       # built for inclusion in a dll (and should export symbols for example).
9674       lt_prog_compiler_pic='-DDLL_EXPORT'
9675       ;;
9676
9677     hpux9* | hpux10* | hpux11*)
9678       lt_prog_compiler_wl='-Wl,'
9679       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9680       # not for PA HP-UX.
9681       case $host_cpu in
9682       hppa*64*|ia64*)
9683         # +Z the default
9684         ;;
9685       *)
9686         lt_prog_compiler_pic='+Z'
9687         ;;
9688       esac
9689       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9690       lt_prog_compiler_static='${wl}-a ${wl}archive'
9691       ;;
9692
9693     irix5* | irix6* | nonstopux*)
9694       lt_prog_compiler_wl='-Wl,'
9695       # PIC (with -KPIC) is the default.
9696       lt_prog_compiler_static='-non_shared'
9697       ;;
9698
9699     linux* | k*bsd*-gnu)
9700       case $cc_basename in
9701       # old Intel for x86_64 which still supported -KPIC.
9702       ecc*)
9703         lt_prog_compiler_wl='-Wl,'
9704         lt_prog_compiler_pic='-KPIC'
9705         lt_prog_compiler_static='-static'
9706         ;;
9707       # icc used to be incompatible with GCC.
9708       # ICC 10 doesn't accept -KPIC any more.
9709       icc* | ifort*)
9710         lt_prog_compiler_wl='-Wl,'
9711         lt_prog_compiler_pic='-fPIC'
9712         lt_prog_compiler_static='-static'
9713         ;;
9714       # Lahey Fortran 8.1.
9715       lf95*)
9716         lt_prog_compiler_wl='-Wl,'
9717         lt_prog_compiler_pic='--shared'
9718         lt_prog_compiler_static='--static'
9719         ;;
9720       pgcc* | pgf77* | pgf90* | pgf95*)
9721         # Portland Group compilers (*not* the Pentium gcc compiler,
9722         # which looks to be a dead project)
9723         lt_prog_compiler_wl='-Wl,'
9724         lt_prog_compiler_pic='-fpic'
9725         lt_prog_compiler_static='-Bstatic'
9726         ;;
9727       ccc*)
9728         lt_prog_compiler_wl='-Wl,'
9729         # All Alpha code is PIC.
9730         lt_prog_compiler_static='-non_shared'
9731         ;;
9732       xl*)
9733         # IBM XL C 8.0/Fortran 10.1 on PPC
9734         lt_prog_compiler_wl='-Wl,'
9735         lt_prog_compiler_pic='-qpic'
9736         lt_prog_compiler_static='-qstaticlink'
9737         ;;
9738       *)
9739         case `$CC -V 2>&1 | sed 5q` in
9740         *Sun\ C*)
9741           # Sun C 5.9
9742           lt_prog_compiler_pic='-KPIC'
9743           lt_prog_compiler_static='-Bstatic'
9744           lt_prog_compiler_wl='-Wl,'
9745           ;;
9746         *Sun\ F*)
9747           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9748           lt_prog_compiler_pic='-KPIC'
9749           lt_prog_compiler_static='-Bstatic'
9750           lt_prog_compiler_wl=''
9751           ;;
9752         esac
9753         ;;
9754       esac
9755       ;;
9756
9757     newsos6)
9758       lt_prog_compiler_pic='-KPIC'
9759       lt_prog_compiler_static='-Bstatic'
9760       ;;
9761
9762     *nto* | *qnx*)
9763       # QNX uses GNU C++, but need to define -shared option too, otherwise
9764       # it will coredump.
9765       lt_prog_compiler_pic='-fPIC -shared'
9766       ;;
9767
9768     osf3* | osf4* | osf5*)
9769       lt_prog_compiler_wl='-Wl,'
9770       # All OSF/1 code is PIC.
9771       lt_prog_compiler_static='-non_shared'
9772       ;;
9773
9774     rdos*)
9775       lt_prog_compiler_static='-non_shared'
9776       ;;
9777
9778     solaris*)
9779       lt_prog_compiler_pic='-KPIC'
9780       lt_prog_compiler_static='-Bstatic'
9781       case $cc_basename in
9782       f77* | f90* | f95*)
9783         lt_prog_compiler_wl='-Qoption ld ';;
9784       *)
9785         lt_prog_compiler_wl='-Wl,';;
9786       esac
9787       ;;
9788
9789     sunos4*)
9790       lt_prog_compiler_wl='-Qoption ld '
9791       lt_prog_compiler_pic='-PIC'
9792       lt_prog_compiler_static='-Bstatic'
9793       ;;
9794
9795     sysv4 | sysv4.2uw2* | sysv4.3*)
9796       lt_prog_compiler_wl='-Wl,'
9797       lt_prog_compiler_pic='-KPIC'
9798       lt_prog_compiler_static='-Bstatic'
9799       ;;
9800
9801     sysv4*MP*)
9802       if test -d /usr/nec ;then
9803         lt_prog_compiler_pic='-Kconform_pic'
9804         lt_prog_compiler_static='-Bstatic'
9805       fi
9806       ;;
9807
9808     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9809       lt_prog_compiler_wl='-Wl,'
9810       lt_prog_compiler_pic='-KPIC'
9811       lt_prog_compiler_static='-Bstatic'
9812       ;;
9813
9814     unicos*)
9815       lt_prog_compiler_wl='-Wl,'
9816       lt_prog_compiler_can_build_shared=no
9817       ;;
9818
9819     uts4*)
9820       lt_prog_compiler_pic='-pic'
9821       lt_prog_compiler_static='-Bstatic'
9822       ;;
9823
9824     *)
9825       lt_prog_compiler_can_build_shared=no
9826       ;;
9827     esac
9828   fi
9829
9830 case $host_os in
9831   # For platforms which do not support PIC, -DPIC is meaningless:
9832   *djgpp*)
9833     lt_prog_compiler_pic=
9834     ;;
9835   *)
9836     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9837     ;;
9838 esac
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9840 $as_echo "$lt_prog_compiler_pic" >&6; }
9841
9842
9843
9844
9845
9846
9847 #
9848 # Check to make sure the PIC flag actually works.
9849 #
9850 if test -n "$lt_prog_compiler_pic"; then
9851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9852 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9853 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9854   $as_echo_n "(cached) " >&6
9855 else
9856   lt_cv_prog_compiler_pic_works=no
9857    ac_outfile=conftest.$ac_objext
9858    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9859    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9860    # Insert the option either (1) after the last *FLAGS variable, or
9861    # (2) before a word containing "conftest.", or (3) at the end.
9862    # Note that $ac_compile itself does not contain backslashes and begins
9863    # with a dollar sign (not a hyphen), so the echo should work correctly.
9864    # The option is referenced via a variable to avoid confusing sed.
9865    lt_compile=`echo "$ac_compile" | $SED \
9866    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9867    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9868    -e 's:$: $lt_compiler_flag:'`
9869    (eval echo "\"\$as_me:9869: $lt_compile\"" >&5)
9870    (eval "$lt_compile" 2>conftest.err)
9871    ac_status=$?
9872    cat conftest.err >&5
9873    echo "$as_me:9873: \$? = $ac_status" >&5
9874    if (exit $ac_status) && test -s "$ac_outfile"; then
9875      # The compiler can only warn and ignore the option if not recognized
9876      # So say no if there are warnings other than the usual output.
9877      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9878      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9879      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9880        lt_cv_prog_compiler_pic_works=yes
9881      fi
9882    fi
9883    $RM conftest*
9884
9885 fi
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9887 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9888
9889 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9890     case $lt_prog_compiler_pic in
9891      "" | " "*) ;;
9892      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9893      esac
9894 else
9895     lt_prog_compiler_pic=
9896      lt_prog_compiler_can_build_shared=no
9897 fi
9898
9899 fi
9900
9901
9902
9903
9904
9905
9906 #
9907 # Check to make sure the static flag actually works.
9908 #
9909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9911 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9912 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9913   $as_echo_n "(cached) " >&6
9914 else
9915   lt_cv_prog_compiler_static_works=no
9916    save_LDFLAGS="$LDFLAGS"
9917    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9918    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9919    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9920      # The linker can only warn and ignore the option if not recognized
9921      # So say no if there are warnings
9922      if test -s conftest.err; then
9923        # Append any errors to the config.log.
9924        cat conftest.err 1>&5
9925        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9926        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9927        if diff conftest.exp conftest.er2 >/dev/null; then
9928          lt_cv_prog_compiler_static_works=yes
9929        fi
9930      else
9931        lt_cv_prog_compiler_static_works=yes
9932      fi
9933    fi
9934    $RM -r conftest*
9935    LDFLAGS="$save_LDFLAGS"
9936
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9939 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9940
9941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9942     :
9943 else
9944     lt_prog_compiler_static=
9945 fi
9946
9947
9948
9949
9950
9951
9952
9953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9954 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9955 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9956   $as_echo_n "(cached) " >&6
9957 else
9958   lt_cv_prog_compiler_c_o=no
9959    $RM -r conftest 2>/dev/null
9960    mkdir conftest
9961    cd conftest
9962    mkdir out
9963    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9964
9965    lt_compiler_flag="-o out/conftest2.$ac_objext"
9966    # Insert the option either (1) after the last *FLAGS variable, or
9967    # (2) before a word containing "conftest.", or (3) at the end.
9968    # Note that $ac_compile itself does not contain backslashes and begins
9969    # with a dollar sign (not a hyphen), so the echo should work correctly.
9970    lt_compile=`echo "$ac_compile" | $SED \
9971    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9973    -e 's:$: $lt_compiler_flag:'`
9974    (eval echo "\"\$as_me:9974: $lt_compile\"" >&5)
9975    (eval "$lt_compile" 2>out/conftest.err)
9976    ac_status=$?
9977    cat out/conftest.err >&5
9978    echo "$as_me:9978: \$? = $ac_status" >&5
9979    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9980    then
9981      # The compiler can only warn and ignore the option if not recognized
9982      # So say no if there are warnings
9983      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9984      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9985      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9986        lt_cv_prog_compiler_c_o=yes
9987      fi
9988    fi
9989    chmod u+w . 2>&5
9990    $RM conftest*
9991    # SGI C++ compiler will create directory out/ii_files/ for
9992    # template instantiation
9993    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9994    $RM out/* && rmdir out
9995    cd ..
9996    $RM -r conftest
9997    $RM conftest*
9998
9999 fi
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10001 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10002
10003
10004
10005
10006
10007
10008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10010 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013   lt_cv_prog_compiler_c_o=no
10014    $RM -r conftest 2>/dev/null
10015    mkdir conftest
10016    cd conftest
10017    mkdir out
10018    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10019
10020    lt_compiler_flag="-o out/conftest2.$ac_objext"
10021    # Insert the option either (1) after the last *FLAGS variable, or
10022    # (2) before a word containing "conftest.", or (3) at the end.
10023    # Note that $ac_compile itself does not contain backslashes and begins
10024    # with a dollar sign (not a hyphen), so the echo should work correctly.
10025    lt_compile=`echo "$ac_compile" | $SED \
10026    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10028    -e 's:$: $lt_compiler_flag:'`
10029    (eval echo "\"\$as_me:10029: $lt_compile\"" >&5)
10030    (eval "$lt_compile" 2>out/conftest.err)
10031    ac_status=$?
10032    cat out/conftest.err >&5
10033    echo "$as_me:10033: \$? = $ac_status" >&5
10034    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10035    then
10036      # The compiler can only warn and ignore the option if not recognized
10037      # So say no if there are warnings
10038      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10039      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10040      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10041        lt_cv_prog_compiler_c_o=yes
10042      fi
10043    fi
10044    chmod u+w . 2>&5
10045    $RM conftest*
10046    # SGI C++ compiler will create directory out/ii_files/ for
10047    # template instantiation
10048    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10049    $RM out/* && rmdir out
10050    cd ..
10051    $RM -r conftest
10052    $RM conftest*
10053
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10057
10058
10059
10060
10061 hard_links="nottested"
10062 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10063   # do not overwrite the value of need_locks provided by the user
10064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10065 $as_echo_n "checking if we can lock with hard links... " >&6; }
10066   hard_links=yes
10067   $RM conftest*
10068   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10069   touch conftest.a
10070   ln conftest.a conftest.b 2>&5 || hard_links=no
10071   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10073 $as_echo "$hard_links" >&6; }
10074   if test "$hard_links" = no; then
10075     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10076 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10077     need_locks=warn
10078   fi
10079 else
10080   need_locks=no
10081 fi
10082
10083
10084
10085
10086
10087
10088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10089 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10090
10091   runpath_var=
10092   allow_undefined_flag=
10093   always_export_symbols=no
10094   archive_cmds=
10095   archive_expsym_cmds=
10096   compiler_needs_object=no
10097   enable_shared_with_static_runtimes=no
10098   export_dynamic_flag_spec=
10099   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10100   hardcode_automatic=no
10101   hardcode_direct=no
10102   hardcode_direct_absolute=no
10103   hardcode_libdir_flag_spec=
10104   hardcode_libdir_flag_spec_ld=
10105   hardcode_libdir_separator=
10106   hardcode_minus_L=no
10107   hardcode_shlibpath_var=unsupported
10108   inherit_rpath=no
10109   link_all_deplibs=unknown
10110   module_cmds=
10111   module_expsym_cmds=
10112   old_archive_from_new_cmds=
10113   old_archive_from_expsyms_cmds=
10114   thread_safe_flag_spec=
10115   whole_archive_flag_spec=
10116   # include_expsyms should be a list of space-separated symbols to be *always*
10117   # included in the symbol list
10118   include_expsyms=
10119   # exclude_expsyms can be an extended regexp of symbols to exclude
10120   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10121   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10122   # as well as any symbol that contains `d'.
10123   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10124   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10125   # platforms (ab)use it in PIC code, but their linkers get confused if
10126   # the symbol is explicitly referenced.  Since portable code cannot
10127   # rely on this symbol name, it's probably fine to never include it in
10128   # preloaded symbol tables.
10129   # Exclude shared library initialization/finalization symbols.
10130   extract_expsyms_cmds=
10131
10132   case $host_os in
10133   cygwin* | mingw* | pw32* | cegcc*)
10134     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10135     # When not using gcc, we currently assume that we are using
10136     # Microsoft Visual C++.
10137     if test "$GCC" != yes; then
10138       with_gnu_ld=no
10139     fi
10140     ;;
10141   interix*)
10142     # we just hope/assume this is gcc and not c89 (= MSVC++)
10143     with_gnu_ld=yes
10144     ;;
10145   openbsd*)
10146     with_gnu_ld=no
10147     ;;
10148   esac
10149
10150   ld_shlibs=yes
10151   if test "$with_gnu_ld" = yes; then
10152     # If archive_cmds runs LD, not CC, wlarc should be empty
10153     wlarc='${wl}'
10154
10155     # Set some defaults for GNU ld with shared library support. These
10156     # are reset later if shared libraries are not supported. Putting them
10157     # here allows them to be overridden if necessary.
10158     runpath_var=LD_RUN_PATH
10159     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10160     export_dynamic_flag_spec='${wl}--export-dynamic'
10161     # ancient GNU ld didn't support --whole-archive et. al.
10162     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10163       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10164     else
10165       whole_archive_flag_spec=
10166     fi
10167     supports_anon_versioning=no
10168     case `$LD -v 2>&1` in
10169       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10170       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10171       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10172       *\ 2.11.*) ;; # other 2.11 versions
10173       *) supports_anon_versioning=yes ;;
10174     esac
10175
10176     # See if GNU ld supports shared libraries.
10177     case $host_os in
10178     aix[3-9]*)
10179       # On AIX/PPC, the GNU linker is very broken
10180       if test "$host_cpu" != ia64; then
10181         ld_shlibs=no
10182         cat <<_LT_EOF 1>&2
10183
10184 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10185 *** to be unable to reliably create shared libraries on AIX.
10186 *** Therefore, libtool is disabling shared libraries support.  If you
10187 *** really care for shared libraries, you may want to modify your PATH
10188 *** so that a non-GNU linker is found, and then restart.
10189
10190 _LT_EOF
10191       fi
10192       ;;
10193
10194     amigaos*)
10195       case $host_cpu in
10196       powerpc)
10197             # see comment about AmigaOS4 .so support
10198             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10199             archive_expsym_cmds=''
10200         ;;
10201       m68k)
10202             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)'
10203             hardcode_libdir_flag_spec='-L$libdir'
10204             hardcode_minus_L=yes
10205         ;;
10206       esac
10207       ;;
10208
10209     beos*)
10210       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10211         allow_undefined_flag=unsupported
10212         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10213         # support --undefined.  This deserves some investigation.  FIXME
10214         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10215       else
10216         ld_shlibs=no
10217       fi
10218       ;;
10219
10220     cygwin* | mingw* | pw32* | cegcc*)
10221       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10222       # as there is no search path for DLLs.
10223       hardcode_libdir_flag_spec='-L$libdir'
10224       allow_undefined_flag=unsupported
10225       always_export_symbols=no
10226       enable_shared_with_static_runtimes=yes
10227       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10228
10229       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10230         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10231         # If the export-symbols file already is a .def file (1st line
10232         # is EXPORTS), use it as is; otherwise, prepend...
10233         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10234           cp $export_symbols $output_objdir/$soname.def;
10235         else
10236           echo EXPORTS > $output_objdir/$soname.def;
10237           cat $export_symbols >> $output_objdir/$soname.def;
10238         fi~
10239         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10240       else
10241         ld_shlibs=no
10242       fi
10243       ;;
10244
10245     interix[3-9]*)
10246       hardcode_direct=no
10247       hardcode_shlibpath_var=no
10248       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10249       export_dynamic_flag_spec='${wl}-E'
10250       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10251       # Instead, shared libraries are loaded at an image base (0x10000000 by
10252       # default) and relocated if they conflict, which is a slow very memory
10253       # consuming and fragmenting process.  To avoid this, we pick a random,
10254       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10255       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10256       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10257       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'
10258       ;;
10259
10260     gnu* | linux* | tpf* | k*bsd*-gnu)
10261       tmp_diet=no
10262       if test "$host_os" = linux-dietlibc; then
10263         case $cc_basename in
10264           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10265         esac
10266       fi
10267       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10268          && test "$tmp_diet" = no
10269       then
10270         tmp_addflag=
10271         tmp_sharedflag='-shared'
10272         case $cc_basename,$host_cpu in
10273         pgcc*)                          # Portland Group C compiler
10274           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'
10275           tmp_addflag=' $pic_flag'
10276           ;;
10277         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10278           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'
10279           tmp_addflag=' $pic_flag -Mnomain' ;;
10280         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10281           tmp_addflag=' -i_dynamic' ;;
10282         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10283           tmp_addflag=' -i_dynamic -nofor_main' ;;
10284         ifc* | ifort*)                  # Intel Fortran compiler
10285           tmp_addflag=' -nofor_main' ;;
10286         lf95*)                          # Lahey Fortran 8.1
10287           whole_archive_flag_spec=
10288           tmp_sharedflag='--shared' ;;
10289         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10290           tmp_sharedflag='-qmkshrobj'
10291           tmp_addflag= ;;
10292         esac
10293         case `$CC -V 2>&1 | sed 5q` in
10294         *Sun\ C*)                       # Sun C 5.9
10295           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'
10296           compiler_needs_object=yes
10297           tmp_sharedflag='-G' ;;
10298         *Sun\ F*)                       # Sun Fortran 8.3
10299           tmp_sharedflag='-G' ;;
10300         esac
10301         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10302
10303         if test "x$supports_anon_versioning" = xyes; then
10304           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10305             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10306             echo "local: *; };" >> $output_objdir/$libname.ver~
10307             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10308         fi
10309
10310         case $cc_basename in
10311         xlf*)
10312           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10313           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10314           hardcode_libdir_flag_spec=
10315           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10316           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10317           if test "x$supports_anon_versioning" = xyes; then
10318             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10319               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10320               echo "local: *; };" >> $output_objdir/$libname.ver~
10321               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10322           fi
10323           ;;
10324         esac
10325       else
10326         ld_shlibs=no
10327       fi
10328       ;;
10329
10330     netbsd*)
10331       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10332         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10333         wlarc=
10334       else
10335         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10336         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10337       fi
10338       ;;
10339
10340     solaris*)
10341       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10342         ld_shlibs=no
10343         cat <<_LT_EOF 1>&2
10344
10345 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10346 *** create shared libraries on Solaris systems.  Therefore, libtool
10347 *** is disabling shared libraries support.  We urge you to upgrade GNU
10348 *** binutils to release 2.9.1 or newer.  Another option is to modify
10349 *** your PATH or compiler configuration so that the native linker is
10350 *** used, and then restart.
10351
10352 _LT_EOF
10353       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10354         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10355         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10356       else
10357         ld_shlibs=no
10358       fi
10359       ;;
10360
10361     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10362       case `$LD -v 2>&1` in
10363         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10364         ld_shlibs=no
10365         cat <<_LT_EOF 1>&2
10366
10367 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10368 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10369 *** is disabling shared libraries support.  We urge you to upgrade GNU
10370 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10371 *** your PATH or compiler configuration so that the native linker is
10372 *** used, and then restart.
10373
10374 _LT_EOF
10375         ;;
10376         *)
10377           # For security reasons, it is highly recommended that you always
10378           # use absolute paths for naming shared libraries, and exclude the
10379           # DT_RUNPATH tag from executables and libraries.  But doing so
10380           # requires that you compile everything twice, which is a pain.
10381           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10382             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10383             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10384             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10385           else
10386             ld_shlibs=no
10387           fi
10388         ;;
10389       esac
10390       ;;
10391
10392     sunos4*)
10393       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10394       wlarc=
10395       hardcode_direct=yes
10396       hardcode_shlibpath_var=no
10397       ;;
10398
10399     *)
10400       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10401         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10402         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10403       else
10404         ld_shlibs=no
10405       fi
10406       ;;
10407     esac
10408
10409     if test "$ld_shlibs" = no; then
10410       runpath_var=
10411       hardcode_libdir_flag_spec=
10412       export_dynamic_flag_spec=
10413       whole_archive_flag_spec=
10414     fi
10415   else
10416     # PORTME fill in a description of your system's linker (not GNU ld)
10417     case $host_os in
10418     aix3*)
10419       allow_undefined_flag=unsupported
10420       always_export_symbols=yes
10421       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'
10422       # Note: this linker hardcodes the directories in LIBPATH if there
10423       # are no directories specified by -L.
10424       hardcode_minus_L=yes
10425       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10426         # Neither direct hardcoding nor static linking is supported with a
10427         # broken collect2.
10428         hardcode_direct=unsupported
10429       fi
10430       ;;
10431
10432     aix[4-9]*)
10433       if test "$host_cpu" = ia64; then
10434         # On IA64, the linker does run time linking by default, so we don't
10435         # have to do anything special.
10436         aix_use_runtimelinking=no
10437         exp_sym_flag='-Bexport'
10438         no_entry_flag=""
10439       else
10440         # If we're using GNU nm, then we don't want the "-C" option.
10441         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10442         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10443           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'
10444         else
10445           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'
10446         fi
10447         aix_use_runtimelinking=no
10448
10449         # Test if we are trying to use run time linking or normal
10450         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10451         # need to do runtime linking.
10452         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10453           for ld_flag in $LDFLAGS; do
10454           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10455             aix_use_runtimelinking=yes
10456             break
10457           fi
10458           done
10459           ;;
10460         esac
10461
10462         exp_sym_flag='-bexport'
10463         no_entry_flag='-bnoentry'
10464       fi
10465
10466       # When large executables or shared objects are built, AIX ld can
10467       # have problems creating the table of contents.  If linking a library
10468       # or program results in "error TOC overflow" add -mminimal-toc to
10469       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10470       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10471
10472       archive_cmds=''
10473       hardcode_direct=yes
10474       hardcode_direct_absolute=yes
10475       hardcode_libdir_separator=':'
10476       link_all_deplibs=yes
10477       file_list_spec='${wl}-f,'
10478
10479       if test "$GCC" = yes; then
10480         case $host_os in aix4.[012]|aix4.[012].*)
10481         # We only want to do this on AIX 4.2 and lower, the check
10482         # below for broken collect2 doesn't work under 4.3+
10483           collect2name=`${CC} -print-prog-name=collect2`
10484           if test -f "$collect2name" &&
10485            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10486           then
10487           # We have reworked collect2
10488           :
10489           else
10490           # We have old collect2
10491           hardcode_direct=unsupported
10492           # It fails to find uninstalled libraries when the uninstalled
10493           # path is not listed in the libpath.  Setting hardcode_minus_L
10494           # to unsupported forces relinking
10495           hardcode_minus_L=yes
10496           hardcode_libdir_flag_spec='-L$libdir'
10497           hardcode_libdir_separator=
10498           fi
10499           ;;
10500         esac
10501         shared_flag='-shared'
10502         if test "$aix_use_runtimelinking" = yes; then
10503           shared_flag="$shared_flag "'${wl}-G'
10504         fi
10505       else
10506         # not using gcc
10507         if test "$host_cpu" = ia64; then
10508         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10509         # chokes on -Wl,-G. The following line is correct:
10510           shared_flag='-G'
10511         else
10512           if test "$aix_use_runtimelinking" = yes; then
10513             shared_flag='${wl}-G'
10514           else
10515             shared_flag='${wl}-bM:SRE'
10516           fi
10517         fi
10518       fi
10519
10520       export_dynamic_flag_spec='${wl}-bexpall'
10521       # It seems that -bexpall does not export symbols beginning with
10522       # underscore (_), so it is better to generate a list of symbols to export.
10523       always_export_symbols=yes
10524       if test "$aix_use_runtimelinking" = yes; then
10525         # Warning - without using the other runtime loading flags (-brtl),
10526         # -berok will link without error, but may produce a broken library.
10527         allow_undefined_flag='-berok'
10528         # Determine the default libpath from the value encoded in an
10529         # empty executable.
10530         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h.  */
10532
10533 int
10534 main ()
10535 {
10536
10537   ;
10538   return 0;
10539 }
10540 _ACEOF
10541 if ac_fn_c_try_link "$LINENO"; then :
10542
10543 lt_aix_libpath_sed='
10544     /Import File Strings/,/^$/ {
10545         /^0/ {
10546             s/^0  *\(.*\)$/\1/
10547             p
10548         }
10549     }'
10550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10551 # Check for a 64-bit object if we didn't find anything.
10552 if test -z "$aix_libpath"; then
10553   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10554 fi
10555 fi
10556 rm -f core conftest.err conftest.$ac_objext \
10557     conftest$ac_exeext conftest.$ac_ext
10558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10559
10560         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10561         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"
10562       else
10563         if test "$host_cpu" = ia64; then
10564           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10565           allow_undefined_flag="-z nodefs"
10566           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"
10567         else
10568          # Determine the default libpath from the value encoded in an
10569          # empty executable.
10570          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h.  */
10572
10573 int
10574 main ()
10575 {
10576
10577   ;
10578   return 0;
10579 }
10580 _ACEOF
10581 if ac_fn_c_try_link "$LINENO"; then :
10582
10583 lt_aix_libpath_sed='
10584     /Import File Strings/,/^$/ {
10585         /^0/ {
10586             s/^0  *\(.*\)$/\1/
10587             p
10588         }
10589     }'
10590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10591 # Check for a 64-bit object if we didn't find anything.
10592 if test -z "$aix_libpath"; then
10593   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10594 fi
10595 fi
10596 rm -f core conftest.err conftest.$ac_objext \
10597     conftest$ac_exeext conftest.$ac_ext
10598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10599
10600          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10601           # Warning - without using the other run time loading flags,
10602           # -berok will link without error, but may produce a broken library.
10603           no_undefined_flag=' ${wl}-bernotok'
10604           allow_undefined_flag=' ${wl}-berok'
10605           # Exported symbols can be pulled into shared objects from archives
10606           whole_archive_flag_spec='$convenience'
10607           archive_cmds_need_lc=yes
10608           # This is similar to how AIX traditionally builds its shared libraries.
10609           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'
10610         fi
10611       fi
10612       ;;
10613
10614     amigaos*)
10615       case $host_cpu in
10616       powerpc)
10617             # see comment about AmigaOS4 .so support
10618             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10619             archive_expsym_cmds=''
10620         ;;
10621       m68k)
10622             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)'
10623             hardcode_libdir_flag_spec='-L$libdir'
10624             hardcode_minus_L=yes
10625         ;;
10626       esac
10627       ;;
10628
10629     bsdi[45]*)
10630       export_dynamic_flag_spec=-rdynamic
10631       ;;
10632
10633     cygwin* | mingw* | pw32* | cegcc*)
10634       # When not using gcc, we currently assume that we are using
10635       # Microsoft Visual C++.
10636       # hardcode_libdir_flag_spec is actually meaningless, as there is
10637       # no search path for DLLs.
10638       hardcode_libdir_flag_spec=' '
10639       allow_undefined_flag=unsupported
10640       # Tell ltmain to make .lib files, not .a files.
10641       libext=lib
10642       # Tell ltmain to make .dll files, not .so files.
10643       shrext_cmds=".dll"
10644       # FIXME: Setting linknames here is a bad hack.
10645       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10646       # The linker will automatically build a .lib file if we build a DLL.
10647       old_archive_from_new_cmds='true'
10648       # FIXME: Should let the user specify the lib program.
10649       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10650       fix_srcfile_path='`cygpath -w "$srcfile"`'
10651       enable_shared_with_static_runtimes=yes
10652       ;;
10653
10654     darwin* | rhapsody*)
10655
10656
10657   archive_cmds_need_lc=no
10658   hardcode_direct=no
10659   hardcode_automatic=yes
10660   hardcode_shlibpath_var=unsupported
10661   whole_archive_flag_spec=''
10662   link_all_deplibs=yes
10663   allow_undefined_flag="$_lt_dar_allow_undefined"
10664   case $cc_basename in
10665      ifort*) _lt_dar_can_shared=yes ;;
10666      *) _lt_dar_can_shared=$GCC ;;
10667   esac
10668   if test "$_lt_dar_can_shared" = "yes"; then
10669     output_verbose_link_cmd=echo
10670     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10671     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10672     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}"
10673     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}"
10674
10675   else
10676   ld_shlibs=no
10677   fi
10678
10679       ;;
10680
10681     dgux*)
10682       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10683       hardcode_libdir_flag_spec='-L$libdir'
10684       hardcode_shlibpath_var=no
10685       ;;
10686
10687     freebsd1*)
10688       ld_shlibs=no
10689       ;;
10690
10691     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10692     # support.  Future versions do this automatically, but an explicit c++rt0.o
10693     # does not break anything, and helps significantly (at the cost of a little
10694     # extra space).
10695     freebsd2.2*)
10696       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10697       hardcode_libdir_flag_spec='-R$libdir'
10698       hardcode_direct=yes
10699       hardcode_shlibpath_var=no
10700       ;;
10701
10702     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10703     freebsd2*)
10704       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10705       hardcode_direct=yes
10706       hardcode_minus_L=yes
10707       hardcode_shlibpath_var=no
10708       ;;
10709
10710     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10711     freebsd* | dragonfly*)
10712       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10713       hardcode_libdir_flag_spec='-R$libdir'
10714       hardcode_direct=yes
10715       hardcode_shlibpath_var=no
10716       ;;
10717
10718     hpux9*)
10719       if test "$GCC" = yes; then
10720         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'
10721       else
10722         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'
10723       fi
10724       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10725       hardcode_libdir_separator=:
10726       hardcode_direct=yes
10727
10728       # hardcode_minus_L: Not really in the search PATH,
10729       # but as the default location of the library.
10730       hardcode_minus_L=yes
10731       export_dynamic_flag_spec='${wl}-E'
10732       ;;
10733
10734     hpux10*)
10735       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10736         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10737       else
10738         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10739       fi
10740       if test "$with_gnu_ld" = no; then
10741         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10742         hardcode_libdir_flag_spec_ld='+b $libdir'
10743         hardcode_libdir_separator=:
10744         hardcode_direct=yes
10745         hardcode_direct_absolute=yes
10746         export_dynamic_flag_spec='${wl}-E'
10747         # hardcode_minus_L: Not really in the search PATH,
10748         # but as the default location of the library.
10749         hardcode_minus_L=yes
10750       fi
10751       ;;
10752
10753     hpux11*)
10754       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10755         case $host_cpu in
10756         hppa*64*)
10757           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10758           ;;
10759         ia64*)
10760           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10761           ;;
10762         *)
10763           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10764           ;;
10765         esac
10766       else
10767         case $host_cpu in
10768         hppa*64*)
10769           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10770           ;;
10771         ia64*)
10772           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10773           ;;
10774         *)
10775           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10776           ;;
10777         esac
10778       fi
10779       if test "$with_gnu_ld" = no; then
10780         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10781         hardcode_libdir_separator=:
10782
10783         case $host_cpu in
10784         hppa*64*|ia64*)
10785           hardcode_direct=no
10786           hardcode_shlibpath_var=no
10787           ;;
10788         *)
10789           hardcode_direct=yes
10790           hardcode_direct_absolute=yes
10791           export_dynamic_flag_spec='${wl}-E'
10792
10793           # hardcode_minus_L: Not really in the search PATH,
10794           # but as the default location of the library.
10795           hardcode_minus_L=yes
10796           ;;
10797         esac
10798       fi
10799       ;;
10800
10801     irix5* | irix6* | nonstopux*)
10802       if test "$GCC" = yes; then
10803         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'
10804         # Try to use the -exported_symbol ld option, if it does not
10805         # work, assume that -exports_file does not work either and
10806         # implicitly export all symbols.
10807         save_LDFLAGS="$LDFLAGS"
10808         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10809         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h.  */
10811 int foo(void) {}
10812 _ACEOF
10813 if ac_fn_c_try_link "$LINENO"; then :
10814   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'
10815
10816 fi
10817 rm -f core conftest.err conftest.$ac_objext \
10818     conftest$ac_exeext conftest.$ac_ext
10819         LDFLAGS="$save_LDFLAGS"
10820       else
10821         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'
10822         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'
10823       fi
10824       archive_cmds_need_lc='no'
10825       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10826       hardcode_libdir_separator=:
10827       inherit_rpath=yes
10828       link_all_deplibs=yes
10829       ;;
10830
10831     netbsd*)
10832       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10833         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10834       else
10835         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10836       fi
10837       hardcode_libdir_flag_spec='-R$libdir'
10838       hardcode_direct=yes
10839       hardcode_shlibpath_var=no
10840       ;;
10841
10842     newsos6)
10843       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844       hardcode_direct=yes
10845       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10846       hardcode_libdir_separator=:
10847       hardcode_shlibpath_var=no
10848       ;;
10849
10850     *nto* | *qnx*)
10851       ;;
10852
10853     openbsd*)
10854       if test -f /usr/libexec/ld.so; then
10855         hardcode_direct=yes
10856         hardcode_shlibpath_var=no
10857         hardcode_direct_absolute=yes
10858         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10859           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10860           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10861           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10862           export_dynamic_flag_spec='${wl}-E'
10863         else
10864           case $host_os in
10865            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10866              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10867              hardcode_libdir_flag_spec='-R$libdir'
10868              ;;
10869            *)
10870              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10871              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10872              ;;
10873           esac
10874         fi
10875       else
10876         ld_shlibs=no
10877       fi
10878       ;;
10879
10880     os2*)
10881       hardcode_libdir_flag_spec='-L$libdir'
10882       hardcode_minus_L=yes
10883       allow_undefined_flag=unsupported
10884       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'
10885       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10886       ;;
10887
10888     osf3*)
10889       if test "$GCC" = yes; then
10890         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10891         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'
10892       else
10893         allow_undefined_flag=' -expect_unresolved \*'
10894         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'
10895       fi
10896       archive_cmds_need_lc='no'
10897       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10898       hardcode_libdir_separator=:
10899       ;;
10900
10901     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10902       if test "$GCC" = yes; then
10903         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10904         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'
10905         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10906       else
10907         allow_undefined_flag=' -expect_unresolved \*'
10908         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'
10909         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~
10910         $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'
10911
10912         # Both c and cxx compiler support -rpath directly
10913         hardcode_libdir_flag_spec='-rpath $libdir'
10914       fi
10915       archive_cmds_need_lc='no'
10916       hardcode_libdir_separator=:
10917       ;;
10918
10919     solaris*)
10920       no_undefined_flag=' -z defs'
10921       if test "$GCC" = yes; then
10922         wlarc='${wl}'
10923         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10924         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10925           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10926       else
10927         case `$CC -V 2>&1` in
10928         *"Compilers 5.0"*)
10929           wlarc=''
10930           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10931           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10932           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10933           ;;
10934         *)
10935           wlarc='${wl}'
10936           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10937           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10938           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10939           ;;
10940         esac
10941       fi
10942       hardcode_libdir_flag_spec='-R$libdir'
10943       hardcode_shlibpath_var=no
10944       case $host_os in
10945       solaris2.[0-5] | solaris2.[0-5].*) ;;
10946       *)
10947         # The compiler driver will combine and reorder linker options,
10948         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10949         # but is careful enough not to reorder.
10950         # Supported since Solaris 2.6 (maybe 2.5.1?)
10951         if test "$GCC" = yes; then
10952           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10953         else
10954           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10955         fi
10956         ;;
10957       esac
10958       link_all_deplibs=yes
10959       ;;
10960
10961     sunos4*)
10962       if test "x$host_vendor" = xsequent; then
10963         # Use $CC to link under sequent, because it throws in some extra .o
10964         # files that make .init and .fini sections work.
10965         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10966       else
10967         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10968       fi
10969       hardcode_libdir_flag_spec='-L$libdir'
10970       hardcode_direct=yes
10971       hardcode_minus_L=yes
10972       hardcode_shlibpath_var=no
10973       ;;
10974
10975     sysv4)
10976       case $host_vendor in
10977         sni)
10978           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979           hardcode_direct=yes # is this really true???
10980         ;;
10981         siemens)
10982           ## LD is ld it makes a PLAMLIB
10983           ## CC just makes a GrossModule.
10984           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10985           reload_cmds='$CC -r -o $output$reload_objs'
10986           hardcode_direct=no
10987         ;;
10988         motorola)
10989           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10990           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10991         ;;
10992       esac
10993       runpath_var='LD_RUN_PATH'
10994       hardcode_shlibpath_var=no
10995       ;;
10996
10997     sysv4.3*)
10998       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10999       hardcode_shlibpath_var=no
11000       export_dynamic_flag_spec='-Bexport'
11001       ;;
11002
11003     sysv4*MP*)
11004       if test -d /usr/nec; then
11005         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11006         hardcode_shlibpath_var=no
11007         runpath_var=LD_RUN_PATH
11008         hardcode_runpath_var=yes
11009         ld_shlibs=yes
11010       fi
11011       ;;
11012
11013     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11014       no_undefined_flag='${wl}-z,text'
11015       archive_cmds_need_lc=no
11016       hardcode_shlibpath_var=no
11017       runpath_var='LD_RUN_PATH'
11018
11019       if test "$GCC" = yes; then
11020         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022       else
11023         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11025       fi
11026       ;;
11027
11028     sysv5* | sco3.2v5* | sco5v6*)
11029       # Note: We can NOT use -z defs as we might desire, because we do not
11030       # link with -lc, and that would cause any symbols used from libc to
11031       # always be unresolved, which means just about no library would
11032       # ever link correctly.  If we're not using GNU ld we use -z text
11033       # though, which does catch some bad symbols but isn't as heavy-handed
11034       # as -z defs.
11035       no_undefined_flag='${wl}-z,text'
11036       allow_undefined_flag='${wl}-z,nodefs'
11037       archive_cmds_need_lc=no
11038       hardcode_shlibpath_var=no
11039       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11040       hardcode_libdir_separator=':'
11041       link_all_deplibs=yes
11042       export_dynamic_flag_spec='${wl}-Bexport'
11043       runpath_var='LD_RUN_PATH'
11044
11045       if test "$GCC" = yes; then
11046         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11047         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11048       else
11049         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11050         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11051       fi
11052       ;;
11053
11054     uts4*)
11055       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11056       hardcode_libdir_flag_spec='-L$libdir'
11057       hardcode_shlibpath_var=no
11058       ;;
11059
11060     *)
11061       ld_shlibs=no
11062       ;;
11063     esac
11064
11065     if test x$host_vendor = xsni; then
11066       case $host in
11067       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11068         export_dynamic_flag_spec='${wl}-Blargedynsym'
11069         ;;
11070       esac
11071     fi
11072   fi
11073
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11075 $as_echo "$ld_shlibs" >&6; }
11076 test "$ld_shlibs" = no && can_build_shared=no
11077
11078 with_gnu_ld=$with_gnu_ld
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094 #
11095 # Do we need to explicitly link libc?
11096 #
11097 case "x$archive_cmds_need_lc" in
11098 x|xyes)
11099   # Assume -lc should be added
11100   archive_cmds_need_lc=yes
11101
11102   if test "$enable_shared" = yes && test "$GCC" = yes; then
11103     case $archive_cmds in
11104     *'~'*)
11105       # FIXME: we may have to deal with multi-command sequences.
11106       ;;
11107     '$CC '*)
11108       # Test whether the compiler implicitly links with -lc since on some
11109       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11110       # to ld, don't add -lc before -lgcc.
11111       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11112 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11113       $RM conftest*
11114       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11115
11116       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11117   (eval $ac_compile) 2>&5
11118   ac_status=$?
11119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11120   test $ac_status = 0; } 2>conftest.err; then
11121         soname=conftest
11122         lib=conftest
11123         libobjs=conftest.$ac_objext
11124         deplibs=
11125         wl=$lt_prog_compiler_wl
11126         pic_flag=$lt_prog_compiler_pic
11127         compiler_flags=-v
11128         linker_flags=-v
11129         verstring=
11130         output_objdir=.
11131         libname=conftest
11132         lt_save_allow_undefined_flag=$allow_undefined_flag
11133         allow_undefined_flag=
11134         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11135   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11136   ac_status=$?
11137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11138   test $ac_status = 0; }
11139         then
11140           archive_cmds_need_lc=no
11141         else
11142           archive_cmds_need_lc=yes
11143         fi
11144         allow_undefined_flag=$lt_save_allow_undefined_flag
11145       else
11146         cat conftest.err 1>&5
11147       fi
11148       $RM conftest*
11149       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11150 $as_echo "$archive_cmds_need_lc" >&6; }
11151       ;;
11152     esac
11153   fi
11154   ;;
11155 esac
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
11305
11306
11307
11308
11309
11310
11311
11312
11313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11314 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11315
11316 if test "$GCC" = yes; then
11317   case $host_os in
11318     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11319     *) lt_awk_arg="/^libraries:/" ;;
11320   esac
11321   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11322   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11323     # if the path contains ";" then we assume it to be the separator
11324     # otherwise default to the standard path separator (i.e. ":") - it is
11325     # assumed that no part of a normal pathname contains ";" but that should
11326     # okay in the real world where ";" in dirpaths is itself problematic.
11327     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11328   else
11329     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11330   fi
11331   # Ok, now we have the path, separated by spaces, we can step through it
11332   # and add multilib dir if necessary.
11333   lt_tmp_lt_search_path_spec=
11334   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11335   for lt_sys_path in $lt_search_path_spec; do
11336     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11337       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11338     else
11339       test -d "$lt_sys_path" && \
11340         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11341     fi
11342   done
11343   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11344 BEGIN {RS=" "; FS="/|\n";} {
11345   lt_foo="";
11346   lt_count=0;
11347   for (lt_i = NF; lt_i > 0; lt_i--) {
11348     if ($lt_i != "" && $lt_i != ".") {
11349       if ($lt_i == "..") {
11350         lt_count++;
11351       } else {
11352         if (lt_count == 0) {
11353           lt_foo="/" $lt_i lt_foo;
11354         } else {
11355           lt_count--;
11356         }
11357       }
11358     }
11359   }
11360   if (lt_foo != "") { lt_freq[lt_foo]++; }
11361   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11362 }'`
11363   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11364 else
11365   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11366 fi
11367 library_names_spec=
11368 libname_spec='lib$name'
11369 soname_spec=
11370 shrext_cmds=".so"
11371 postinstall_cmds=
11372 postuninstall_cmds=
11373 finish_cmds=
11374 finish_eval=
11375 shlibpath_var=
11376 shlibpath_overrides_runpath=unknown
11377 version_type=none
11378 dynamic_linker="$host_os ld.so"
11379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11380 need_lib_prefix=unknown
11381 hardcode_into_libs=no
11382
11383 # when you set need_version to no, make sure it does not cause -set_version
11384 # flags to be left without arguments
11385 need_version=unknown
11386
11387 case $host_os in
11388 aix3*)
11389   version_type=linux
11390   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11391   shlibpath_var=LIBPATH
11392
11393   # AIX 3 has no versioning support, so we append a major version to the name.
11394   soname_spec='${libname}${release}${shared_ext}$major'
11395   ;;
11396
11397 aix[4-9]*)
11398   version_type=linux
11399   need_lib_prefix=no
11400   need_version=no
11401   hardcode_into_libs=yes
11402   if test "$host_cpu" = ia64; then
11403     # AIX 5 supports IA64
11404     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11405     shlibpath_var=LD_LIBRARY_PATH
11406   else
11407     # With GCC up to 2.95.x, collect2 would create an import file
11408     # for dependence libraries.  The import file would start with
11409     # the line `#! .'.  This would cause the generated library to
11410     # depend on `.', always an invalid library.  This was fixed in
11411     # development snapshots of GCC prior to 3.0.
11412     case $host_os in
11413       aix4 | aix4.[01] | aix4.[01].*)
11414       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11415            echo ' yes '
11416            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11417         :
11418       else
11419         can_build_shared=no
11420       fi
11421       ;;
11422     esac
11423     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11424     # soname into executable. Probably we can add versioning support to
11425     # collect2, so additional links can be useful in future.
11426     if test "$aix_use_runtimelinking" = yes; then
11427       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11428       # instead of lib<name>.a to let people know that these are not
11429       # typical AIX shared libraries.
11430       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431     else
11432       # We preserve .a as extension for shared libraries through AIX4.2
11433       # and later when we are not doing run time linking.
11434       library_names_spec='${libname}${release}.a $libname.a'
11435       soname_spec='${libname}${release}${shared_ext}$major'
11436     fi
11437     shlibpath_var=LIBPATH
11438   fi
11439   ;;
11440
11441 amigaos*)
11442   case $host_cpu in
11443   powerpc)
11444     # Since July 2007 AmigaOS4 officially supports .so libraries.
11445     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11446     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11447     ;;
11448   m68k)
11449     library_names_spec='$libname.ixlibrary $libname.a'
11450     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11451     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'
11452     ;;
11453   esac
11454   ;;
11455
11456 beos*)
11457   library_names_spec='${libname}${shared_ext}'
11458   dynamic_linker="$host_os ld.so"
11459   shlibpath_var=LIBRARY_PATH
11460   ;;
11461
11462 bsdi[45]*)
11463   version_type=linux
11464   need_version=no
11465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466   soname_spec='${libname}${release}${shared_ext}$major'
11467   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11468   shlibpath_var=LD_LIBRARY_PATH
11469   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11470   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11471   # the default ld.so.conf also contains /usr/contrib/lib and
11472   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11473   # libtool to hard-code these into programs
11474   ;;
11475
11476 cygwin* | mingw* | pw32* | cegcc*)
11477   version_type=windows
11478   shrext_cmds=".dll"
11479   need_version=no
11480   need_lib_prefix=no
11481
11482   case $GCC,$host_os in
11483   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11484     library_names_spec='$libname.dll.a'
11485     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11486     postinstall_cmds='base_file=`basename \${file}`~
11487       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11488       dldir=$destdir/`dirname \$dlpath`~
11489       test -d \$dldir || mkdir -p \$dldir~
11490       $install_prog $dir/$dlname \$dldir/$dlname~
11491       chmod a+x \$dldir/$dlname~
11492       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11493         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11494       fi'
11495     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11496       dlpath=$dir/\$dldll~
11497        $RM \$dlpath'
11498     shlibpath_overrides_runpath=yes
11499
11500     case $host_os in
11501     cygwin*)
11502       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11503       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11504       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11505       ;;
11506     mingw* | cegcc*)
11507       # MinGW DLLs use traditional 'lib' prefix
11508       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11509       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11510       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11511         # It is most probably a Windows format PATH printed by
11512         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11513         # path with ; separators, and with drive letters. We can handle the
11514         # drive letters (cygwin fileutils understands them), so leave them,
11515         # especially as we might pass files found there to a mingw objdump,
11516         # which wouldn't understand a cygwinified path. Ahh.
11517         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11518       else
11519         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11520       fi
11521       ;;
11522     pw32*)
11523       # pw32 DLLs use 'pw' prefix rather than 'lib'
11524       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11525       ;;
11526     esac
11527     ;;
11528
11529   *)
11530     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11531     ;;
11532   esac
11533   dynamic_linker='Win32 ld.exe'
11534   # FIXME: first we should search . and the directory the executable is in
11535   shlibpath_var=PATH
11536   ;;
11537
11538 darwin* | rhapsody*)
11539   dynamic_linker="$host_os dyld"
11540   version_type=darwin
11541   need_lib_prefix=no
11542   need_version=no
11543   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11544   soname_spec='${libname}${release}${major}$shared_ext'
11545   shlibpath_overrides_runpath=yes
11546   shlibpath_var=DYLD_LIBRARY_PATH
11547   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11548
11549   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11550   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11551   ;;
11552
11553 dgux*)
11554   version_type=linux
11555   need_lib_prefix=no
11556   need_version=no
11557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11558   soname_spec='${libname}${release}${shared_ext}$major'
11559   shlibpath_var=LD_LIBRARY_PATH
11560   ;;
11561
11562 freebsd1*)
11563   dynamic_linker=no
11564   ;;
11565
11566 freebsd* | dragonfly*)
11567   # DragonFly does not have aout.  When/if they implement a new
11568   # versioning mechanism, adjust this.
11569   if test -x /usr/bin/objformat; then
11570     objformat=`/usr/bin/objformat`
11571   else
11572     case $host_os in
11573     freebsd[123]*) objformat=aout ;;
11574     *) objformat=elf ;;
11575     esac
11576   fi
11577   version_type=freebsd-$objformat
11578   case $version_type in
11579     freebsd-elf*)
11580       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11581       need_version=no
11582       need_lib_prefix=no
11583       ;;
11584     freebsd-*)
11585       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11586       need_version=yes
11587       ;;
11588   esac
11589   shlibpath_var=LD_LIBRARY_PATH
11590   case $host_os in
11591   freebsd2*)
11592     shlibpath_overrides_runpath=yes
11593     ;;
11594   freebsd3.[01]* | freebsdelf3.[01]*)
11595     shlibpath_overrides_runpath=yes
11596     hardcode_into_libs=yes
11597     ;;
11598   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11599   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11600     shlibpath_overrides_runpath=no
11601     hardcode_into_libs=yes
11602     ;;
11603   *) # from 4.6 on, and DragonFly
11604     shlibpath_overrides_runpath=yes
11605     hardcode_into_libs=yes
11606     ;;
11607   esac
11608   ;;
11609
11610 gnu*)
11611   version_type=linux
11612   need_lib_prefix=no
11613   need_version=no
11614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11615   soname_spec='${libname}${release}${shared_ext}$major'
11616   shlibpath_var=LD_LIBRARY_PATH
11617   hardcode_into_libs=yes
11618   ;;
11619
11620 hpux9* | hpux10* | hpux11*)
11621   # Give a soname corresponding to the major version so that dld.sl refuses to
11622   # link against other versions.
11623   version_type=sunos
11624   need_lib_prefix=no
11625   need_version=no
11626   case $host_cpu in
11627   ia64*)
11628     shrext_cmds='.so'
11629     hardcode_into_libs=yes
11630     dynamic_linker="$host_os dld.so"
11631     shlibpath_var=LD_LIBRARY_PATH
11632     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634     soname_spec='${libname}${release}${shared_ext}$major'
11635     if test "X$HPUX_IA64_MODE" = X32; then
11636       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11637     else
11638       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11639     fi
11640     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11641     ;;
11642   hppa*64*)
11643     shrext_cmds='.sl'
11644     hardcode_into_libs=yes
11645     dynamic_linker="$host_os dld.sl"
11646     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11647     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11649     soname_spec='${libname}${release}${shared_ext}$major'
11650     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11651     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11652     ;;
11653   *)
11654     shrext_cmds='.sl'
11655     dynamic_linker="$host_os dld.sl"
11656     shlibpath_var=SHLIB_PATH
11657     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11659     soname_spec='${libname}${release}${shared_ext}$major'
11660     ;;
11661   esac
11662   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11663   postinstall_cmds='chmod 555 $lib'
11664   ;;
11665
11666 interix[3-9]*)
11667   version_type=linux
11668   need_lib_prefix=no
11669   need_version=no
11670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11671   soname_spec='${libname}${release}${shared_ext}$major'
11672   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11673   shlibpath_var=LD_LIBRARY_PATH
11674   shlibpath_overrides_runpath=no
11675   hardcode_into_libs=yes
11676   ;;
11677
11678 irix5* | irix6* | nonstopux*)
11679   case $host_os in
11680     nonstopux*) version_type=nonstopux ;;
11681     *)
11682         if test "$lt_cv_prog_gnu_ld" = yes; then
11683                 version_type=linux
11684         else
11685                 version_type=irix
11686         fi ;;
11687   esac
11688   need_lib_prefix=no
11689   need_version=no
11690   soname_spec='${libname}${release}${shared_ext}$major'
11691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11692   case $host_os in
11693   irix5* | nonstopux*)
11694     libsuff= shlibsuff=
11695     ;;
11696   *)
11697     case $LD in # libtool.m4 will add one of these switches to LD
11698     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11699       libsuff= shlibsuff= libmagic=32-bit;;
11700     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11701       libsuff=32 shlibsuff=N32 libmagic=N32;;
11702     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11703       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11704     *) libsuff= shlibsuff= libmagic=never-match;;
11705     esac
11706     ;;
11707   esac
11708   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11709   shlibpath_overrides_runpath=no
11710   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11711   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11712   hardcode_into_libs=yes
11713   ;;
11714
11715 # No shared lib support for Linux oldld, aout, or coff.
11716 linux*oldld* | linux*aout* | linux*coff*)
11717   dynamic_linker=no
11718   ;;
11719
11720 # This must be Linux ELF.
11721 linux* | k*bsd*-gnu)
11722   version_type=linux
11723   need_lib_prefix=no
11724   need_version=no
11725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726   soname_spec='${libname}${release}${shared_ext}$major'
11727   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11728   shlibpath_var=LD_LIBRARY_PATH
11729   shlibpath_overrides_runpath=no
11730   # Some binutils ld are patched to set DT_RUNPATH
11731   save_LDFLAGS=$LDFLAGS
11732   save_libdir=$libdir
11733   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11734        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h.  */
11737
11738 int
11739 main ()
11740 {
11741
11742   ;
11743   return 0;
11744 }
11745 _ACEOF
11746 if ac_fn_c_try_link "$LINENO"; then :
11747   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11748   shlibpath_overrides_runpath=yes
11749 fi
11750 fi
11751 rm -f core conftest.err conftest.$ac_objext \
11752     conftest$ac_exeext conftest.$ac_ext
11753   LDFLAGS=$save_LDFLAGS
11754   libdir=$save_libdir
11755
11756   # This implies no fast_install, which is unacceptable.
11757   # Some rework will be needed to allow for fast_install
11758   # before this can be enabled.
11759   hardcode_into_libs=yes
11760
11761   # Append ld.so.conf contents to the search path
11762   if test -f /etc/ld.so.conf; then
11763     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' ' '`
11764     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11765   fi
11766
11767   # We used to test for /lib/ld.so.1 and disable shared libraries on
11768   # powerpc, because MkLinux only supported shared libraries with the
11769   # GNU dynamic linker.  Since this was broken with cross compilers,
11770   # most powerpc-linux boxes support dynamic linking these days and
11771   # people can always --disable-shared, the test was removed, and we
11772   # assume the GNU/Linux dynamic linker is in use.
11773   dynamic_linker='GNU/Linux ld.so'
11774   ;;
11775
11776 netbsd*)
11777   version_type=sunos
11778   need_lib_prefix=no
11779   need_version=no
11780   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11781     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11782     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11783     dynamic_linker='NetBSD (a.out) ld.so'
11784   else
11785     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11786     soname_spec='${libname}${release}${shared_ext}$major'
11787     dynamic_linker='NetBSD ld.elf_so'
11788   fi
11789   shlibpath_var=LD_LIBRARY_PATH
11790   shlibpath_overrides_runpath=yes
11791   hardcode_into_libs=yes
11792   ;;
11793
11794 newsos6)
11795   version_type=linux
11796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797   shlibpath_var=LD_LIBRARY_PATH
11798   shlibpath_overrides_runpath=yes
11799   ;;
11800
11801 *nto* | *qnx*)
11802   version_type=qnx
11803   need_lib_prefix=no
11804   need_version=no
11805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806   soname_spec='${libname}${release}${shared_ext}$major'
11807   shlibpath_var=LD_LIBRARY_PATH
11808   shlibpath_overrides_runpath=no
11809   hardcode_into_libs=yes
11810   dynamic_linker='ldqnx.so'
11811   ;;
11812
11813 openbsd*)
11814   version_type=sunos
11815   sys_lib_dlsearch_path_spec="/usr/lib"
11816   need_lib_prefix=no
11817   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11818   case $host_os in
11819     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11820     *)                          need_version=no  ;;
11821   esac
11822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11824   shlibpath_var=LD_LIBRARY_PATH
11825   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11826     case $host_os in
11827       openbsd2.[89] | openbsd2.[89].*)
11828         shlibpath_overrides_runpath=no
11829         ;;
11830       *)
11831         shlibpath_overrides_runpath=yes
11832         ;;
11833       esac
11834   else
11835     shlibpath_overrides_runpath=yes
11836   fi
11837   ;;
11838
11839 os2*)
11840   libname_spec='$name'
11841   shrext_cmds=".dll"
11842   need_lib_prefix=no
11843   library_names_spec='$libname${shared_ext} $libname.a'
11844   dynamic_linker='OS/2 ld.exe'
11845   shlibpath_var=LIBPATH
11846   ;;
11847
11848 osf3* | osf4* | osf5*)
11849   version_type=osf
11850   need_lib_prefix=no
11851   need_version=no
11852   soname_spec='${libname}${release}${shared_ext}$major'
11853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854   shlibpath_var=LD_LIBRARY_PATH
11855   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11856   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11857   ;;
11858
11859 rdos*)
11860   dynamic_linker=no
11861   ;;
11862
11863 solaris*)
11864   version_type=linux
11865   need_lib_prefix=no
11866   need_version=no
11867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868   soname_spec='${libname}${release}${shared_ext}$major'
11869   shlibpath_var=LD_LIBRARY_PATH
11870   shlibpath_overrides_runpath=yes
11871   hardcode_into_libs=yes
11872   # ldd complains unless libraries are executable
11873   postinstall_cmds='chmod +x $lib'
11874   ;;
11875
11876 sunos4*)
11877   version_type=sunos
11878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11879   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11880   shlibpath_var=LD_LIBRARY_PATH
11881   shlibpath_overrides_runpath=yes
11882   if test "$with_gnu_ld" = yes; then
11883     need_lib_prefix=no
11884   fi
11885   need_version=yes
11886   ;;
11887
11888 sysv4 | sysv4.3*)
11889   version_type=linux
11890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11891   soname_spec='${libname}${release}${shared_ext}$major'
11892   shlibpath_var=LD_LIBRARY_PATH
11893   case $host_vendor in
11894     sni)
11895       shlibpath_overrides_runpath=no
11896       need_lib_prefix=no
11897       runpath_var=LD_RUN_PATH
11898       ;;
11899     siemens)
11900       need_lib_prefix=no
11901       ;;
11902     motorola)
11903       need_lib_prefix=no
11904       need_version=no
11905       shlibpath_overrides_runpath=no
11906       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11907       ;;
11908   esac
11909   ;;
11910
11911 sysv4*MP*)
11912   if test -d /usr/nec ;then
11913     version_type=linux
11914     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11915     soname_spec='$libname${shared_ext}.$major'
11916     shlibpath_var=LD_LIBRARY_PATH
11917   fi
11918   ;;
11919
11920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11921   version_type=freebsd-elf
11922   need_lib_prefix=no
11923   need_version=no
11924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11925   soname_spec='${libname}${release}${shared_ext}$major'
11926   shlibpath_var=LD_LIBRARY_PATH
11927   shlibpath_overrides_runpath=yes
11928   hardcode_into_libs=yes
11929   if test "$with_gnu_ld" = yes; then
11930     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11931   else
11932     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11933     case $host_os in
11934       sco3.2v5*)
11935         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11936         ;;
11937     esac
11938   fi
11939   sys_lib_dlsearch_path_spec='/usr/lib'
11940   ;;
11941
11942 tpf*)
11943   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11944   version_type=linux
11945   need_lib_prefix=no
11946   need_version=no
11947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948   shlibpath_var=LD_LIBRARY_PATH
11949   shlibpath_overrides_runpath=no
11950   hardcode_into_libs=yes
11951   ;;
11952
11953 uts4*)
11954   version_type=linux
11955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11956   soname_spec='${libname}${release}${shared_ext}$major'
11957   shlibpath_var=LD_LIBRARY_PATH
11958   ;;
11959
11960 *)
11961   dynamic_linker=no
11962   ;;
11963 esac
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11965 $as_echo "$dynamic_linker" >&6; }
11966 test "$dynamic_linker" = no && can_build_shared=no
11967
11968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11969 if test "$GCC" = yes; then
11970   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11971 fi
11972
11973 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11974   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11975 fi
11976 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11977   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11978 fi
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
12058
12059
12060
12061
12062
12063
12064
12065
12066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12067 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12068 hardcode_action=
12069 if test -n "$hardcode_libdir_flag_spec" ||
12070    test -n "$runpath_var" ||
12071    test "X$hardcode_automatic" = "Xyes" ; then
12072
12073   # We can hardcode non-existent directories.
12074   if test "$hardcode_direct" != no &&
12075      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12076      # have to relink, otherwise we might link with an installed library
12077      # when we should be linking with a yet-to-be-installed one
12078      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12079      test "$hardcode_minus_L" != no; then
12080     # Linking always hardcodes the temporary library directory.
12081     hardcode_action=relink
12082   else
12083     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12084     hardcode_action=immediate
12085   fi
12086 else
12087   # We cannot hardcode anything, or else we can only hardcode existing
12088   # directories.
12089   hardcode_action=unsupported
12090 fi
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12092 $as_echo "$hardcode_action" >&6; }
12093
12094 if test "$hardcode_action" = relink ||
12095    test "$inherit_rpath" = yes; then
12096   # Fast installation is not supported
12097   enable_fast_install=no
12098 elif test "$shlibpath_overrides_runpath" = yes ||
12099      test "$enable_shared" = no; then
12100   # Fast installation is not necessary
12101   enable_fast_install=needless
12102 fi
12103
12104
12105
12106
12107
12108
12109   if test "x$enable_dlopen" != xyes; then
12110   enable_dlopen=unknown
12111   enable_dlopen_self=unknown
12112   enable_dlopen_self_static=unknown
12113 else
12114   lt_cv_dlopen=no
12115   lt_cv_dlopen_libs=
12116
12117   case $host_os in
12118   beos*)
12119     lt_cv_dlopen="load_add_on"
12120     lt_cv_dlopen_libs=
12121     lt_cv_dlopen_self=yes
12122     ;;
12123
12124   mingw* | pw32* | cegcc*)
12125     lt_cv_dlopen="LoadLibrary"
12126     lt_cv_dlopen_libs=
12127     ;;
12128
12129   cygwin*)
12130     lt_cv_dlopen="dlopen"
12131     lt_cv_dlopen_libs=
12132     ;;
12133
12134   darwin*)
12135   # if libdl is installed we need to link against it
12136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12138 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12139   $as_echo_n "(cached) " >&6
12140 else
12141   ac_check_lib_save_LIBS=$LIBS
12142 LIBS="-ldl  $LIBS"
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h.  */
12145
12146 /* Override any GCC internal prototype to avoid an error.
12147    Use char because int might match the return type of a GCC
12148    builtin and then its argument prototype would still apply.  */
12149 #ifdef __cplusplus
12150 extern "C"
12151 #endif
12152 char dlopen ();
12153 int
12154 main ()
12155 {
12156 return dlopen ();
12157   ;
12158   return 0;
12159 }
12160 _ACEOF
12161 if ac_fn_c_try_link "$LINENO"; then :
12162   ac_cv_lib_dl_dlopen=yes
12163 else
12164   ac_cv_lib_dl_dlopen=no
12165 fi
12166 rm -f core conftest.err conftest.$ac_objext \
12167     conftest$ac_exeext conftest.$ac_ext
12168 LIBS=$ac_check_lib_save_LIBS
12169 fi
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12172 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12173   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12174 else
12175
12176     lt_cv_dlopen="dyld"
12177     lt_cv_dlopen_libs=
12178     lt_cv_dlopen_self=yes
12179
12180 fi
12181
12182     ;;
12183
12184   *)
12185     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12186 if test "x$ac_cv_func_shl_load" = x""yes; then :
12187   lt_cv_dlopen="shl_load"
12188 else
12189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12190 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12191 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12192   $as_echo_n "(cached) " >&6
12193 else
12194   ac_check_lib_save_LIBS=$LIBS
12195 LIBS="-ldld  $LIBS"
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h.  */
12198
12199 /* Override any GCC internal prototype to avoid an error.
12200    Use char because int might match the return type of a GCC
12201    builtin and then its argument prototype would still apply.  */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 char shl_load ();
12206 int
12207 main ()
12208 {
12209 return shl_load ();
12210   ;
12211   return 0;
12212 }
12213 _ACEOF
12214 if ac_fn_c_try_link "$LINENO"; then :
12215   ac_cv_lib_dld_shl_load=yes
12216 else
12217   ac_cv_lib_dld_shl_load=no
12218 fi
12219 rm -f core conftest.err conftest.$ac_objext \
12220     conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12222 fi
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12224 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12225 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12226   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12227 else
12228   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12229 if test "x$ac_cv_func_dlopen" = x""yes; then :
12230   lt_cv_dlopen="dlopen"
12231 else
12232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12233 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12234 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12235   $as_echo_n "(cached) " >&6
12236 else
12237   ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-ldl  $LIBS"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h.  */
12241
12242 /* Override any GCC internal prototype to avoid an error.
12243    Use char because int might match the return type of a GCC
12244    builtin and then its argument prototype would still apply.  */
12245 #ifdef __cplusplus
12246 extern "C"
12247 #endif
12248 char dlopen ();
12249 int
12250 main ()
12251 {
12252 return dlopen ();
12253   ;
12254   return 0;
12255 }
12256 _ACEOF
12257 if ac_fn_c_try_link "$LINENO"; then :
12258   ac_cv_lib_dl_dlopen=yes
12259 else
12260   ac_cv_lib_dl_dlopen=no
12261 fi
12262 rm -f core conftest.err conftest.$ac_objext \
12263     conftest$ac_exeext conftest.$ac_ext
12264 LIBS=$ac_check_lib_save_LIBS
12265 fi
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12267 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12268 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12269   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12270 else
12271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12272 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12273 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12274   $as_echo_n "(cached) " >&6
12275 else
12276   ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-lsvld  $LIBS"
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h.  */
12280
12281 /* Override any GCC internal prototype to avoid an error.
12282    Use char because int might match the return type of a GCC
12283    builtin and then its argument prototype would still apply.  */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 char dlopen ();
12288 int
12289 main ()
12290 {
12291 return dlopen ();
12292   ;
12293   return 0;
12294 }
12295 _ACEOF
12296 if ac_fn_c_try_link "$LINENO"; then :
12297   ac_cv_lib_svld_dlopen=yes
12298 else
12299   ac_cv_lib_svld_dlopen=no
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext \
12302     conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12306 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12307 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12308   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12309 else
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12311 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12312 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12313   $as_echo_n "(cached) " >&6
12314 else
12315   ac_check_lib_save_LIBS=$LIBS
12316 LIBS="-ldld  $LIBS"
12317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318 /* end confdefs.h.  */
12319
12320 /* Override any GCC internal prototype to avoid an error.
12321    Use char because int might match the return type of a GCC
12322    builtin and then its argument prototype would still apply.  */
12323 #ifdef __cplusplus
12324 extern "C"
12325 #endif
12326 char dld_link ();
12327 int
12328 main ()
12329 {
12330 return dld_link ();
12331   ;
12332   return 0;
12333 }
12334 _ACEOF
12335 if ac_fn_c_try_link "$LINENO"; then :
12336   ac_cv_lib_dld_dld_link=yes
12337 else
12338   ac_cv_lib_dld_dld_link=no
12339 fi
12340 rm -f core conftest.err conftest.$ac_objext \
12341     conftest$ac_exeext conftest.$ac_ext
12342 LIBS=$ac_check_lib_save_LIBS
12343 fi
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12345 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12346 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12347   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12348 fi
12349
12350
12351 fi
12352
12353
12354 fi
12355
12356
12357 fi
12358
12359
12360 fi
12361
12362
12363 fi
12364
12365     ;;
12366   esac
12367
12368   if test "x$lt_cv_dlopen" != xno; then
12369     enable_dlopen=yes
12370   else
12371     enable_dlopen=no
12372   fi
12373
12374   case $lt_cv_dlopen in
12375   dlopen)
12376     save_CPPFLAGS="$CPPFLAGS"
12377     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12378
12379     save_LDFLAGS="$LDFLAGS"
12380     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12381
12382     save_LIBS="$LIBS"
12383     LIBS="$lt_cv_dlopen_libs $LIBS"
12384
12385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12386 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12387 if test "${lt_cv_dlopen_self+set}" = set; then :
12388   $as_echo_n "(cached) " >&6
12389 else
12390           if test "$cross_compiling" = yes; then :
12391   lt_cv_dlopen_self=cross
12392 else
12393   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12394   lt_status=$lt_dlunknown
12395   cat > conftest.$ac_ext <<_LT_EOF
12396 #line 12396 "configure"
12397 #include "confdefs.h"
12398
12399 #if HAVE_DLFCN_H
12400 #include <dlfcn.h>
12401 #endif
12402
12403 #include <stdio.h>
12404
12405 #ifdef RTLD_GLOBAL
12406 #  define LT_DLGLOBAL           RTLD_GLOBAL
12407 #else
12408 #  ifdef DL_GLOBAL
12409 #    define LT_DLGLOBAL         DL_GLOBAL
12410 #  else
12411 #    define LT_DLGLOBAL         0
12412 #  endif
12413 #endif
12414
12415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12416    find out it does not work in some platform. */
12417 #ifndef LT_DLLAZY_OR_NOW
12418 #  ifdef RTLD_LAZY
12419 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12420 #  else
12421 #    ifdef DL_LAZY
12422 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12423 #    else
12424 #      ifdef RTLD_NOW
12425 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12426 #      else
12427 #        ifdef DL_NOW
12428 #          define LT_DLLAZY_OR_NOW      DL_NOW
12429 #        else
12430 #          define LT_DLLAZY_OR_NOW      0
12431 #        endif
12432 #      endif
12433 #    endif
12434 #  endif
12435 #endif
12436
12437 void fnord() { int i=42;}
12438 int main ()
12439 {
12440   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12441   int status = $lt_dlunknown;
12442
12443   if (self)
12444     {
12445       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12446       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12447       /* dlclose (self); */
12448     }
12449   else
12450     puts (dlerror ());
12451
12452   return status;
12453 }
12454 _LT_EOF
12455   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12456   (eval $ac_link) 2>&5
12457   ac_status=$?
12458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12459   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12460     (./conftest; exit; ) >&5 2>/dev/null
12461     lt_status=$?
12462     case x$lt_status in
12463       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12464       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12465       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12466     esac
12467   else :
12468     # compilation failed
12469     lt_cv_dlopen_self=no
12470   fi
12471 fi
12472 rm -fr conftest*
12473
12474
12475 fi
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12477 $as_echo "$lt_cv_dlopen_self" >&6; }
12478
12479     if test "x$lt_cv_dlopen_self" = xyes; then
12480       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12481       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12482 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12483 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12484   $as_echo_n "(cached) " >&6
12485 else
12486           if test "$cross_compiling" = yes; then :
12487   lt_cv_dlopen_self_static=cross
12488 else
12489   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12490   lt_status=$lt_dlunknown
12491   cat > conftest.$ac_ext <<_LT_EOF
12492 #line 12492 "configure"
12493 #include "confdefs.h"
12494
12495 #if HAVE_DLFCN_H
12496 #include <dlfcn.h>
12497 #endif
12498
12499 #include <stdio.h>
12500
12501 #ifdef RTLD_GLOBAL
12502 #  define LT_DLGLOBAL           RTLD_GLOBAL
12503 #else
12504 #  ifdef DL_GLOBAL
12505 #    define LT_DLGLOBAL         DL_GLOBAL
12506 #  else
12507 #    define LT_DLGLOBAL         0
12508 #  endif
12509 #endif
12510
12511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12512    find out it does not work in some platform. */
12513 #ifndef LT_DLLAZY_OR_NOW
12514 #  ifdef RTLD_LAZY
12515 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12516 #  else
12517 #    ifdef DL_LAZY
12518 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12519 #    else
12520 #      ifdef RTLD_NOW
12521 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12522 #      else
12523 #        ifdef DL_NOW
12524 #          define LT_DLLAZY_OR_NOW      DL_NOW
12525 #        else
12526 #          define LT_DLLAZY_OR_NOW      0
12527 #        endif
12528 #      endif
12529 #    endif
12530 #  endif
12531 #endif
12532
12533 void fnord() { int i=42;}
12534 int main ()
12535 {
12536   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12537   int status = $lt_dlunknown;
12538
12539   if (self)
12540     {
12541       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12542       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12543       /* dlclose (self); */
12544     }
12545   else
12546     puts (dlerror ());
12547
12548   return status;
12549 }
12550 _LT_EOF
12551   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12552   (eval $ac_link) 2>&5
12553   ac_status=$?
12554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12555   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12556     (./conftest; exit; ) >&5 2>/dev/null
12557     lt_status=$?
12558     case x$lt_status in
12559       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12560       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12561       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12562     esac
12563   else :
12564     # compilation failed
12565     lt_cv_dlopen_self_static=no
12566   fi
12567 fi
12568 rm -fr conftest*
12569
12570
12571 fi
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12573 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12574     fi
12575
12576     CPPFLAGS="$save_CPPFLAGS"
12577     LDFLAGS="$save_LDFLAGS"
12578     LIBS="$save_LIBS"
12579     ;;
12580   esac
12581
12582   case $lt_cv_dlopen_self in
12583   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12584   *) enable_dlopen_self=unknown ;;
12585   esac
12586
12587   case $lt_cv_dlopen_self_static in
12588   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12589   *) enable_dlopen_self_static=unknown ;;
12590   esac
12591 fi
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609 striplib=
12610 old_striplib=
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12612 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12613 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12614   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12615   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12617 $as_echo "yes" >&6; }
12618 else
12619 # FIXME - insert some real tests, host_os isn't really good enough
12620   case $host_os in
12621   darwin*)
12622     if test -n "$STRIP" ; then
12623       striplib="$STRIP -x"
12624       old_striplib="$STRIP -S"
12625       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12626 $as_echo "yes" >&6; }
12627     else
12628       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12629 $as_echo "no" >&6; }
12630     fi
12631     ;;
12632   *)
12633     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12635     ;;
12636   esac
12637 fi
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650   # Report which library types will actually be built
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12652 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12654 $as_echo "$can_build_shared" >&6; }
12655
12656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12657 $as_echo_n "checking whether to build shared libraries... " >&6; }
12658   test "$can_build_shared" = "no" && enable_shared=no
12659
12660   # On AIX, shared libraries and static libraries use the same namespace, and
12661   # are all built from PIC.
12662   case $host_os in
12663   aix3*)
12664     test "$enable_shared" = yes && enable_static=no
12665     if test -n "$RANLIB"; then
12666       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12667       postinstall_cmds='$RANLIB $lib'
12668     fi
12669     ;;
12670
12671   aix[4-9]*)
12672     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12673       test "$enable_shared" = yes && enable_static=no
12674     fi
12675     ;;
12676   esac
12677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12678 $as_echo "$enable_shared" >&6; }
12679
12680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12681 $as_echo_n "checking whether to build static libraries... " >&6; }
12682   # Make sure either enable_shared or enable_static is yes.
12683   test "$enable_shared" = yes || enable_static=yes
12684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12685 $as_echo "$enable_static" >&6; }
12686
12687
12688
12689
12690 fi
12691 ac_ext=c
12692 ac_cpp='$CPP $CPPFLAGS'
12693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12696
12697 CC="$lt_save_CC"
12698
12699
12700 ac_ext=cpp
12701 ac_cpp='$CXXCPP $CPPFLAGS'
12702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12705
12706 archive_cmds_need_lc_CXX=no
12707 allow_undefined_flag_CXX=
12708 always_export_symbols_CXX=no
12709 archive_expsym_cmds_CXX=
12710 compiler_needs_object_CXX=no
12711 export_dynamic_flag_spec_CXX=
12712 hardcode_direct_CXX=no
12713 hardcode_direct_absolute_CXX=no
12714 hardcode_libdir_flag_spec_CXX=
12715 hardcode_libdir_flag_spec_ld_CXX=
12716 hardcode_libdir_separator_CXX=
12717 hardcode_minus_L_CXX=no
12718 hardcode_shlibpath_var_CXX=unsupported
12719 hardcode_automatic_CXX=no
12720 inherit_rpath_CXX=no
12721 module_cmds_CXX=
12722 module_expsym_cmds_CXX=
12723 link_all_deplibs_CXX=unknown
12724 old_archive_cmds_CXX=$old_archive_cmds
12725 no_undefined_flag_CXX=
12726 whole_archive_flag_spec_CXX=
12727 enable_shared_with_static_runtimes_CXX=no
12728
12729 # Source file extension for C++ test sources.
12730 ac_ext=cpp
12731
12732 # Object file extension for compiled C++ test sources.
12733 objext=o
12734 objext_CXX=$objext
12735
12736 # No sense in running all these tests if we already determined that
12737 # the CXX compiler isn't working.  Some variables (like enable_shared)
12738 # are currently assumed to apply to all compilers on this platform,
12739 # and will be corrupted by setting them based on a non-working compiler.
12740 if test "$_lt_caught_CXX_error" != yes; then
12741   # Code to be used in simple compile tests
12742   lt_simple_compile_test_code="int some_variable = 0;"
12743
12744   # Code to be used in simple link tests
12745   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12746
12747   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12748
12749
12750
12751
12752
12753
12754 # If no C compiler was specified, use CC.
12755 LTCC=${LTCC-"$CC"}
12756
12757 # If no C compiler flags were specified, use CFLAGS.
12758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12759
12760 # Allow CC to be a program name with arguments.
12761 compiler=$CC
12762
12763
12764   # save warnings/boilerplate of simple test code
12765   ac_outfile=conftest.$ac_objext
12766 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12768 _lt_compiler_boilerplate=`cat conftest.err`
12769 $RM conftest*
12770
12771   ac_outfile=conftest.$ac_objext
12772 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12774 _lt_linker_boilerplate=`cat conftest.err`
12775 $RM -r conftest*
12776
12777
12778   # Allow CC to be a program name with arguments.
12779   lt_save_CC=$CC
12780   lt_save_LD=$LD
12781   lt_save_GCC=$GCC
12782   GCC=$GXX
12783   lt_save_with_gnu_ld=$with_gnu_ld
12784   lt_save_path_LD=$lt_cv_path_LD
12785   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12786     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12787   else
12788     $as_unset lt_cv_prog_gnu_ld
12789   fi
12790   if test -n "${lt_cv_path_LDCXX+set}"; then
12791     lt_cv_path_LD=$lt_cv_path_LDCXX
12792   else
12793     $as_unset lt_cv_path_LD
12794   fi
12795   test -z "${LDCXX+set}" || LD=$LDCXX
12796   CC=${CXX-"c++"}
12797   compiler=$CC
12798   compiler_CXX=$CC
12799   for cc_temp in $compiler""; do
12800   case $cc_temp in
12801     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12802     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12803     \-*) ;;
12804     *) break;;
12805   esac
12806 done
12807 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12808
12809
12810   if test -n "$compiler"; then
12811     # We don't want -fno-exception when compiling C++ code, so set the
12812     # no_builtin_flag separately
12813     if test "$GXX" = yes; then
12814       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12815     else
12816       lt_prog_compiler_no_builtin_flag_CXX=
12817     fi
12818
12819     if test "$GXX" = yes; then
12820       # Set up default GNU C++ configuration
12821
12822
12823
12824 # Check whether --with-gnu-ld was given.
12825 if test "${with_gnu_ld+set}" = set; then :
12826   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12827 else
12828   with_gnu_ld=no
12829 fi
12830
12831 ac_prog=ld
12832 if test "$GCC" = yes; then
12833   # Check if gcc -print-prog-name=ld gives a path.
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12835 $as_echo_n "checking for ld used by $CC... " >&6; }
12836   case $host in
12837   *-*-mingw*)
12838     # gcc leaves a trailing carriage return which upsets mingw
12839     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12840   *)
12841     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12842   esac
12843   case $ac_prog in
12844     # Accept absolute paths.
12845     [\\/]* | ?:[\\/]*)
12846       re_direlt='/[^/][^/]*/\.\./'
12847       # Canonicalize the pathname of ld
12848       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12849       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12850         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12851       done
12852       test -z "$LD" && LD="$ac_prog"
12853       ;;
12854   "")
12855     # If it fails, then pretend we aren't using GCC.
12856     ac_prog=ld
12857     ;;
12858   *)
12859     # If it is relative, then search for the first ld in PATH.
12860     with_gnu_ld=unknown
12861     ;;
12862   esac
12863 elif test "$with_gnu_ld" = yes; then
12864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12865 $as_echo_n "checking for GNU ld... " >&6; }
12866 else
12867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12868 $as_echo_n "checking for non-GNU ld... " >&6; }
12869 fi
12870 if test "${lt_cv_path_LD+set}" = set; then :
12871   $as_echo_n "(cached) " >&6
12872 else
12873   if test -z "$LD"; then
12874   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12875   for ac_dir in $PATH; do
12876     IFS="$lt_save_ifs"
12877     test -z "$ac_dir" && ac_dir=.
12878     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12879       lt_cv_path_LD="$ac_dir/$ac_prog"
12880       # Check to see if the program is GNU ld.  I'd rather use --version,
12881       # but apparently some variants of GNU ld only accept -v.
12882       # Break only if it was the GNU/non-GNU ld that we prefer.
12883       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12884       *GNU* | *'with BFD'*)
12885         test "$with_gnu_ld" != no && break
12886         ;;
12887       *)
12888         test "$with_gnu_ld" != yes && break
12889         ;;
12890       esac
12891     fi
12892   done
12893   IFS="$lt_save_ifs"
12894 else
12895   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12896 fi
12897 fi
12898
12899 LD="$lt_cv_path_LD"
12900 if test -n "$LD"; then
12901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12902 $as_echo "$LD" >&6; }
12903 else
12904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12906 fi
12907 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12909 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12910 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12911   $as_echo_n "(cached) " >&6
12912 else
12913   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12914 case `$LD -v 2>&1 </dev/null` in
12915 *GNU* | *'with BFD'*)
12916   lt_cv_prog_gnu_ld=yes
12917   ;;
12918 *)
12919   lt_cv_prog_gnu_ld=no
12920   ;;
12921 esac
12922 fi
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12924 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12925 with_gnu_ld=$lt_cv_prog_gnu_ld
12926
12927
12928
12929
12930
12931
12932
12933       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12934       # archiving commands below assume that GNU ld is being used.
12935       if test "$with_gnu_ld" = yes; then
12936         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12937         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'
12938
12939         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12940         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12941
12942         # If archive_cmds runs LD, not CC, wlarc should be empty
12943         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12944         #     investigate it a little bit more. (MM)
12945         wlarc='${wl}'
12946
12947         # ancient GNU ld didn't support --whole-archive et. al.
12948         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12949           $GREP 'no-whole-archive' > /dev/null; then
12950           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12951         else
12952           whole_archive_flag_spec_CXX=
12953         fi
12954       else
12955         with_gnu_ld=no
12956         wlarc=
12957
12958         # A generic and very simple default shared library creation
12959         # command for GNU C++ for the case where it uses the native
12960         # linker, instead of GNU ld.  If possible, this setting should
12961         # overridden to take advantage of the native linker features on
12962         # the platform it is being used on.
12963         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12964       fi
12965
12966       # Commands to make compiler produce verbose output that lists
12967       # what "hidden" libraries, object files and flags are used when
12968       # linking a shared library.
12969       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12970
12971     else
12972       GXX=no
12973       with_gnu_ld=no
12974       wlarc=
12975     fi
12976
12977     # PORTME: fill in a description of your system's C++ link characteristics
12978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12979 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12980     ld_shlibs_CXX=yes
12981     case $host_os in
12982       aix3*)
12983         # FIXME: insert proper C++ library support
12984         ld_shlibs_CXX=no
12985         ;;
12986       aix[4-9]*)
12987         if test "$host_cpu" = ia64; then
12988           # On IA64, the linker does run time linking by default, so we don't
12989           # have to do anything special.
12990           aix_use_runtimelinking=no
12991           exp_sym_flag='-Bexport'
12992           no_entry_flag=""
12993         else
12994           aix_use_runtimelinking=no
12995
12996           # Test if we are trying to use run time linking or normal
12997           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12998           # need to do runtime linking.
12999           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13000             for ld_flag in $LDFLAGS; do
13001               case $ld_flag in
13002               *-brtl*)
13003                 aix_use_runtimelinking=yes
13004                 break
13005                 ;;
13006               esac
13007             done
13008             ;;
13009           esac
13010
13011           exp_sym_flag='-bexport'
13012           no_entry_flag='-bnoentry'
13013         fi
13014
13015         # When large executables or shared objects are built, AIX ld can
13016         # have problems creating the table of contents.  If linking a library
13017         # or program results in "error TOC overflow" add -mminimal-toc to
13018         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13019         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13020
13021         archive_cmds_CXX=''
13022         hardcode_direct_CXX=yes
13023         hardcode_direct_absolute_CXX=yes
13024         hardcode_libdir_separator_CXX=':'
13025         link_all_deplibs_CXX=yes
13026         file_list_spec_CXX='${wl}-f,'
13027
13028         if test "$GXX" = yes; then
13029           case $host_os in aix4.[012]|aix4.[012].*)
13030           # We only want to do this on AIX 4.2 and lower, the check
13031           # below for broken collect2 doesn't work under 4.3+
13032           collect2name=`${CC} -print-prog-name=collect2`
13033           if test -f "$collect2name" &&
13034              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13035           then
13036             # We have reworked collect2
13037             :
13038           else
13039             # We have old collect2
13040             hardcode_direct_CXX=unsupported
13041             # It fails to find uninstalled libraries when the uninstalled
13042             # path is not listed in the libpath.  Setting hardcode_minus_L
13043             # to unsupported forces relinking
13044             hardcode_minus_L_CXX=yes
13045             hardcode_libdir_flag_spec_CXX='-L$libdir'
13046             hardcode_libdir_separator_CXX=
13047           fi
13048           esac
13049           shared_flag='-shared'
13050           if test "$aix_use_runtimelinking" = yes; then
13051             shared_flag="$shared_flag "'${wl}-G'
13052           fi
13053         else
13054           # not using gcc
13055           if test "$host_cpu" = ia64; then
13056           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13057           # chokes on -Wl,-G. The following line is correct:
13058           shared_flag='-G'
13059           else
13060             if test "$aix_use_runtimelinking" = yes; then
13061               shared_flag='${wl}-G'
13062             else
13063               shared_flag='${wl}-bM:SRE'
13064             fi
13065           fi
13066         fi
13067
13068         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13069         # It seems that -bexpall does not export symbols beginning with
13070         # underscore (_), so it is better to generate a list of symbols to
13071         # export.
13072         always_export_symbols_CXX=yes
13073         if test "$aix_use_runtimelinking" = yes; then
13074           # Warning - without using the other runtime loading flags (-brtl),
13075           # -berok will link without error, but may produce a broken library.
13076           allow_undefined_flag_CXX='-berok'
13077           # Determine the default libpath from the value encoded in an empty
13078           # executable.
13079           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h.  */
13081
13082 int
13083 main ()
13084 {
13085
13086   ;
13087   return 0;
13088 }
13089 _ACEOF
13090 if ac_fn_cxx_try_link "$LINENO"; then :
13091
13092 lt_aix_libpath_sed='
13093     /Import File Strings/,/^$/ {
13094         /^0/ {
13095             s/^0  *\(.*\)$/\1/
13096             p
13097         }
13098     }'
13099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13100 # Check for a 64-bit object if we didn't find anything.
13101 if test -z "$aix_libpath"; then
13102   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13103 fi
13104 fi
13105 rm -f core conftest.err conftest.$ac_objext \
13106     conftest$ac_exeext conftest.$ac_ext
13107 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13108
13109           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13110
13111           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"
13112         else
13113           if test "$host_cpu" = ia64; then
13114             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13115             allow_undefined_flag_CXX="-z nodefs"
13116             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"
13117           else
13118             # Determine the default libpath from the value encoded in an
13119             # empty executable.
13120             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h.  */
13122
13123 int
13124 main ()
13125 {
13126
13127   ;
13128   return 0;
13129 }
13130 _ACEOF
13131 if ac_fn_cxx_try_link "$LINENO"; then :
13132
13133 lt_aix_libpath_sed='
13134     /Import File Strings/,/^$/ {
13135         /^0/ {
13136             s/^0  *\(.*\)$/\1/
13137             p
13138         }
13139     }'
13140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13141 # Check for a 64-bit object if we didn't find anything.
13142 if test -z "$aix_libpath"; then
13143   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13144 fi
13145 fi
13146 rm -f core conftest.err conftest.$ac_objext \
13147     conftest$ac_exeext conftest.$ac_ext
13148 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13149
13150             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13151             # Warning - without using the other run time loading flags,
13152             # -berok will link without error, but may produce a broken library.
13153             no_undefined_flag_CXX=' ${wl}-bernotok'
13154             allow_undefined_flag_CXX=' ${wl}-berok'
13155             # Exported symbols can be pulled into shared objects from archives
13156             whole_archive_flag_spec_CXX='$convenience'
13157             archive_cmds_need_lc_CXX=yes
13158             # This is similar to how AIX traditionally builds its shared
13159             # libraries.
13160             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'
13161           fi
13162         fi
13163         ;;
13164
13165       beos*)
13166         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13167           allow_undefined_flag_CXX=unsupported
13168           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13169           # support --undefined.  This deserves some investigation.  FIXME
13170           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13171         else
13172           ld_shlibs_CXX=no
13173         fi
13174         ;;
13175
13176       chorus*)
13177         case $cc_basename in
13178           *)
13179           # FIXME: insert proper C++ library support
13180           ld_shlibs_CXX=no
13181           ;;
13182         esac
13183         ;;
13184
13185       cygwin* | mingw* | pw32* | cegcc*)
13186         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13187         # as there is no search path for DLLs.
13188         hardcode_libdir_flag_spec_CXX='-L$libdir'
13189         allow_undefined_flag_CXX=unsupported
13190         always_export_symbols_CXX=no
13191         enable_shared_with_static_runtimes_CXX=yes
13192
13193         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13194           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'
13195           # If the export-symbols file already is a .def file (1st line
13196           # is EXPORTS), use it as is; otherwise, prepend...
13197           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13198             cp $export_symbols $output_objdir/$soname.def;
13199           else
13200             echo EXPORTS > $output_objdir/$soname.def;
13201             cat $export_symbols >> $output_objdir/$soname.def;
13202           fi~
13203           $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'
13204         else
13205           ld_shlibs_CXX=no
13206         fi
13207         ;;
13208       darwin* | rhapsody*)
13209
13210
13211   archive_cmds_need_lc_CXX=no
13212   hardcode_direct_CXX=no
13213   hardcode_automatic_CXX=yes
13214   hardcode_shlibpath_var_CXX=unsupported
13215   whole_archive_flag_spec_CXX=''
13216   link_all_deplibs_CXX=yes
13217   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13218   case $cc_basename in
13219      ifort*) _lt_dar_can_shared=yes ;;
13220      *) _lt_dar_can_shared=$GCC ;;
13221   esac
13222   if test "$_lt_dar_can_shared" = "yes"; then
13223     output_verbose_link_cmd=echo
13224     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}"
13225     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13226     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}"
13227     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}"
13228        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13229       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}"
13230       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}"
13231     fi
13232
13233   else
13234   ld_shlibs_CXX=no
13235   fi
13236
13237         ;;
13238
13239       dgux*)
13240         case $cc_basename in
13241           ec++*)
13242             # FIXME: insert proper C++ library support
13243             ld_shlibs_CXX=no
13244             ;;
13245           ghcx*)
13246             # Green Hills C++ Compiler
13247             # FIXME: insert proper C++ library support
13248             ld_shlibs_CXX=no
13249             ;;
13250           *)
13251             # FIXME: insert proper C++ library support
13252             ld_shlibs_CXX=no
13253             ;;
13254         esac
13255         ;;
13256
13257       freebsd[12]*)
13258         # C++ shared libraries reported to be fairly broken before
13259         # switch to ELF
13260         ld_shlibs_CXX=no
13261         ;;
13262
13263       freebsd-elf*)
13264         archive_cmds_need_lc_CXX=no
13265         ;;
13266
13267       freebsd* | dragonfly*)
13268         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13269         # conventions
13270         ld_shlibs_CXX=yes
13271         ;;
13272
13273       gnu*)
13274         ;;
13275
13276       hpux9*)
13277         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13278         hardcode_libdir_separator_CXX=:
13279         export_dynamic_flag_spec_CXX='${wl}-E'
13280         hardcode_direct_CXX=yes
13281         hardcode_minus_L_CXX=yes # Not in the search PATH,
13282                                              # but as the default
13283                                              # location of the library.
13284
13285         case $cc_basename in
13286           CC*)
13287             # FIXME: insert proper C++ library support
13288             ld_shlibs_CXX=no
13289             ;;
13290           aCC*)
13291             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'
13292             # Commands to make compiler produce verbose output that lists
13293             # what "hidden" libraries, object files and flags are used when
13294             # linking a shared library.
13295             #
13296             # There doesn't appear to be a way to prevent this compiler from
13297             # explicitly linking system object files so we need to strip them
13298             # from the output so that they don't get included in the library
13299             # dependencies.
13300             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'
13301             ;;
13302           *)
13303             if test "$GXX" = yes; then
13304               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'
13305             else
13306               # FIXME: insert proper C++ library support
13307               ld_shlibs_CXX=no
13308             fi
13309             ;;
13310         esac
13311         ;;
13312
13313       hpux10*|hpux11*)
13314         if test $with_gnu_ld = no; then
13315           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13316           hardcode_libdir_separator_CXX=:
13317
13318           case $host_cpu in
13319             hppa*64*|ia64*)
13320               ;;
13321             *)
13322               export_dynamic_flag_spec_CXX='${wl}-E'
13323               ;;
13324           esac
13325         fi
13326         case $host_cpu in
13327           hppa*64*|ia64*)
13328             hardcode_direct_CXX=no
13329             hardcode_shlibpath_var_CXX=no
13330             ;;
13331           *)
13332             hardcode_direct_CXX=yes
13333             hardcode_direct_absolute_CXX=yes
13334             hardcode_minus_L_CXX=yes # Not in the search PATH,
13335                                                  # but as the default
13336                                                  # location of the library.
13337             ;;
13338         esac
13339
13340         case $cc_basename in
13341           CC*)
13342             # FIXME: insert proper C++ library support
13343             ld_shlibs_CXX=no
13344             ;;
13345           aCC*)
13346             case $host_cpu in
13347               hppa*64*)
13348                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13349                 ;;
13350               ia64*)
13351                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13352                 ;;
13353               *)
13354                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13355                 ;;
13356             esac
13357             # Commands to make compiler produce verbose output that lists
13358             # what "hidden" libraries, object files and flags are used when
13359             # linking a shared library.
13360             #
13361             # There doesn't appear to be a way to prevent this compiler from
13362             # explicitly linking system object files so we need to strip them
13363             # from the output so that they don't get included in the library
13364             # dependencies.
13365             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'
13366             ;;
13367           *)
13368             if test "$GXX" = yes; then
13369               if test $with_gnu_ld = no; then
13370                 case $host_cpu in
13371                   hppa*64*)
13372                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13373                     ;;
13374                   ia64*)
13375                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13376                     ;;
13377                   *)
13378                     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'
13379                     ;;
13380                 esac
13381               fi
13382             else
13383               # FIXME: insert proper C++ library support
13384               ld_shlibs_CXX=no
13385             fi
13386             ;;
13387         esac
13388         ;;
13389
13390       interix[3-9]*)
13391         hardcode_direct_CXX=no
13392         hardcode_shlibpath_var_CXX=no
13393         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13394         export_dynamic_flag_spec_CXX='${wl}-E'
13395         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13396         # Instead, shared libraries are loaded at an image base (0x10000000 by
13397         # default) and relocated if they conflict, which is a slow very memory
13398         # consuming and fragmenting process.  To avoid this, we pick a random,
13399         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13400         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13401         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'
13402         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'
13403         ;;
13404       irix5* | irix6*)
13405         case $cc_basename in
13406           CC*)
13407             # SGI C++
13408             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'
13409
13410             # Archives containing C++ object files must be created using
13411             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13412             # necessary to make sure instantiated templates are included
13413             # in the archive.
13414             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13415             ;;
13416           *)
13417             if test "$GXX" = yes; then
13418               if test "$with_gnu_ld" = no; then
13419                 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'
13420               else
13421                 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'
13422               fi
13423             fi
13424             link_all_deplibs_CXX=yes
13425             ;;
13426         esac
13427         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13428         hardcode_libdir_separator_CXX=:
13429         inherit_rpath_CXX=yes
13430         ;;
13431
13432       linux* | k*bsd*-gnu)
13433         case $cc_basename in
13434           KCC*)
13435             # Kuck and Associates, Inc. (KAI) C++ Compiler
13436
13437             # KCC will only create a shared library if the output file
13438             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13439             # to its proper name (with version) after linking.
13440             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'
13441             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'
13442             # Commands to make compiler produce verbose output that lists
13443             # what "hidden" libraries, object files and flags are used when
13444             # linking a shared library.
13445             #
13446             # There doesn't appear to be a way to prevent this compiler from
13447             # explicitly linking system object files so we need to strip them
13448             # from the output so that they don't get included in the library
13449             # dependencies.
13450             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'
13451
13452             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13453             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13454
13455             # Archives containing C++ object files must be created using
13456             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13457             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13458             ;;
13459           icpc* | ecpc* )
13460             # Intel C++
13461             with_gnu_ld=yes
13462             # version 8.0 and above of icpc choke on multiply defined symbols
13463             # if we add $predep_objects and $postdep_objects, however 7.1 and
13464             # earlier do not add the objects themselves.
13465             case `$CC -V 2>&1` in
13466               *"Version 7."*)
13467                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13468                 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'
13469                 ;;
13470               *)  # Version 8.0 or newer
13471                 tmp_idyn=
13472                 case $host_cpu in
13473                   ia64*) tmp_idyn=' -i_dynamic';;
13474                 esac
13475                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13476                 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'
13477                 ;;
13478             esac
13479             archive_cmds_need_lc_CXX=no
13480             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13481             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13482             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13483             ;;
13484           pgCC* | pgcpp*)
13485             # Portland Group C++ compiler
13486             case `$CC -V` in
13487             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13488               prelink_cmds_CXX='tpldir=Template.dir~
13489                 rm -rf $tpldir~
13490                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13491                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13492               old_archive_cmds_CXX='tpldir=Template.dir~
13493                 rm -rf $tpldir~
13494                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13495                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13496                 $RANLIB $oldlib'
13497               archive_cmds_CXX='tpldir=Template.dir~
13498                 rm -rf $tpldir~
13499                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13500                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13501               archive_expsym_cmds_CXX='tpldir=Template.dir~
13502                 rm -rf $tpldir~
13503                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13504                 $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'
13505               ;;
13506             *) # Version 6 will use weak symbols
13507               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13508               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'
13509               ;;
13510             esac
13511
13512             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13513             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13514             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'
13515             ;;
13516           cxx*)
13517             # Compaq C++
13518             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13519             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'
13520
13521             runpath_var=LD_RUN_PATH
13522             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13523             hardcode_libdir_separator_CXX=:
13524
13525             # Commands to make compiler produce verbose output that lists
13526             # what "hidden" libraries, object files and flags are used when
13527             # linking a shared library.
13528             #
13529             # There doesn't appear to be a way to prevent this compiler from
13530             # explicitly linking system object files so we need to strip them
13531             # from the output so that they don't get included in the library
13532             # dependencies.
13533             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'
13534             ;;
13535           xl*)
13536             # IBM XL 8.0 on PPC, with GNU ld
13537             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13538             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13539             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13540             if test "x$supports_anon_versioning" = xyes; then
13541               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13542                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13543                 echo "local: *; };" >> $output_objdir/$libname.ver~
13544                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13545             fi
13546             ;;
13547           *)
13548             case `$CC -V 2>&1 | sed 5q` in
13549             *Sun\ C*)
13550               # Sun C++ 5.9
13551               no_undefined_flag_CXX=' -zdefs'
13552               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13553               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'
13554               hardcode_libdir_flag_spec_CXX='-R$libdir'
13555               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'
13556               compiler_needs_object_CXX=yes
13557
13558               # Not sure whether something based on
13559               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13560               # would be better.
13561               output_verbose_link_cmd='echo'
13562
13563               # Archives containing C++ object files must be created using
13564               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13565               # necessary to make sure instantiated templates are included
13566               # in the archive.
13567               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13568               ;;
13569             esac
13570             ;;
13571         esac
13572         ;;
13573
13574       lynxos*)
13575         # FIXME: insert proper C++ library support
13576         ld_shlibs_CXX=no
13577         ;;
13578
13579       m88k*)
13580         # FIXME: insert proper C++ library support
13581         ld_shlibs_CXX=no
13582         ;;
13583
13584       mvs*)
13585         case $cc_basename in
13586           cxx*)
13587             # FIXME: insert proper C++ library support
13588             ld_shlibs_CXX=no
13589             ;;
13590           *)
13591             # FIXME: insert proper C++ library support
13592             ld_shlibs_CXX=no
13593             ;;
13594         esac
13595         ;;
13596
13597       netbsd*)
13598         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13599           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13600           wlarc=
13601           hardcode_libdir_flag_spec_CXX='-R$libdir'
13602           hardcode_direct_CXX=yes
13603           hardcode_shlibpath_var_CXX=no
13604         fi
13605         # Workaround some broken pre-1.5 toolchains
13606         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13607         ;;
13608
13609       *nto* | *qnx*)
13610         ld_shlibs_CXX=yes
13611         ;;
13612
13613       openbsd2*)
13614         # C++ shared libraries are fairly broken
13615         ld_shlibs_CXX=no
13616         ;;
13617
13618       openbsd*)
13619         if test -f /usr/libexec/ld.so; then
13620           hardcode_direct_CXX=yes
13621           hardcode_shlibpath_var_CXX=no
13622           hardcode_direct_absolute_CXX=yes
13623           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13624           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13625           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13626             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13627             export_dynamic_flag_spec_CXX='${wl}-E'
13628             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13629           fi
13630           output_verbose_link_cmd=echo
13631         else
13632           ld_shlibs_CXX=no
13633         fi
13634         ;;
13635
13636       osf3* | osf4* | osf5*)
13637         case $cc_basename in
13638           KCC*)
13639             # Kuck and Associates, Inc. (KAI) C++ Compiler
13640
13641             # KCC will only create a shared library if the output file
13642             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13643             # to its proper name (with version) after linking.
13644             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'
13645
13646             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13647             hardcode_libdir_separator_CXX=:
13648
13649             # Archives containing C++ object files must be created using
13650             # the KAI C++ compiler.
13651             case $host in
13652               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13653               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13654             esac
13655             ;;
13656           RCC*)
13657             # Rational C++ 2.4.1
13658             # FIXME: insert proper C++ library support
13659             ld_shlibs_CXX=no
13660             ;;
13661           cxx*)
13662             case $host in
13663               osf3*)
13664                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13665                 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'
13666                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13667                 ;;
13668               *)
13669                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13670                 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'
13671                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13672                   echo "-hidden">> $lib.exp~
13673                   $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~
13674                   $RM $lib.exp'
13675                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13676                 ;;
13677             esac
13678
13679             hardcode_libdir_separator_CXX=:
13680
13681             # Commands to make compiler produce verbose output that lists
13682             # what "hidden" libraries, object files and flags are used when
13683             # linking a shared library.
13684             #
13685             # There doesn't appear to be a way to prevent this compiler from
13686             # explicitly linking system object files so we need to strip them
13687             # from the output so that they don't get included in the library
13688             # dependencies.
13689             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'
13690             ;;
13691           *)
13692             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13693               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13694               case $host in
13695                 osf3*)
13696                   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'
13697                   ;;
13698                 *)
13699                   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'
13700                   ;;
13701               esac
13702
13703               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13704               hardcode_libdir_separator_CXX=:
13705
13706               # Commands to make compiler produce verbose output that lists
13707               # what "hidden" libraries, object files and flags are used when
13708               # linking a shared library.
13709               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13710
13711             else
13712               # FIXME: insert proper C++ library support
13713               ld_shlibs_CXX=no
13714             fi
13715             ;;
13716         esac
13717         ;;
13718
13719       psos*)
13720         # FIXME: insert proper C++ library support
13721         ld_shlibs_CXX=no
13722         ;;
13723
13724       sunos4*)
13725         case $cc_basename in
13726           CC*)
13727             # Sun C++ 4.x
13728             # FIXME: insert proper C++ library support
13729             ld_shlibs_CXX=no
13730             ;;
13731           lcc*)
13732             # Lucid
13733             # FIXME: insert proper C++ library support
13734             ld_shlibs_CXX=no
13735             ;;
13736           *)
13737             # FIXME: insert proper C++ library support
13738             ld_shlibs_CXX=no
13739             ;;
13740         esac
13741         ;;
13742
13743       solaris*)
13744         case $cc_basename in
13745           CC*)
13746             # Sun C++ 4.2, 5.x and Centerline C++
13747             archive_cmds_need_lc_CXX=yes
13748             no_undefined_flag_CXX=' -zdefs'
13749             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13750             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13751               $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'
13752
13753             hardcode_libdir_flag_spec_CXX='-R$libdir'
13754             hardcode_shlibpath_var_CXX=no
13755             case $host_os in
13756               solaris2.[0-5] | solaris2.[0-5].*) ;;
13757               *)
13758                 # The compiler driver will combine and reorder linker options,
13759                 # but understands `-z linker_flag'.
13760                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13761                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13762                 ;;
13763             esac
13764             link_all_deplibs_CXX=yes
13765
13766             output_verbose_link_cmd='echo'
13767
13768             # Archives containing C++ object files must be created using
13769             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13770             # necessary to make sure instantiated templates are included
13771             # in the archive.
13772             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13773             ;;
13774           gcx*)
13775             # Green Hills C++ Compiler
13776             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13777
13778             # The C++ compiler must be used to create the archive.
13779             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13780             ;;
13781           *)
13782             # GNU C++ compiler with Solaris linker
13783             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13784               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13785               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13786                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13787                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13788                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13789
13790                 # Commands to make compiler produce verbose output that lists
13791                 # what "hidden" libraries, object files and flags are used when
13792                 # linking a shared library.
13793                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13794               else
13795                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13796                 # platform.
13797                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13798                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13799                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13800
13801                 # Commands to make compiler produce verbose output that lists
13802                 # what "hidden" libraries, object files and flags are used when
13803                 # linking a shared library.
13804                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13805               fi
13806
13807               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13808               case $host_os in
13809                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13810                 *)
13811                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13812                   ;;
13813               esac
13814             fi
13815             ;;
13816         esac
13817         ;;
13818
13819     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13820       no_undefined_flag_CXX='${wl}-z,text'
13821       archive_cmds_need_lc_CXX=no
13822       hardcode_shlibpath_var_CXX=no
13823       runpath_var='LD_RUN_PATH'
13824
13825       case $cc_basename in
13826         CC*)
13827           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829           ;;
13830         *)
13831           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13832           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13833           ;;
13834       esac
13835       ;;
13836
13837       sysv5* | sco3.2v5* | sco5v6*)
13838         # Note: We can NOT use -z defs as we might desire, because we do not
13839         # link with -lc, and that would cause any symbols used from libc to
13840         # always be unresolved, which means just about no library would
13841         # ever link correctly.  If we're not using GNU ld we use -z text
13842         # though, which does catch some bad symbols but isn't as heavy-handed
13843         # as -z defs.
13844         no_undefined_flag_CXX='${wl}-z,text'
13845         allow_undefined_flag_CXX='${wl}-z,nodefs'
13846         archive_cmds_need_lc_CXX=no
13847         hardcode_shlibpath_var_CXX=no
13848         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13849         hardcode_libdir_separator_CXX=':'
13850         link_all_deplibs_CXX=yes
13851         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13852         runpath_var='LD_RUN_PATH'
13853
13854         case $cc_basename in
13855           CC*)
13856             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13857             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13858             ;;
13859           *)
13860             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13862             ;;
13863         esac
13864       ;;
13865
13866       tandem*)
13867         case $cc_basename in
13868           NCC*)
13869             # NonStop-UX NCC 3.20
13870             # FIXME: insert proper C++ library support
13871             ld_shlibs_CXX=no
13872             ;;
13873           *)
13874             # FIXME: insert proper C++ library support
13875             ld_shlibs_CXX=no
13876             ;;
13877         esac
13878         ;;
13879
13880       vxworks*)
13881         # FIXME: insert proper C++ library support
13882         ld_shlibs_CXX=no
13883         ;;
13884
13885       *)
13886         # FIXME: insert proper C++ library support
13887         ld_shlibs_CXX=no
13888         ;;
13889     esac
13890
13891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13892 $as_echo "$ld_shlibs_CXX" >&6; }
13893     test "$ld_shlibs_CXX" = no && can_build_shared=no
13894
13895     GCC_CXX="$GXX"
13896     LD_CXX="$LD"
13897
13898     ## CAVEAT EMPTOR:
13899     ## There is no encapsulation within the following macros, do not change
13900     ## the running order or otherwise move them around unless you know exactly
13901     ## what you are doing...
13902     # Dependencies to place before and after the object being linked:
13903 predep_objects_CXX=
13904 postdep_objects_CXX=
13905 predeps_CXX=
13906 postdeps_CXX=
13907 compiler_lib_search_path_CXX=
13908
13909 cat > conftest.$ac_ext <<_LT_EOF
13910 class Foo
13911 {
13912 public:
13913   Foo (void) { a = 0; }
13914 private:
13915   int a;
13916 };
13917 _LT_EOF
13918
13919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13920   (eval $ac_compile) 2>&5
13921   ac_status=$?
13922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13923   test $ac_status = 0; }; then
13924   # Parse the compiler output and extract the necessary
13925   # objects, libraries and library flags.
13926
13927   # Sentinel used to keep track of whether or not we are before
13928   # the conftest object file.
13929   pre_test_object_deps_done=no
13930
13931   for p in `eval "$output_verbose_link_cmd"`; do
13932     case $p in
13933
13934     -L* | -R* | -l*)
13935        # Some compilers place space between "-{L,R}" and the path.
13936        # Remove the space.
13937        if test $p = "-L" ||
13938           test $p = "-R"; then
13939          prev=$p
13940          continue
13941        else
13942          prev=
13943        fi
13944
13945        if test "$pre_test_object_deps_done" = no; then
13946          case $p in
13947          -L* | -R*)
13948            # Internal compiler library paths should come after those
13949            # provided the user.  The postdeps already come after the
13950            # user supplied libs so there is no need to process them.
13951            if test -z "$compiler_lib_search_path_CXX"; then
13952              compiler_lib_search_path_CXX="${prev}${p}"
13953            else
13954              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13955            fi
13956            ;;
13957          # The "-l" case would never come before the object being
13958          # linked, so don't bother handling this case.
13959          esac
13960        else
13961          if test -z "$postdeps_CXX"; then
13962            postdeps_CXX="${prev}${p}"
13963          else
13964            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13965          fi
13966        fi
13967        ;;
13968
13969     *.$objext)
13970        # This assumes that the test object file only shows up
13971        # once in the compiler output.
13972        if test "$p" = "conftest.$objext"; then
13973          pre_test_object_deps_done=yes
13974          continue
13975        fi
13976
13977        if test "$pre_test_object_deps_done" = no; then
13978          if test -z "$predep_objects_CXX"; then
13979            predep_objects_CXX="$p"
13980          else
13981            predep_objects_CXX="$predep_objects_CXX $p"
13982          fi
13983        else
13984          if test -z "$postdep_objects_CXX"; then
13985            postdep_objects_CXX="$p"
13986          else
13987            postdep_objects_CXX="$postdep_objects_CXX $p"
13988          fi
13989        fi
13990        ;;
13991
13992     *) ;; # Ignore the rest.
13993
13994     esac
13995   done
13996
13997   # Clean up.
13998   rm -f a.out a.exe
13999 else
14000   echo "libtool.m4: error: problem compiling CXX test program"
14001 fi
14002
14003 $RM -f confest.$objext
14004
14005 # PORTME: override above test on systems where it is broken
14006 case $host_os in
14007 interix[3-9]*)
14008   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14009   # hack all around it, let's just trust "g++" to DTRT.
14010   predep_objects_CXX=
14011   postdep_objects_CXX=
14012   postdeps_CXX=
14013   ;;
14014
14015 linux*)
14016   case `$CC -V 2>&1 | sed 5q` in
14017   *Sun\ C*)
14018     # Sun C++ 5.9
14019
14020     # The more standards-conforming stlport4 library is
14021     # incompatible with the Cstd library. Avoid specifying
14022     # it if it's in CXXFLAGS. Ignore libCrun as
14023     # -library=stlport4 depends on it.
14024     case " $CXX $CXXFLAGS " in
14025     *" -library=stlport4 "*)
14026       solaris_use_stlport4=yes
14027       ;;
14028     esac
14029
14030     if test "$solaris_use_stlport4" != yes; then
14031       postdeps_CXX='-library=Cstd -library=Crun'
14032     fi
14033     ;;
14034   esac
14035   ;;
14036
14037 solaris*)
14038   case $cc_basename in
14039   CC*)
14040     # The more standards-conforming stlport4 library is
14041     # incompatible with the Cstd library. Avoid specifying
14042     # it if it's in CXXFLAGS. Ignore libCrun as
14043     # -library=stlport4 depends on it.
14044     case " $CXX $CXXFLAGS " in
14045     *" -library=stlport4 "*)
14046       solaris_use_stlport4=yes
14047       ;;
14048     esac
14049
14050     # Adding this requires a known-good setup of shared libraries for
14051     # Sun compiler versions before 5.6, else PIC objects from an old
14052     # archive will be linked into the output, leading to subtle bugs.
14053     if test "$solaris_use_stlport4" != yes; then
14054       postdeps_CXX='-library=Cstd -library=Crun'
14055     fi
14056     ;;
14057   esac
14058   ;;
14059 esac
14060
14061
14062 case " $postdeps_CXX " in
14063 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14064 esac
14065  compiler_lib_search_dirs_CXX=
14066 if test -n "${compiler_lib_search_path_CXX}"; then
14067  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14068 fi
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100     lt_prog_compiler_wl_CXX=
14101 lt_prog_compiler_pic_CXX=
14102 lt_prog_compiler_static_CXX=
14103
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14105 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14106
14107   # C++ specific cases for pic, static, wl, etc.
14108   if test "$GXX" = yes; then
14109     lt_prog_compiler_wl_CXX='-Wl,'
14110     lt_prog_compiler_static_CXX='-static'
14111
14112     case $host_os in
14113     aix*)
14114       # All AIX code is PIC.
14115       if test "$host_cpu" = ia64; then
14116         # AIX 5 now supports IA64 processor
14117         lt_prog_compiler_static_CXX='-Bstatic'
14118       fi
14119       ;;
14120
14121     amigaos*)
14122       case $host_cpu in
14123       powerpc)
14124             # see comment about AmigaOS4 .so support
14125             lt_prog_compiler_pic_CXX='-fPIC'
14126         ;;
14127       m68k)
14128             # FIXME: we need at least 68020 code to build shared libraries, but
14129             # adding the `-m68020' flag to GCC prevents building anything better,
14130             # like `-m68040'.
14131             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14132         ;;
14133       esac
14134       ;;
14135
14136     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14137       # PIC is the default for these OSes.
14138       ;;
14139     mingw* | cygwin* | os2* | pw32* | cegcc*)
14140       # This hack is so that the source file can tell whether it is being
14141       # built for inclusion in a dll (and should export symbols for example).
14142       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14143       # (--disable-auto-import) libraries
14144       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14145       ;;
14146     darwin* | rhapsody*)
14147       # PIC is the default on this platform
14148       # Common symbols not allowed in MH_DYLIB files
14149       lt_prog_compiler_pic_CXX='-fno-common'
14150       ;;
14151     *djgpp*)
14152       # DJGPP does not support shared libraries at all
14153       lt_prog_compiler_pic_CXX=
14154       ;;
14155     interix[3-9]*)
14156       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14157       # Instead, we relocate shared libraries at runtime.
14158       ;;
14159     sysv4*MP*)
14160       if test -d /usr/nec; then
14161         lt_prog_compiler_pic_CXX=-Kconform_pic
14162       fi
14163       ;;
14164     hpux*)
14165       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14166       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14167       # sets the default TLS model and affects inlining.
14168       case $host_cpu in
14169       hppa*64*)
14170         ;;
14171       *)
14172         lt_prog_compiler_pic_CXX='-fPIC'
14173         ;;
14174       esac
14175       ;;
14176     *qnx* | *nto*)
14177       # QNX uses GNU C++, but need to define -shared option too, otherwise
14178       # it will coredump.
14179       lt_prog_compiler_pic_CXX='-fPIC -shared'
14180       ;;
14181     *)
14182       lt_prog_compiler_pic_CXX='-fPIC'
14183       ;;
14184     esac
14185   else
14186     case $host_os in
14187       aix[4-9]*)
14188         # All AIX code is PIC.
14189         if test "$host_cpu" = ia64; then
14190           # AIX 5 now supports IA64 processor
14191           lt_prog_compiler_static_CXX='-Bstatic'
14192         else
14193           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14194         fi
14195         ;;
14196       chorus*)
14197         case $cc_basename in
14198         cxch68*)
14199           # Green Hills C++ Compiler
14200           # _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"
14201           ;;
14202         esac
14203         ;;
14204       dgux*)
14205         case $cc_basename in
14206           ec++*)
14207             lt_prog_compiler_pic_CXX='-KPIC'
14208             ;;
14209           ghcx*)
14210             # Green Hills C++ Compiler
14211             lt_prog_compiler_pic_CXX='-pic'
14212             ;;
14213           *)
14214             ;;
14215         esac
14216         ;;
14217       freebsd* | dragonfly*)
14218         # FreeBSD uses GNU C++
14219         ;;
14220       hpux9* | hpux10* | hpux11*)
14221         case $cc_basename in
14222           CC*)
14223             lt_prog_compiler_wl_CXX='-Wl,'
14224             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14225             if test "$host_cpu" != ia64; then
14226               lt_prog_compiler_pic_CXX='+Z'
14227             fi
14228             ;;
14229           aCC*)
14230             lt_prog_compiler_wl_CXX='-Wl,'
14231             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14232             case $host_cpu in
14233             hppa*64*|ia64*)
14234               # +Z the default
14235               ;;
14236             *)
14237               lt_prog_compiler_pic_CXX='+Z'
14238               ;;
14239             esac
14240             ;;
14241           *)
14242             ;;
14243         esac
14244         ;;
14245       interix*)
14246         # This is c89, which is MS Visual C++ (no shared libs)
14247         # Anyone wants to do a port?
14248         ;;
14249       irix5* | irix6* | nonstopux*)
14250         case $cc_basename in
14251           CC*)
14252             lt_prog_compiler_wl_CXX='-Wl,'
14253             lt_prog_compiler_static_CXX='-non_shared'
14254             # CC pic flag -KPIC is the default.
14255             ;;
14256           *)
14257             ;;
14258         esac
14259         ;;
14260       linux* | k*bsd*-gnu)
14261         case $cc_basename in
14262           KCC*)
14263             # KAI C++ Compiler
14264             lt_prog_compiler_wl_CXX='--backend -Wl,'
14265             lt_prog_compiler_pic_CXX='-fPIC'
14266             ;;
14267           ecpc* )
14268             # old Intel C++ for x86_64 which still supported -KPIC.
14269             lt_prog_compiler_wl_CXX='-Wl,'
14270             lt_prog_compiler_pic_CXX='-KPIC'
14271             lt_prog_compiler_static_CXX='-static'
14272             ;;
14273           icpc* )
14274             # Intel C++, used to be incompatible with GCC.
14275             # ICC 10 doesn't accept -KPIC any more.
14276             lt_prog_compiler_wl_CXX='-Wl,'
14277             lt_prog_compiler_pic_CXX='-fPIC'
14278             lt_prog_compiler_static_CXX='-static'
14279             ;;
14280           pgCC* | pgcpp*)
14281             # Portland Group C++ compiler
14282             lt_prog_compiler_wl_CXX='-Wl,'
14283             lt_prog_compiler_pic_CXX='-fpic'
14284             lt_prog_compiler_static_CXX='-Bstatic'
14285             ;;
14286           cxx*)
14287             # Compaq C++
14288             # Make sure the PIC flag is empty.  It appears that all Alpha
14289             # Linux and Compaq Tru64 Unix objects are PIC.
14290             lt_prog_compiler_pic_CXX=
14291             lt_prog_compiler_static_CXX='-non_shared'
14292             ;;
14293           xlc* | xlC*)
14294             # IBM XL 8.0 on PPC
14295             lt_prog_compiler_wl_CXX='-Wl,'
14296             lt_prog_compiler_pic_CXX='-qpic'
14297             lt_prog_compiler_static_CXX='-qstaticlink'
14298             ;;
14299           *)
14300             case `$CC -V 2>&1 | sed 5q` in
14301             *Sun\ C*)
14302               # Sun C++ 5.9
14303               lt_prog_compiler_pic_CXX='-KPIC'
14304               lt_prog_compiler_static_CXX='-Bstatic'
14305               lt_prog_compiler_wl_CXX='-Qoption ld '
14306               ;;
14307             esac
14308             ;;
14309         esac
14310         ;;
14311       lynxos*)
14312         ;;
14313       m88k*)
14314         ;;
14315       mvs*)
14316         case $cc_basename in
14317           cxx*)
14318             lt_prog_compiler_pic_CXX='-W c,exportall'
14319             ;;
14320           *)
14321             ;;
14322         esac
14323         ;;
14324       netbsd*)
14325         ;;
14326       *qnx* | *nto*)
14327         # QNX uses GNU C++, but need to define -shared option too, otherwise
14328         # it will coredump.
14329         lt_prog_compiler_pic_CXX='-fPIC -shared'
14330         ;;
14331       osf3* | osf4* | osf5*)
14332         case $cc_basename in
14333           KCC*)
14334             lt_prog_compiler_wl_CXX='--backend -Wl,'
14335             ;;
14336           RCC*)
14337             # Rational C++ 2.4.1
14338             lt_prog_compiler_pic_CXX='-pic'
14339             ;;
14340           cxx*)
14341             # Digital/Compaq C++
14342             lt_prog_compiler_wl_CXX='-Wl,'
14343             # Make sure the PIC flag is empty.  It appears that all Alpha
14344             # Linux and Compaq Tru64 Unix objects are PIC.
14345             lt_prog_compiler_pic_CXX=
14346             lt_prog_compiler_static_CXX='-non_shared'
14347             ;;
14348           *)
14349             ;;
14350         esac
14351         ;;
14352       psos*)
14353         ;;
14354       solaris*)
14355         case $cc_basename in
14356           CC*)
14357             # Sun C++ 4.2, 5.x and Centerline C++
14358             lt_prog_compiler_pic_CXX='-KPIC'
14359             lt_prog_compiler_static_CXX='-Bstatic'
14360             lt_prog_compiler_wl_CXX='-Qoption ld '
14361             ;;
14362           gcx*)
14363             # Green Hills C++ Compiler
14364             lt_prog_compiler_pic_CXX='-PIC'
14365             ;;
14366           *)
14367             ;;
14368         esac
14369         ;;
14370       sunos4*)
14371         case $cc_basename in
14372           CC*)
14373             # Sun C++ 4.x
14374             lt_prog_compiler_pic_CXX='-pic'
14375             lt_prog_compiler_static_CXX='-Bstatic'
14376             ;;
14377           lcc*)
14378             # Lucid
14379             lt_prog_compiler_pic_CXX='-pic'
14380             ;;
14381           *)
14382             ;;
14383         esac
14384         ;;
14385       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14386         case $cc_basename in
14387           CC*)
14388             lt_prog_compiler_wl_CXX='-Wl,'
14389             lt_prog_compiler_pic_CXX='-KPIC'
14390             lt_prog_compiler_static_CXX='-Bstatic'
14391             ;;
14392         esac
14393         ;;
14394       tandem*)
14395         case $cc_basename in
14396           NCC*)
14397             # NonStop-UX NCC 3.20
14398             lt_prog_compiler_pic_CXX='-KPIC'
14399             ;;
14400           *)
14401             ;;
14402         esac
14403         ;;
14404       vxworks*)
14405         ;;
14406       *)
14407         lt_prog_compiler_can_build_shared_CXX=no
14408         ;;
14409     esac
14410   fi
14411
14412 case $host_os in
14413   # For platforms which do not support PIC, -DPIC is meaningless:
14414   *djgpp*)
14415     lt_prog_compiler_pic_CXX=
14416     ;;
14417   *)
14418     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14419     ;;
14420 esac
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14422 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14423
14424
14425
14426 #
14427 # Check to make sure the PIC flag actually works.
14428 #
14429 if test -n "$lt_prog_compiler_pic_CXX"; then
14430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14431 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14432 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14433   $as_echo_n "(cached) " >&6
14434 else
14435   lt_cv_prog_compiler_pic_works_CXX=no
14436    ac_outfile=conftest.$ac_objext
14437    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14438    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14439    # Insert the option either (1) after the last *FLAGS variable, or
14440    # (2) before a word containing "conftest.", or (3) at the end.
14441    # Note that $ac_compile itself does not contain backslashes and begins
14442    # with a dollar sign (not a hyphen), so the echo should work correctly.
14443    # The option is referenced via a variable to avoid confusing sed.
14444    lt_compile=`echo "$ac_compile" | $SED \
14445    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14446    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14447    -e 's:$: $lt_compiler_flag:'`
14448    (eval echo "\"\$as_me:14448: $lt_compile\"" >&5)
14449    (eval "$lt_compile" 2>conftest.err)
14450    ac_status=$?
14451    cat conftest.err >&5
14452    echo "$as_me:14452: \$? = $ac_status" >&5
14453    if (exit $ac_status) && test -s "$ac_outfile"; then
14454      # The compiler can only warn and ignore the option if not recognized
14455      # So say no if there are warnings other than the usual output.
14456      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14457      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14458      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14459        lt_cv_prog_compiler_pic_works_CXX=yes
14460      fi
14461    fi
14462    $RM conftest*
14463
14464 fi
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14466 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14467
14468 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14469     case $lt_prog_compiler_pic_CXX in
14470      "" | " "*) ;;
14471      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14472      esac
14473 else
14474     lt_prog_compiler_pic_CXX=
14475      lt_prog_compiler_can_build_shared_CXX=no
14476 fi
14477
14478 fi
14479
14480
14481
14482 #
14483 # Check to make sure the static flag actually works.
14484 #
14485 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14487 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14488 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14489   $as_echo_n "(cached) " >&6
14490 else
14491   lt_cv_prog_compiler_static_works_CXX=no
14492    save_LDFLAGS="$LDFLAGS"
14493    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14494    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14495    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14496      # The linker can only warn and ignore the option if not recognized
14497      # So say no if there are warnings
14498      if test -s conftest.err; then
14499        # Append any errors to the config.log.
14500        cat conftest.err 1>&5
14501        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14502        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14503        if diff conftest.exp conftest.er2 >/dev/null; then
14504          lt_cv_prog_compiler_static_works_CXX=yes
14505        fi
14506      else
14507        lt_cv_prog_compiler_static_works_CXX=yes
14508      fi
14509    fi
14510    $RM -r conftest*
14511    LDFLAGS="$save_LDFLAGS"
14512
14513 fi
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14515 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14516
14517 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14518     :
14519 else
14520     lt_prog_compiler_static_CXX=
14521 fi
14522
14523
14524
14525
14526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14528 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14529   $as_echo_n "(cached) " >&6
14530 else
14531   lt_cv_prog_compiler_c_o_CXX=no
14532    $RM -r conftest 2>/dev/null
14533    mkdir conftest
14534    cd conftest
14535    mkdir out
14536    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14537
14538    lt_compiler_flag="-o out/conftest2.$ac_objext"
14539    # Insert the option either (1) after the last *FLAGS variable, or
14540    # (2) before a word containing "conftest.", or (3) at the end.
14541    # Note that $ac_compile itself does not contain backslashes and begins
14542    # with a dollar sign (not a hyphen), so the echo should work correctly.
14543    lt_compile=`echo "$ac_compile" | $SED \
14544    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14545    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14546    -e 's:$: $lt_compiler_flag:'`
14547    (eval echo "\"\$as_me:14547: $lt_compile\"" >&5)
14548    (eval "$lt_compile" 2>out/conftest.err)
14549    ac_status=$?
14550    cat out/conftest.err >&5
14551    echo "$as_me:14551: \$? = $ac_status" >&5
14552    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14553    then
14554      # The compiler can only warn and ignore the option if not recognized
14555      # So say no if there are warnings
14556      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14557      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14558      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14559        lt_cv_prog_compiler_c_o_CXX=yes
14560      fi
14561    fi
14562    chmod u+w . 2>&5
14563    $RM conftest*
14564    # SGI C++ compiler will create directory out/ii_files/ for
14565    # template instantiation
14566    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14567    $RM out/* && rmdir out
14568    cd ..
14569    $RM -r conftest
14570    $RM conftest*
14571
14572 fi
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14574 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14575
14576
14577
14578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14580 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14581   $as_echo_n "(cached) " >&6
14582 else
14583   lt_cv_prog_compiler_c_o_CXX=no
14584    $RM -r conftest 2>/dev/null
14585    mkdir conftest
14586    cd conftest
14587    mkdir out
14588    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14589
14590    lt_compiler_flag="-o out/conftest2.$ac_objext"
14591    # Insert the option either (1) after the last *FLAGS variable, or
14592    # (2) before a word containing "conftest.", or (3) at the end.
14593    # Note that $ac_compile itself does not contain backslashes and begins
14594    # with a dollar sign (not a hyphen), so the echo should work correctly.
14595    lt_compile=`echo "$ac_compile" | $SED \
14596    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14597    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14598    -e 's:$: $lt_compiler_flag:'`
14599    (eval echo "\"\$as_me:14599: $lt_compile\"" >&5)
14600    (eval "$lt_compile" 2>out/conftest.err)
14601    ac_status=$?
14602    cat out/conftest.err >&5
14603    echo "$as_me:14603: \$? = $ac_status" >&5
14604    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14605    then
14606      # The compiler can only warn and ignore the option if not recognized
14607      # So say no if there are warnings
14608      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14609      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14610      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14611        lt_cv_prog_compiler_c_o_CXX=yes
14612      fi
14613    fi
14614    chmod u+w . 2>&5
14615    $RM conftest*
14616    # SGI C++ compiler will create directory out/ii_files/ for
14617    # template instantiation
14618    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14619    $RM out/* && rmdir out
14620    cd ..
14621    $RM -r conftest
14622    $RM conftest*
14623
14624 fi
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14626 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14627
14628
14629
14630
14631 hard_links="nottested"
14632 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14633   # do not overwrite the value of need_locks provided by the user
14634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14635 $as_echo_n "checking if we can lock with hard links... " >&6; }
14636   hard_links=yes
14637   $RM conftest*
14638   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14639   touch conftest.a
14640   ln conftest.a conftest.b 2>&5 || hard_links=no
14641   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14643 $as_echo "$hard_links" >&6; }
14644   if test "$hard_links" = no; then
14645     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14646 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14647     need_locks=warn
14648   fi
14649 else
14650   need_locks=no
14651 fi
14652
14653
14654
14655     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14656 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14657
14658   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14659   case $host_os in
14660   aix[4-9]*)
14661     # If we're using GNU nm, then we don't want the "-C" option.
14662     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14663     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14664       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'
14665     else
14666       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'
14667     fi
14668     ;;
14669   pw32*)
14670     export_symbols_cmds_CXX="$ltdll_cmds"
14671   ;;
14672   cygwin* | mingw* | cegcc*)
14673     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'
14674   ;;
14675   *)
14676     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14677   ;;
14678   esac
14679   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14680
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14682 $as_echo "$ld_shlibs_CXX" >&6; }
14683 test "$ld_shlibs_CXX" = no && can_build_shared=no
14684
14685 with_gnu_ld_CXX=$with_gnu_ld
14686
14687
14688
14689
14690
14691
14692 #
14693 # Do we need to explicitly link libc?
14694 #
14695 case "x$archive_cmds_need_lc_CXX" in
14696 x|xyes)
14697   # Assume -lc should be added
14698   archive_cmds_need_lc_CXX=yes
14699
14700   if test "$enable_shared" = yes && test "$GCC" = yes; then
14701     case $archive_cmds_CXX in
14702     *'~'*)
14703       # FIXME: we may have to deal with multi-command sequences.
14704       ;;
14705     '$CC '*)
14706       # Test whether the compiler implicitly links with -lc since on some
14707       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14708       # to ld, don't add -lc before -lgcc.
14709       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14710 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14711       $RM conftest*
14712       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14713
14714       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14715   (eval $ac_compile) 2>&5
14716   ac_status=$?
14717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14718   test $ac_status = 0; } 2>conftest.err; then
14719         soname=conftest
14720         lib=conftest
14721         libobjs=conftest.$ac_objext
14722         deplibs=
14723         wl=$lt_prog_compiler_wl_CXX
14724         pic_flag=$lt_prog_compiler_pic_CXX
14725         compiler_flags=-v
14726         linker_flags=-v
14727         verstring=
14728         output_objdir=.
14729         libname=conftest
14730         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14731         allow_undefined_flag_CXX=
14732         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14733   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14734   ac_status=$?
14735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14736   test $ac_status = 0; }
14737         then
14738           archive_cmds_need_lc_CXX=no
14739         else
14740           archive_cmds_need_lc_CXX=yes
14741         fi
14742         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14743       else
14744         cat conftest.err 1>&5
14745       fi
14746       $RM conftest*
14747       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14748 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14749       ;;
14750     esac
14751   fi
14752   ;;
14753 esac
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
14810
14811
14812
14813
14814
14815
14816
14817
14818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14820
14821 library_names_spec=
14822 libname_spec='lib$name'
14823 soname_spec=
14824 shrext_cmds=".so"
14825 postinstall_cmds=
14826 postuninstall_cmds=
14827 finish_cmds=
14828 finish_eval=
14829 shlibpath_var=
14830 shlibpath_overrides_runpath=unknown
14831 version_type=none
14832 dynamic_linker="$host_os ld.so"
14833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14834 need_lib_prefix=unknown
14835 hardcode_into_libs=no
14836
14837 # when you set need_version to no, make sure it does not cause -set_version
14838 # flags to be left without arguments
14839 need_version=unknown
14840
14841 case $host_os in
14842 aix3*)
14843   version_type=linux
14844   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14845   shlibpath_var=LIBPATH
14846
14847   # AIX 3 has no versioning support, so we append a major version to the name.
14848   soname_spec='${libname}${release}${shared_ext}$major'
14849   ;;
14850
14851 aix[4-9]*)
14852   version_type=linux
14853   need_lib_prefix=no
14854   need_version=no
14855   hardcode_into_libs=yes
14856   if test "$host_cpu" = ia64; then
14857     # AIX 5 supports IA64
14858     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14859     shlibpath_var=LD_LIBRARY_PATH
14860   else
14861     # With GCC up to 2.95.x, collect2 would create an import file
14862     # for dependence libraries.  The import file would start with
14863     # the line `#! .'.  This would cause the generated library to
14864     # depend on `.', always an invalid library.  This was fixed in
14865     # development snapshots of GCC prior to 3.0.
14866     case $host_os in
14867       aix4 | aix4.[01] | aix4.[01].*)
14868       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14869            echo ' yes '
14870            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14871         :
14872       else
14873         can_build_shared=no
14874       fi
14875       ;;
14876     esac
14877     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14878     # soname into executable. Probably we can add versioning support to
14879     # collect2, so additional links can be useful in future.
14880     if test "$aix_use_runtimelinking" = yes; then
14881       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14882       # instead of lib<name>.a to let people know that these are not
14883       # typical AIX shared libraries.
14884       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885     else
14886       # We preserve .a as extension for shared libraries through AIX4.2
14887       # and later when we are not doing run time linking.
14888       library_names_spec='${libname}${release}.a $libname.a'
14889       soname_spec='${libname}${release}${shared_ext}$major'
14890     fi
14891     shlibpath_var=LIBPATH
14892   fi
14893   ;;
14894
14895 amigaos*)
14896   case $host_cpu in
14897   powerpc)
14898     # Since July 2007 AmigaOS4 officially supports .so libraries.
14899     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14900     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14901     ;;
14902   m68k)
14903     library_names_spec='$libname.ixlibrary $libname.a'
14904     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14905     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'
14906     ;;
14907   esac
14908   ;;
14909
14910 beos*)
14911   library_names_spec='${libname}${shared_ext}'
14912   dynamic_linker="$host_os ld.so"
14913   shlibpath_var=LIBRARY_PATH
14914   ;;
14915
14916 bsdi[45]*)
14917   version_type=linux
14918   need_version=no
14919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920   soname_spec='${libname}${release}${shared_ext}$major'
14921   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14922   shlibpath_var=LD_LIBRARY_PATH
14923   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14924   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14925   # the default ld.so.conf also contains /usr/contrib/lib and
14926   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14927   # libtool to hard-code these into programs
14928   ;;
14929
14930 cygwin* | mingw* | pw32* | cegcc*)
14931   version_type=windows
14932   shrext_cmds=".dll"
14933   need_version=no
14934   need_lib_prefix=no
14935
14936   case $GCC,$host_os in
14937   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14938     library_names_spec='$libname.dll.a'
14939     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14940     postinstall_cmds='base_file=`basename \${file}`~
14941       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14942       dldir=$destdir/`dirname \$dlpath`~
14943       test -d \$dldir || mkdir -p \$dldir~
14944       $install_prog $dir/$dlname \$dldir/$dlname~
14945       chmod a+x \$dldir/$dlname~
14946       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14947         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14948       fi'
14949     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14950       dlpath=$dir/\$dldll~
14951        $RM \$dlpath'
14952     shlibpath_overrides_runpath=yes
14953
14954     case $host_os in
14955     cygwin*)
14956       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14957       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14958       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14959       ;;
14960     mingw* | cegcc*)
14961       # MinGW DLLs use traditional 'lib' prefix
14962       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14963       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14964       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14965         # It is most probably a Windows format PATH printed by
14966         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14967         # path with ; separators, and with drive letters. We can handle the
14968         # drive letters (cygwin fileutils understands them), so leave them,
14969         # especially as we might pass files found there to a mingw objdump,
14970         # which wouldn't understand a cygwinified path. Ahh.
14971         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14972       else
14973         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14974       fi
14975       ;;
14976     pw32*)
14977       # pw32 DLLs use 'pw' prefix rather than 'lib'
14978       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14979       ;;
14980     esac
14981     ;;
14982
14983   *)
14984     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14985     ;;
14986   esac
14987   dynamic_linker='Win32 ld.exe'
14988   # FIXME: first we should search . and the directory the executable is in
14989   shlibpath_var=PATH
14990   ;;
14991
14992 darwin* | rhapsody*)
14993   dynamic_linker="$host_os dyld"
14994   version_type=darwin
14995   need_lib_prefix=no
14996   need_version=no
14997   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14998   soname_spec='${libname}${release}${major}$shared_ext'
14999   shlibpath_overrides_runpath=yes
15000   shlibpath_var=DYLD_LIBRARY_PATH
15001   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15002
15003   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15004   ;;
15005
15006 dgux*)
15007   version_type=linux
15008   need_lib_prefix=no
15009   need_version=no
15010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15011   soname_spec='${libname}${release}${shared_ext}$major'
15012   shlibpath_var=LD_LIBRARY_PATH
15013   ;;
15014
15015 freebsd1*)
15016   dynamic_linker=no
15017   ;;
15018
15019 freebsd* | dragonfly*)
15020   # DragonFly does not have aout.  When/if they implement a new
15021   # versioning mechanism, adjust this.
15022   if test -x /usr/bin/objformat; then
15023     objformat=`/usr/bin/objformat`
15024   else
15025     case $host_os in
15026     freebsd[123]*) objformat=aout ;;
15027     *) objformat=elf ;;
15028     esac
15029   fi
15030   version_type=freebsd-$objformat
15031   case $version_type in
15032     freebsd-elf*)
15033       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15034       need_version=no
15035       need_lib_prefix=no
15036       ;;
15037     freebsd-*)
15038       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15039       need_version=yes
15040       ;;
15041   esac
15042   shlibpath_var=LD_LIBRARY_PATH
15043   case $host_os in
15044   freebsd2*)
15045     shlibpath_overrides_runpath=yes
15046     ;;
15047   freebsd3.[01]* | freebsdelf3.[01]*)
15048     shlibpath_overrides_runpath=yes
15049     hardcode_into_libs=yes
15050     ;;
15051   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15052   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15053     shlibpath_overrides_runpath=no
15054     hardcode_into_libs=yes
15055     ;;
15056   *) # from 4.6 on, and DragonFly
15057     shlibpath_overrides_runpath=yes
15058     hardcode_into_libs=yes
15059     ;;
15060   esac
15061   ;;
15062
15063 gnu*)
15064   version_type=linux
15065   need_lib_prefix=no
15066   need_version=no
15067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15068   soname_spec='${libname}${release}${shared_ext}$major'
15069   shlibpath_var=LD_LIBRARY_PATH
15070   hardcode_into_libs=yes
15071   ;;
15072
15073 hpux9* | hpux10* | hpux11*)
15074   # Give a soname corresponding to the major version so that dld.sl refuses to
15075   # link against other versions.
15076   version_type=sunos
15077   need_lib_prefix=no
15078   need_version=no
15079   case $host_cpu in
15080   ia64*)
15081     shrext_cmds='.so'
15082     hardcode_into_libs=yes
15083     dynamic_linker="$host_os dld.so"
15084     shlibpath_var=LD_LIBRARY_PATH
15085     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087     soname_spec='${libname}${release}${shared_ext}$major'
15088     if test "X$HPUX_IA64_MODE" = X32; then
15089       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15090     else
15091       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15092     fi
15093     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15094     ;;
15095   hppa*64*)
15096     shrext_cmds='.sl'
15097     hardcode_into_libs=yes
15098     dynamic_linker="$host_os dld.sl"
15099     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15100     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15102     soname_spec='${libname}${release}${shared_ext}$major'
15103     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15104     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15105     ;;
15106   *)
15107     shrext_cmds='.sl'
15108     dynamic_linker="$host_os dld.sl"
15109     shlibpath_var=SHLIB_PATH
15110     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112     soname_spec='${libname}${release}${shared_ext}$major'
15113     ;;
15114   esac
15115   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15116   postinstall_cmds='chmod 555 $lib'
15117   ;;
15118
15119 interix[3-9]*)
15120   version_type=linux
15121   need_lib_prefix=no
15122   need_version=no
15123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15124   soname_spec='${libname}${release}${shared_ext}$major'
15125   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15126   shlibpath_var=LD_LIBRARY_PATH
15127   shlibpath_overrides_runpath=no
15128   hardcode_into_libs=yes
15129   ;;
15130
15131 irix5* | irix6* | nonstopux*)
15132   case $host_os in
15133     nonstopux*) version_type=nonstopux ;;
15134     *)
15135         if test "$lt_cv_prog_gnu_ld" = yes; then
15136                 version_type=linux
15137         else
15138                 version_type=irix
15139         fi ;;
15140   esac
15141   need_lib_prefix=no
15142   need_version=no
15143   soname_spec='${libname}${release}${shared_ext}$major'
15144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15145   case $host_os in
15146   irix5* | nonstopux*)
15147     libsuff= shlibsuff=
15148     ;;
15149   *)
15150     case $LD in # libtool.m4 will add one of these switches to LD
15151     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15152       libsuff= shlibsuff= libmagic=32-bit;;
15153     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15154       libsuff=32 shlibsuff=N32 libmagic=N32;;
15155     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15156       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15157     *) libsuff= shlibsuff= libmagic=never-match;;
15158     esac
15159     ;;
15160   esac
15161   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15162   shlibpath_overrides_runpath=no
15163   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15164   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15165   hardcode_into_libs=yes
15166   ;;
15167
15168 # No shared lib support for Linux oldld, aout, or coff.
15169 linux*oldld* | linux*aout* | linux*coff*)
15170   dynamic_linker=no
15171   ;;
15172
15173 # This must be Linux ELF.
15174 linux* | k*bsd*-gnu)
15175   version_type=linux
15176   need_lib_prefix=no
15177   need_version=no
15178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15179   soname_spec='${libname}${release}${shared_ext}$major'
15180   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15181   shlibpath_var=LD_LIBRARY_PATH
15182   shlibpath_overrides_runpath=no
15183   # Some binutils ld are patched to set DT_RUNPATH
15184   save_LDFLAGS=$LDFLAGS
15185   save_libdir=$libdir
15186   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15187        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h.  */
15190
15191 int
15192 main ()
15193 {
15194
15195   ;
15196   return 0;
15197 }
15198 _ACEOF
15199 if ac_fn_cxx_try_link "$LINENO"; then :
15200   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15201   shlibpath_overrides_runpath=yes
15202 fi
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext \
15205     conftest$ac_exeext conftest.$ac_ext
15206   LDFLAGS=$save_LDFLAGS
15207   libdir=$save_libdir
15208
15209   # This implies no fast_install, which is unacceptable.
15210   # Some rework will be needed to allow for fast_install
15211   # before this can be enabled.
15212   hardcode_into_libs=yes
15213
15214   # Append ld.so.conf contents to the search path
15215   if test -f /etc/ld.so.conf; then
15216     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' ' '`
15217     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15218   fi
15219
15220   # We used to test for /lib/ld.so.1 and disable shared libraries on
15221   # powerpc, because MkLinux only supported shared libraries with the
15222   # GNU dynamic linker.  Since this was broken with cross compilers,
15223   # most powerpc-linux boxes support dynamic linking these days and
15224   # people can always --disable-shared, the test was removed, and we
15225   # assume the GNU/Linux dynamic linker is in use.
15226   dynamic_linker='GNU/Linux ld.so'
15227   ;;
15228
15229 netbsd*)
15230   version_type=sunos
15231   need_lib_prefix=no
15232   need_version=no
15233   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15234     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15235     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15236     dynamic_linker='NetBSD (a.out) ld.so'
15237   else
15238     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15239     soname_spec='${libname}${release}${shared_ext}$major'
15240     dynamic_linker='NetBSD ld.elf_so'
15241   fi
15242   shlibpath_var=LD_LIBRARY_PATH
15243   shlibpath_overrides_runpath=yes
15244   hardcode_into_libs=yes
15245   ;;
15246
15247 newsos6)
15248   version_type=linux
15249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15250   shlibpath_var=LD_LIBRARY_PATH
15251   shlibpath_overrides_runpath=yes
15252   ;;
15253
15254 *nto* | *qnx*)
15255   version_type=qnx
15256   need_lib_prefix=no
15257   need_version=no
15258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259   soname_spec='${libname}${release}${shared_ext}$major'
15260   shlibpath_var=LD_LIBRARY_PATH
15261   shlibpath_overrides_runpath=no
15262   hardcode_into_libs=yes
15263   dynamic_linker='ldqnx.so'
15264   ;;
15265
15266 openbsd*)
15267   version_type=sunos
15268   sys_lib_dlsearch_path_spec="/usr/lib"
15269   need_lib_prefix=no
15270   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15271   case $host_os in
15272     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15273     *)                          need_version=no  ;;
15274   esac
15275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15276   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15277   shlibpath_var=LD_LIBRARY_PATH
15278   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15279     case $host_os in
15280       openbsd2.[89] | openbsd2.[89].*)
15281         shlibpath_overrides_runpath=no
15282         ;;
15283       *)
15284         shlibpath_overrides_runpath=yes
15285         ;;
15286       esac
15287   else
15288     shlibpath_overrides_runpath=yes
15289   fi
15290   ;;
15291
15292 os2*)
15293   libname_spec='$name'
15294   shrext_cmds=".dll"
15295   need_lib_prefix=no
15296   library_names_spec='$libname${shared_ext} $libname.a'
15297   dynamic_linker='OS/2 ld.exe'
15298   shlibpath_var=LIBPATH
15299   ;;
15300
15301 osf3* | osf4* | osf5*)
15302   version_type=osf
15303   need_lib_prefix=no
15304   need_version=no
15305   soname_spec='${libname}${release}${shared_ext}$major'
15306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307   shlibpath_var=LD_LIBRARY_PATH
15308   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15309   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15310   ;;
15311
15312 rdos*)
15313   dynamic_linker=no
15314   ;;
15315
15316 solaris*)
15317   version_type=linux
15318   need_lib_prefix=no
15319   need_version=no
15320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15321   soname_spec='${libname}${release}${shared_ext}$major'
15322   shlibpath_var=LD_LIBRARY_PATH
15323   shlibpath_overrides_runpath=yes
15324   hardcode_into_libs=yes
15325   # ldd complains unless libraries are executable
15326   postinstall_cmds='chmod +x $lib'
15327   ;;
15328
15329 sunos4*)
15330   version_type=sunos
15331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15332   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15333   shlibpath_var=LD_LIBRARY_PATH
15334   shlibpath_overrides_runpath=yes
15335   if test "$with_gnu_ld" = yes; then
15336     need_lib_prefix=no
15337   fi
15338   need_version=yes
15339   ;;
15340
15341 sysv4 | sysv4.3*)
15342   version_type=linux
15343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344   soname_spec='${libname}${release}${shared_ext}$major'
15345   shlibpath_var=LD_LIBRARY_PATH
15346   case $host_vendor in
15347     sni)
15348       shlibpath_overrides_runpath=no
15349       need_lib_prefix=no
15350       runpath_var=LD_RUN_PATH
15351       ;;
15352     siemens)
15353       need_lib_prefix=no
15354       ;;
15355     motorola)
15356       need_lib_prefix=no
15357       need_version=no
15358       shlibpath_overrides_runpath=no
15359       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15360       ;;
15361   esac
15362   ;;
15363
15364 sysv4*MP*)
15365   if test -d /usr/nec ;then
15366     version_type=linux
15367     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15368     soname_spec='$libname${shared_ext}.$major'
15369     shlibpath_var=LD_LIBRARY_PATH
15370   fi
15371   ;;
15372
15373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15374   version_type=freebsd-elf
15375   need_lib_prefix=no
15376   need_version=no
15377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15378   soname_spec='${libname}${release}${shared_ext}$major'
15379   shlibpath_var=LD_LIBRARY_PATH
15380   shlibpath_overrides_runpath=yes
15381   hardcode_into_libs=yes
15382   if test "$with_gnu_ld" = yes; then
15383     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15384   else
15385     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15386     case $host_os in
15387       sco3.2v5*)
15388         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15389         ;;
15390     esac
15391   fi
15392   sys_lib_dlsearch_path_spec='/usr/lib'
15393   ;;
15394
15395 tpf*)
15396   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15397   version_type=linux
15398   need_lib_prefix=no
15399   need_version=no
15400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401   shlibpath_var=LD_LIBRARY_PATH
15402   shlibpath_overrides_runpath=no
15403   hardcode_into_libs=yes
15404   ;;
15405
15406 uts4*)
15407   version_type=linux
15408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15409   soname_spec='${libname}${release}${shared_ext}$major'
15410   shlibpath_var=LD_LIBRARY_PATH
15411   ;;
15412
15413 *)
15414   dynamic_linker=no
15415   ;;
15416 esac
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15418 $as_echo "$dynamic_linker" >&6; }
15419 test "$dynamic_linker" = no && can_build_shared=no
15420
15421 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15422 if test "$GCC" = yes; then
15423   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15424 fi
15425
15426 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15427   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15428 fi
15429 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15430   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15431 fi
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
15460
15461
15462
15463
15464
15465
15466
15467
15468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15469 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15470 hardcode_action_CXX=
15471 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15472    test -n "$runpath_var_CXX" ||
15473    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15474
15475   # We can hardcode non-existent directories.
15476   if test "$hardcode_direct_CXX" != no &&
15477      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15478      # have to relink, otherwise we might link with an installed library
15479      # when we should be linking with a yet-to-be-installed one
15480      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15481      test "$hardcode_minus_L_CXX" != no; then
15482     # Linking always hardcodes the temporary library directory.
15483     hardcode_action_CXX=relink
15484   else
15485     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15486     hardcode_action_CXX=immediate
15487   fi
15488 else
15489   # We cannot hardcode anything, or else we can only hardcode existing
15490   # directories.
15491   hardcode_action_CXX=unsupported
15492 fi
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15494 $as_echo "$hardcode_action_CXX" >&6; }
15495
15496 if test "$hardcode_action_CXX" = relink ||
15497    test "$inherit_rpath_CXX" = yes; then
15498   # Fast installation is not supported
15499   enable_fast_install=no
15500 elif test "$shlibpath_overrides_runpath" = yes ||
15501      test "$enable_shared" = no; then
15502   # Fast installation is not necessary
15503   enable_fast_install=needless
15504 fi
15505
15506
15507
15508
15509
15510
15511
15512   fi # test -n "$compiler"
15513
15514   CC=$lt_save_CC
15515   LDCXX=$LD
15516   LD=$lt_save_LD
15517   GCC=$lt_save_GCC
15518   with_gnu_ld=$lt_save_with_gnu_ld
15519   lt_cv_path_LDCXX=$lt_cv_path_LD
15520   lt_cv_path_LD=$lt_save_path_LD
15521   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15522   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15523 fi # test "$_lt_caught_CXX_error" != yes
15524
15525 ac_ext=c
15526 ac_cpp='$CPP $CPPFLAGS'
15527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543         ac_config_commands="$ac_config_commands libtool"
15544
15545
15546
15547
15548 # Only expand once:
15549
15550
15551
15552
15553 if test x$use_libtool != xno; then
15554    DEFAULT_OBJECT_TYPE=".lo"
15555    DEFAULT_ARCHIVE_TYPE=".la"
15556    DEFAULT_SHARED_OBJECT_TYPE=".la"
15557    LIBTOOL="\$(LIBTOOL)"
15558    LIBTOOL_INSTALL_TARGET="libtool-install"
15559    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15560    LIBTOOL_CLEAN_TARGET="libtool-clean"
15561    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15562    FD_PLUGIN_DIR="src/plugins/fd"
15563    have_plugins=yes
15564 else
15565    DEFAULT_OBJECT_TYPE=".o"
15566    DEFAULT_ARCHIVE_TYPE=".a"
15567    DEFAULT_SHARED_OBJECT_TYPE=".so"
15568    LIBTOOL="# \$(LIBTOOL)"
15569    LIBTOOL_INSTALL_TARGET=""
15570    LIBTOOL_UNINSTALL_TARGET=""
15571    LIBTOOL_CLEAN_TARGET=""
15572    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15573    FD_PLUGIN_DIR=""
15574    have_plugins=no
15575 fi
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587 # Check whether --enable-includes was given.
15588 if test "${enable_includes+set}" = set; then :
15589   enableval=$enable_includes;
15590        if test x$enableval = xyes; then
15591           install_includes=yes
15592        fi
15593
15594
15595 fi
15596
15597
15598
15599 if test x$use_libtool != xno -a x$install_includes = xyes; then
15600    INCLUDE_INSTALL_TARGET="install-includes"
15601    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15602 else
15603    INCLUDE_INSTALL_TARGET=""
15604    INCLUDE_UNINSTALL_TARGET=""
15605 fi
15606
15607
15608
15609
15610
15611 case $host_os in
15612   *cygwin* ) CYGWIN=yes;;
15613          * ) CYGWIN=no;;
15614 esac
15615
15616 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15617 then
15618
15619
15620 if $TRUEPRG; then
15621   HAVE_SUN_OS_TRUE=
15622   HAVE_SUN_OS_FALSE='#'
15623 else
15624   HAVE_SUN_OS_TRUE='#'
15625   HAVE_SUN_OS_FALSE=
15626 fi
15627         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15628
15629 else
15630
15631
15632 if $FALSEPRG; then
15633   HAVE_SUN_OS_TRUE=
15634   HAVE_SUN_OS_FALSE='#'
15635 else
15636   HAVE_SUN_OS_TRUE='#'
15637   HAVE_SUN_OS_FALSE=
15638 fi
15639 fi
15640
15641 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15642 then
15643
15644
15645 if $TRUEPRG; then
15646   HAVE_OSF1_OS_TRUE=
15647   HAVE_OSF1_OS_FALSE='#'
15648 else
15649   HAVE_OSF1_OS_TRUE='#'
15650   HAVE_OSF1_OS_FALSE=
15651 fi
15652         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15653
15654 else
15655
15656
15657 if $FALSEPRG; then
15658   HAVE_OSF1_OS_TRUE=
15659   HAVE_OSF1_OS_FALSE='#'
15660 else
15661   HAVE_OSF1_OS_TRUE='#'
15662   HAVE_OSF1_OS_FALSE=
15663 fi
15664 fi
15665
15666 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15667 then
15668
15669
15670 if $TRUEPRG; then
15671   HAVE_AIX_OS_TRUE=
15672   HAVE_AIX_OS_FALSE='#'
15673 else
15674   HAVE_AIX_OS_TRUE='#'
15675   HAVE_AIX_OS_FALSE=
15676 fi
15677         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15678
15679 else
15680
15681
15682 if $FALSEPRG; then
15683   HAVE_AIX_OS_TRUE=
15684   HAVE_AIX_OS_FALSE='#'
15685 else
15686   HAVE_AIX_OS_TRUE='#'
15687   HAVE_AIX_OS_FALSE=
15688 fi
15689 fi
15690
15691 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15692 then
15693
15694
15695 if $TRUEPRG; then
15696   HAVE_HPUX_OS_TRUE=
15697   HAVE_HPUX_OS_FALSE='#'
15698 else
15699   HAVE_HPUX_OS_TRUE='#'
15700   HAVE_HPUX_OS_FALSE=
15701 fi
15702         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15703
15704 else
15705
15706
15707 if $FALSEPRG; then
15708   HAVE_HPUX_OS_TRUE=
15709   HAVE_HPUX_OS_FALSE='#'
15710 else
15711   HAVE_HPUX_OS_TRUE='#'
15712   HAVE_HPUX_OS_FALSE=
15713 fi
15714 fi
15715
15716 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15717 then
15718
15719
15720 if $TRUEPRG; then
15721   HAVE_LINUX_OS_TRUE=
15722   HAVE_LINUX_OS_FALSE='#'
15723 else
15724   HAVE_LINUX_OS_TRUE='#'
15725   HAVE_LINUX_OS_FALSE=
15726 fi
15727         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15728
15729 else
15730
15731
15732 if $FALSEPRG; then
15733   HAVE_LINUX_OS_TRUE=
15734   HAVE_LINUX_OS_FALSE='#'
15735 else
15736   HAVE_LINUX_OS_TRUE='#'
15737   HAVE_LINUX_OS_FALSE=
15738 fi
15739 fi
15740
15741 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15742 then
15743
15744
15745 if $TRUEPRG; then
15746   HAVE_FREEBSD_OS_TRUE=
15747   HAVE_FREEBSD_OS_FALSE='#'
15748 else
15749   HAVE_FREEBSD_OS_TRUE='#'
15750   HAVE_FREEBSD_OS_FALSE=
15751 fi
15752         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15753
15754 else
15755
15756
15757 if $FALSEPRG; then
15758   HAVE_FREEBSD_OS_TRUE=
15759   HAVE_FREEBSD_OS_FALSE='#'
15760 else
15761   HAVE_FREEBSD_OS_TRUE='#'
15762   HAVE_FREEBSD_OS_FALSE=
15763 fi
15764 fi
15765
15766 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15767 then
15768
15769
15770 if $TRUEPRG; then
15771   HAVE_NETBSD_OS_TRUE=
15772   HAVE_NETBSD_OS_FALSE='#'
15773 else
15774   HAVE_NETBSD_OS_TRUE='#'
15775   HAVE_NETBSD_OS_FALSE=
15776 fi
15777         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15778
15779 else
15780
15781
15782 if $FALSEPRG; then
15783   HAVE_NETBSD_OS_TRUE=
15784   HAVE_NETBSD_OS_FALSE='#'
15785 else
15786   HAVE_NETBSD_OS_TRUE='#'
15787   HAVE_NETBSD_OS_FALSE=
15788 fi
15789 fi
15790
15791 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15792 then
15793
15794
15795 if $TRUEPRG; then
15796   HAVE_OPENBSD_OS_TRUE=
15797   HAVE_OPENBSD_OS_FALSE='#'
15798 else
15799   HAVE_OPENBSD_OS_TRUE='#'
15800   HAVE_OPENBSD_OS_FALSE=
15801 fi
15802         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15803
15804 else
15805
15806
15807 if $FALSEPRG; then
15808   HAVE_OPENBSD_OS_TRUE=
15809   HAVE_OPENBSD_OS_FALSE='#'
15810 else
15811   HAVE_OPENBSD_OS_TRUE='#'
15812   HAVE_OPENBSD_OS_FALSE=
15813 fi
15814 fi
15815
15816 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15817 then
15818
15819
15820 if $TRUEPRG; then
15821   HAVE_BSDI_OS_TRUE=
15822   HAVE_BSDI_OS_FALSE='#'
15823 else
15824   HAVE_BSDI_OS_TRUE='#'
15825   HAVE_BSDI_OS_FALSE=
15826 fi
15827         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15828
15829 else
15830
15831
15832 if $FALSEPRG; then
15833   HAVE_BSDI_OS_TRUE=
15834   HAVE_BSDI_OS_FALSE='#'
15835 else
15836   HAVE_BSDI_OS_TRUE='#'
15837   HAVE_BSDI_OS_FALSE=
15838 fi
15839 fi
15840
15841 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15842 then
15843
15844
15845 if $TRUEPRG; then
15846   HAVE_SGI_OS_TRUE=
15847   HAVE_SGI_OS_FALSE='#'
15848 else
15849   HAVE_SGI_OS_TRUE='#'
15850   HAVE_SGI_OS_FALSE=
15851 fi
15852         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15853
15854 else
15855
15856
15857 if $FALSEPRG; then
15858   HAVE_SGI_OS_TRUE=
15859   HAVE_SGI_OS_FALSE='#'
15860 else
15861   HAVE_SGI_OS_TRUE='#'
15862   HAVE_SGI_OS_FALSE=
15863 fi
15864 fi
15865
15866 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15867 then
15868
15869
15870 if $TRUEPRG; then
15871   HAVE_IRIX_OS_TRUE=
15872   HAVE_IRIX_OS_FALSE='#'
15873 else
15874   HAVE_IRIX_OS_TRUE='#'
15875   HAVE_IRIX_OS_FALSE=
15876 fi
15877         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15878
15879 else
15880
15881
15882 if $FALSEPRG; then
15883   HAVE_IRIX_OS_TRUE=
15884   HAVE_IRIX_OS_FALSE='#'
15885 else
15886   HAVE_IRIX_OS_TRUE='#'
15887   HAVE_IRIX_OS_FALSE=
15888 fi
15889 fi
15890
15891 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15892 then
15893
15894
15895 if $TRUEPRG; then
15896   HAVE_DARWIN_OS_TRUE=
15897   HAVE_DARWIN_OS_FALSE='#'
15898 else
15899   HAVE_DARWIN_OS_TRUE='#'
15900   HAVE_DARWIN_OS_FALSE=
15901 fi
15902     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15903
15904 else
15905
15906
15907 if $FALSEPRG; then
15908   HAVE_DARWIN_OS_TRUE=
15909   HAVE_DARWIN_OS_FALSE='#'
15910 else
15911   HAVE_DARWIN_OS_TRUE='#'
15912   HAVE_DARWIN_OS_FALSE=
15913 fi
15914 fi
15915
15916
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15918 $as_echo_n "checking for Operating System Distribution... " >&6; }
15919 if test "x$DISTNAME" != "x"
15920 then
15921         echo "distname set to $DISTNAME"
15922 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15923 then
15924         DISTNAME=alpha
15925 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15926 then
15927         DISTNAME=aix
15928 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15929 then
15930         DISTNAME=hpux
15931 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15932 then
15933         DISTNAME=solaris
15934 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15935 then
15936         DISTNAME=freebsd
15937 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15938 then
15939         DISTNAME=netbsd
15940 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15941 then
15942         DISTNAME=openbsd
15943 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15944 then
15945         DISTNAME=irix
15946 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15947 then
15948         DISTNAME=bsdi
15949 elif test -f /etc/SuSE-release
15950 then
15951         DISTNAME=suse
15952 elif test -d /etc/SuSEconfig
15953 then
15954         DISTNAME=suse5
15955 elif test -f /etc/mandrake-release
15956 then
15957         DISTNAME=mandrake
15958 elif test -f /etc/whitebox-release
15959 then
15960        DISTNAME=redhat
15961 elif test -f /etc/redhat-release
15962 then
15963         DISTNAME=redhat
15964 elif test -f /etc/gentoo-release
15965 then
15966         DISTNAME=gentoo
15967 elif test -f /etc/debian_version
15968 then
15969         DISTNAME=debian
15970 elif test -f /etc/slackware-version
15971 then
15972         DISTNAME=slackware
15973 elif test x$host_vendor = xapple
15974 then
15975     DISTNAME=osx
15976 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15977 then
15978     DISTNAME=darwin
15979 elif test -f /etc/engarde-version
15980 then
15981         DISTNAME=engarde
15982 elif test -f /etc/arch-release
15983 then
15984         DISTNAME=archlinux
15985 elif test "$CYGWIN" = yes
15986 then
15987         DISTNAME=cygwin
15988         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
15989
15990 else
15991         DISTNAME=unknown
15992 fi
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15994 $as_echo "done" >&6; }
15995
15996
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15998 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15999 set x ${MAKE-make}
16000 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16001 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16002   $as_echo_n "(cached) " >&6
16003 else
16004   cat >conftest.make <<\_ACEOF
16005 SHELL = /bin/sh
16006 all:
16007         @echo '@@@%%%=$(MAKE)=@@@%%%'
16008 _ACEOF
16009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16010 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16011   *@@@%%%=?*=@@@%%%*)
16012     eval ac_cv_prog_make_${ac_make}_set=yes;;
16013   *)
16014     eval ac_cv_prog_make_${ac_make}_set=no;;
16015 esac
16016 rm -f conftest.make
16017 fi
16018 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16020 $as_echo "yes" >&6; }
16021   SET_MAKE=
16022 else
16023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16024 $as_echo "no" >&6; }
16025   SET_MAKE="MAKE=${MAKE-make}"
16026 fi
16027
16028
16029
16030         MKINSTALLDIRS=
16031   if test -n "$ac_aux_dir"; then
16032     case "$ac_aux_dir" in
16033       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16034       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16035     esac
16036   fi
16037   if test -z "$MKINSTALLDIRS"; then
16038     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16039   fi
16040
16041
16042
16043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16044 $as_echo_n "checking whether NLS is requested... " >&6; }
16045     # Check whether --enable-nls was given.
16046 if test "${enable_nls+set}" = set; then :
16047   enableval=$enable_nls; USE_NLS=$enableval
16048 else
16049   USE_NLS=yes
16050 fi
16051
16052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16053 $as_echo "$USE_NLS" >&6; }
16054
16055
16056
16057
16058
16059
16060 # Prepare PATH_SEPARATOR.
16061 # The user is always right.
16062 if test "${PATH_SEPARATOR+set}" != set; then
16063   echo "#! /bin/sh" >conf$$.sh
16064   echo  "exit 0"   >>conf$$.sh
16065   chmod +x conf$$.sh
16066   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16067     PATH_SEPARATOR=';'
16068   else
16069     PATH_SEPARATOR=:
16070   fi
16071   rm -f conf$$.sh
16072 fi
16073
16074 # Find out how to test for executable files. Don't use a zero-byte file,
16075 # as systems may use methods other than mode bits to determine executability.
16076 cat >conf$$.file <<_ASEOF
16077 #! /bin/sh
16078 exit 0
16079 _ASEOF
16080 chmod +x conf$$.file
16081 if test -x conf$$.file >/dev/null 2>&1; then
16082   ac_executable_p="test -x"
16083 else
16084   ac_executable_p="test -f"
16085 fi
16086 rm -f conf$$.file
16087
16088 # Extract the first word of "msgfmt", so it can be a program name with args.
16089 set dummy msgfmt; ac_word=$2
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16091 $as_echo_n "checking for $ac_word... " >&6; }
16092 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16093   $as_echo_n "(cached) " >&6
16094 else
16095   case "$MSGFMT" in
16096   [\\/]* | ?:[\\/]*)
16097     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16098     ;;
16099   *)
16100     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16101     for ac_dir in $PATH; do
16102       IFS="$ac_save_IFS"
16103       test -z "$ac_dir" && ac_dir=.
16104       for ac_exec_ext in '' $ac_executable_extensions; do
16105         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16106           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16107           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16108      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16109             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16110             break 2
16111           fi
16112         fi
16113       done
16114     done
16115     IFS="$ac_save_IFS"
16116   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16117     ;;
16118 esac
16119 fi
16120 MSGFMT="$ac_cv_path_MSGFMT"
16121 if test "$MSGFMT" != ":"; then
16122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16123 $as_echo "$MSGFMT" >&6; }
16124 else
16125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 $as_echo "no" >&6; }
16127 fi
16128
16129   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16130 set dummy gmsgfmt; ac_word=$2
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16132 $as_echo_n "checking for $ac_word... " >&6; }
16133 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16134   $as_echo_n "(cached) " >&6
16135 else
16136   case $GMSGFMT in
16137   [\\/]* | ?:[\\/]*)
16138   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16139   ;;
16140   *)
16141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16142 for as_dir in $PATH
16143 do
16144   IFS=$as_save_IFS
16145   test -z "$as_dir" && as_dir=.
16146     for ac_exec_ext in '' $ac_executable_extensions; do
16147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16148     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16150     break 2
16151   fi
16152 done
16153   done
16154 IFS=$as_save_IFS
16155
16156   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16157   ;;
16158 esac
16159 fi
16160 GMSGFMT=$ac_cv_path_GMSGFMT
16161 if test -n "$GMSGFMT"; then
16162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16163 $as_echo "$GMSGFMT" >&6; }
16164 else
16165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16166 $as_echo "no" >&6; }
16167 fi
16168
16169
16170
16171
16172 # Prepare PATH_SEPARATOR.
16173 # The user is always right.
16174 if test "${PATH_SEPARATOR+set}" != set; then
16175   echo "#! /bin/sh" >conf$$.sh
16176   echo  "exit 0"   >>conf$$.sh
16177   chmod +x conf$$.sh
16178   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16179     PATH_SEPARATOR=';'
16180   else
16181     PATH_SEPARATOR=:
16182   fi
16183   rm -f conf$$.sh
16184 fi
16185
16186 # Find out how to test for executable files. Don't use a zero-byte file,
16187 # as systems may use methods other than mode bits to determine executability.
16188 cat >conf$$.file <<_ASEOF
16189 #! /bin/sh
16190 exit 0
16191 _ASEOF
16192 chmod +x conf$$.file
16193 if test -x conf$$.file >/dev/null 2>&1; then
16194   ac_executable_p="test -x"
16195 else
16196   ac_executable_p="test -f"
16197 fi
16198 rm -f conf$$.file
16199
16200 # Extract the first word of "xgettext", so it can be a program name with args.
16201 set dummy xgettext; ac_word=$2
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16203 $as_echo_n "checking for $ac_word... " >&6; }
16204 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16205   $as_echo_n "(cached) " >&6
16206 else
16207   case "$XGETTEXT" in
16208   [\\/]* | ?:[\\/]*)
16209     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16210     ;;
16211   *)
16212     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16213     for ac_dir in $PATH; do
16214       IFS="$ac_save_IFS"
16215       test -z "$ac_dir" && ac_dir=.
16216       for ac_exec_ext in '' $ac_executable_extensions; do
16217         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16218           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16219           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16220      (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
16221             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16222             break 2
16223           fi
16224         fi
16225       done
16226     done
16227     IFS="$ac_save_IFS"
16228   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16229     ;;
16230 esac
16231 fi
16232 XGETTEXT="$ac_cv_path_XGETTEXT"
16233 if test "$XGETTEXT" != ":"; then
16234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16235 $as_echo "$XGETTEXT" >&6; }
16236 else
16237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16239 fi
16240
16241     rm -f messages.po
16242
16243
16244 # Prepare PATH_SEPARATOR.
16245 # The user is always right.
16246 if test "${PATH_SEPARATOR+set}" != set; then
16247   echo "#! /bin/sh" >conf$$.sh
16248   echo  "exit 0"   >>conf$$.sh
16249   chmod +x conf$$.sh
16250   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16251     PATH_SEPARATOR=';'
16252   else
16253     PATH_SEPARATOR=:
16254   fi
16255   rm -f conf$$.sh
16256 fi
16257
16258 # Find out how to test for executable files. Don't use a zero-byte file,
16259 # as systems may use methods other than mode bits to determine executability.
16260 cat >conf$$.file <<_ASEOF
16261 #! /bin/sh
16262 exit 0
16263 _ASEOF
16264 chmod +x conf$$.file
16265 if test -x conf$$.file >/dev/null 2>&1; then
16266   ac_executable_p="test -x"
16267 else
16268   ac_executable_p="test -f"
16269 fi
16270 rm -f conf$$.file
16271
16272 # Extract the first word of "msgmerge", so it can be a program name with args.
16273 set dummy msgmerge; ac_word=$2
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16275 $as_echo_n "checking for $ac_word... " >&6; }
16276 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16277   $as_echo_n "(cached) " >&6
16278 else
16279   case "$MSGMERGE" in
16280   [\\/]* | ?:[\\/]*)
16281     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16282     ;;
16283   *)
16284     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16285     for ac_dir in $PATH; do
16286       IFS="$ac_save_IFS"
16287       test -z "$ac_dir" && ac_dir=.
16288       for ac_exec_ext in '' $ac_executable_extensions; do
16289         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16290           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16291           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16292             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16293             break 2
16294           fi
16295         fi
16296       done
16297     done
16298     IFS="$ac_save_IFS"
16299   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16300     ;;
16301 esac
16302 fi
16303 MSGMERGE="$ac_cv_path_MSGMERGE"
16304 if test "$MSGMERGE" != ":"; then
16305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16306 $as_echo "$MSGMERGE" >&6; }
16307 else
16308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309 $as_echo "no" >&6; }
16310 fi
16311
16312
16313       if test "$GMSGFMT" != ":"; then
16314             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16315        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16316       : ;
16317     else
16318       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16320 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16321       GMSGFMT=":"
16322     fi
16323   fi
16324
16325       if test "$XGETTEXT" != ":"; then
16326             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16327        (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
16328       : ;
16329     else
16330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16331 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16332       XGETTEXT=":"
16333     fi
16334         rm -f messages.po
16335   fi
16336
16337   ac_config_commands="$ac_config_commands default-1"
16338
16339
16340
16341       if test "X$prefix" = "XNONE"; then
16342     acl_final_prefix="$ac_default_prefix"
16343   else
16344     acl_final_prefix="$prefix"
16345   fi
16346   if test "X$exec_prefix" = "XNONE"; then
16347     acl_final_exec_prefix='${prefix}'
16348   else
16349     acl_final_exec_prefix="$exec_prefix"
16350   fi
16351   acl_save_prefix="$prefix"
16352   prefix="$acl_final_prefix"
16353   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16354   prefix="$acl_save_prefix"
16355
16356
16357 # Check whether --with-gnu-ld was given.
16358 if test "${with_gnu_ld+set}" = set; then :
16359   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16360 else
16361   with_gnu_ld=no
16362 fi
16363
16364 # Prepare PATH_SEPARATOR.
16365 # The user is always right.
16366 if test "${PATH_SEPARATOR+set}" != set; then
16367   echo "#! /bin/sh" >conf$$.sh
16368   echo  "exit 0"   >>conf$$.sh
16369   chmod +x conf$$.sh
16370   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16371     PATH_SEPARATOR=';'
16372   else
16373     PATH_SEPARATOR=:
16374   fi
16375   rm -f conf$$.sh
16376 fi
16377 ac_prog=ld
16378 if test "$GCC" = yes; then
16379   # Check if gcc -print-prog-name=ld gives a path.
16380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16381 $as_echo_n "checking for ld used by GCC... " >&6; }
16382   case $host in
16383   *-*-mingw*)
16384     # gcc leaves a trailing carriage return which upsets mingw
16385     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16386   *)
16387     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16388   esac
16389   case $ac_prog in
16390     # Accept absolute paths.
16391     [\\/]* | [A-Za-z]:[\\/]*)
16392       re_direlt='/[^/][^/]*/\.\./'
16393       # Canonicalize the path of ld
16394       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16395       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16396         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16397       done
16398       test -z "$LD" && LD="$ac_prog"
16399       ;;
16400   "")
16401     # If it fails, then pretend we aren't using GCC.
16402     ac_prog=ld
16403     ;;
16404   *)
16405     # If it is relative, then search for the first ld in PATH.
16406     with_gnu_ld=unknown
16407     ;;
16408   esac
16409 elif test "$with_gnu_ld" = yes; then
16410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16411 $as_echo_n "checking for GNU ld... " >&6; }
16412 else
16413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16414 $as_echo_n "checking for non-GNU ld... " >&6; }
16415 fi
16416 if test "${acl_cv_path_LD+set}" = set; then :
16417   $as_echo_n "(cached) " >&6
16418 else
16419   if test -z "$LD"; then
16420   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16421   for ac_dir in $PATH; do
16422     test -z "$ac_dir" && ac_dir=.
16423     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16424       acl_cv_path_LD="$ac_dir/$ac_prog"
16425       # Check to see if the program is GNU ld.  I'd rather use --version,
16426       # but apparently some GNU ld's only accept -v.
16427       # Break only if it was the GNU/non-GNU ld that we prefer.
16428       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16429       *GNU* | *'with BFD'*)
16430         test "$with_gnu_ld" != no && break ;;
16431       *)
16432         test "$with_gnu_ld" != yes && break ;;
16433       esac
16434     fi
16435   done
16436   IFS="$ac_save_ifs"
16437 else
16438   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16439 fi
16440 fi
16441
16442 LD="$acl_cv_path_LD"
16443 if test -n "$LD"; then
16444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16445 $as_echo "$LD" >&6; }
16446 else
16447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16448 $as_echo "no" >&6; }
16449 fi
16450 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16452 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16453 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
16454   $as_echo_n "(cached) " >&6
16455 else
16456   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16457 case `$LD -v 2>&1 </dev/null` in
16458 *GNU* | *'with BFD'*)
16459   acl_cv_prog_gnu_ld=yes ;;
16460 *)
16461   acl_cv_prog_gnu_ld=no ;;
16462 esac
16463 fi
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16465 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16466 with_gnu_ld=$acl_cv_prog_gnu_ld
16467
16468
16469
16470
16471                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16472 $as_echo_n "checking for shared library run path origin... " >&6; }
16473 if test "${acl_cv_rpath+set}" = set; then :
16474   $as_echo_n "(cached) " >&6
16475 else
16476
16477     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16478     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16479     . ./conftest.sh
16480     rm -f ./conftest.sh
16481     acl_cv_rpath=done
16482
16483 fi
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16485 $as_echo "$acl_cv_rpath" >&6; }
16486   wl="$acl_cv_wl"
16487   libext="$acl_cv_libext"
16488   shlibext="$acl_cv_shlibext"
16489   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16490   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16491   hardcode_direct="$acl_cv_hardcode_direct"
16492   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16493     # Check whether --enable-rpath was given.
16494 if test "${enable_rpath+set}" = set; then :
16495   enableval=$enable_rpath; :
16496 else
16497   enable_rpath=yes
16498 fi
16499
16500
16501
16502
16503
16504
16505
16506
16507     use_additional=yes
16508
16509   acl_save_prefix="$prefix"
16510   prefix="$acl_final_prefix"
16511   acl_save_exec_prefix="$exec_prefix"
16512   exec_prefix="$acl_final_exec_prefix"
16513
16514     eval additional_includedir=\"$includedir\"
16515     eval additional_libdir=\"$libdir\"
16516
16517   exec_prefix="$acl_save_exec_prefix"
16518   prefix="$acl_save_prefix"
16519
16520
16521 # Check whether --with-libiconv-prefix was given.
16522 if test "${with_libiconv_prefix+set}" = set; then :
16523   withval=$with_libiconv_prefix;
16524     if test "X$withval" = "Xno"; then
16525       use_additional=no
16526     else
16527       if test "X$withval" = "X"; then
16528
16529   acl_save_prefix="$prefix"
16530   prefix="$acl_final_prefix"
16531   acl_save_exec_prefix="$exec_prefix"
16532   exec_prefix="$acl_final_exec_prefix"
16533
16534           eval additional_includedir=\"$includedir\"
16535           eval additional_libdir=\"$libdir\"
16536
16537   exec_prefix="$acl_save_exec_prefix"
16538   prefix="$acl_save_prefix"
16539
16540       else
16541         additional_includedir="$withval/include"
16542         additional_libdir="$withval/lib"
16543       fi
16544     fi
16545
16546 fi
16547
16548       LIBICONV=
16549   LTLIBICONV=
16550   INCICONV=
16551   rpathdirs=
16552   ltrpathdirs=
16553   names_already_handled=
16554   names_next_round='iconv '
16555   while test -n "$names_next_round"; do
16556     names_this_round="$names_next_round"
16557     names_next_round=
16558     for name in $names_this_round; do
16559       already_handled=
16560       for n in $names_already_handled; do
16561         if test "$n" = "$name"; then
16562           already_handled=yes
16563           break
16564         fi
16565       done
16566       if test -z "$already_handled"; then
16567         names_already_handled="$names_already_handled $name"
16568                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16569         eval value=\"\$HAVE_LIB$uppername\"
16570         if test -n "$value"; then
16571           if test "$value" = yes; then
16572             eval value=\"\$LIB$uppername\"
16573             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16574             eval value=\"\$LTLIB$uppername\"
16575             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16576           else
16577                                     :
16578           fi
16579         else
16580                               found_dir=
16581           found_la=
16582           found_so=
16583           found_a=
16584           if test $use_additional = yes; then
16585             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16586               found_dir="$additional_libdir"
16587               found_so="$additional_libdir/lib$name.$shlibext"
16588               if test -f "$additional_libdir/lib$name.la"; then
16589                 found_la="$additional_libdir/lib$name.la"
16590               fi
16591             else
16592               if test -f "$additional_libdir/lib$name.$libext"; then
16593                 found_dir="$additional_libdir"
16594                 found_a="$additional_libdir/lib$name.$libext"
16595                 if test -f "$additional_libdir/lib$name.la"; then
16596                   found_la="$additional_libdir/lib$name.la"
16597                 fi
16598               fi
16599             fi
16600           fi
16601           if test "X$found_dir" = "X"; then
16602             for x in $LDFLAGS $LTLIBICONV; do
16603
16604   acl_save_prefix="$prefix"
16605   prefix="$acl_final_prefix"
16606   acl_save_exec_prefix="$exec_prefix"
16607   exec_prefix="$acl_final_exec_prefix"
16608   eval x=\"$x\"
16609   exec_prefix="$acl_save_exec_prefix"
16610   prefix="$acl_save_prefix"
16611
16612               case "$x" in
16613                 -L*)
16614                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16615                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16616                     found_dir="$dir"
16617                     found_so="$dir/lib$name.$shlibext"
16618                     if test -f "$dir/lib$name.la"; then
16619                       found_la="$dir/lib$name.la"
16620                     fi
16621                   else
16622                     if test -f "$dir/lib$name.$libext"; then
16623                       found_dir="$dir"
16624                       found_a="$dir/lib$name.$libext"
16625                       if test -f "$dir/lib$name.la"; then
16626                         found_la="$dir/lib$name.la"
16627                       fi
16628                     fi
16629                   fi
16630                   ;;
16631               esac
16632               if test "X$found_dir" != "X"; then
16633                 break
16634               fi
16635             done
16636           fi
16637           if test "X$found_dir" != "X"; then
16638                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16639             if test "X$found_so" != "X"; then
16640                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16641                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16642               else
16643                                                                                 haveit=
16644                 for x in $ltrpathdirs; do
16645                   if test "X$x" = "X$found_dir"; then
16646                     haveit=yes
16647                     break
16648                   fi
16649                 done
16650                 if test -z "$haveit"; then
16651                   ltrpathdirs="$ltrpathdirs $found_dir"
16652                 fi
16653                                 if test "$hardcode_direct" = yes; then
16654                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16655                 else
16656                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16657                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16658                                                             haveit=
16659                     for x in $rpathdirs; do
16660                       if test "X$x" = "X$found_dir"; then
16661                         haveit=yes
16662                         break
16663                       fi
16664                     done
16665                     if test -z "$haveit"; then
16666                       rpathdirs="$rpathdirs $found_dir"
16667                     fi
16668                   else
16669                                                                                 haveit=
16670                     for x in $LDFLAGS $LIBICONV; do
16671
16672   acl_save_prefix="$prefix"
16673   prefix="$acl_final_prefix"
16674   acl_save_exec_prefix="$exec_prefix"
16675   exec_prefix="$acl_final_exec_prefix"
16676   eval x=\"$x\"
16677   exec_prefix="$acl_save_exec_prefix"
16678   prefix="$acl_save_prefix"
16679
16680                       if test "X$x" = "X-L$found_dir"; then
16681                         haveit=yes
16682                         break
16683                       fi
16684                     done
16685                     if test -z "$haveit"; then
16686                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16687                     fi
16688                     if test "$hardcode_minus_L" != no; then
16689                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16690                     else
16691                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16692                     fi
16693                   fi
16694                 fi
16695               fi
16696             else
16697               if test "X$found_a" != "X"; then
16698                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16699               else
16700                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16701               fi
16702             fi
16703                         additional_includedir=
16704             case "$found_dir" in
16705               */lib | */lib/)
16706                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16707                 additional_includedir="$basedir/include"
16708                 ;;
16709             esac
16710             if test "X$additional_includedir" != "X"; then
16711                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16712                 haveit=
16713                 if test "X$additional_includedir" = "X/usr/local/include"; then
16714                   if test -n "$GCC"; then
16715                     case $host_os in
16716                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16717                     esac
16718                   fi
16719                 fi
16720                 if test -z "$haveit"; then
16721                   for x in $CPPFLAGS $INCICONV; do
16722
16723   acl_save_prefix="$prefix"
16724   prefix="$acl_final_prefix"
16725   acl_save_exec_prefix="$exec_prefix"
16726   exec_prefix="$acl_final_exec_prefix"
16727   eval x=\"$x\"
16728   exec_prefix="$acl_save_exec_prefix"
16729   prefix="$acl_save_prefix"
16730
16731                     if test "X$x" = "X-I$additional_includedir"; then
16732                       haveit=yes
16733                       break
16734                     fi
16735                   done
16736                   if test -z "$haveit"; then
16737                     if test -d "$additional_includedir"; then
16738                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16739                     fi
16740                   fi
16741                 fi
16742               fi
16743             fi
16744                         if test -n "$found_la"; then
16745                                                         save_libdir="$libdir"
16746               case "$found_la" in
16747                 */* | *\\*) . "$found_la" ;;
16748                 *) . "./$found_la" ;;
16749               esac
16750               libdir="$save_libdir"
16751                             for dep in $dependency_libs; do
16752                 case "$dep" in
16753                   -L*)
16754                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16755                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16756                       haveit=
16757                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16758                         if test -n "$GCC"; then
16759                           case $host_os in
16760                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16761                           esac
16762                         fi
16763                       fi
16764                       if test -z "$haveit"; then
16765                         haveit=
16766                         for x in $LDFLAGS $LIBICONV; do
16767
16768   acl_save_prefix="$prefix"
16769   prefix="$acl_final_prefix"
16770   acl_save_exec_prefix="$exec_prefix"
16771   exec_prefix="$acl_final_exec_prefix"
16772   eval x=\"$x\"
16773   exec_prefix="$acl_save_exec_prefix"
16774   prefix="$acl_save_prefix"
16775
16776                           if test "X$x" = "X-L$additional_libdir"; then
16777                             haveit=yes
16778                             break
16779                           fi
16780                         done
16781                         if test -z "$haveit"; then
16782                           if test -d "$additional_libdir"; then
16783                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16784                           fi
16785                         fi
16786                         haveit=
16787                         for x in $LDFLAGS $LTLIBICONV; do
16788
16789   acl_save_prefix="$prefix"
16790   prefix="$acl_final_prefix"
16791   acl_save_exec_prefix="$exec_prefix"
16792   exec_prefix="$acl_final_exec_prefix"
16793   eval x=\"$x\"
16794   exec_prefix="$acl_save_exec_prefix"
16795   prefix="$acl_save_prefix"
16796
16797                           if test "X$x" = "X-L$additional_libdir"; then
16798                             haveit=yes
16799                             break
16800                           fi
16801                         done
16802                         if test -z "$haveit"; then
16803                           if test -d "$additional_libdir"; then
16804                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16805                           fi
16806                         fi
16807                       fi
16808                     fi
16809                     ;;
16810                   -R*)
16811                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16812                     if test "$enable_rpath" != no; then
16813                                                                   haveit=
16814                       for x in $rpathdirs; do
16815                         if test "X$x" = "X$dir"; then
16816                           haveit=yes
16817                           break
16818                         fi
16819                       done
16820                       if test -z "$haveit"; then
16821                         rpathdirs="$rpathdirs $dir"
16822                       fi
16823                                                                   haveit=
16824                       for x in $ltrpathdirs; do
16825                         if test "X$x" = "X$dir"; then
16826                           haveit=yes
16827                           break
16828                         fi
16829                       done
16830                       if test -z "$haveit"; then
16831                         ltrpathdirs="$ltrpathdirs $dir"
16832                       fi
16833                     fi
16834                     ;;
16835                   -l*)
16836                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16837                     ;;
16838                   *.la)
16839                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16840                     ;;
16841                   *)
16842                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16843                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16844                     ;;
16845                 esac
16846               done
16847             fi
16848           else
16849                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16850             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16851           fi
16852         fi
16853       fi
16854     done
16855   done
16856   if test "X$rpathdirs" != "X"; then
16857     if test -n "$hardcode_libdir_separator"; then
16858                         alldirs=
16859       for found_dir in $rpathdirs; do
16860         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16861       done
16862             acl_save_libdir="$libdir"
16863       libdir="$alldirs"
16864       eval flag=\"$hardcode_libdir_flag_spec\"
16865       libdir="$acl_save_libdir"
16866       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16867     else
16868             for found_dir in $rpathdirs; do
16869         acl_save_libdir="$libdir"
16870         libdir="$found_dir"
16871         eval flag=\"$hardcode_libdir_flag_spec\"
16872         libdir="$acl_save_libdir"
16873         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16874       done
16875     fi
16876   fi
16877   if test "X$ltrpathdirs" != "X"; then
16878             for found_dir in $ltrpathdirs; do
16879       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16880     done
16881   fi
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16901 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16902 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16903   $as_echo_n "(cached) " >&6
16904 else
16905   gt_save_CPPFLAGS="$CPPFLAGS"
16906      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16907      gt_save_LIBS="$LIBS"
16908      LIBS="$LIBS -framework CoreFoundation"
16909      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h.  */
16911 #include <CFPreferences.h>
16912 int
16913 main ()
16914 {
16915 CFPreferencesCopyAppValue(NULL, NULL)
16916   ;
16917   return 0;
16918 }
16919 _ACEOF
16920 if ac_fn_c_try_link "$LINENO"; then :
16921   gt_cv_func_CFPreferencesCopyAppValue=yes
16922 else
16923   gt_cv_func_CFPreferencesCopyAppValue=no
16924 fi
16925 rm -f core conftest.err conftest.$ac_objext \
16926     conftest$ac_exeext conftest.$ac_ext
16927      CPPFLAGS="$gt_save_CPPFLAGS"
16928      LIBS="$gt_save_LIBS"
16929 fi
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16931 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16932   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16933
16934 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16935
16936   fi
16937     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16938 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16939 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16940   $as_echo_n "(cached) " >&6
16941 else
16942   gt_save_CPPFLAGS="$CPPFLAGS"
16943      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16944      gt_save_LIBS="$LIBS"
16945      LIBS="$LIBS -framework CoreFoundation"
16946      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h.  */
16948 #include <CFLocale.h>
16949 int
16950 main ()
16951 {
16952 CFLocaleCopyCurrent();
16953   ;
16954   return 0;
16955 }
16956 _ACEOF
16957 if ac_fn_c_try_link "$LINENO"; then :
16958   gt_cv_func_CFLocaleCopyCurrent=yes
16959 else
16960   gt_cv_func_CFLocaleCopyCurrent=no
16961 fi
16962 rm -f core conftest.err conftest.$ac_objext \
16963     conftest$ac_exeext conftest.$ac_ext
16964      CPPFLAGS="$gt_save_CPPFLAGS"
16965      LIBS="$gt_save_LIBS"
16966 fi
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16968 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16969   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16970
16971 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16972
16973   fi
16974   INTL_MACOSX_LIBS=
16975   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16976     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16977   fi
16978
16979
16980
16981
16982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16983 $as_echo_n "checking whether NLS is requested... " >&6; }
16984     # Check whether --enable-nls was given.
16985 if test "${enable_nls+set}" = set; then :
16986   enableval=$enable_nls; USE_NLS=$enableval
16987 else
16988   USE_NLS=yes
16989 fi
16990
16991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16992 $as_echo "$USE_NLS" >&6; }
16993
16994
16995
16996
16997   LIBINTL=
16998   LTLIBINTL=
16999   POSUB=
17000
17001     if test "$USE_NLS" = "yes"; then
17002     gt_use_preinstalled_gnugettext=no
17003
17004
17005
17006
17007
17008
17009         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17010 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17011 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17012   $as_echo_n "(cached) " >&6
17013 else
17014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h.  */
17016 #include <libintl.h>
17017 extern int _nl_msg_cat_cntr;
17018 extern int *_nl_domain_bindings;
17019 int
17020 main ()
17021 {
17022 bindtextdomain ("", "");
17023 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 if ac_fn_c_try_link "$LINENO"; then :
17029   gt_cv_func_gnugettext1_libc=yes
17030 else
17031   gt_cv_func_gnugettext1_libc=no
17032 fi
17033 rm -f core conftest.err conftest.$ac_objext \
17034     conftest$ac_exeext conftest.$ac_ext
17035 fi
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17037 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17038
17039         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17040
17041
17042
17043
17044
17045           am_save_CPPFLAGS="$CPPFLAGS"
17046
17047   for element in $INCICONV; do
17048     haveit=
17049     for x in $CPPFLAGS; do
17050
17051   acl_save_prefix="$prefix"
17052   prefix="$acl_final_prefix"
17053   acl_save_exec_prefix="$exec_prefix"
17054   exec_prefix="$acl_final_exec_prefix"
17055   eval x=\"$x\"
17056   exec_prefix="$acl_save_exec_prefix"
17057   prefix="$acl_save_prefix"
17058
17059       if test "X$x" = "X$element"; then
17060         haveit=yes
17061         break
17062       fi
17063     done
17064     if test -z "$haveit"; then
17065       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17066     fi
17067   done
17068
17069
17070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17071 $as_echo_n "checking for iconv... " >&6; }
17072 if test "${am_cv_func_iconv+set}" = set; then :
17073   $as_echo_n "(cached) " >&6
17074 else
17075
17076     am_cv_func_iconv="no, consider installing GNU libiconv"
17077     am_cv_lib_iconv=no
17078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h.  */
17080 #include <stdlib.h>
17081 #include <iconv.h>
17082 int
17083 main ()
17084 {
17085 iconv_t cd = iconv_open("","");
17086        iconv(cd,NULL,NULL,NULL,NULL);
17087        iconv_close(cd);
17088   ;
17089   return 0;
17090 }
17091 _ACEOF
17092 if ac_fn_c_try_link "$LINENO"; then :
17093   am_cv_func_iconv=yes
17094 fi
17095 rm -f core conftest.err conftest.$ac_objext \
17096     conftest$ac_exeext conftest.$ac_ext
17097     if test "$am_cv_func_iconv" != yes; then
17098       am_save_LIBS="$LIBS"
17099       LIBS="$LIBS $LIBICONV"
17100       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h.  */
17102 #include <stdlib.h>
17103 #include <iconv.h>
17104 int
17105 main ()
17106 {
17107 iconv_t cd = iconv_open("","");
17108          iconv(cd,NULL,NULL,NULL,NULL);
17109          iconv_close(cd);
17110   ;
17111   return 0;
17112 }
17113 _ACEOF
17114 if ac_fn_c_try_link "$LINENO"; then :
17115   am_cv_lib_iconv=yes
17116         am_cv_func_iconv=yes
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext \
17119     conftest$ac_exeext conftest.$ac_ext
17120       LIBS="$am_save_LIBS"
17121     fi
17122
17123 fi
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17125 $as_echo "$am_cv_func_iconv" >&6; }
17126   if test "$am_cv_func_iconv" = yes; then
17127
17128 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17129
17130   fi
17131   if test "$am_cv_lib_iconv" = yes; then
17132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17133 $as_echo_n "checking how to link with libiconv... " >&6; }
17134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17135 $as_echo "$LIBICONV" >&6; }
17136   else
17137             CPPFLAGS="$am_save_CPPFLAGS"
17138     LIBICONV=
17139     LTLIBICONV=
17140   fi
17141
17142
17143
17144
17145
17146
17147     use_additional=yes
17148
17149   acl_save_prefix="$prefix"
17150   prefix="$acl_final_prefix"
17151   acl_save_exec_prefix="$exec_prefix"
17152   exec_prefix="$acl_final_exec_prefix"
17153
17154     eval additional_includedir=\"$includedir\"
17155     eval additional_libdir=\"$libdir\"
17156
17157   exec_prefix="$acl_save_exec_prefix"
17158   prefix="$acl_save_prefix"
17159
17160
17161 # Check whether --with-libintl-prefix was given.
17162 if test "${with_libintl_prefix+set}" = set; then :
17163   withval=$with_libintl_prefix;
17164     if test "X$withval" = "Xno"; then
17165       use_additional=no
17166     else
17167       if test "X$withval" = "X"; then
17168
17169   acl_save_prefix="$prefix"
17170   prefix="$acl_final_prefix"
17171   acl_save_exec_prefix="$exec_prefix"
17172   exec_prefix="$acl_final_exec_prefix"
17173
17174           eval additional_includedir=\"$includedir\"
17175           eval additional_libdir=\"$libdir\"
17176
17177   exec_prefix="$acl_save_exec_prefix"
17178   prefix="$acl_save_prefix"
17179
17180       else
17181         additional_includedir="$withval/include"
17182         additional_libdir="$withval/lib"
17183       fi
17184     fi
17185
17186 fi
17187
17188       LIBINTL=
17189   LTLIBINTL=
17190   INCINTL=
17191   rpathdirs=
17192   ltrpathdirs=
17193   names_already_handled=
17194   names_next_round='intl '
17195   while test -n "$names_next_round"; do
17196     names_this_round="$names_next_round"
17197     names_next_round=
17198     for name in $names_this_round; do
17199       already_handled=
17200       for n in $names_already_handled; do
17201         if test "$n" = "$name"; then
17202           already_handled=yes
17203           break
17204         fi
17205       done
17206       if test -z "$already_handled"; then
17207         names_already_handled="$names_already_handled $name"
17208                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17209         eval value=\"\$HAVE_LIB$uppername\"
17210         if test -n "$value"; then
17211           if test "$value" = yes; then
17212             eval value=\"\$LIB$uppername\"
17213             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17214             eval value=\"\$LTLIB$uppername\"
17215             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17216           else
17217                                     :
17218           fi
17219         else
17220                               found_dir=
17221           found_la=
17222           found_so=
17223           found_a=
17224           if test $use_additional = yes; then
17225             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17226               found_dir="$additional_libdir"
17227               found_so="$additional_libdir/lib$name.$shlibext"
17228               if test -f "$additional_libdir/lib$name.la"; then
17229                 found_la="$additional_libdir/lib$name.la"
17230               fi
17231             else
17232               if test -f "$additional_libdir/lib$name.$libext"; then
17233                 found_dir="$additional_libdir"
17234                 found_a="$additional_libdir/lib$name.$libext"
17235                 if test -f "$additional_libdir/lib$name.la"; then
17236                   found_la="$additional_libdir/lib$name.la"
17237                 fi
17238               fi
17239             fi
17240           fi
17241           if test "X$found_dir" = "X"; then
17242             for x in $LDFLAGS $LTLIBINTL; do
17243
17244   acl_save_prefix="$prefix"
17245   prefix="$acl_final_prefix"
17246   acl_save_exec_prefix="$exec_prefix"
17247   exec_prefix="$acl_final_exec_prefix"
17248   eval x=\"$x\"
17249   exec_prefix="$acl_save_exec_prefix"
17250   prefix="$acl_save_prefix"
17251
17252               case "$x" in
17253                 -L*)
17254                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17255                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17256                     found_dir="$dir"
17257                     found_so="$dir/lib$name.$shlibext"
17258                     if test -f "$dir/lib$name.la"; then
17259                       found_la="$dir/lib$name.la"
17260                     fi
17261                   else
17262                     if test -f "$dir/lib$name.$libext"; then
17263                       found_dir="$dir"
17264                       found_a="$dir/lib$name.$libext"
17265                       if test -f "$dir/lib$name.la"; then
17266                         found_la="$dir/lib$name.la"
17267                       fi
17268                     fi
17269                   fi
17270                   ;;
17271               esac
17272               if test "X$found_dir" != "X"; then
17273                 break
17274               fi
17275             done
17276           fi
17277           if test "X$found_dir" != "X"; then
17278                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17279             if test "X$found_so" != "X"; then
17280                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17281                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17282               else
17283                                                                                 haveit=
17284                 for x in $ltrpathdirs; do
17285                   if test "X$x" = "X$found_dir"; then
17286                     haveit=yes
17287                     break
17288                   fi
17289                 done
17290                 if test -z "$haveit"; then
17291                   ltrpathdirs="$ltrpathdirs $found_dir"
17292                 fi
17293                                 if test "$hardcode_direct" = yes; then
17294                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17295                 else
17296                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17297                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17298                                                             haveit=
17299                     for x in $rpathdirs; do
17300                       if test "X$x" = "X$found_dir"; then
17301                         haveit=yes
17302                         break
17303                       fi
17304                     done
17305                     if test -z "$haveit"; then
17306                       rpathdirs="$rpathdirs $found_dir"
17307                     fi
17308                   else
17309                                                                                 haveit=
17310                     for x in $LDFLAGS $LIBINTL; do
17311
17312   acl_save_prefix="$prefix"
17313   prefix="$acl_final_prefix"
17314   acl_save_exec_prefix="$exec_prefix"
17315   exec_prefix="$acl_final_exec_prefix"
17316   eval x=\"$x\"
17317   exec_prefix="$acl_save_exec_prefix"
17318   prefix="$acl_save_prefix"
17319
17320                       if test "X$x" = "X-L$found_dir"; then
17321                         haveit=yes
17322                         break
17323                       fi
17324                     done
17325                     if test -z "$haveit"; then
17326                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17327                     fi
17328                     if test "$hardcode_minus_L" != no; then
17329                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17330                     else
17331                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17332                     fi
17333                   fi
17334                 fi
17335               fi
17336             else
17337               if test "X$found_a" != "X"; then
17338                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17339               else
17340                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17341               fi
17342             fi
17343                         additional_includedir=
17344             case "$found_dir" in
17345               */lib | */lib/)
17346                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17347                 additional_includedir="$basedir/include"
17348                 ;;
17349             esac
17350             if test "X$additional_includedir" != "X"; then
17351                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17352                 haveit=
17353                 if test "X$additional_includedir" = "X/usr/local/include"; then
17354                   if test -n "$GCC"; then
17355                     case $host_os in
17356                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17357                     esac
17358                   fi
17359                 fi
17360                 if test -z "$haveit"; then
17361                   for x in $CPPFLAGS $INCINTL; do
17362
17363   acl_save_prefix="$prefix"
17364   prefix="$acl_final_prefix"
17365   acl_save_exec_prefix="$exec_prefix"
17366   exec_prefix="$acl_final_exec_prefix"
17367   eval x=\"$x\"
17368   exec_prefix="$acl_save_exec_prefix"
17369   prefix="$acl_save_prefix"
17370
17371                     if test "X$x" = "X-I$additional_includedir"; then
17372                       haveit=yes
17373                       break
17374                     fi
17375                   done
17376                   if test -z "$haveit"; then
17377                     if test -d "$additional_includedir"; then
17378                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17379                     fi
17380                   fi
17381                 fi
17382               fi
17383             fi
17384                         if test -n "$found_la"; then
17385                                                         save_libdir="$libdir"
17386               case "$found_la" in
17387                 */* | *\\*) . "$found_la" ;;
17388                 *) . "./$found_la" ;;
17389               esac
17390               libdir="$save_libdir"
17391                             for dep in $dependency_libs; do
17392                 case "$dep" in
17393                   -L*)
17394                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17395                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17396                       haveit=
17397                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17398                         if test -n "$GCC"; then
17399                           case $host_os in
17400                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17401                           esac
17402                         fi
17403                       fi
17404                       if test -z "$haveit"; then
17405                         haveit=
17406                         for x in $LDFLAGS $LIBINTL; do
17407
17408   acl_save_prefix="$prefix"
17409   prefix="$acl_final_prefix"
17410   acl_save_exec_prefix="$exec_prefix"
17411   exec_prefix="$acl_final_exec_prefix"
17412   eval x=\"$x\"
17413   exec_prefix="$acl_save_exec_prefix"
17414   prefix="$acl_save_prefix"
17415
17416                           if test "X$x" = "X-L$additional_libdir"; then
17417                             haveit=yes
17418                             break
17419                           fi
17420                         done
17421                         if test -z "$haveit"; then
17422                           if test -d "$additional_libdir"; then
17423                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17424                           fi
17425                         fi
17426                         haveit=
17427                         for x in $LDFLAGS $LTLIBINTL; do
17428
17429   acl_save_prefix="$prefix"
17430   prefix="$acl_final_prefix"
17431   acl_save_exec_prefix="$exec_prefix"
17432   exec_prefix="$acl_final_exec_prefix"
17433   eval x=\"$x\"
17434   exec_prefix="$acl_save_exec_prefix"
17435   prefix="$acl_save_prefix"
17436
17437                           if test "X$x" = "X-L$additional_libdir"; then
17438                             haveit=yes
17439                             break
17440                           fi
17441                         done
17442                         if test -z "$haveit"; then
17443                           if test -d "$additional_libdir"; then
17444                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17445                           fi
17446                         fi
17447                       fi
17448                     fi
17449                     ;;
17450                   -R*)
17451                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17452                     if test "$enable_rpath" != no; then
17453                                                                   haveit=
17454                       for x in $rpathdirs; do
17455                         if test "X$x" = "X$dir"; then
17456                           haveit=yes
17457                           break
17458                         fi
17459                       done
17460                       if test -z "$haveit"; then
17461                         rpathdirs="$rpathdirs $dir"
17462                       fi
17463                                                                   haveit=
17464                       for x in $ltrpathdirs; do
17465                         if test "X$x" = "X$dir"; then
17466                           haveit=yes
17467                           break
17468                         fi
17469                       done
17470                       if test -z "$haveit"; then
17471                         ltrpathdirs="$ltrpathdirs $dir"
17472                       fi
17473                     fi
17474                     ;;
17475                   -l*)
17476                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17477                     ;;
17478                   *.la)
17479                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17480                     ;;
17481                   *)
17482                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17483                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17484                     ;;
17485                 esac
17486               done
17487             fi
17488           else
17489                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17490             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17491           fi
17492         fi
17493       fi
17494     done
17495   done
17496   if test "X$rpathdirs" != "X"; then
17497     if test -n "$hardcode_libdir_separator"; then
17498                         alldirs=
17499       for found_dir in $rpathdirs; do
17500         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17501       done
17502             acl_save_libdir="$libdir"
17503       libdir="$alldirs"
17504       eval flag=\"$hardcode_libdir_flag_spec\"
17505       libdir="$acl_save_libdir"
17506       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17507     else
17508             for found_dir in $rpathdirs; do
17509         acl_save_libdir="$libdir"
17510         libdir="$found_dir"
17511         eval flag=\"$hardcode_libdir_flag_spec\"
17512         libdir="$acl_save_libdir"
17513         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17514       done
17515     fi
17516   fi
17517   if test "X$ltrpathdirs" != "X"; then
17518             for found_dir in $ltrpathdirs; do
17519       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17520     done
17521   fi
17522
17523           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17524 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17525 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
17526   $as_echo_n "(cached) " >&6
17527 else
17528   gt_save_CPPFLAGS="$CPPFLAGS"
17529             CPPFLAGS="$CPPFLAGS $INCINTL"
17530             gt_save_LIBS="$LIBS"
17531             LIBS="$LIBS $LIBINTL"
17532                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533 /* end confdefs.h.  */
17534 #include <libintl.h>
17535 extern int _nl_msg_cat_cntr;
17536 extern
17537 #ifdef __cplusplus
17538 "C"
17539 #endif
17540 const char *_nl_expand_alias (const char *);
17541 int
17542 main ()
17543 {
17544 bindtextdomain ("", "");
17545 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17546   ;
17547   return 0;
17548 }
17549 _ACEOF
17550 if ac_fn_c_try_link "$LINENO"; then :
17551   gt_cv_func_gnugettext1_libintl=yes
17552 else
17553   gt_cv_func_gnugettext1_libintl=no
17554 fi
17555 rm -f core conftest.err conftest.$ac_objext \
17556     conftest$ac_exeext conftest.$ac_ext
17557                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17558               LIBS="$LIBS $LIBICONV"
17559               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560 /* end confdefs.h.  */
17561 #include <libintl.h>
17562 extern int _nl_msg_cat_cntr;
17563 extern
17564 #ifdef __cplusplus
17565 "C"
17566 #endif
17567 const char *_nl_expand_alias (const char *);
17568 int
17569 main ()
17570 {
17571 bindtextdomain ("", "");
17572 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17573   ;
17574   return 0;
17575 }
17576 _ACEOF
17577 if ac_fn_c_try_link "$LINENO"; then :
17578   LIBINTL="$LIBINTL $LIBICONV"
17579                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17580                 gt_cv_func_gnugettext1_libintl=yes
17581
17582 fi
17583 rm -f core conftest.err conftest.$ac_objext \
17584     conftest$ac_exeext conftest.$ac_ext
17585             fi
17586             CPPFLAGS="$gt_save_CPPFLAGS"
17587             LIBS="$gt_save_LIBS"
17588 fi
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17590 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17591         fi
17592
17593                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17594            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17595                 && test "$PACKAGE" != gettext-runtime \
17596                 && test "$PACKAGE" != gettext-tools; }; then
17597           gt_use_preinstalled_gnugettext=yes
17598         else
17599                     LIBINTL=
17600           LTLIBINTL=
17601           INCINTL=
17602         fi
17603
17604
17605
17606     if test -n "$INTL_MACOSX_LIBS"; then
17607       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17608          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17609                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17610         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17611       fi
17612     fi
17613
17614     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17615        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17616
17617 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17618
17619     else
17620       USE_NLS=no
17621     fi
17622   fi
17623
17624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17625 $as_echo_n "checking whether to use NLS... " >&6; }
17626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17627 $as_echo "$USE_NLS" >&6; }
17628   if test "$USE_NLS" = "yes"; then
17629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17630 $as_echo_n "checking where the gettext function comes from... " >&6; }
17631     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17632       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17633         gt_source="external libintl"
17634       else
17635         gt_source="libc"
17636       fi
17637     else
17638       gt_source="included intl directory"
17639     fi
17640     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17641 $as_echo "$gt_source" >&6; }
17642   fi
17643
17644   if test "$USE_NLS" = "yes"; then
17645
17646     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17647       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17649 $as_echo_n "checking how to link with libintl... " >&6; }
17650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17651 $as_echo "$LIBINTL" >&6; }
17652
17653   for element in $INCINTL; do
17654     haveit=
17655     for x in $CPPFLAGS; do
17656
17657   acl_save_prefix="$prefix"
17658   prefix="$acl_final_prefix"
17659   acl_save_exec_prefix="$exec_prefix"
17660   exec_prefix="$acl_final_exec_prefix"
17661   eval x=\"$x\"
17662   exec_prefix="$acl_save_exec_prefix"
17663   prefix="$acl_save_prefix"
17664
17665       if test "X$x" = "X$element"; then
17666         haveit=yes
17667         break
17668       fi
17669     done
17670     if test -z "$haveit"; then
17671       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17672     fi
17673   done
17674
17675       fi
17676
17677
17678 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17679
17680
17681 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17682
17683     fi
17684
17685         POSUB=po
17686   fi
17687
17688
17689
17690     INTLLIBS="$LIBINTL"
17691
17692
17693
17694
17695
17696
17697
17698 os_name=`uname -s 2>/dev/null`
17699 if test x${prefix} = xNONE ; then
17700    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17701       sysconfdir=/etc/bacula
17702    fi
17703
17704    if test `eval echo ${libdir}` = NONE/lib ; then
17705       case ${os_name} in
17706       Linux)
17707          os_processor=`uname -p 2>/dev/null`
17708          case ${os_processor} in
17709          x86_64)
17710             libdir=/usr/lib64
17711             ;;
17712          *)
17713             libdir=/usr/lib
17714             ;;
17715          esac
17716          ;;
17717       *)
17718          libdir=/usr/lib
17719          ;;
17720       esac
17721    fi
17722
17723    if test `eval echo ${includedir}` = NONE/include ; then
17724       includedir=/usr/include
17725    fi
17726
17727    if test `eval echo ${datarootdir}` = NONE/share ; then
17728       datarootdir=/usr/share
17729    fi
17730    prefix=
17731 fi
17732
17733 if test x${exec_prefix} = xNONE ; then
17734    exec_prefix=${prefix}
17735 fi
17736
17737 sysconfdir=`eval echo ${sysconfdir}`
17738 datarootdir=`eval echo ${datarootdir}`
17739 docdir=`eval echo ${docdir}`
17740 htmldir=`eval echo ${htmldir}`
17741 libdir=`eval echo ${libdir}`
17742 includedir=`eval echo ${includedir}`
17743 localedir=`eval echo ${datarootdir}/locale`
17744 cat >>confdefs.h <<_ACEOF
17745 #define SYSCONFDIR "$sysconfdir"
17746 _ACEOF
17747
17748 cat >>confdefs.h <<_ACEOF
17749 #define LOCALEDIR "$localedir"
17750 _ACEOF
17751
17752
17753 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17754    sbindir=${exec_prefix}/sbin
17755 fi
17756 sbindir=`eval echo ${sbindir}`
17757
17758 if test x$mandir = x'${prefix}/man' ; then
17759    mandir=/usr/share/man
17760 fi
17761
17762 if test x$htmldir = x${docdir} ; then
17763    htmldir=`eval echo ${docdir}bacula/html`
17764 fi
17765
17766 if test x$docdir = x'/usr/share/doc/' ; then
17767    docdir=`eval echo ${docdir}bacula`
17768 fi
17769
17770
17771 for ac_prog in msgfmt
17772 do
17773   # Extract the first word of "$ac_prog", so it can be a program name with args.
17774 set dummy $ac_prog; ac_word=$2
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17776 $as_echo_n "checking for $ac_word... " >&6; }
17777 if test "${ac_cv_path_MSGFMT+set}" = set; then :
17778   $as_echo_n "(cached) " >&6
17779 else
17780   case $MSGFMT in
17781   [\\/]* | ?:[\\/]*)
17782   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17783   ;;
17784   *)
17785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17786 for as_dir in $PATH
17787 do
17788   IFS=$as_save_IFS
17789   test -z "$as_dir" && as_dir=.
17790     for ac_exec_ext in '' $ac_executable_extensions; do
17791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17792     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17794     break 2
17795   fi
17796 done
17797   done
17798 IFS=$as_save_IFS
17799
17800   ;;
17801 esac
17802 fi
17803 MSGFMT=$ac_cv_path_MSGFMT
17804 if test -n "$MSGFMT"; then
17805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17806 $as_echo "$MSGFMT" >&6; }
17807 else
17808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17809 $as_echo "no" >&6; }
17810 fi
17811
17812
17813   test -n "$MSGFMT" && break
17814 done
17815 test -n "$MSGFMT" || MSGFMT="no"
17816
17817 if test "$MSGFMT" = "no"
17818 then
17819    echo 'msgfmt program not found, disabling NLS !'
17820    USE_NLS=no
17821    USE_INCLUDED_LIBINTL=no
17822 #else
17823
17824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17825 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17826 if test "${ac_cv_gnu_library_2+set}" = set; then :
17827   $as_echo_n "(cached) " >&6
17828 else
17829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830 /* end confdefs.h.  */
17831
17832 #include <features.h>
17833 #ifdef __GNU_LIBRARY__
17834  #if (__GLIBC__ >= 2)
17835   Lucky GNU user
17836  #endif
17837 #endif
17838
17839 _ACEOF
17840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17841   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17842   ac_cv_gnu_library_2=yes
17843 else
17844   ac_cv_gnu_library_2=no
17845 fi
17846 rm -f conftest*
17847
17848
17849
17850 fi
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17852 $as_echo "$ac_cv_gnu_library_2" >&6; }
17853
17854     GLIBC2="$ac_cv_gnu_library_2"
17855
17856
17857 if test -n "$ac_tool_prefix"; then
17858   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17861 $as_echo_n "checking for $ac_word... " >&6; }
17862 if test "${ac_cv_prog_RANLIB+set}" = set; then :
17863   $as_echo_n "(cached) " >&6
17864 else
17865   if test -n "$RANLIB"; then
17866   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17867 else
17868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17869 for as_dir in $PATH
17870 do
17871   IFS=$as_save_IFS
17872   test -z "$as_dir" && as_dir=.
17873     for ac_exec_ext in '' $ac_executable_extensions; do
17874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17875     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17877     break 2
17878   fi
17879 done
17880   done
17881 IFS=$as_save_IFS
17882
17883 fi
17884 fi
17885 RANLIB=$ac_cv_prog_RANLIB
17886 if test -n "$RANLIB"; then
17887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17888 $as_echo "$RANLIB" >&6; }
17889 else
17890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891 $as_echo "no" >&6; }
17892 fi
17893
17894
17895 fi
17896 if test -z "$ac_cv_prog_RANLIB"; then
17897   ac_ct_RANLIB=$RANLIB
17898   # Extract the first word of "ranlib", so it can be a program name with args.
17899 set dummy ranlib; ac_word=$2
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17901 $as_echo_n "checking for $ac_word... " >&6; }
17902 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
17903   $as_echo_n "(cached) " >&6
17904 else
17905   if test -n "$ac_ct_RANLIB"; then
17906   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17907 else
17908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17909 for as_dir in $PATH
17910 do
17911   IFS=$as_save_IFS
17912   test -z "$as_dir" && as_dir=.
17913     for ac_exec_ext in '' $ac_executable_extensions; do
17914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17915     ac_cv_prog_ac_ct_RANLIB="ranlib"
17916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17917     break 2
17918   fi
17919 done
17920   done
17921 IFS=$as_save_IFS
17922
17923 fi
17924 fi
17925 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17926 if test -n "$ac_ct_RANLIB"; then
17927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17928 $as_echo "$ac_ct_RANLIB" >&6; }
17929 else
17930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17931 $as_echo "no" >&6; }
17932 fi
17933
17934   if test "x$ac_ct_RANLIB" = x; then
17935     RANLIB=":"
17936   else
17937     case $cross_compiling:$ac_tool_warned in
17938 yes:)
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17941 ac_tool_warned=yes ;;
17942 esac
17943     RANLIB=$ac_ct_RANLIB
17944   fi
17945 else
17946   RANLIB="$ac_cv_prog_RANLIB"
17947 fi
17948
17949
17950         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17951 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17952 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
17953   $as_echo_n "(cached) " >&6
17954 else
17955   ac_check_lib_save_LIBS=$LIBS
17956 LIBS="-lcposix  $LIBS"
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h.  */
17959
17960 /* Override any GCC internal prototype to avoid an error.
17961    Use char because int might match the return type of a GCC
17962    builtin and then its argument prototype would still apply.  */
17963 #ifdef __cplusplus
17964 extern "C"
17965 #endif
17966 char strerror ();
17967 int
17968 main ()
17969 {
17970 return strerror ();
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 if ac_fn_c_try_link "$LINENO"; then :
17976   ac_cv_lib_cposix_strerror=yes
17977 else
17978   ac_cv_lib_cposix_strerror=no
17979 fi
17980 rm -f core conftest.err conftest.$ac_objext \
17981     conftest$ac_exeext conftest.$ac_ext
17982 LIBS=$ac_check_lib_save_LIBS
17983 fi
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
17985 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
17986 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
17987   LIBS="$LIBS -lcposix"
17988 fi
17989
17990
17991
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17993 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17994 if test "${ac_cv_c_const+set}" = set; then :
17995   $as_echo_n "(cached) " >&6
17996 else
17997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h.  */
17999
18000 int
18001 main ()
18002 {
18003 /* FIXME: Include the comments suggested by Paul. */
18004 #ifndef __cplusplus
18005   /* Ultrix mips cc rejects this.  */
18006   typedef int charset[2];
18007   const charset cs;
18008   /* SunOS 4.1.1 cc rejects this.  */
18009   char const *const *pcpcc;
18010   char **ppc;
18011   /* NEC SVR4.0.2 mips cc rejects this.  */
18012   struct point {int x, y;};
18013   static struct point const zero = {0,0};
18014   /* AIX XL C 1.02.0.0 rejects this.
18015      It does not let you subtract one const X* pointer from another in
18016      an arm of an if-expression whose if-part is not a constant
18017      expression */
18018   const char *g = "string";
18019   pcpcc = &g + (g ? g-g : 0);
18020   /* HPUX 7.0 cc rejects these. */
18021   ++pcpcc;
18022   ppc = (char**) pcpcc;
18023   pcpcc = (char const *const *) ppc;
18024   { /* SCO 3.2v4 cc rejects this.  */
18025     char *t;
18026     char const *s = 0 ? (char *) 0 : (char const *) 0;
18027
18028     *t++ = 0;
18029     if (s) return 0;
18030   }
18031   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18032     int x[] = {25, 17};
18033     const int *foo = &x[0];
18034     ++foo;
18035   }
18036   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18037     typedef const int *iptr;
18038     iptr p = 0;
18039     ++p;
18040   }
18041   { /* AIX XL C 1.02.0.0 rejects this saying
18042        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18043     struct s { int j; const int *ap[3]; };
18044     struct s *b; b->j = 5;
18045   }
18046   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18047     const int foo = 10;
18048     if (!foo) return 0;
18049   }
18050   return !cs[0] && !zero.x;
18051 #endif
18052
18053   ;
18054   return 0;
18055 }
18056 _ACEOF
18057 if ac_fn_c_try_compile "$LINENO"; then :
18058   ac_cv_c_const=yes
18059 else
18060   ac_cv_c_const=no
18061 fi
18062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18063 fi
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18065 $as_echo "$ac_cv_c_const" >&6; }
18066 if test $ac_cv_c_const = no; then
18067
18068 $as_echo "#define const /**/" >>confdefs.h
18069
18070 fi
18071
18072
18073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18074 $as_echo_n "checking for signed... " >&6; }
18075 if test "${bh_cv_c_signed+set}" = set; then :
18076   $as_echo_n "(cached) " >&6
18077 else
18078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h.  */
18080
18081 int
18082 main ()
18083 {
18084 signed char x;
18085   ;
18086   return 0;
18087 }
18088 _ACEOF
18089 if ac_fn_c_try_compile "$LINENO"; then :
18090   bh_cv_c_signed=yes
18091 else
18092   bh_cv_c_signed=no
18093 fi
18094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095 fi
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18097 $as_echo "$bh_cv_c_signed" >&6; }
18098   if test $bh_cv_c_signed = no; then
18099
18100 $as_echo "#define signed /**/" >>confdefs.h
18101
18102   fi
18103
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18105 $as_echo_n "checking for inline... " >&6; }
18106 if test "${ac_cv_c_inline+set}" = set; then :
18107   $as_echo_n "(cached) " >&6
18108 else
18109   ac_cv_c_inline=no
18110 for ac_kw in inline __inline__ __inline; do
18111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112 /* end confdefs.h.  */
18113 #ifndef __cplusplus
18114 typedef int foo_t;
18115 static $ac_kw foo_t static_foo () {return 0; }
18116 $ac_kw foo_t foo () {return 0; }
18117 #endif
18118
18119 _ACEOF
18120 if ac_fn_c_try_compile "$LINENO"; then :
18121   ac_cv_c_inline=$ac_kw
18122 fi
18123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18124   test "$ac_cv_c_inline" != no && break
18125 done
18126
18127 fi
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18129 $as_echo "$ac_cv_c_inline" >&6; }
18130
18131 case $ac_cv_c_inline in
18132   inline | yes) ;;
18133   *)
18134     case $ac_cv_c_inline in
18135       no) ac_val=;;
18136       *) ac_val=$ac_cv_c_inline;;
18137     esac
18138     cat >>confdefs.h <<_ACEOF
18139 #ifndef __cplusplus
18140 #define inline $ac_val
18141 #endif
18142 _ACEOF
18143     ;;
18144 esac
18145
18146 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18147 if test "x$ac_cv_type_off_t" = x""yes; then :
18148
18149 else
18150
18151 cat >>confdefs.h <<_ACEOF
18152 #define off_t long int
18153 _ACEOF
18154
18155 fi
18156
18157 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18158 if test "x$ac_cv_type_size_t" = x""yes; then :
18159
18160 else
18161
18162 cat >>confdefs.h <<_ACEOF
18163 #define size_t unsigned int
18164 _ACEOF
18165
18166 fi
18167
18168
18169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18170 $as_echo_n "checking for long long... " >&6; }
18171 if test "${ac_cv_type_long_long+set}" = set; then :
18172   $as_echo_n "(cached) " >&6
18173 else
18174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175 /* end confdefs.h.  */
18176 long long ll = 1LL; int i = 63;
18177 int
18178 main ()
18179 {
18180 long long llmax = (long long) -1;
18181      return ll << i | ll >> i | llmax / ll | llmax % ll;
18182   ;
18183   return 0;
18184 }
18185 _ACEOF
18186 if ac_fn_c_try_link "$LINENO"; then :
18187   ac_cv_type_long_long=yes
18188 else
18189   ac_cv_type_long_long=no
18190 fi
18191 rm -f core conftest.err conftest.$ac_objext \
18192     conftest$ac_exeext conftest.$ac_ext
18193 fi
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18195 $as_echo "$ac_cv_type_long_long" >&6; }
18196   if test $ac_cv_type_long_long = yes; then
18197
18198 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18199
18200   fi
18201
18202
18203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18204 $as_echo_n "checking for long double... " >&6; }
18205 if test "${gt_cv_c_long_double+set}" = set; then :
18206   $as_echo_n "(cached) " >&6
18207 else
18208   if test "$GCC" = yes; then
18209        gt_cv_c_long_double=yes
18210      else
18211        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h.  */
18213
18214          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18215          long double foo = 0.0;
18216          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18217          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18218
18219 int
18220 main ()
18221 {
18222
18223   ;
18224   return 0;
18225 }
18226 _ACEOF
18227 if ac_fn_c_try_compile "$LINENO"; then :
18228   gt_cv_c_long_double=yes
18229 else
18230   gt_cv_c_long_double=no
18231 fi
18232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18233      fi
18234 fi
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18236 $as_echo "$gt_cv_c_long_double" >&6; }
18237   if test $gt_cv_c_long_double = yes; then
18238
18239 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18240
18241   fi
18242
18243
18244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18245 $as_echo_n "checking for wchar_t... " >&6; }
18246 if test "${gt_cv_c_wchar_t+set}" = set; then :
18247   $as_echo_n "(cached) " >&6
18248 else
18249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18250 /* end confdefs.h.  */
18251 #include <stddef.h>
18252        wchar_t foo = (wchar_t)'\0';
18253 int
18254 main ()
18255 {
18256
18257   ;
18258   return 0;
18259 }
18260 _ACEOF
18261 if ac_fn_c_try_compile "$LINENO"; then :
18262   gt_cv_c_wchar_t=yes
18263 else
18264   gt_cv_c_wchar_t=no
18265 fi
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18267 fi
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18269 $as_echo "$gt_cv_c_wchar_t" >&6; }
18270   if test $gt_cv_c_wchar_t = yes; then
18271
18272 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18273
18274   fi
18275
18276
18277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18278 $as_echo_n "checking for wint_t... " >&6; }
18279 if test "${gt_cv_c_wint_t+set}" = set; then :
18280   $as_echo_n "(cached) " >&6
18281 else
18282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h.  */
18284 #include <wchar.h>
18285        wint_t foo = (wchar_t)'\0';
18286 int
18287 main ()
18288 {
18289
18290   ;
18291   return 0;
18292 }
18293 _ACEOF
18294 if ac_fn_c_try_compile "$LINENO"; then :
18295   gt_cv_c_wint_t=yes
18296 else
18297   gt_cv_c_wint_t=no
18298 fi
18299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18300 fi
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18302 $as_echo "$gt_cv_c_wint_t" >&6; }
18303   if test $gt_cv_c_wint_t = yes; then
18304
18305 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18306
18307   fi
18308
18309
18310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18311 $as_echo_n "checking for inttypes.h... " >&6; }
18312 if test "${gl_cv_header_inttypes_h+set}" = set; then :
18313   $as_echo_n "(cached) " >&6
18314 else
18315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18316 /* end confdefs.h.  */
18317 #include <sys/types.h>
18318 #include <inttypes.h>
18319 int
18320 main ()
18321 {
18322 uintmax_t i = (uintmax_t) -1;
18323   ;
18324   return 0;
18325 }
18326 _ACEOF
18327 if ac_fn_c_try_compile "$LINENO"; then :
18328   gl_cv_header_inttypes_h=yes
18329 else
18330   gl_cv_header_inttypes_h=no
18331 fi
18332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18333 fi
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18335 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18336   if test $gl_cv_header_inttypes_h = yes; then
18337
18338 cat >>confdefs.h <<_ACEOF
18339 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18340 _ACEOF
18341
18342   fi
18343
18344
18345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18346 $as_echo_n "checking for stdint.h... " >&6; }
18347 if test "${gl_cv_header_stdint_h+set}" = set; then :
18348   $as_echo_n "(cached) " >&6
18349 else
18350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351 /* end confdefs.h.  */
18352 #include <sys/types.h>
18353 #include <stdint.h>
18354 int
18355 main ()
18356 {
18357 uintmax_t i = (uintmax_t) -1;
18358   ;
18359   return 0;
18360 }
18361 _ACEOF
18362 if ac_fn_c_try_compile "$LINENO"; then :
18363   gl_cv_header_stdint_h=yes
18364 else
18365   gl_cv_header_stdint_h=no
18366 fi
18367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18368 fi
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18370 $as_echo "$gl_cv_header_stdint_h" >&6; }
18371   if test $gl_cv_header_stdint_h = yes; then
18372
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_STDINT_H_WITH_UINTMAX 1
18375 _ACEOF
18376
18377   fi
18378
18379
18380
18381
18382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18383 $as_echo_n "checking for intmax_t... " >&6; }
18384 if test "${gt_cv_c_intmax_t+set}" = set; then :
18385   $as_echo_n "(cached) " >&6
18386 else
18387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18388 /* end confdefs.h.  */
18389
18390 #include <stddef.h>
18391 #include <stdlib.h>
18392 #if HAVE_STDINT_H_WITH_UINTMAX
18393 #include <stdint.h>
18394 #endif
18395 #if HAVE_INTTYPES_H_WITH_UINTMAX
18396 #include <inttypes.h>
18397 #endif
18398
18399 int
18400 main ()
18401 {
18402 intmax_t x = -1;
18403   ;
18404   return 0;
18405 }
18406 _ACEOF
18407 if ac_fn_c_try_compile "$LINENO"; then :
18408   gt_cv_c_intmax_t=yes
18409 else
18410   gt_cv_c_intmax_t=no
18411 fi
18412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18413 fi
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18415 $as_echo "$gt_cv_c_intmax_t" >&6; }
18416   if test $gt_cv_c_intmax_t = yes; then
18417
18418 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18419
18420   fi
18421
18422
18423
18424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18425 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18426 if test "${gt_cv_func_printf_posix+set}" = set; then :
18427   $as_echo_n "(cached) " >&6
18428 else
18429
18430       if test "$cross_compiling" = yes; then :
18431
18432         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h.  */
18434
18435 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18436   notposix
18437 #endif
18438
18439 _ACEOF
18440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18441   $EGREP "notposix" >/dev/null 2>&1; then :
18442   gt_cv_func_printf_posix="guessing no"
18443 else
18444   gt_cv_func_printf_posix="guessing yes"
18445 fi
18446 rm -f conftest*
18447
18448
18449 else
18450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h.  */
18452
18453 #include <stdio.h>
18454 #include <string.h>
18455 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18456    dollar expansion (possibly an autoconf bug).  */
18457 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18458 static char buf[100];
18459 int main ()
18460 {
18461   sprintf (buf, format, 33, 55);
18462   return (strcmp (buf, "55 33") != 0);
18463 }
18464 _ACEOF
18465 if ac_fn_c_try_run "$LINENO"; then :
18466   gt_cv_func_printf_posix=yes
18467 else
18468   gt_cv_func_printf_posix=no
18469 fi
18470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18471   conftest.$ac_objext conftest.beam conftest.$ac_ext
18472 fi
18473
18474
18475 fi
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18477 $as_echo "$gt_cv_func_printf_posix" >&6; }
18478   case $gt_cv_func_printf_posix in
18479     *yes)
18480
18481 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18482
18483       ;;
18484   esac
18485
18486 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18487 # for constant arguments.  Useless!
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18489 $as_echo_n "checking for working alloca.h... " >&6; }
18490 if test "${ac_cv_working_alloca_h+set}" = set; then :
18491   $as_echo_n "(cached) " >&6
18492 else
18493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18494 /* end confdefs.h.  */
18495 #include <alloca.h>
18496 int
18497 main ()
18498 {
18499 char *p = (char *) alloca (2 * sizeof (int));
18500                           if (p) return 0;
18501   ;
18502   return 0;
18503 }
18504 _ACEOF
18505 if ac_fn_c_try_link "$LINENO"; then :
18506   ac_cv_working_alloca_h=yes
18507 else
18508   ac_cv_working_alloca_h=no
18509 fi
18510 rm -f core conftest.err conftest.$ac_objext \
18511     conftest$ac_exeext conftest.$ac_ext
18512 fi
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18514 $as_echo "$ac_cv_working_alloca_h" >&6; }
18515 if test $ac_cv_working_alloca_h = yes; then
18516
18517 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18518
18519 fi
18520
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18522 $as_echo_n "checking for alloca... " >&6; }
18523 if test "${ac_cv_func_alloca_works+set}" = set; then :
18524   $as_echo_n "(cached) " >&6
18525 else
18526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527 /* end confdefs.h.  */
18528 #ifdef __GNUC__
18529 # define alloca __builtin_alloca
18530 #else
18531 # ifdef _MSC_VER
18532 #  include <malloc.h>
18533 #  define alloca _alloca
18534 # else
18535 #  ifdef HAVE_ALLOCA_H
18536 #   include <alloca.h>
18537 #  else
18538 #   ifdef _AIX
18539  #pragma alloca
18540 #   else
18541 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18542 char *alloca ();
18543 #    endif
18544 #   endif
18545 #  endif
18546 # endif
18547 #endif
18548
18549 int
18550 main ()
18551 {
18552 char *p = (char *) alloca (1);
18553                                     if (p) return 0;
18554   ;
18555   return 0;
18556 }
18557 _ACEOF
18558 if ac_fn_c_try_link "$LINENO"; then :
18559   ac_cv_func_alloca_works=yes
18560 else
18561   ac_cv_func_alloca_works=no
18562 fi
18563 rm -f core conftest.err conftest.$ac_objext \
18564     conftest$ac_exeext conftest.$ac_ext
18565 fi
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18567 $as_echo "$ac_cv_func_alloca_works" >&6; }
18568
18569 if test $ac_cv_func_alloca_works = yes; then
18570
18571 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18572
18573 else
18574   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18575 # that cause trouble.  Some versions do not even contain alloca or
18576 # contain a buggy version.  If you still want to use their alloca,
18577 # use ar to extract alloca.o from them instead of compiling alloca.c.
18578
18579 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18580
18581 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18582
18583
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18585 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18586 if test "${ac_cv_os_cray+set}" = set; then :
18587   $as_echo_n "(cached) " >&6
18588 else
18589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h.  */
18591 #if defined CRAY && ! defined CRAY2
18592 webecray
18593 #else
18594 wenotbecray
18595 #endif
18596
18597 _ACEOF
18598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18599   $EGREP "webecray" >/dev/null 2>&1; then :
18600   ac_cv_os_cray=yes
18601 else
18602   ac_cv_os_cray=no
18603 fi
18604 rm -f conftest*
18605
18606 fi
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18608 $as_echo "$ac_cv_os_cray" >&6; }
18609 if test $ac_cv_os_cray = yes; then
18610   for ac_func in _getb67 GETB67 getb67; do
18611     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18612 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18613 eval as_val=\$$as_ac_var
18614    if test "x$as_val" = x""yes; then :
18615
18616 cat >>confdefs.h <<_ACEOF
18617 #define CRAY_STACKSEG_END $ac_func
18618 _ACEOF
18619
18620     break
18621 fi
18622
18623   done
18624 fi
18625
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18627 $as_echo_n "checking stack direction for C alloca... " >&6; }
18628 if test "${ac_cv_c_stack_direction+set}" = set; then :
18629   $as_echo_n "(cached) " >&6
18630 else
18631   if test "$cross_compiling" = yes; then :
18632   ac_cv_c_stack_direction=0
18633 else
18634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18635 /* end confdefs.h.  */
18636 $ac_includes_default
18637 int
18638 find_stack_direction ()
18639 {
18640   static char *addr = 0;
18641   auto char dummy;
18642   if (addr == 0)
18643     {
18644       addr = &dummy;
18645       return find_stack_direction ();
18646     }
18647   else
18648     return (&dummy > addr) ? 1 : -1;
18649 }
18650
18651 int
18652 main ()
18653 {
18654   return find_stack_direction () < 0;
18655 }
18656 _ACEOF
18657 if ac_fn_c_try_run "$LINENO"; then :
18658   ac_cv_c_stack_direction=1
18659 else
18660   ac_cv_c_stack_direction=-1
18661 fi
18662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18663   conftest.$ac_objext conftest.beam conftest.$ac_ext
18664 fi
18665
18666 fi
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18668 $as_echo "$ac_cv_c_stack_direction" >&6; }
18669 cat >>confdefs.h <<_ACEOF
18670 #define STACK_DIRECTION $ac_cv_c_stack_direction
18671 _ACEOF
18672
18673
18674 fi
18675
18676
18677
18678
18679   for ac_header in $ac_header_list
18680 do :
18681   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18682 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18683 "
18684 eval as_val=\$$as_ac_Header
18685    if test "x$as_val" = x""yes; then :
18686   cat >>confdefs.h <<_ACEOF
18687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18688 _ACEOF
18689
18690 fi
18691
18692 done
18693
18694
18695
18696
18697
18698
18699
18700
18701 for ac_func in getpagesize
18702 do :
18703   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18704 if test "x$ac_cv_func_getpagesize" = x""yes; then :
18705   cat >>confdefs.h <<_ACEOF
18706 #define HAVE_GETPAGESIZE 1
18707 _ACEOF
18708
18709 fi
18710 done
18711
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18713 $as_echo_n "checking for working mmap... " >&6; }
18714 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
18715   $as_echo_n "(cached) " >&6
18716 else
18717   if test "$cross_compiling" = yes; then :
18718   ac_cv_func_mmap_fixed_mapped=no
18719 else
18720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18721 /* end confdefs.h.  */
18722 $ac_includes_default
18723 /* malloc might have been renamed as rpl_malloc. */
18724 #undef malloc
18725
18726 /* Thanks to Mike Haertel and Jim Avera for this test.
18727    Here is a matrix of mmap possibilities:
18728         mmap private not fixed
18729         mmap private fixed at somewhere currently unmapped
18730         mmap private fixed at somewhere already mapped
18731         mmap shared not fixed
18732         mmap shared fixed at somewhere currently unmapped
18733         mmap shared fixed at somewhere already mapped
18734    For private mappings, we should verify that changes cannot be read()
18735    back from the file, nor mmap's back from the file at a different
18736    address.  (There have been systems where private was not correctly
18737    implemented like the infamous i386 svr4.0, and systems where the
18738    VM page cache was not coherent with the file system buffer cache
18739    like early versions of FreeBSD and possibly contemporary NetBSD.)
18740    For shared mappings, we should conversely verify that changes get
18741    propagated back to all the places they're supposed to be.
18742
18743    Grep wants private fixed already mapped.
18744    The main things grep needs to know about mmap are:
18745    * does it exist and is it safe to write into the mmap'd area
18746    * how to use it (BSD variants)  */
18747
18748 #include <fcntl.h>
18749 #include <sys/mman.h>
18750
18751 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18752 char *malloc ();
18753 #endif
18754
18755 /* This mess was copied from the GNU getpagesize.h.  */
18756 #ifndef HAVE_GETPAGESIZE
18757 # ifdef _SC_PAGESIZE
18758 #  define getpagesize() sysconf(_SC_PAGESIZE)
18759 # else /* no _SC_PAGESIZE */
18760 #  ifdef HAVE_SYS_PARAM_H
18761 #   include <sys/param.h>
18762 #   ifdef EXEC_PAGESIZE
18763 #    define getpagesize() EXEC_PAGESIZE
18764 #   else /* no EXEC_PAGESIZE */
18765 #    ifdef NBPG
18766 #     define getpagesize() NBPG * CLSIZE
18767 #     ifndef CLSIZE
18768 #      define CLSIZE 1
18769 #     endif /* no CLSIZE */
18770 #    else /* no NBPG */
18771 #     ifdef NBPC
18772 #      define getpagesize() NBPC
18773 #     else /* no NBPC */
18774 #      ifdef PAGESIZE
18775 #       define getpagesize() PAGESIZE
18776 #      endif /* PAGESIZE */
18777 #     endif /* no NBPC */
18778 #    endif /* no NBPG */
18779 #   endif /* no EXEC_PAGESIZE */
18780 #  else /* no HAVE_SYS_PARAM_H */
18781 #   define getpagesize() 8192   /* punt totally */
18782 #  endif /* no HAVE_SYS_PARAM_H */
18783 # endif /* no _SC_PAGESIZE */
18784
18785 #endif /* no HAVE_GETPAGESIZE */
18786
18787 int
18788 main ()
18789 {
18790   char *data, *data2, *data3;
18791   const char *cdata2;
18792   int i, pagesize;
18793   int fd, fd2;
18794
18795   pagesize = getpagesize ();
18796
18797   /* First, make a file with some known garbage in it. */
18798   data = (char *) malloc (pagesize);
18799   if (!data)
18800     return 1;
18801   for (i = 0; i < pagesize; ++i)
18802     *(data + i) = rand ();
18803   umask (0);
18804   fd = creat ("conftest.mmap", 0600);
18805   if (fd < 0)
18806     return 2;
18807   if (write (fd, data, pagesize) != pagesize)
18808     return 3;
18809   close (fd);
18810
18811   /* Next, check that the tail of a page is zero-filled.  File must have
18812      non-zero length, otherwise we risk SIGBUS for entire page.  */
18813   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18814   if (fd2 < 0)
18815     return 4;
18816   cdata2 = "";
18817   if (write (fd2, cdata2, 1) != 1)
18818     return 5;
18819   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18820   if (data2 == MAP_FAILED)
18821     return 6;
18822   for (i = 0; i < pagesize; ++i)
18823     if (*(data2 + i))
18824       return 7;
18825   close (fd2);
18826   if (munmap (data2, pagesize))
18827     return 8;
18828
18829   /* Next, try to mmap the file at a fixed address which already has
18830      something else allocated at it.  If we can, also make sure that
18831      we see the same garbage.  */
18832   fd = open ("conftest.mmap", O_RDWR);
18833   if (fd < 0)
18834     return 9;
18835   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18836                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18837     return 10;
18838   for (i = 0; i < pagesize; ++i)
18839     if (*(data + i) != *(data2 + i))
18840       return 11;
18841
18842   /* Finally, make sure that changes to the mapped area do not
18843      percolate back to the file as seen by read().  (This is a bug on
18844      some variants of i386 svr4.0.)  */
18845   for (i = 0; i < pagesize; ++i)
18846     *(data2 + i) = *(data2 + i) + 1;
18847   data3 = (char *) malloc (pagesize);
18848   if (!data3)
18849     return 12;
18850   if (read (fd, data3, pagesize) != pagesize)
18851     return 13;
18852   for (i = 0; i < pagesize; ++i)
18853     if (*(data + i) != *(data3 + i))
18854       return 14;
18855   close (fd);
18856   return 0;
18857 }
18858 _ACEOF
18859 if ac_fn_c_try_run "$LINENO"; then :
18860   ac_cv_func_mmap_fixed_mapped=yes
18861 else
18862   ac_cv_func_mmap_fixed_mapped=no
18863 fi
18864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18865   conftest.$ac_objext conftest.beam conftest.$ac_ext
18866 fi
18867
18868 fi
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18870 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18871 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18872
18873 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18874
18875 fi
18876 rm -f conftest.mmap conftest.txt
18877
18878
18879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18880 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18881 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
18882   $as_echo_n "(cached) " >&6
18883 else
18884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18885 /* end confdefs.h.  */
18886
18887 #include <features.h>
18888 #ifdef __GNU_LIBRARY__
18889  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18890   Lucky GNU user
18891  #endif
18892 #endif
18893
18894 _ACEOF
18895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18896   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18897   ac_cv_gnu_library_2_1=yes
18898 else
18899   ac_cv_gnu_library_2_1=no
18900 fi
18901 rm -f conftest*
18902
18903
18904
18905 fi
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18907 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18908
18909     GLIBC21="$ac_cv_gnu_library_2_1"
18910
18911
18912
18913
18914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18915 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18916 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
18917   $as_echo_n "(cached) " >&6
18918 else
18919
18920       if test "$cross_compiling" = yes; then :
18921
18922           # Guess based on the CPU.
18923           case "$host_cpu" in
18924             alpha* | i3456786 | m68k | s390*)
18925               gt_cv_int_divbyzero_sigfpe="guessing yes";;
18926             *)
18927               gt_cv_int_divbyzero_sigfpe="guessing no";;
18928           esac
18929
18930 else
18931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18932 /* end confdefs.h.  */
18933
18934 #include <stdlib.h>
18935 #include <signal.h>
18936
18937 static void
18938 #ifdef __cplusplus
18939 sigfpe_handler (int sig)
18940 #else
18941 sigfpe_handler (sig) int sig;
18942 #endif
18943 {
18944   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18945   exit (sig != SIGFPE);
18946 }
18947
18948 int x = 1;
18949 int y = 0;
18950 int z;
18951 int nan;
18952
18953 int main ()
18954 {
18955   signal (SIGFPE, sigfpe_handler);
18956 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18957 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18958   signal (SIGTRAP, sigfpe_handler);
18959 #endif
18960 /* Linux/SPARC yields signal SIGILL.  */
18961 #if defined (__sparc__) && defined (__linux__)
18962   signal (SIGILL, sigfpe_handler);
18963 #endif
18964
18965   z = x / y;
18966   nan = y / y;
18967   exit (1);
18968 }
18969
18970 _ACEOF
18971 if ac_fn_c_try_run "$LINENO"; then :
18972   gt_cv_int_divbyzero_sigfpe=yes
18973 else
18974   gt_cv_int_divbyzero_sigfpe=no
18975 fi
18976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18977   conftest.$ac_objext conftest.beam conftest.$ac_ext
18978 fi
18979
18980
18981 fi
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
18983 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
18984   case "$gt_cv_int_divbyzero_sigfpe" in
18985     *yes) value=1;;
18986     *) value=0;;
18987   esac
18988
18989 cat >>confdefs.h <<_ACEOF
18990 #define INTDIV0_RAISES_SIGFPE $value
18991 _ACEOF
18992
18993
18994
18995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
18996 $as_echo_n "checking for unsigned long long... " >&6; }
18997 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
18998   $as_echo_n "(cached) " >&6
18999 else
19000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h.  */
19002 unsigned long long ull = 1ULL; int i = 63;
19003 int
19004 main ()
19005 {
19006 unsigned long long ullmax = (unsigned long long) -1;
19007      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19008   ;
19009   return 0;
19010 }
19011 _ACEOF
19012 if ac_fn_c_try_link "$LINENO"; then :
19013   ac_cv_type_unsigned_long_long=yes
19014 else
19015   ac_cv_type_unsigned_long_long=no
19016 fi
19017 rm -f core conftest.err conftest.$ac_objext \
19018     conftest$ac_exeext conftest.$ac_ext
19019 fi
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19021 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19022   if test $ac_cv_type_unsigned_long_long = yes; then
19023
19024 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19025
19026   fi
19027
19028
19029
19030
19031   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19032
19033     test $ac_cv_type_unsigned_long_long = yes \
19034       && ac_type='unsigned long long' \
19035       || ac_type='unsigned long'
19036
19037 cat >>confdefs.h <<_ACEOF
19038 #define uintmax_t $ac_type
19039 _ACEOF
19040
19041   else
19042
19043 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19044
19045   fi
19046
19047
19048   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19049 $as_echo_n "checking for inttypes.h... " >&6; }
19050 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19051   $as_echo_n "(cached) " >&6
19052 else
19053
19054     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19055 /* end confdefs.h.  */
19056 #include <sys/types.h>
19057 #include <inttypes.h>
19058 int
19059 main ()
19060 {
19061
19062   ;
19063   return 0;
19064 }
19065 _ACEOF
19066 if ac_fn_c_try_compile "$LINENO"; then :
19067   gt_cv_header_inttypes_h=yes
19068 else
19069   gt_cv_header_inttypes_h=no
19070 fi
19071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19072
19073 fi
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19075 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19076   if test $gt_cv_header_inttypes_h = yes; then
19077
19078 cat >>confdefs.h <<_ACEOF
19079 #define HAVE_INTTYPES_H 1
19080 _ACEOF
19081
19082   fi
19083
19084
19085
19086   if test $gt_cv_header_inttypes_h = yes; then
19087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19088 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19089 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19090   $as_echo_n "(cached) " >&6
19091 else
19092
19093         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19094 /* end confdefs.h.  */
19095 #include <inttypes.h>
19096 #ifdef PRId32
19097 char *p = PRId32;
19098 #endif
19099
19100 int
19101 main ()
19102 {
19103
19104   ;
19105   return 0;
19106 }
19107 _ACEOF
19108 if ac_fn_c_try_compile "$LINENO"; then :
19109   gt_cv_inttypes_pri_broken=no
19110 else
19111   gt_cv_inttypes_pri_broken=yes
19112 fi
19113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19114
19115 fi
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19117 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19118   fi
19119   if test "$gt_cv_inttypes_pri_broken" = yes; then
19120
19121 cat >>confdefs.h <<_ACEOF
19122 #define PRI_MACROS_BROKEN 1
19123 _ACEOF
19124
19125   fi
19126
19127
19128   for ac_header in stdint.h
19129 do :
19130   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19131 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19132   cat >>confdefs.h <<_ACEOF
19133 #define HAVE_STDINT_H 1
19134 _ACEOF
19135
19136 fi
19137
19138 done
19139
19140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19141 $as_echo_n "checking for SIZE_MAX... " >&6; }
19142   result=
19143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19144 /* end confdefs.h.  */
19145
19146 #include <limits.h>
19147 #if HAVE_STDINT_H
19148 #include <stdint.h>
19149 #endif
19150 #ifdef SIZE_MAX
19151 Found it
19152 #endif
19153
19154 _ACEOF
19155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19156   $EGREP "Found it" >/dev/null 2>&1; then :
19157   result=yes
19158 fi
19159 rm -f conftest*
19160
19161   if test -z "$result"; then
19162                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19163
19164 else
19165   result=?
19166 fi
19167
19168
19169     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19170
19171 else
19172   result=?
19173 fi
19174
19175
19176     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19177
19178 else
19179   result=?
19180 fi
19181
19182
19183     if test "$fits_in_uint" = 1; then
19184                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h.  */
19186 #include <stddef.h>
19187         extern size_t foo;
19188         extern unsigned long foo;
19189
19190 int
19191 main ()
19192 {
19193
19194   ;
19195   return 0;
19196 }
19197 _ACEOF
19198 if ac_fn_c_try_compile "$LINENO"; then :
19199   fits_in_uint=0
19200 fi
19201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19202     fi
19203     if test -z "$result"; then
19204       if test "$fits_in_uint" = 1; then
19205         result="$res_hi$res_lo"U
19206       else
19207         result="$res_hi$res_lo"UL
19208       fi
19209     else
19210             result='~(size_t)0'
19211     fi
19212   fi
19213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19214 $as_echo "$result" >&6; }
19215   if test "$result" != yes; then
19216
19217 cat >>confdefs.h <<_ACEOF
19218 #define SIZE_MAX $result
19219 _ACEOF
19220
19221   fi
19222
19223
19224
19225
19226   for ac_header in stdint.h
19227 do :
19228   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19229 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19230   cat >>confdefs.h <<_ACEOF
19231 #define HAVE_STDINT_H 1
19232 _ACEOF
19233
19234 fi
19235
19236 done
19237
19238
19239
19240
19241
19242
19243
19244
19245   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19246 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
19247
19248 else
19249
19250 $as_echo "#define ptrdiff_t long" >>confdefs.h
19251
19252
19253 fi
19254
19255   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19256 stdlib.h string.h unistd.h sys/param.h
19257 do :
19258   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19259 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19260 eval as_val=\$$as_ac_Header
19261    if test "x$as_val" = x""yes; then :
19262   cat >>confdefs.h <<_ACEOF
19263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19264 _ACEOF
19265
19266 fi
19267
19268 done
19269
19270   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19271 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19272 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19273 __fsetlocking
19274 do :
19275   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19276 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19277 eval as_val=\$$as_ac_var
19278    if test "x$as_val" = x""yes; then :
19279   cat >>confdefs.h <<_ACEOF
19280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19281 _ACEOF
19282
19283 fi
19284 done
19285
19286
19287
19288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19289 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19290 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
19291   $as_echo_n "(cached) " >&6
19292 else
19293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h.  */
19295 #include <stdio.h>
19296 int
19297 main ()
19298 {
19299
19300 #ifndef _snprintf
19301   char *p = (char *) _snprintf;
19302 #endif
19303
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 if ac_fn_c_try_compile "$LINENO"; then :
19309   ac_cv_have_decl__snprintf=yes
19310 else
19311   ac_cv_have_decl__snprintf=no
19312 fi
19313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314 fi
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19316 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19317   if test $ac_cv_have_decl__snprintf = yes; then
19318     gt_value=1
19319   else
19320     gt_value=0
19321   fi
19322
19323 cat >>confdefs.h <<_ACEOF
19324 #define HAVE_DECL__SNPRINTF $gt_value
19325 _ACEOF
19326
19327
19328
19329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19330 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19331 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
19332   $as_echo_n "(cached) " >&6
19333 else
19334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h.  */
19336 #include <stdio.h>
19337 int
19338 main ()
19339 {
19340
19341 #ifndef _snwprintf
19342   char *p = (char *) _snwprintf;
19343 #endif
19344
19345   ;
19346   return 0;
19347 }
19348 _ACEOF
19349 if ac_fn_c_try_compile "$LINENO"; then :
19350   ac_cv_have_decl__snwprintf=yes
19351 else
19352   ac_cv_have_decl__snwprintf=no
19353 fi
19354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19355 fi
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19357 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19358   if test $ac_cv_have_decl__snwprintf = yes; then
19359     gt_value=1
19360   else
19361     gt_value=0
19362   fi
19363
19364 cat >>confdefs.h <<_ACEOF
19365 #define HAVE_DECL__SNWPRINTF $gt_value
19366 _ACEOF
19367
19368
19369
19370
19371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19372 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19373 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
19374   $as_echo_n "(cached) " >&6
19375 else
19376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h.  */
19378 #include <stdio.h>
19379 int
19380 main ()
19381 {
19382
19383 #ifndef feof_unlocked
19384   char *p = (char *) feof_unlocked;
19385 #endif
19386
19387   ;
19388   return 0;
19389 }
19390 _ACEOF
19391 if ac_fn_c_try_compile "$LINENO"; then :
19392   ac_cv_have_decl_feof_unlocked=yes
19393 else
19394   ac_cv_have_decl_feof_unlocked=no
19395 fi
19396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19397 fi
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19399 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19400   if test $ac_cv_have_decl_feof_unlocked = yes; then
19401     gt_value=1
19402   else
19403     gt_value=0
19404   fi
19405
19406 cat >>confdefs.h <<_ACEOF
19407 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19408 _ACEOF
19409
19410
19411
19412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19413 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19414 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
19415   $as_echo_n "(cached) " >&6
19416 else
19417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19418 /* end confdefs.h.  */
19419 #include <stdio.h>
19420 int
19421 main ()
19422 {
19423
19424 #ifndef fgets_unlocked
19425   char *p = (char *) fgets_unlocked;
19426 #endif
19427
19428   ;
19429   return 0;
19430 }
19431 _ACEOF
19432 if ac_fn_c_try_compile "$LINENO"; then :
19433   ac_cv_have_decl_fgets_unlocked=yes
19434 else
19435   ac_cv_have_decl_fgets_unlocked=no
19436 fi
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438 fi
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19440 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19441   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19442     gt_value=1
19443   else
19444     gt_value=0
19445   fi
19446
19447 cat >>confdefs.h <<_ACEOF
19448 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19449 _ACEOF
19450
19451
19452
19453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19454 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19455 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
19456   $as_echo_n "(cached) " >&6
19457 else
19458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h.  */
19460 #include <stdio.h>
19461 int
19462 main ()
19463 {
19464
19465 #ifndef getc_unlocked
19466   char *p = (char *) getc_unlocked;
19467 #endif
19468
19469   ;
19470   return 0;
19471 }
19472 _ACEOF
19473 if ac_fn_c_try_compile "$LINENO"; then :
19474   ac_cv_have_decl_getc_unlocked=yes
19475 else
19476   ac_cv_have_decl_getc_unlocked=no
19477 fi
19478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19479 fi
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19481 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19482   if test $ac_cv_have_decl_getc_unlocked = yes; then
19483     gt_value=1
19484   else
19485     gt_value=0
19486   fi
19487
19488 cat >>confdefs.h <<_ACEOF
19489 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19490 _ACEOF
19491
19492
19493
19494   case $gt_cv_func_printf_posix in
19495     *yes) HAVE_POSIX_PRINTF=1 ;;
19496     *) HAVE_POSIX_PRINTF=0 ;;
19497   esac
19498
19499   if test "$ac_cv_func_asprintf" = yes; then
19500     HAVE_ASPRINTF=1
19501   else
19502     HAVE_ASPRINTF=0
19503   fi
19504
19505   if test "$ac_cv_func_snprintf" = yes; then
19506     HAVE_SNPRINTF=1
19507   else
19508     HAVE_SNPRINTF=0
19509   fi
19510
19511   if test "$ac_cv_func_wprintf" = yes; then
19512     HAVE_WPRINTF=1
19513   else
19514     HAVE_WPRINTF=0
19515   fi
19516
19517
19518
19519
19520
19521
19522
19523           am_save_CPPFLAGS="$CPPFLAGS"
19524
19525   for element in $INCICONV; do
19526     haveit=
19527     for x in $CPPFLAGS; do
19528
19529   acl_save_prefix="$prefix"
19530   prefix="$acl_final_prefix"
19531   acl_save_exec_prefix="$exec_prefix"
19532   exec_prefix="$acl_final_exec_prefix"
19533   eval x=\"$x\"
19534   exec_prefix="$acl_save_exec_prefix"
19535   prefix="$acl_save_prefix"
19536
19537       if test "X$x" = "X$element"; then
19538         haveit=yes
19539         break
19540       fi
19541     done
19542     if test -z "$haveit"; then
19543       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19544     fi
19545   done
19546
19547
19548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19549 $as_echo_n "checking for iconv... " >&6; }
19550 if test "${am_cv_func_iconv+set}" = set; then :
19551   $as_echo_n "(cached) " >&6
19552 else
19553
19554     am_cv_func_iconv="no, consider installing GNU libiconv"
19555     am_cv_lib_iconv=no
19556     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h.  */
19558 #include <stdlib.h>
19559 #include <iconv.h>
19560 int
19561 main ()
19562 {
19563 iconv_t cd = iconv_open("","");
19564        iconv(cd,NULL,NULL,NULL,NULL);
19565        iconv_close(cd);
19566   ;
19567   return 0;
19568 }
19569 _ACEOF
19570 if ac_fn_c_try_link "$LINENO"; then :
19571   am_cv_func_iconv=yes
19572 fi
19573 rm -f core conftest.err conftest.$ac_objext \
19574     conftest$ac_exeext conftest.$ac_ext
19575     if test "$am_cv_func_iconv" != yes; then
19576       am_save_LIBS="$LIBS"
19577       LIBS="$LIBS $LIBICONV"
19578       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579 /* end confdefs.h.  */
19580 #include <stdlib.h>
19581 #include <iconv.h>
19582 int
19583 main ()
19584 {
19585 iconv_t cd = iconv_open("","");
19586          iconv(cd,NULL,NULL,NULL,NULL);
19587          iconv_close(cd);
19588   ;
19589   return 0;
19590 }
19591 _ACEOF
19592 if ac_fn_c_try_link "$LINENO"; then :
19593   am_cv_lib_iconv=yes
19594         am_cv_func_iconv=yes
19595 fi
19596 rm -f core conftest.err conftest.$ac_objext \
19597     conftest$ac_exeext conftest.$ac_ext
19598       LIBS="$am_save_LIBS"
19599     fi
19600
19601 fi
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19603 $as_echo "$am_cv_func_iconv" >&6; }
19604   if test "$am_cv_func_iconv" = yes; then
19605
19606 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19607
19608   fi
19609   if test "$am_cv_lib_iconv" = yes; then
19610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19611 $as_echo_n "checking how to link with libiconv... " >&6; }
19612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19613 $as_echo "$LIBICONV" >&6; }
19614   else
19615             CPPFLAGS="$am_save_CPPFLAGS"
19616     LIBICONV=
19617     LTLIBICONV=
19618   fi
19619
19620
19621
19622   if test "$am_cv_func_iconv" = yes; then
19623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19624 $as_echo_n "checking for iconv declaration... " >&6; }
19625     if test "${am_cv_proto_iconv+set}" = set; then :
19626   $as_echo_n "(cached) " >&6
19627 else
19628
19629       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19630 /* end confdefs.h.  */
19631
19632 #include <stdlib.h>
19633 #include <iconv.h>
19634 extern
19635 #ifdef __cplusplus
19636 "C"
19637 #endif
19638 #if defined(__STDC__) || defined(__cplusplus)
19639 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19640 #else
19641 size_t iconv();
19642 #endif
19643
19644 int
19645 main ()
19646 {
19647
19648   ;
19649   return 0;
19650 }
19651 _ACEOF
19652 if ac_fn_c_try_compile "$LINENO"; then :
19653   am_cv_proto_iconv_arg1=""
19654 else
19655   am_cv_proto_iconv_arg1="const"
19656 fi
19657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658       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);"
19659 fi
19660
19661     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19663          }$am_cv_proto_iconv" >&5
19664 $as_echo "${ac_t:-
19665          }$am_cv_proto_iconv" >&6; }
19666
19667 cat >>confdefs.h <<_ACEOF
19668 #define ICONV_CONST $am_cv_proto_iconv_arg1
19669 _ACEOF
19670
19671   fi
19672
19673
19674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19675 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19676 if test "${am_cv_langinfo_codeset+set}" = set; then :
19677   $as_echo_n "(cached) " >&6
19678 else
19679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h.  */
19681 #include <langinfo.h>
19682 int
19683 main ()
19684 {
19685 char* cs = nl_langinfo(CODESET);
19686   ;
19687   return 0;
19688 }
19689 _ACEOF
19690 if ac_fn_c_try_link "$LINENO"; then :
19691   am_cv_langinfo_codeset=yes
19692 else
19693   am_cv_langinfo_codeset=no
19694 fi
19695 rm -f core conftest.err conftest.$ac_objext \
19696     conftest$ac_exeext conftest.$ac_ext
19697
19698 fi
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19700 $as_echo "$am_cv_langinfo_codeset" >&6; }
19701   if test $am_cv_langinfo_codeset = yes; then
19702
19703 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19704
19705   fi
19706
19707   if test $ac_cv_header_locale_h = yes; then
19708
19709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19710 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19711 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
19712   $as_echo_n "(cached) " >&6
19713 else
19714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h.  */
19716 #include <locale.h>
19717 int
19718 main ()
19719 {
19720 return LC_MESSAGES
19721   ;
19722   return 0;
19723 }
19724 _ACEOF
19725 if ac_fn_c_try_link "$LINENO"; then :
19726   gt_cv_val_LC_MESSAGES=yes
19727 else
19728   gt_cv_val_LC_MESSAGES=no
19729 fi
19730 rm -f core conftest.err conftest.$ac_objext \
19731     conftest$ac_exeext conftest.$ac_ext
19732 fi
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19734 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19735   if test $gt_cv_val_LC_MESSAGES = yes; then
19736
19737 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19738
19739   fi
19740
19741   fi
19742
19743   if test -n "$INTL_MACOSX_LIBS"; then
19744     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19745   fi
19746
19747                       for ac_prog in bison
19748 do
19749   # Extract the first word of "$ac_prog", so it can be a program name with args.
19750 set dummy $ac_prog; ac_word=$2
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19752 $as_echo_n "checking for $ac_word... " >&6; }
19753 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
19754   $as_echo_n "(cached) " >&6
19755 else
19756   if test -n "$INTLBISON"; then
19757   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19758 else
19759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19760 for as_dir in $PATH
19761 do
19762   IFS=$as_save_IFS
19763   test -z "$as_dir" && as_dir=.
19764     for ac_exec_ext in '' $ac_executable_extensions; do
19765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19766     ac_cv_prog_INTLBISON="$ac_prog"
19767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19768     break 2
19769   fi
19770 done
19771   done
19772 IFS=$as_save_IFS
19773
19774 fi
19775 fi
19776 INTLBISON=$ac_cv_prog_INTLBISON
19777 if test -n "$INTLBISON"; then
19778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19779 $as_echo "$INTLBISON" >&6; }
19780 else
19781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19782 $as_echo "no" >&6; }
19783 fi
19784
19785
19786   test -n "$INTLBISON" && break
19787 done
19788
19789   if test -z "$INTLBISON"; then
19790     ac_verc_fail=yes
19791   else
19792         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19793 $as_echo_n "checking version of bison... " >&6; }
19794     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19795     case $ac_prog_version in
19796       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19797       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19798          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19799       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19800     esac
19801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19802 $as_echo "$ac_prog_version" >&6; }
19803   fi
19804   if test $ac_verc_fail = yes; then
19805     INTLBISON=:
19806   fi
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19824 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19825 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
19826   $as_echo_n "(cached) " >&6
19827 else
19828   gt_save_CPPFLAGS="$CPPFLAGS"
19829      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19830      gt_save_LIBS="$LIBS"
19831      LIBS="$LIBS -framework CoreFoundation"
19832      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h.  */
19834 #include <CFPreferences.h>
19835 int
19836 main ()
19837 {
19838 CFPreferencesCopyAppValue(NULL, NULL)
19839   ;
19840   return 0;
19841 }
19842 _ACEOF
19843 if ac_fn_c_try_link "$LINENO"; then :
19844   gt_cv_func_CFPreferencesCopyAppValue=yes
19845 else
19846   gt_cv_func_CFPreferencesCopyAppValue=no
19847 fi
19848 rm -f core conftest.err conftest.$ac_objext \
19849     conftest$ac_exeext conftest.$ac_ext
19850      CPPFLAGS="$gt_save_CPPFLAGS"
19851      LIBS="$gt_save_LIBS"
19852 fi
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19854 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19855   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19856
19857 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19858
19859   fi
19860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19861 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19862 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
19863   $as_echo_n "(cached) " >&6
19864 else
19865   gt_save_CPPFLAGS="$CPPFLAGS"
19866      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19867      gt_save_LIBS="$LIBS"
19868      LIBS="$LIBS -framework CoreFoundation"
19869      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870 /* end confdefs.h.  */
19871 #include <CFLocale.h>
19872 int
19873 main ()
19874 {
19875 CFLocaleCopyCurrent();
19876   ;
19877   return 0;
19878 }
19879 _ACEOF
19880 if ac_fn_c_try_link "$LINENO"; then :
19881   gt_cv_func_CFLocaleCopyCurrent=yes
19882 else
19883   gt_cv_func_CFLocaleCopyCurrent=no
19884 fi
19885 rm -f core conftest.err conftest.$ac_objext \
19886     conftest$ac_exeext conftest.$ac_ext
19887      CPPFLAGS="$gt_save_CPPFLAGS"
19888      LIBS="$gt_save_LIBS"
19889 fi
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19891 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19892   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19893
19894 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19895
19896   fi
19897   INTL_MACOSX_LIBS=
19898   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19899     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19900   fi
19901
19902
19903
19904
19905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19906 $as_echo_n "checking whether NLS is requested... " >&6; }
19907     # Check whether --enable-nls was given.
19908 if test "${enable_nls+set}" = set; then :
19909   enableval=$enable_nls; USE_NLS=$enableval
19910 else
19911   USE_NLS=yes
19912 fi
19913
19914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19915 $as_echo "$USE_NLS" >&6; }
19916
19917
19918
19919
19920     BUILD_INCLUDED_LIBINTL=no
19921     USE_INCLUDED_LIBINTL=no
19922
19923   LIBINTL=
19924   LTLIBINTL=
19925   POSUB=
19926
19927     if test "$USE_NLS" = "yes"; then
19928     gt_use_preinstalled_gnugettext=no
19929
19930       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19931 $as_echo_n "checking whether included gettext is requested... " >&6; }
19932
19933 # Check whether --with-included-gettext was given.
19934 if test "${with_included_gettext+set}" = set; then :
19935   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19936 else
19937   nls_cv_force_use_gnu_gettext=no
19938 fi
19939
19940       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19941 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19942
19943       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19944       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19945
19946
19947
19948
19949
19950
19951         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19952 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19953 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
19954   $as_echo_n "(cached) " >&6
19955 else
19956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19957 /* end confdefs.h.  */
19958 #include <libintl.h>
19959 extern int _nl_msg_cat_cntr;
19960 extern int *_nl_domain_bindings;
19961 int
19962 main ()
19963 {
19964 bindtextdomain ("", "");
19965 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19966   ;
19967   return 0;
19968 }
19969 _ACEOF
19970 if ac_fn_c_try_link "$LINENO"; then :
19971   gt_cv_func_gnugettext1_libc=yes
19972 else
19973   gt_cv_func_gnugettext1_libc=no
19974 fi
19975 rm -f core conftest.err conftest.$ac_objext \
19976     conftest$ac_exeext conftest.$ac_ext
19977 fi
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19979 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19980
19981         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19982
19983
19984
19985     use_additional=yes
19986
19987   acl_save_prefix="$prefix"
19988   prefix="$acl_final_prefix"
19989   acl_save_exec_prefix="$exec_prefix"
19990   exec_prefix="$acl_final_exec_prefix"
19991
19992     eval additional_includedir=\"$includedir\"
19993     eval additional_libdir=\"$libdir\"
19994
19995   exec_prefix="$acl_save_exec_prefix"
19996   prefix="$acl_save_prefix"
19997
19998
19999 # Check whether --with-libintl-prefix was given.
20000 if test "${with_libintl_prefix+set}" = set; then :
20001   withval=$with_libintl_prefix;
20002     if test "X$withval" = "Xno"; then
20003       use_additional=no
20004     else
20005       if test "X$withval" = "X"; then
20006
20007   acl_save_prefix="$prefix"
20008   prefix="$acl_final_prefix"
20009   acl_save_exec_prefix="$exec_prefix"
20010   exec_prefix="$acl_final_exec_prefix"
20011
20012           eval additional_includedir=\"$includedir\"
20013           eval additional_libdir=\"$libdir\"
20014
20015   exec_prefix="$acl_save_exec_prefix"
20016   prefix="$acl_save_prefix"
20017
20018       else
20019         additional_includedir="$withval/include"
20020         additional_libdir="$withval/lib"
20021       fi
20022     fi
20023
20024 fi
20025
20026       LIBINTL=
20027   LTLIBINTL=
20028   INCINTL=
20029   rpathdirs=
20030   ltrpathdirs=
20031   names_already_handled=
20032   names_next_round='intl '
20033   while test -n "$names_next_round"; do
20034     names_this_round="$names_next_round"
20035     names_next_round=
20036     for name in $names_this_round; do
20037       already_handled=
20038       for n in $names_already_handled; do
20039         if test "$n" = "$name"; then
20040           already_handled=yes
20041           break
20042         fi
20043       done
20044       if test -z "$already_handled"; then
20045         names_already_handled="$names_already_handled $name"
20046                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20047         eval value=\"\$HAVE_LIB$uppername\"
20048         if test -n "$value"; then
20049           if test "$value" = yes; then
20050             eval value=\"\$LIB$uppername\"
20051             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20052             eval value=\"\$LTLIB$uppername\"
20053             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20054           else
20055                                     :
20056           fi
20057         else
20058                               found_dir=
20059           found_la=
20060           found_so=
20061           found_a=
20062           if test $use_additional = yes; then
20063             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20064               found_dir="$additional_libdir"
20065               found_so="$additional_libdir/lib$name.$shlibext"
20066               if test -f "$additional_libdir/lib$name.la"; then
20067                 found_la="$additional_libdir/lib$name.la"
20068               fi
20069             else
20070               if test -f "$additional_libdir/lib$name.$libext"; then
20071                 found_dir="$additional_libdir"
20072                 found_a="$additional_libdir/lib$name.$libext"
20073                 if test -f "$additional_libdir/lib$name.la"; then
20074                   found_la="$additional_libdir/lib$name.la"
20075                 fi
20076               fi
20077             fi
20078           fi
20079           if test "X$found_dir" = "X"; then
20080             for x in $LDFLAGS $LTLIBINTL; do
20081
20082   acl_save_prefix="$prefix"
20083   prefix="$acl_final_prefix"
20084   acl_save_exec_prefix="$exec_prefix"
20085   exec_prefix="$acl_final_exec_prefix"
20086   eval x=\"$x\"
20087   exec_prefix="$acl_save_exec_prefix"
20088   prefix="$acl_save_prefix"
20089
20090               case "$x" in
20091                 -L*)
20092                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20093                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20094                     found_dir="$dir"
20095                     found_so="$dir/lib$name.$shlibext"
20096                     if test -f "$dir/lib$name.la"; then
20097                       found_la="$dir/lib$name.la"
20098                     fi
20099                   else
20100                     if test -f "$dir/lib$name.$libext"; then
20101                       found_dir="$dir"
20102                       found_a="$dir/lib$name.$libext"
20103                       if test -f "$dir/lib$name.la"; then
20104                         found_la="$dir/lib$name.la"
20105                       fi
20106                     fi
20107                   fi
20108                   ;;
20109               esac
20110               if test "X$found_dir" != "X"; then
20111                 break
20112               fi
20113             done
20114           fi
20115           if test "X$found_dir" != "X"; then
20116                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20117             if test "X$found_so" != "X"; then
20118                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20119                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20120               else
20121                                                                                 haveit=
20122                 for x in $ltrpathdirs; do
20123                   if test "X$x" = "X$found_dir"; then
20124                     haveit=yes
20125                     break
20126                   fi
20127                 done
20128                 if test -z "$haveit"; then
20129                   ltrpathdirs="$ltrpathdirs $found_dir"
20130                 fi
20131                                 if test "$hardcode_direct" = yes; then
20132                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20133                 else
20134                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20135                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20136                                                             haveit=
20137                     for x in $rpathdirs; do
20138                       if test "X$x" = "X$found_dir"; then
20139                         haveit=yes
20140                         break
20141                       fi
20142                     done
20143                     if test -z "$haveit"; then
20144                       rpathdirs="$rpathdirs $found_dir"
20145                     fi
20146                   else
20147                                                                                 haveit=
20148                     for x in $LDFLAGS $LIBINTL; do
20149
20150   acl_save_prefix="$prefix"
20151   prefix="$acl_final_prefix"
20152   acl_save_exec_prefix="$exec_prefix"
20153   exec_prefix="$acl_final_exec_prefix"
20154   eval x=\"$x\"
20155   exec_prefix="$acl_save_exec_prefix"
20156   prefix="$acl_save_prefix"
20157
20158                       if test "X$x" = "X-L$found_dir"; then
20159                         haveit=yes
20160                         break
20161                       fi
20162                     done
20163                     if test -z "$haveit"; then
20164                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20165                     fi
20166                     if test "$hardcode_minus_L" != no; then
20167                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20168                     else
20169                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20170                     fi
20171                   fi
20172                 fi
20173               fi
20174             else
20175               if test "X$found_a" != "X"; then
20176                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20177               else
20178                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20179               fi
20180             fi
20181                         additional_includedir=
20182             case "$found_dir" in
20183               */lib | */lib/)
20184                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20185                 additional_includedir="$basedir/include"
20186                 ;;
20187             esac
20188             if test "X$additional_includedir" != "X"; then
20189                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20190                 haveit=
20191                 if test "X$additional_includedir" = "X/usr/local/include"; then
20192                   if test -n "$GCC"; then
20193                     case $host_os in
20194                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20195                     esac
20196                   fi
20197                 fi
20198                 if test -z "$haveit"; then
20199                   for x in $CPPFLAGS $INCINTL; do
20200
20201   acl_save_prefix="$prefix"
20202   prefix="$acl_final_prefix"
20203   acl_save_exec_prefix="$exec_prefix"
20204   exec_prefix="$acl_final_exec_prefix"
20205   eval x=\"$x\"
20206   exec_prefix="$acl_save_exec_prefix"
20207   prefix="$acl_save_prefix"
20208
20209                     if test "X$x" = "X-I$additional_includedir"; then
20210                       haveit=yes
20211                       break
20212                     fi
20213                   done
20214                   if test -z "$haveit"; then
20215                     if test -d "$additional_includedir"; then
20216                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20217                     fi
20218                   fi
20219                 fi
20220               fi
20221             fi
20222                         if test -n "$found_la"; then
20223                                                         save_libdir="$libdir"
20224               case "$found_la" in
20225                 */* | *\\*) . "$found_la" ;;
20226                 *) . "./$found_la" ;;
20227               esac
20228               libdir="$save_libdir"
20229                             for dep in $dependency_libs; do
20230                 case "$dep" in
20231                   -L*)
20232                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20233                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20234                       haveit=
20235                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20236                         if test -n "$GCC"; then
20237                           case $host_os in
20238                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20239                           esac
20240                         fi
20241                       fi
20242                       if test -z "$haveit"; then
20243                         haveit=
20244                         for x in $LDFLAGS $LIBINTL; do
20245
20246   acl_save_prefix="$prefix"
20247   prefix="$acl_final_prefix"
20248   acl_save_exec_prefix="$exec_prefix"
20249   exec_prefix="$acl_final_exec_prefix"
20250   eval x=\"$x\"
20251   exec_prefix="$acl_save_exec_prefix"
20252   prefix="$acl_save_prefix"
20253
20254                           if test "X$x" = "X-L$additional_libdir"; then
20255                             haveit=yes
20256                             break
20257                           fi
20258                         done
20259                         if test -z "$haveit"; then
20260                           if test -d "$additional_libdir"; then
20261                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20262                           fi
20263                         fi
20264                         haveit=
20265                         for x in $LDFLAGS $LTLIBINTL; do
20266
20267   acl_save_prefix="$prefix"
20268   prefix="$acl_final_prefix"
20269   acl_save_exec_prefix="$exec_prefix"
20270   exec_prefix="$acl_final_exec_prefix"
20271   eval x=\"$x\"
20272   exec_prefix="$acl_save_exec_prefix"
20273   prefix="$acl_save_prefix"
20274
20275                           if test "X$x" = "X-L$additional_libdir"; then
20276                             haveit=yes
20277                             break
20278                           fi
20279                         done
20280                         if test -z "$haveit"; then
20281                           if test -d "$additional_libdir"; then
20282                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20283                           fi
20284                         fi
20285                       fi
20286                     fi
20287                     ;;
20288                   -R*)
20289                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20290                     if test "$enable_rpath" != no; then
20291                                                                   haveit=
20292                       for x in $rpathdirs; do
20293                         if test "X$x" = "X$dir"; then
20294                           haveit=yes
20295                           break
20296                         fi
20297                       done
20298                       if test -z "$haveit"; then
20299                         rpathdirs="$rpathdirs $dir"
20300                       fi
20301                                                                   haveit=
20302                       for x in $ltrpathdirs; do
20303                         if test "X$x" = "X$dir"; then
20304                           haveit=yes
20305                           break
20306                         fi
20307                       done
20308                       if test -z "$haveit"; then
20309                         ltrpathdirs="$ltrpathdirs $dir"
20310                       fi
20311                     fi
20312                     ;;
20313                   -l*)
20314                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20315                     ;;
20316                   *.la)
20317                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20318                     ;;
20319                   *)
20320                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20321                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20322                     ;;
20323                 esac
20324               done
20325             fi
20326           else
20327                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20328             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20329           fi
20330         fi
20331       fi
20332     done
20333   done
20334   if test "X$rpathdirs" != "X"; then
20335     if test -n "$hardcode_libdir_separator"; then
20336                         alldirs=
20337       for found_dir in $rpathdirs; do
20338         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20339       done
20340             acl_save_libdir="$libdir"
20341       libdir="$alldirs"
20342       eval flag=\"$hardcode_libdir_flag_spec\"
20343       libdir="$acl_save_libdir"
20344       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20345     else
20346             for found_dir in $rpathdirs; do
20347         acl_save_libdir="$libdir"
20348         libdir="$found_dir"
20349         eval flag=\"$hardcode_libdir_flag_spec\"
20350         libdir="$acl_save_libdir"
20351         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20352       done
20353     fi
20354   fi
20355   if test "X$ltrpathdirs" != "X"; then
20356             for found_dir in $ltrpathdirs; do
20357       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20358     done
20359   fi
20360
20361           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20362 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20363 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
20364   $as_echo_n "(cached) " >&6
20365 else
20366   gt_save_CPPFLAGS="$CPPFLAGS"
20367             CPPFLAGS="$CPPFLAGS $INCINTL"
20368             gt_save_LIBS="$LIBS"
20369             LIBS="$LIBS $LIBINTL"
20370                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20371 /* end confdefs.h.  */
20372 #include <libintl.h>
20373 extern int _nl_msg_cat_cntr;
20374 extern
20375 #ifdef __cplusplus
20376 "C"
20377 #endif
20378 const char *_nl_expand_alias (const char *);
20379 int
20380 main ()
20381 {
20382 bindtextdomain ("", "");
20383 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20384   ;
20385   return 0;
20386 }
20387 _ACEOF
20388 if ac_fn_c_try_link "$LINENO"; then :
20389   gt_cv_func_gnugettext1_libintl=yes
20390 else
20391   gt_cv_func_gnugettext1_libintl=no
20392 fi
20393 rm -f core conftest.err conftest.$ac_objext \
20394     conftest$ac_exeext conftest.$ac_ext
20395                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20396               LIBS="$LIBS $LIBICONV"
20397               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398 /* end confdefs.h.  */
20399 #include <libintl.h>
20400 extern int _nl_msg_cat_cntr;
20401 extern
20402 #ifdef __cplusplus
20403 "C"
20404 #endif
20405 const char *_nl_expand_alias (const char *);
20406 int
20407 main ()
20408 {
20409 bindtextdomain ("", "");
20410 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20411   ;
20412   return 0;
20413 }
20414 _ACEOF
20415 if ac_fn_c_try_link "$LINENO"; then :
20416   LIBINTL="$LIBINTL $LIBICONV"
20417                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20418                 gt_cv_func_gnugettext1_libintl=yes
20419
20420 fi
20421 rm -f core conftest.err conftest.$ac_objext \
20422     conftest$ac_exeext conftest.$ac_ext
20423             fi
20424             CPPFLAGS="$gt_save_CPPFLAGS"
20425             LIBS="$gt_save_LIBS"
20426 fi
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20428 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20429         fi
20430
20431                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20432            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20433                 && test "$PACKAGE" != gettext-runtime \
20434                 && test "$PACKAGE" != gettext-tools; }; then
20435           gt_use_preinstalled_gnugettext=yes
20436         else
20437                     LIBINTL=
20438           LTLIBINTL=
20439           INCINTL=
20440         fi
20441
20442
20443         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20444                               nls_cv_use_gnu_gettext=yes
20445         fi
20446       fi
20447
20448       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20449                 BUILD_INCLUDED_LIBINTL=yes
20450         USE_INCLUDED_LIBINTL=yes
20451         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20452         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20453         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20454       fi
20455
20456       CATOBJEXT=
20457       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20458          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20459                 CATOBJEXT=.gmo
20460       fi
20461
20462
20463     if test -n "$INTL_MACOSX_LIBS"; then
20464       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20465          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20466                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20467         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20468       fi
20469     fi
20470
20471     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20472        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20473
20474 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20475
20476     else
20477       USE_NLS=no
20478     fi
20479   fi
20480
20481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20482 $as_echo_n "checking whether to use NLS... " >&6; }
20483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20484 $as_echo "$USE_NLS" >&6; }
20485   if test "$USE_NLS" = "yes"; then
20486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20487 $as_echo_n "checking where the gettext function comes from... " >&6; }
20488     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20489       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20490         gt_source="external libintl"
20491       else
20492         gt_source="libc"
20493       fi
20494     else
20495       gt_source="included intl directory"
20496     fi
20497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20498 $as_echo "$gt_source" >&6; }
20499   fi
20500
20501   if test "$USE_NLS" = "yes"; then
20502
20503     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20504       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20505         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20506 $as_echo_n "checking how to link with libintl... " >&6; }
20507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20508 $as_echo "$LIBINTL" >&6; }
20509
20510   for element in $INCINTL; do
20511     haveit=
20512     for x in $CPPFLAGS; do
20513
20514   acl_save_prefix="$prefix"
20515   prefix="$acl_final_prefix"
20516   acl_save_exec_prefix="$exec_prefix"
20517   exec_prefix="$acl_final_exec_prefix"
20518   eval x=\"$x\"
20519   exec_prefix="$acl_save_exec_prefix"
20520   prefix="$acl_save_prefix"
20521
20522       if test "X$x" = "X$element"; then
20523         haveit=yes
20524         break
20525       fi
20526     done
20527     if test -z "$haveit"; then
20528       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20529     fi
20530   done
20531
20532       fi
20533
20534
20535 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20536
20537
20538 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20539
20540     fi
20541
20542         POSUB=po
20543   fi
20544
20545
20546             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20547       BUILD_INCLUDED_LIBINTL=yes
20548     fi
20549
20550
20551
20552
20553
20554         nls_cv_header_intl=
20555     nls_cv_header_libgt=
20556
20557         DATADIRNAME=share
20558
20559
20560         INSTOBJEXT=.mo
20561
20562
20563         GENCAT=gencat
20564
20565
20566         INTLOBJS=
20567     if test "$USE_INCLUDED_LIBINTL" = yes; then
20568       INTLOBJS="\$(GETTOBJS)"
20569     fi
20570
20571
20572         INTL_LIBTOOL_SUFFIX_PREFIX=
20573
20574
20575
20576     INTLLIBS="$LIBINTL"
20577
20578
20579
20580
20581
20582
20583 fi
20584
20585 support_smartalloc=yes
20586 support_readline=yes
20587 support_conio=yes
20588 support_gnome=no
20589 support_bat=no
20590 support_wx_console=no
20591 support_tray_monitor=no
20592 support_tls=no
20593 support_crypto=no
20594 gnome_version=
20595 wx_version=
20596 support_static_tools=no
20597 support_static_fd=no
20598 support_static_sd=no
20599 support_static_dir=no
20600 support_static_cons=no
20601 support_python=no
20602 build_client_only=no
20603 build_dird=yes
20604 build_stored=yes
20605 db_backends=""
20606 support_lockmgr=no
20607
20608
20609 # Check whether --enable-gnome was given.
20610 if test "${enable_gnome+set}" = set; then :
20611   enableval=$enable_gnome;
20612        if test x$enableval = xyes; then
20613           support_gnome=yes
20614        fi
20615
20616
20617 fi
20618
20619
20620 GNOME_DIR=
20621 if test x$support_gnome = xyes; then
20622    as_fn_error "bgnome-console no longer supported" "$LINENO" 5
20623    as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
20624 fi
20625 # AC_SUBST(GNOME_DIR)
20626
20627 # Check whether --enable-bat was given.
20628 if test "${enable_bat+set}" = set; then :
20629   enableval=$enable_bat;
20630        if test x$enableval = xyes; then
20631
20632 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20633
20634           support_bat=yes
20635        fi
20636
20637
20638 fi
20639
20640
20641 BAT_DIR=
20642 if test x$support_bat = xyes; then
20643    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20644    pkg=$?
20645    if test $pkg = 0; then
20646       BAT_DIR=src/qt-console
20647    else
20648       as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20649    fi
20650 fi
20651
20652 got_qwt=no
20653 QWT_INC=
20654 QWT_LDFLAGS=
20655 QWT_LIB=
20656 QWT=
20657 no_qwt=no
20658
20659
20660
20661
20662
20663
20664
20665
20666 # Check whether --enable-bwx-console was given.
20667 if test "${enable_bwx_console+set}" = set; then :
20668   enableval=$enable_bwx_console;
20669        if test x$enableval = xyes; then
20670           support_wx_console=yes
20671        fi
20672
20673
20674 fi
20675
20676
20677 WX_DIR=
20678 if test x$support_wx_console = xyes; then
20679    abc=`$WXCONFIG $WXFLAGS --cppflags`
20680    pkg=$?
20681    if test $pkg = 0; then
20682       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20683       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20684       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20685
20686
20687
20688       WX_DIR="src/wx-console"
20689    else
20690       echo " "
20691       echo "wx-config program not found. bwx-console disabled."
20692       echo " "
20693       support_wx_console=no
20694    fi
20695 fi
20696
20697
20698 # Check whether --enable-tray-monitor was given.
20699 if test "${enable_tray_monitor+set}" = set; then :
20700   enableval=$enable_tray_monitor;
20701        if test x$enableval = xyes; then
20702           support_tray_monitor=yes
20703        fi
20704
20705
20706 fi
20707
20708
20709 TRAY_MONITOR_DIR=
20710 if test x$support_tray_monitor = xyes; then
20711    abc=`$PKGCONFIG --exists gtk+-2.0`
20712    pkg=$?
20713    if test $pkg = 0; then
20714       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20715       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20716
20717
20718       TRAY_MONITOR_DIR=src/tray-monitor
20719       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20720       pkg=$?
20721       if test $pkg = 0; then
20722
20723 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20724
20725       fi
20726    fi
20727 fi
20728
20729
20730 # Check whether --enable-smartalloc was given.
20731 if test "${enable_smartalloc+set}" = set; then :
20732   enableval=$enable_smartalloc;
20733        if test x$enableval = xno; then
20734           support_smartalloc=no
20735        fi
20736
20737
20738 fi
20739
20740
20741 if test x$support_smartalloc = xyes; then
20742
20743 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20744
20745 fi
20746
20747 # Check whether --enable-lockmgr was given.
20748 if test "${enable_lockmgr+set}" = set; then :
20749   enableval=$enable_lockmgr;
20750        if test x$enableval = xyes; then
20751           support_lockmgr=yes
20752        fi
20753
20754
20755 fi
20756
20757
20758 if test x$support_lockmgr = xyes; then
20759
20760 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20761
20762 fi
20763
20764
20765 # Check whether --enable-static-tools was given.
20766 if test "${enable_static_tools+set}" = set; then :
20767   enableval=$enable_static_tools;
20768        if test x$enableval = xyes; then
20769           if test x$use_libtool = xyes; then
20770              as_fn_error "Libtool is enabled, not compatible with static tools,
20771   please rerun configure with --disable-libtool" "$LINENO" 5
20772           fi
20773           support_static_tools=yes
20774        fi
20775
20776
20777 fi
20778
20779
20780 TTOOL_LDFLAGS=
20781 if test x$support_static_tools = xyes; then
20782    TTOOL_LDFLAGS="-static"
20783 fi
20784
20785
20786 # Check whether --enable-static-fd was given.
20787 if test "${enable_static_fd+set}" = set; then :
20788   enableval=$enable_static_fd;
20789        if test x$enableval = xyes; then
20790           if test x$use_libtool = xyes; then
20791              as_fn_error "Libtool is enabled, not compatible with static tools,
20792   please rerun configure with --disable-libtool" "$LINENO" 5
20793           fi
20794           support_static_fd=yes
20795        fi
20796
20797
20798 fi
20799
20800
20801 STATIC_FD=
20802 if test x$support_static_fd = xyes; then
20803    STATIC_FD="static-bacula-fd"
20804 fi
20805
20806
20807 # Check whether --enable-static-sd was given.
20808 if test "${enable_static_sd+set}" = set; then :
20809   enableval=$enable_static_sd;
20810        if test x$enableval = xyes; then
20811           if test x$use_libtool = xyes; then
20812              as_fn_error "Libtool is enabled, not compatible with static tools,
20813   please rerun configure with --disable-libtool" "$LINENO" 5
20814           fi
20815           support_static_sd=yes
20816        fi
20817
20818
20819 fi
20820
20821
20822 STATIC_SD=
20823 if test x$support_static_sd = xyes; then
20824    STATIC_SD="static-bacula-sd"
20825 fi
20826
20827
20828 # Check whether --enable-static-dir was given.
20829 if test "${enable_static_dir+set}" = set; then :
20830   enableval=$enable_static_dir;
20831        if test x$enableval = xyes; then
20832           if test x$use_libtool = xyes; then
20833              as_fn_error "Libtool is enabled, not compatible with static tools,
20834   please rerun configure with --disable-libtool" "$LINENO" 5
20835           fi
20836           support_static_dir=yes
20837        fi
20838
20839
20840 fi
20841
20842
20843 STATIC_DIR=
20844 if test x$support_static_dir = xyes; then
20845    STATIC_DIR="static-bacula-dir"
20846 fi
20847
20848
20849 # Check whether --enable-static-cons was given.
20850 if test "${enable_static_cons+set}" = set; then :
20851   enableval=$enable_static_cons;
20852        if test x$enableval = xyes; then
20853           if test x$use_libtool = xyes; then
20854              as_fn_error "Libtool is enabled, not compatible with static tools,
20855   please rerun configure with --disable-libtool" "$LINENO" 5
20856           fi
20857           support_static_cons=yes
20858        fi
20859
20860
20861 fi
20862
20863
20864 STATIC_CONS=
20865 STATIC_GNOME_CONS=
20866 STATIC_WX_CONS=
20867 if test x$support_static_cons = xyes; then
20868    STATIC_CONS="static-bconsole"
20869    STATIC_GNOME_CONS="static-bgnome-console"
20870    STATIC_WX_CONS="static-bwx-console"
20871 fi
20872
20873
20874
20875
20876 # Check whether --enable-client-only was given.
20877 if test "${enable_client_only+set}" = set; then :
20878   enableval=$enable_client_only;
20879        if test x$enableval = xyes; then
20880           build_client_only=yes
20881           db_backends="None"
20882           DB_BACKENDS="none"
20883        fi
20884
20885
20886 fi
20887
20888 if test x$build_client_only = xno; then
20889    ALL_DIRS="subdirs"
20890 else
20891    ALL_DIRS=""
20892 fi
20893
20894
20895 # Check whether --enable-build-dird was given.
20896 if test "${enable_build_dird+set}" = set; then :
20897   enableval=$enable_build_dird;
20898        if test x$enableval = xno; then
20899           build_dird=no
20900        fi
20901
20902
20903 fi
20904
20905 if test x$build_dird = xyes; then
20906    DIRD_DIR="src/dird"
20907    DIR_TOOLS="DIRTOOLS"
20908 else
20909    DIRD_DIR=""
20910    DIR_TOOLS="NODIRTOOLS"
20911 fi
20912
20913
20914
20915 # Check whether --enable-build-stored was given.
20916 if test "${enable_build_stored+set}" = set; then :
20917   enableval=$enable_build_stored;
20918       if test x$enableval = xno; then
20919          build_stored=no
20920       fi
20921
20922
20923 fi
20924
20925 if test x$build_stored = xyes; then
20926    STORED_DIR="src/stored"
20927 else
20928    STORED_DIR=""
20929 fi
20930
20931
20932 # Check whether --enable-conio was given.
20933 if test "${enable_conio+set}" = set; then :
20934   enableval=$enable_conio;
20935        if test x$enableval = xno; then
20936           support_conio=no
20937        fi
20938
20939
20940 fi
20941
20942
20943
20944 support_ipv6=yes
20945 # Check whether --enable-ipv6 was given.
20946 if test "${enable_ipv6+set}" = set; then :
20947   enableval=$enable_ipv6;
20948        if test x$enableval = xno; then
20949           support_ipv6=no
20950        fi
20951
20952
20953 fi
20954
20955
20956 if test x$support_ipv6 = xyes; then
20957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20958 /* end confdefs.h.  */
20959  #include <sys/types.h>
20960 #include <sys/socket.h>
20961 #include <netinet/in.h>
20962 int
20963 main ()
20964 {
20965 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20966   ;
20967   return 0;
20968 }
20969 _ACEOF
20970 if ac_fn_c_try_link "$LINENO"; then :
20971   support_ipv6=yes
20972 else
20973   support_ipv6=no
20974 fi
20975 rm -f core conftest.err conftest.$ac_objext \
20976     conftest$ac_exeext conftest.$ac_ext
20977 fi
20978
20979 if test x$support_ipv6 = xyes; then
20980
20981 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20982
20983 fi
20984
20985 TERM_LIB=""
20986 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
20987 if test "x$ac_cv_header_curses_h" = x""yes; then :
20988    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
20989 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
20990 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
20991   $as_echo_n "(cached) " >&6
20992 else
20993   ac_check_lib_save_LIBS=$LIBS
20994 LIBS="-lncurses  $LIBS"
20995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h.  */
20997
20998 /* Override any GCC internal prototype to avoid an error.
20999    Use char because int might match the return type of a GCC
21000    builtin and then its argument prototype would still apply.  */
21001 #ifdef __cplusplus
21002 extern "C"
21003 #endif
21004 char tgetent ();
21005 int
21006 main ()
21007 {
21008 return tgetent ();
21009   ;
21010   return 0;
21011 }
21012 _ACEOF
21013 if ac_fn_c_try_link "$LINENO"; then :
21014   ac_cv_lib_ncurses_tgetent=yes
21015 else
21016   ac_cv_lib_ncurses_tgetent=no
21017 fi
21018 rm -f core conftest.err conftest.$ac_objext \
21019     conftest$ac_exeext conftest.$ac_ext
21020 LIBS=$ac_check_lib_save_LIBS
21021 fi
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21023 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21024 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21025    TERM_LIB="-lncurses"
21026 else
21027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21028 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21029 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21030   $as_echo_n "(cached) " >&6
21031 else
21032   ac_check_lib_save_LIBS=$LIBS
21033 LIBS="-ltermcap  $LIBS"
21034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035 /* end confdefs.h.  */
21036
21037 /* Override any GCC internal prototype to avoid an error.
21038    Use char because int might match the return type of a GCC
21039    builtin and then its argument prototype would still apply.  */
21040 #ifdef __cplusplus
21041 extern "C"
21042 #endif
21043 char tgetent ();
21044 int
21045 main ()
21046 {
21047 return tgetent ();
21048   ;
21049   return 0;
21050 }
21051 _ACEOF
21052 if ac_fn_c_try_link "$LINENO"; then :
21053   ac_cv_lib_termcap_tgetent=yes
21054 else
21055   ac_cv_lib_termcap_tgetent=no
21056 fi
21057 rm -f core conftest.err conftest.$ac_objext \
21058     conftest$ac_exeext conftest.$ac_ext
21059 LIBS=$ac_check_lib_save_LIBS
21060 fi
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21062 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21063 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21064    TERM_LIB="-ltermcap"
21065 fi
21066
21067
21068 fi
21069
21070
21071 else
21072     for ac_header in curses.h
21073 do :
21074   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21075 if test "x$ac_cv_header_curses_h" = x""yes; then :
21076   cat >>confdefs.h <<_ACEOF
21077 #define HAVE_CURSES_H 1
21078 _ACEOF
21079
21080 fi
21081
21082 done
21083
21084      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21085 if test "x$ac_cv_header_term_h" = x""yes; then :
21086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21087 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21088 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21089   $as_echo_n "(cached) " >&6
21090 else
21091   ac_check_lib_save_LIBS=$LIBS
21092 LIBS="-lcurses  $LIBS"
21093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21094 /* end confdefs.h.  */
21095
21096 /* Override any GCC internal prototype to avoid an error.
21097    Use char because int might match the return type of a GCC
21098    builtin and then its argument prototype would still apply.  */
21099 #ifdef __cplusplus
21100 extern "C"
21101 #endif
21102 char tgetent ();
21103 int
21104 main ()
21105 {
21106 return tgetent ();
21107   ;
21108   return 0;
21109 }
21110 _ACEOF
21111 if ac_fn_c_try_link "$LINENO"; then :
21112   ac_cv_lib_curses_tgetent=yes
21113 else
21114   ac_cv_lib_curses_tgetent=no
21115 fi
21116 rm -f core conftest.err conftest.$ac_objext \
21117     conftest$ac_exeext conftest.$ac_ext
21118 LIBS=$ac_check_lib_save_LIBS
21119 fi
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21121 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21122 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21123    TERM_LIB="-lcurses"
21124 fi
21125
21126
21127 fi
21128
21129
21130
21131 fi
21132
21133
21134
21135
21136 got_conio="no"
21137 if test x$support_conio = xyes; then
21138    if test x$TERM_LIB != x; then
21139       CONS_LIBS=$TERM_LIB
21140       CONS_OBJ="conio.o"
21141       CONS_SRC="conio.c"
21142       got_conio="yes"
21143       support_readline=no
21144
21145 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21146
21147    else
21148       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21149    fi
21150 fi
21151
21152
21153 # Check whether --enable-readline was given.
21154 if test "${enable_readline+set}" = set; then :
21155   enableval=$enable_readline;
21156        if test x$enableval = xno; then
21157           support_readline=no
21158        fi
21159
21160
21161 fi
21162
21163 if test x$TERM_LIB = x ; then
21164    support_readline=no
21165 fi
21166
21167 got_readline="no"
21168 READLINE_SRC=
21169 if test x$support_readline = xyes; then
21170
21171 # Check whether --with-readline was given.
21172 if test "${with_readline+set}" = set; then :
21173   withval=$with_readline;
21174           case "$with_readline" in
21175           no)
21176              :
21177              ;;
21178           yes|*)
21179              if test -f ${with_readline}/readline.h; then
21180                 CONS_INC="-I${with_readline}"
21181                 CONS_LDFLAGS="-L$with_readline"
21182              elif test -f ${with_readline}/include/readline/readline.h; then
21183                 CONS_INC="-I${with_readline}/include/readline"
21184                 CONS_LDFLAGS="-L${with_readline}/lib"
21185                 with_readline="${with_readline}/include/readline"
21186              else
21187                 with_readline="/usr/include/readline"
21188              fi
21189
21190              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21191 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21192 eval as_val=\$$as_ac_Header
21193    if test "x$as_val" = x""yes; then :
21194
21195
21196 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21197
21198                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21199                     got_readline="yes"
21200
21201 else
21202
21203                     echo " "
21204                     echo "readline.h not found. readline turned off ..."
21205                     echo " "
21206
21207
21208 fi
21209
21210
21211              ;;
21212           esac
21213
21214 else
21215
21216                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21217 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
21218
21219
21220 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21221
21222                 got_readline="yes"
21223                 CONS_INC="-I/usr/include/readline"
21224                 CONS_LIBS="-lreadline $TERM_LIB"
21225
21226 else
21227
21228                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21229 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21230 eval as_val=\$$as_ac_Header
21231    if test "x$as_val" = x""yes; then :
21232
21233
21234 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21235
21236                         got_readline="yes"
21237                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21238                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21239                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21240                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21241
21242 else
21243
21244                         echo " "
21245                         echo "readline.h not found. readline turned off ..."
21246                         echo " "
21247
21248
21249 fi
21250
21251
21252
21253
21254 fi
21255
21256
21257
21258
21259 fi
21260
21261 fi
21262
21263
21264
21265
21266
21267
21268
21269
21270 MAKE_SHELL=/bin/sh
21271
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21273 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21274 if test "${ac_cv_header_stat_broken+set}" = set; then :
21275   $as_echo_n "(cached) " >&6
21276 else
21277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21278 /* end confdefs.h.  */
21279 #include <sys/types.h>
21280 #include <sys/stat.h>
21281
21282 #if defined S_ISBLK && defined S_IFDIR
21283 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21284 #endif
21285
21286 #if defined S_ISBLK && defined S_IFCHR
21287 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21288 #endif
21289
21290 #if defined S_ISLNK && defined S_IFREG
21291 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21292 #endif
21293
21294 #if defined S_ISSOCK && defined S_IFREG
21295 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21296 #endif
21297
21298 _ACEOF
21299 if ac_fn_c_try_compile "$LINENO"; then :
21300   ac_cv_header_stat_broken=no
21301 else
21302   ac_cv_header_stat_broken=yes
21303 fi
21304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21305 fi
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21307 $as_echo "$ac_cv_header_stat_broken" >&6; }
21308 if test $ac_cv_header_stat_broken = yes; then
21309
21310 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21311
21312 fi
21313
21314 ac_header_dirent=no
21315 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21316   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21318 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
21320   $as_echo_n "(cached) " >&6
21321 else
21322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21323 /* end confdefs.h.  */
21324 #include <sys/types.h>
21325 #include <$ac_hdr>
21326
21327 int
21328 main ()
21329 {
21330 if ((DIR *) 0)
21331 return 0;
21332   ;
21333   return 0;
21334 }
21335 _ACEOF
21336 if ac_fn_c_try_compile "$LINENO"; then :
21337   eval "$as_ac_Header=yes"
21338 else
21339   eval "$as_ac_Header=no"
21340 fi
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342 fi
21343 eval ac_res=\$$as_ac_Header
21344                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21345 $as_echo "$ac_res" >&6; }
21346 eval as_val=\$$as_ac_Header
21347    if test "x$as_val" = x""yes; then :
21348   cat >>confdefs.h <<_ACEOF
21349 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21350 _ACEOF
21351
21352 ac_header_dirent=$ac_hdr; break
21353 fi
21354
21355 done
21356 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21357 if test $ac_header_dirent = dirent.h; then
21358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21359 $as_echo_n "checking for library containing opendir... " >&6; }
21360 if test "${ac_cv_search_opendir+set}" = set; then :
21361   $as_echo_n "(cached) " >&6
21362 else
21363   ac_func_search_save_LIBS=$LIBS
21364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21365 /* end confdefs.h.  */
21366
21367 /* Override any GCC internal prototype to avoid an error.
21368    Use char because int might match the return type of a GCC
21369    builtin and then its argument prototype would still apply.  */
21370 #ifdef __cplusplus
21371 extern "C"
21372 #endif
21373 char opendir ();
21374 int
21375 main ()
21376 {
21377 return opendir ();
21378   ;
21379   return 0;
21380 }
21381 _ACEOF
21382 for ac_lib in '' dir; do
21383   if test -z "$ac_lib"; then
21384     ac_res="none required"
21385   else
21386     ac_res=-l$ac_lib
21387     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21388   fi
21389   if ac_fn_c_try_link "$LINENO"; then :
21390   ac_cv_search_opendir=$ac_res
21391 fi
21392 rm -f core conftest.err conftest.$ac_objext \
21393     conftest$ac_exeext
21394   if test "${ac_cv_search_opendir+set}" = set; then :
21395   break
21396 fi
21397 done
21398 if test "${ac_cv_search_opendir+set}" = set; then :
21399
21400 else
21401   ac_cv_search_opendir=no
21402 fi
21403 rm conftest.$ac_ext
21404 LIBS=$ac_func_search_save_LIBS
21405 fi
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21407 $as_echo "$ac_cv_search_opendir" >&6; }
21408 ac_res=$ac_cv_search_opendir
21409 if test "$ac_res" != no; then :
21410   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21411
21412 fi
21413
21414 else
21415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21416 $as_echo_n "checking for library containing opendir... " >&6; }
21417 if test "${ac_cv_search_opendir+set}" = set; then :
21418   $as_echo_n "(cached) " >&6
21419 else
21420   ac_func_search_save_LIBS=$LIBS
21421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21422 /* end confdefs.h.  */
21423
21424 /* Override any GCC internal prototype to avoid an error.
21425    Use char because int might match the return type of a GCC
21426    builtin and then its argument prototype would still apply.  */
21427 #ifdef __cplusplus
21428 extern "C"
21429 #endif
21430 char opendir ();
21431 int
21432 main ()
21433 {
21434 return opendir ();
21435   ;
21436   return 0;
21437 }
21438 _ACEOF
21439 for ac_lib in '' x; do
21440   if test -z "$ac_lib"; then
21441     ac_res="none required"
21442   else
21443     ac_res=-l$ac_lib
21444     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21445   fi
21446   if ac_fn_c_try_link "$LINENO"; then :
21447   ac_cv_search_opendir=$ac_res
21448 fi
21449 rm -f core conftest.err conftest.$ac_objext \
21450     conftest$ac_exeext
21451   if test "${ac_cv_search_opendir+set}" = set; then :
21452   break
21453 fi
21454 done
21455 if test "${ac_cv_search_opendir+set}" = set; then :
21456
21457 else
21458   ac_cv_search_opendir=no
21459 fi
21460 rm conftest.$ac_ext
21461 LIBS=$ac_func_search_save_LIBS
21462 fi
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21464 $as_echo "$ac_cv_search_opendir" >&6; }
21465 ac_res=$ac_cv_search_opendir
21466 if test "$ac_res" != no; then :
21467   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21468
21469 fi
21470
21471 fi
21472
21473 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21474 do :
21475   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21476 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21477 eval as_val=\$$as_ac_var
21478    if test "x$as_val" = x""yes; then :
21479   cat >>confdefs.h <<_ACEOF
21480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21481 _ACEOF
21482
21483 fi
21484 done
21485
21486 for ac_func in nanosleep nl_langinfo
21487 do :
21488   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21490 eval as_val=\$$as_ac_var
21491    if test "x$as_val" = x""yes; then :
21492   cat >>confdefs.h <<_ACEOF
21493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21494 _ACEOF
21495
21496 fi
21497 done
21498
21499 for ac_header in varargs.h
21500 do :
21501   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21502 if test "x$ac_cv_header_varargs_h" = x""yes; then :
21503   cat >>confdefs.h <<_ACEOF
21504 #define HAVE_VARARGS_H 1
21505 _ACEOF
21506
21507 fi
21508
21509 done
21510
21511
21512
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21514 $as_echo_n "checking for Python support... " >&6; }
21515
21516 # Check whether --with-python was given.
21517 if test "${with_python+set}" = set; then :
21518   withval=$with_python;
21519        PYTHON_INCDIR=
21520        PYTHON_LIBS=
21521        if test "$withval" != "no"; then
21522           if test "$withval" = "yes"; then
21523              if test -e /usr/bin/python-config ; then
21524                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21525                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21526              else
21527                 for python_root in /usr /usr/local /usr/sfw; do
21528                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21529                       if test -f $python_root/include/${ver}/Python.h; then
21530                          PYTHON_INCDIR=-I$python_root/include/${ver}
21531                          if test -d $python_root/lib64/${ver}/config; then
21532                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21533                          else
21534                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21535                          fi
21536                          break
21537                       fi
21538                    done
21539                 done
21540
21541                 if test x$PYTHON_INCDIR = x; then
21542                    if test -f $prefix/include/Python.h; then
21543                       PYTHON_INCDIR=-I$prefix/include
21544                       if test -d $prefix/lib64/config; then
21545                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21546                       else
21547                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21548                       fi
21549                    else
21550                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21551 $as_echo "no" >&6; }
21552                       as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
21553                    fi
21554                 fi
21555              fi
21556           else
21557              if test -e $withval/bin/python-config ; then
21558                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21559                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21560              elif test -f $withval/Python.h; then
21561                 PYTHON_INCDIR=-I$withval
21562                 PYTHON_LIBS="-L$withval/config -lpython"
21563              elif test -f $withval/include/Python.h; then
21564                 PYTHON_INCDIR=-I$withval/include
21565                 if test -d $withval/lib64/config; then
21566                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21567                 else
21568                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21569                 fi
21570              elif test -f $withval/include/python/Python.h; then
21571                 PYTHON_INCDIR=-I$withval/include/python
21572                 if test -d $withval/lib64/python/config; then
21573                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21574                 else
21575                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21576                 fi
21577              else
21578                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21579 $as_echo "no" >&6; }
21580                 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21581              fi
21582           fi
21583
21584           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21585
21586           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21587 $as_echo "yes" >&6; }
21588           support_python=yes
21589           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21590 $as_echo "$as_me: checking for more Python libs" >&6;}
21591           saved_LIBS="$LIBS"; LIBS=
21592           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21593 $as_echo_n "checking for library containing shm_open... " >&6; }
21594 if test "${ac_cv_search_shm_open+set}" = set; then :
21595   $as_echo_n "(cached) " >&6
21596 else
21597   ac_func_search_save_LIBS=$LIBS
21598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21599 /* end confdefs.h.  */
21600
21601 /* Override any GCC internal prototype to avoid an error.
21602    Use char because int might match the return type of a GCC
21603    builtin and then its argument prototype would still apply.  */
21604 #ifdef __cplusplus
21605 extern "C"
21606 #endif
21607 char shm_open ();
21608 int
21609 main ()
21610 {
21611 return shm_open ();
21612   ;
21613   return 0;
21614 }
21615 _ACEOF
21616 for ac_lib in '' rt; do
21617   if test -z "$ac_lib"; then
21618     ac_res="none required"
21619   else
21620     ac_res=-l$ac_lib
21621     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21622   fi
21623   if ac_fn_c_try_link "$LINENO"; then :
21624   ac_cv_search_shm_open=$ac_res
21625 fi
21626 rm -f core conftest.err conftest.$ac_objext \
21627     conftest$ac_exeext
21628   if test "${ac_cv_search_shm_open+set}" = set; then :
21629   break
21630 fi
21631 done
21632 if test "${ac_cv_search_shm_open+set}" = set; then :
21633
21634 else
21635   ac_cv_search_shm_open=no
21636 fi
21637 rm conftest.$ac_ext
21638 LIBS=$ac_func_search_save_LIBS
21639 fi
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21641 $as_echo "$ac_cv_search_shm_open" >&6; }
21642 ac_res=$ac_cv_search_shm_open
21643 if test "$ac_res" != no; then :
21644   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21645
21646 fi
21647
21648           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21649 $as_echo_n "checking for openpty in -lutil... " >&6; }
21650 if test "${ac_cv_lib_util_openpty+set}" = set; then :
21651   $as_echo_n "(cached) " >&6
21652 else
21653   ac_check_lib_save_LIBS=$LIBS
21654 LIBS="-lutil  $LIBS"
21655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21656 /* end confdefs.h.  */
21657
21658 /* Override any GCC internal prototype to avoid an error.
21659    Use char because int might match the return type of a GCC
21660    builtin and then its argument prototype would still apply.  */
21661 #ifdef __cplusplus
21662 extern "C"
21663 #endif
21664 char openpty ();
21665 int
21666 main ()
21667 {
21668 return openpty ();
21669   ;
21670   return 0;
21671 }
21672 _ACEOF
21673 if ac_fn_c_try_link "$LINENO"; then :
21674   ac_cv_lib_util_openpty=yes
21675 else
21676   ac_cv_lib_util_openpty=no
21677 fi
21678 rm -f core conftest.err conftest.$ac_objext \
21679     conftest$ac_exeext conftest.$ac_ext
21680 LIBS=$ac_check_lib_save_LIBS
21681 fi
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21683 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21684 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
21685   cat >>confdefs.h <<_ACEOF
21686 #define HAVE_LIBUTIL 1
21687 _ACEOF
21688
21689   LIBS="-lutil $LIBS"
21690
21691 fi
21692
21693           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21694           LIBS="$saved_LIBS"
21695        else
21696           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21697 $as_echo "no" >&6; }
21698        fi
21699
21700 else
21701
21702        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21703 $as_echo "no" >&6; }
21704
21705
21706 fi
21707
21708
21709
21710
21711 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21712 if test "x$ac_cv_func_socket" = x""yes; then :
21713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21714 $as_echo "using libc's socket" >&6; }
21715 else
21716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21717 $as_echo_n "checking for socket in -lxnet... " >&6; }
21718 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
21719   $as_echo_n "(cached) " >&6
21720 else
21721   ac_check_lib_save_LIBS=$LIBS
21722 LIBS="-lxnet  $LIBS"
21723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21724 /* end confdefs.h.  */
21725
21726 /* Override any GCC internal prototype to avoid an error.
21727    Use char because int might match the return type of a GCC
21728    builtin and then its argument prototype would still apply.  */
21729 #ifdef __cplusplus
21730 extern "C"
21731 #endif
21732 char socket ();
21733 int
21734 main ()
21735 {
21736 return socket ();
21737   ;
21738   return 0;
21739 }
21740 _ACEOF
21741 if ac_fn_c_try_link "$LINENO"; then :
21742   ac_cv_lib_xnet_socket=yes
21743 else
21744   ac_cv_lib_xnet_socket=no
21745 fi
21746 rm -f core conftest.err conftest.$ac_objext \
21747     conftest$ac_exeext conftest.$ac_ext
21748 LIBS=$ac_check_lib_save_LIBS
21749 fi
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21751 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21752 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
21753   cat >>confdefs.h <<_ACEOF
21754 #define HAVE_LIBXNET 1
21755 _ACEOF
21756
21757   LIBS="-lxnet $LIBS"
21758
21759 fi
21760
21761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21762 $as_echo_n "checking for socket in -lsocket... " >&6; }
21763 if test "${ac_cv_lib_socket_socket+set}" = set; then :
21764   $as_echo_n "(cached) " >&6
21765 else
21766   ac_check_lib_save_LIBS=$LIBS
21767 LIBS="-lsocket  $LIBS"
21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h.  */
21770
21771 /* Override any GCC internal prototype to avoid an error.
21772    Use char because int might match the return type of a GCC
21773    builtin and then its argument prototype would still apply.  */
21774 #ifdef __cplusplus
21775 extern "C"
21776 #endif
21777 char socket ();
21778 int
21779 main ()
21780 {
21781 return socket ();
21782   ;
21783   return 0;
21784 }
21785 _ACEOF
21786 if ac_fn_c_try_link "$LINENO"; then :
21787   ac_cv_lib_socket_socket=yes
21788 else
21789   ac_cv_lib_socket_socket=no
21790 fi
21791 rm -f core conftest.err conftest.$ac_objext \
21792     conftest$ac_exeext conftest.$ac_ext
21793 LIBS=$ac_check_lib_save_LIBS
21794 fi
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21796 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21797 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
21798   cat >>confdefs.h <<_ACEOF
21799 #define HAVE_LIBSOCKET 1
21800 _ACEOF
21801
21802   LIBS="-lsocket $LIBS"
21803
21804 fi
21805
21806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21807 $as_echo_n "checking for socket in -linet... " >&6; }
21808 if test "${ac_cv_lib_inet_socket+set}" = set; then :
21809   $as_echo_n "(cached) " >&6
21810 else
21811   ac_check_lib_save_LIBS=$LIBS
21812 LIBS="-linet  $LIBS"
21813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h.  */
21815
21816 /* Override any GCC internal prototype to avoid an error.
21817    Use char because int might match the return type of a GCC
21818    builtin and then its argument prototype would still apply.  */
21819 #ifdef __cplusplus
21820 extern "C"
21821 #endif
21822 char socket ();
21823 int
21824 main ()
21825 {
21826 return socket ();
21827   ;
21828   return 0;
21829 }
21830 _ACEOF
21831 if ac_fn_c_try_link "$LINENO"; then :
21832   ac_cv_lib_inet_socket=yes
21833 else
21834   ac_cv_lib_inet_socket=no
21835 fi
21836 rm -f core conftest.err conftest.$ac_objext \
21837     conftest$ac_exeext conftest.$ac_ext
21838 LIBS=$ac_check_lib_save_LIBS
21839 fi
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21841 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21842 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
21843   cat >>confdefs.h <<_ACEOF
21844 #define HAVE_LIBINET 1
21845 _ACEOF
21846
21847   LIBS="-linet $LIBS"
21848
21849 fi
21850
21851 fi
21852
21853
21854 TCPW_MSG="no"
21855 WRAPLIBS=""
21856
21857 # Check whether --with-tcp-wrappers was given.
21858 if test "${with_tcp_wrappers+set}" = set; then :
21859   withval=$with_tcp_wrappers;
21860        if test "x$withval" != "xno" ; then
21861           saved_LIBS="$LIBS"
21862           LIBS="$saved_LIBS -lwrap"
21863           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21864 $as_echo_n "checking for library containing nanosleep... " >&6; }
21865 if test "${ac_cv_search_nanosleep+set}" = set; then :
21866   $as_echo_n "(cached) " >&6
21867 else
21868   ac_func_search_save_LIBS=$LIBS
21869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21870 /* end confdefs.h.  */
21871
21872 /* Override any GCC internal prototype to avoid an error.
21873    Use char because int might match the return type of a GCC
21874    builtin and then its argument prototype would still apply.  */
21875 #ifdef __cplusplus
21876 extern "C"
21877 #endif
21878 char nanosleep ();
21879 int
21880 main ()
21881 {
21882 return nanosleep ();
21883   ;
21884   return 0;
21885 }
21886 _ACEOF
21887 for ac_lib in '' rt; do
21888   if test -z "$ac_lib"; then
21889     ac_res="none required"
21890   else
21891     ac_res=-l$ac_lib
21892     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21893   fi
21894   if ac_fn_c_try_link "$LINENO"; then :
21895   ac_cv_search_nanosleep=$ac_res
21896 fi
21897 rm -f core conftest.err conftest.$ac_objext \
21898     conftest$ac_exeext
21899   if test "${ac_cv_search_nanosleep+set}" = set; then :
21900   break
21901 fi
21902 done
21903 if test "${ac_cv_search_nanosleep+set}" = set; then :
21904
21905 else
21906   ac_cv_search_nanosleep=no
21907 fi
21908 rm conftest.$ac_ext
21909 LIBS=$ac_func_search_save_LIBS
21910 fi
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21912 $as_echo "$ac_cv_search_nanosleep" >&6; }
21913 ac_res=$ac_cv_search_nanosleep
21914 if test "$ac_res" != no; then :
21915   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21916
21917 fi
21918
21919           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21920 $as_echo_n "checking for libwrap... " >&6; }
21921           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21922 /* end confdefs.h.  */
21923
21924                #include <sys/types.h>
21925                #include <tcpd.h>
21926                int deny_severity = 0;
21927                int allow_severity = 0;
21928                struct request_info *req;
21929
21930 int
21931 main ()
21932 {
21933
21934                 hosts_access(req);
21935
21936   ;
21937   return 0;
21938 }
21939 _ACEOF
21940 if ac_fn_c_try_link "$LINENO"; then :
21941
21942                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21943 $as_echo "yes" >&6; }
21944
21945 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21946
21947                  TCPW_MSG="yes"
21948                  LIBS="$saved_LIBS"
21949                  WRAPLIBS="-lwrap"
21950
21951 else
21952
21953                  LIBS="$saved_LIBS -lwrap -lnsl"
21954                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21955                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21956 /* end confdefs.h.  */
21957
21958                        #include <sys/types.h>
21959                        #include <tcpd.h>
21960                        int deny_severity = 0;
21961                        int allow_severity = 0;
21962                        struct request_info *req;
21963
21964 int
21965 main ()
21966 {
21967
21968                        hosts_access(req);
21969
21970   ;
21971   return 0;
21972 }
21973 _ACEOF
21974 if ac_fn_c_try_link "$LINENO"; then :
21975
21976                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21977 $as_echo "yes" >&6; }
21978
21979 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21980
21981                       TCPW_MSG="yes"
21982                       LIBS="$saved_LIBS"
21983                       WRAPLIBS="-lwrap"
21984
21985 else
21986
21987                       as_fn_error "*** libwrap missing" "$LINENO" 5
21988
21989
21990 fi
21991 rm -f core conftest.err conftest.$ac_objext \
21992     conftest$ac_exeext conftest.$ac_ext
21993
21994
21995 fi
21996 rm -f core conftest.err conftest.$ac_objext \
21997     conftest$ac_exeext conftest.$ac_ext
21998        fi
21999
22000
22001 fi
22002
22003
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22005 $as_echo_n "checking for OpenSSL... " >&6; }
22006
22007 # Check whether --with-openssl was given.
22008 if test "${with_openssl+set}" = set; then :
22009   withval=$with_openssl;
22010         with_openssl_directory=${withval}
22011
22012
22013 fi
22014
22015
22016 if test "x$with_openssl_directory" != "xno"; then
22017    OPENSSL_LIBS="-lssl -lcrypto"
22018    OPENSSL_INC=""
22019
22020    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22021       #
22022       # Make sure the $with_openssl_directory also makes sense
22023       #
22024       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22025          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22026          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22027       fi
22028    fi
22029
22030    saved_LIBS="${LIBS}"
22031    saved_CFLAGS="${CFLAGS}"
22032    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22033    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22034
22035    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22036 /* end confdefs.h.  */
22037
22038           #include <openssl/ssl.h>
22039
22040 int
22041 main ()
22042 {
22043
22044            CRYPTO_set_id_callback(NULL);
22045
22046   ;
22047   return 0;
22048 }
22049 _ACEOF
22050 if ac_fn_c_try_link "$LINENO"; then :
22051
22052           support_tls="yes"
22053           support_crypto="yes"
22054
22055 else
22056
22057           support_tls="no"
22058           support_crypto="no"
22059
22060
22061 fi
22062 rm -f core conftest.err conftest.$ac_objext \
22063     conftest$ac_exeext conftest.$ac_ext
22064
22065    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22066 /* end confdefs.h.  */
22067
22068           #include <openssl/evp.h>
22069
22070 int
22071 main ()
22072 {
22073
22074           EVP_sha512();
22075
22076   ;
22077   return 0;
22078 }
22079 _ACEOF
22080 if ac_fn_c_try_link "$LINENO"; then :
22081
22082           ac_cv_openssl_sha2="yes"
22083
22084 else
22085
22086           ac_cv_openssl_sha2="no"
22087
22088
22089 fi
22090 rm -f core conftest.err conftest.$ac_objext \
22091     conftest$ac_exeext conftest.$ac_ext
22092
22093                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094 /* end confdefs.h.  */
22095
22096           #include <openssl/evp.h>
22097
22098 int
22099 main ()
22100 {
22101
22102           EVP_aes_192_cbc();
22103
22104   ;
22105   return 0;
22106 }
22107 _ACEOF
22108 if ac_fn_c_try_link "$LINENO"; then :
22109
22110           ac_cv_openssl_export="no"
22111
22112 else
22113
22114           ac_cv_openssl_export="yes"
22115
22116
22117 fi
22118 rm -f core conftest.err conftest.$ac_objext \
22119     conftest$ac_exeext conftest.$ac_ext
22120
22121    if test "$support_tls" = "yes"; then
22122
22123 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22124
22125
22126 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22127
22128
22129 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22130
22131    fi
22132
22133    if test "$ac_cv_openssl_sha2" = "yes"; then
22134
22135 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22136
22137    fi
22138
22139    if test "$ac_cv_openssl_export" = "yes"; then
22140
22141 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22142
22143    fi
22144
22145    if test "$support_crypto" = "yes"; then
22146       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
22147 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
22148 if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then :
22149   $as_echo_n "(cached) " >&6
22150 else
22151   ac_check_lib_save_LIBS=$LIBS
22152 LIBS="-lssl  $LIBS"
22153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154 /* end confdefs.h.  */
22155
22156 /* Override any GCC internal prototype to avoid an error.
22157    Use char because int might match the return type of a GCC
22158    builtin and then its argument prototype would still apply.  */
22159 #ifdef __cplusplus
22160 extern "C"
22161 #endif
22162 char EVP_PKEY_encrypt_old ();
22163 int
22164 main ()
22165 {
22166 return EVP_PKEY_encrypt_old ();
22167   ;
22168   return 0;
22169 }
22170 _ACEOF
22171 if ac_fn_c_try_link "$LINENO"; then :
22172   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
22173 else
22174   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
22175 fi
22176 rm -f core conftest.err conftest.$ac_objext \
22177     conftest$ac_exeext conftest.$ac_ext
22178 LIBS=$ac_check_lib_save_LIBS
22179 fi
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
22181 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
22182 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = x""yes; then :
22183
22184 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22185
22186 fi
22187
22188    fi
22189
22190    LIBS="${saved_LIBS}"
22191    CFLAGS="${saved_CFLAGS}"
22192 else
22193    support_tls="no"
22194    support_crypto="no"
22195    OPENSSL_LIBS=""
22196    OPENSSL_INC=""
22197 fi
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22199 $as_echo "$support_tls" >&6; }
22200
22201 if test "$support_tls" = "no"; then
22202    OPENSSL_LIBS=""
22203    OPENSSL_INC=""
22204 fi
22205 if test "$support_crypto" = "no"; then
22206    OPENSSL_LIBS=""
22207    OPENSSL_INC=""
22208 fi
22209
22210
22211
22212
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22214 $as_echo_n "checking for library containing dlopen... " >&6; }
22215 if test "${ac_cv_search_dlopen+set}" = set; then :
22216   $as_echo_n "(cached) " >&6
22217 else
22218   ac_func_search_save_LIBS=$LIBS
22219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22220 /* end confdefs.h.  */
22221
22222 /* Override any GCC internal prototype to avoid an error.
22223    Use char because int might match the return type of a GCC
22224    builtin and then its argument prototype would still apply.  */
22225 #ifdef __cplusplus
22226 extern "C"
22227 #endif
22228 char dlopen ();
22229 int
22230 main ()
22231 {
22232 return dlopen ();
22233   ;
22234   return 0;
22235 }
22236 _ACEOF
22237 for ac_lib in '' dl; do
22238   if test -z "$ac_lib"; then
22239     ac_res="none required"
22240   else
22241     ac_res=-l$ac_lib
22242     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22243   fi
22244   if ac_fn_c_try_link "$LINENO"; then :
22245   ac_cv_search_dlopen=$ac_res
22246 fi
22247 rm -f core conftest.err conftest.$ac_objext \
22248     conftest$ac_exeext
22249   if test "${ac_cv_search_dlopen+set}" = set; then :
22250   break
22251 fi
22252 done
22253 if test "${ac_cv_search_dlopen+set}" = set; then :
22254
22255 else
22256   ac_cv_search_dlopen=no
22257 fi
22258 rm conftest.$ac_ext
22259 LIBS=$ac_func_search_save_LIBS
22260 fi
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22262 $as_echo "$ac_cv_search_dlopen" >&6; }
22263 ac_res=$ac_cv_search_dlopen
22264 if test "$ac_res" != no; then :
22265   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22266
22267 fi
22268
22269
22270 working_dir=`eval echo ${prefix}/var/bacula/working`
22271
22272 # Check whether --with-working-dir was given.
22273 if test "${with_working_dir+set}" = set; then :
22274   withval=$with_working_dir;
22275        if test "x$withval" != "xno" ; then
22276          working_dir=$withval
22277        fi
22278
22279
22280 fi
22281
22282
22283
22284
22285 archivedir=/tmp
22286
22287 # Check whether --with-archivedir was given.
22288 if test "${with_archivedir+set}" = set; then :
22289   withval=$with_archivedir;
22290        if test "x$withval" != "xno" ; then
22291           archivedir=$withval
22292        fi
22293
22294
22295 fi
22296
22297
22298
22299
22300 basename=`hostname`
22301
22302 # Check whether --with-basename was given.
22303 if test "${with_basename+set}" = set; then :
22304   withval=$with_basename;
22305        if test "x$withval" != "xno" ; then
22306           basename=$withval
22307        fi
22308
22309
22310 fi
22311
22312
22313
22314
22315 hostname=`uname -n | cut -d '.' -f 1`
22316 if test x${hostname} = x ; then
22317   hostname="localhost"
22318 fi
22319
22320 # Check whether --with-hostname was given.
22321 if test "${with_hostname+set}" = set; then :
22322   withval=$with_hostname;
22323        if test "x$withval" != "xno" ; then
22324          hostname=$withval
22325        fi
22326
22327
22328 fi
22329
22330
22331
22332
22333
22334 scriptdir=`eval echo ${sysconfdir}`
22335
22336 # Check whether --with-scriptdir was given.
22337 if test "${with_scriptdir+set}" = set; then :
22338   withval=$with_scriptdir;
22339        if test "x$withval" != "xno" ; then
22340           scriptdir=$withval
22341        fi
22342
22343
22344 fi
22345
22346
22347
22348
22349
22350 bsrdir=/tmp
22351
22352 # Check whether --with-bsrdir was given.
22353 if test "${with_bsrdir+set}" = set; then :
22354   withval=$with_bsrdir;
22355        if test "x$withval" != "xno" ; then
22356           bsrdir=$withval
22357        fi
22358
22359
22360 fi
22361
22362
22363
22364
22365 logdir=/tmp
22366
22367 # Check whether --with-logdir was given.
22368 if test "${with_logdir+set}" = set; then :
22369   withval=$with_logdir;
22370        if test "x$withval" != "xno" ; then
22371           logdir=$withval
22372        fi
22373
22374
22375 fi
22376
22377
22378
22379
22380
22381 # ------------------------------------------
22382 # Where to place plugindir (plugin files)
22383 # ------------------------------------------
22384 plugindir=`eval echo ${libdir}`
22385
22386 # Check whether --with-plugindir was given.
22387 if test "${with_plugindir+set}" = set; then :
22388   withval=$with_plugindir;
22389        if test "x$withval" != "xno" ; then
22390           plugindir=$withval
22391        fi
22392
22393
22394 fi
22395
22396
22397
22398
22399 dump_email=root@localhost
22400
22401 # Check whether --with-dump-email was given.
22402 if test "${with_dump_email+set}" = set; then :
22403   withval=$with_dump_email;
22404        if test "x$withval" != "xno" ; then
22405           dump_email=$withval
22406        fi
22407
22408
22409 fi
22410
22411
22412
22413
22414 job_email=root@localhost
22415
22416 # Check whether --with-job-email was given.
22417 if test "${with_job_email+set}" = set; then :
22418   withval=$with_job_email;
22419        if test "x$withval" != "xno" ; then
22420           job_email=$withval
22421        fi
22422
22423
22424 fi
22425
22426
22427
22428
22429 smtp_host=localhost
22430
22431 # Check whether --with-smtp_host was given.
22432 if test "${with_smtp_host+set}" = set; then :
22433   withval=$with_smtp_host;
22434        if test "x$withval" != "xno" ; then
22435           smtp_host=$withval
22436        fi
22437
22438
22439 fi
22440
22441
22442
22443
22444 piddir=/var/run
22445
22446 # Check whether --with-pid-dir was given.
22447 if test "${with_pid_dir+set}" = set; then :
22448   withval=$with_pid_dir;
22449        if test "x$withval" != "xno" ; then
22450           piddir=$withval
22451        fi
22452
22453
22454 fi
22455
22456
22457 cat >>confdefs.h <<_ACEOF
22458 #define _PATH_BACULA_PIDDIR "$piddir"
22459 _ACEOF
22460
22461
22462
22463 subsysdir=/var/run/subsys
22464 if test -d /var/run/subsys; then
22465    subsysdir=/var/run/subsys
22466 elif test -d /var/lock/subsys; then
22467    subsysdir=/var/lock/subsys
22468 else
22469    subsysdir=/var/run/subsys
22470 fi
22471
22472 # Check whether --with-subsys-dir was given.
22473 if test "${with_subsys_dir+set}" = set; then :
22474   withval=$with_subsys_dir;
22475        if test "x$withval" != "xno" ; then
22476           subsysdir=$withval
22477        fi
22478
22479
22480 fi
22481
22482
22483
22484
22485 baseport=9101
22486
22487 # Check whether --with-baseport was given.
22488 if test "${with_baseport+set}" = set; then :
22489   withval=$with_baseport;
22490        if test "x$withval" != "xno" ; then
22491           baseport=$withval
22492        fi
22493
22494
22495 fi
22496
22497
22498
22499 dir_port=`expr $baseport`
22500 fd_port=`expr $baseport + 1`
22501 sd_port=`expr $fd_port + 1`
22502
22503
22504
22505
22506
22507 dir_password=
22508
22509 # Check whether --with-dir-password was given.
22510 if test "${with_dir_password+set}" = set; then :
22511   withval=$with_dir_password;
22512        if test "x$withval" != "xno" ; then
22513           dir_password=$withval
22514        fi
22515
22516
22517 fi
22518
22519
22520 if test "x$dir_password" = "x" ; then
22521    if test "x$OPENSSL" = "xnone" ; then
22522       key=`autoconf/randpass 33`
22523    else
22524       key=`openssl rand -base64 33`
22525    fi
22526    dir_password=$key
22527 fi
22528
22529 fd_password=
22530
22531 # Check whether --with-fd-password was given.
22532 if test "${with_fd_password+set}" = set; then :
22533   withval=$with_fd_password;
22534        if test "x$withval" != "xno" ; then
22535           fd_password=$withval
22536        fi
22537
22538
22539 fi
22540
22541
22542 if test "x$fd_password" = "x" ; then
22543    if test "x$OPENSSL" = "xnone" ; then
22544       key=`autoconf/randpass 37`
22545    else
22546       key=`openssl rand -base64 33`
22547    fi
22548    fd_password=$key
22549 fi
22550
22551 sd_password=
22552
22553 # Check whether --with-sd-password was given.
22554 if test "${with_sd_password+set}" = set; then :
22555   withval=$with_sd_password;
22556        if test "x$withval" != "xno" ; then
22557           sd_password=$withval
22558        fi
22559
22560
22561 fi
22562
22563
22564 if test "x$sd_password" = "x" ; then
22565    if test "x$OPENSSL" = "xnone" ; then
22566       key=`autoconf/randpass 41`
22567    else
22568       key=`openssl rand -base64 33`
22569    fi
22570    sd_password=$key
22571 fi
22572
22573 mon_dir_password=
22574
22575 # Check whether --with-mon-dir-password was given.
22576 if test "${with_mon_dir_password+set}" = set; then :
22577   withval=$with_mon_dir_password;
22578        if test "x$withval" != "xno" ; then
22579           mon_dir_password=$withval
22580        fi
22581
22582
22583 fi
22584
22585
22586 if test "x$mon_dir_password" = "x" ; then
22587    if test "x$OPENSSL" = "xnone" ; then
22588       key=`autoconf/randpass 33`
22589    else
22590       key=`openssl rand -base64 33`
22591    fi
22592    mon_dir_password=$key
22593 fi
22594
22595 mon_fd_password=
22596
22597 # Check whether --with-mon-fd-password was given.
22598 if test "${with_mon_fd_password+set}" = set; then :
22599   withval=$with_mon_fd_password;
22600        if test "x$withval" != "xno" ; then
22601           mon_fd_password=$withval
22602        fi
22603
22604
22605 fi
22606
22607
22608 if test "x$mon_fd_password" = "x" ; then
22609    if test "x$OPENSSL" = "xnone" ; then
22610       key=`autoconf/randpass 37`
22611    else
22612       key=`openssl rand -base64 33`
22613    fi
22614    mon_fd_password=$key
22615 fi
22616
22617 mon_sd_password=
22618
22619 # Check whether --with-mon-sd-password was given.
22620 if test "${with_mon_sd_password+set}" = set; then :
22621   withval=$with_mon_sd_password;
22622        if test "x$withval" != "xno" ; then
22623           mon_sd_password=$withval
22624        fi
22625
22626
22627 fi
22628
22629
22630 if test "x$mon_sd_password" = "x" ; then
22631    if test "x$OPENSSL" = "xnone" ; then
22632       key=`autoconf/randpass 41`
22633    else
22634       key=`openssl rand -base64 33`
22635    fi
22636    mon_sd_password=$key
22637 fi
22638
22639
22640
22641
22642
22643
22644
22645
22646 db_name=bacula
22647
22648 # Check whether --with-db_name was given.
22649 if test "${with_db_name+set}" = set; then :
22650   withval=$with_db_name;
22651        if test "x$withval" != "x" ; then
22652           db_name=$withval
22653        fi
22654
22655
22656 fi
22657
22658
22659
22660 db_user=bacula
22661
22662 # Check whether --with-db_user was given.
22663 if test "${with_db_user+set}" = set; then :
22664   withval=$with_db_user;
22665        if test "x$withval" != "x" ; then
22666           db_user=$withval
22667        fi
22668
22669
22670 fi
22671
22672
22673
22674 db_password=
22675
22676 # Check whether --with-db_password was given.
22677 if test "${with_db_password+set}" = set; then :
22678   withval=$with_db_password;
22679        if test "x$withval" != "x" ; then
22680           db_password=$withval
22681        fi
22682
22683
22684 fi
22685
22686
22687
22688 db_port=" "
22689
22690 # Check whether --with-db_port was given.
22691 if test "${with_db_port+set}" = set; then :
22692   withval=$with_db_port;
22693        if test "x$withval" != "x" ; then
22694           db_port=$withval
22695        fi
22696
22697
22698 fi
22699
22700
22701
22702 #
22703 # Handle users and groups for each daemon
22704 #
22705 dir_user=
22706
22707 # Check whether --with-dir_user was given.
22708 if test "${with_dir_user+set}" = set; then :
22709   withval=$with_dir_user;
22710        if test "x$withval" != "x" ; then
22711            dir_user=$withval
22712        fi
22713
22714
22715 fi
22716
22717
22718 dir_group=
22719
22720 # Check whether --with-dir_group was given.
22721 if test "${with_dir_group+set}" = set; then :
22722   withval=$with_dir_group;
22723        if test "x$withval" != "x" ; then
22724           dir_group=$withval
22725        fi
22726
22727
22728 fi
22729
22730
22731 sd_user=
22732
22733 # Check whether --with-sd_user was given.
22734 if test "${with_sd_user+set}" = set; then :
22735   withval=$with_sd_user;
22736        if test "x$withval" != "x" ; then
22737           sd_user=$withval
22738        fi
22739
22740
22741 fi
22742
22743
22744 sd_group=
22745
22746 # Check whether --with-sd_group was given.
22747 if test "${with_sd_group+set}" = set; then :
22748   withval=$with_sd_group;
22749        if test "x$withval" != "x" ; then
22750           sd_group=$withval
22751        fi
22752
22753
22754 fi
22755
22756
22757 fd_user=
22758
22759 # Check whether --with-fd_user was given.
22760 if test "${with_fd_user+set}" = set; then :
22761   withval=$with_fd_user;
22762        if test "x$withval" != "x" ; then
22763           fd_user=$withval
22764        fi
22765
22766
22767 fi
22768
22769
22770 fd_group=
22771
22772 # Check whether --with-fd_group was given.
22773 if test "${with_fd_group+set}" = set; then :
22774   withval=$with_fd_group;
22775        if test "x$withval" != "x" ; then
22776           fd_group=$withval
22777        fi
22778
22779
22780 fi
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790 SBINPERM=0750
22791
22792 # Check whether --with-sbin-perm was given.
22793 if test "${with_sbin_perm+set}" = set; then :
22794   withval=$with_sbin_perm;
22795        if test "x$withval" != "x" ; then
22796           SBINPERM=$withval
22797        fi
22798
22799
22800 fi
22801
22802
22803
22804
22805
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22807 $as_echo_n "checking for PostgreSQL support... " >&6; }
22808
22809 # Check whether --with-postgresql was given.
22810 if test "${with_postgresql+set}" = set; then :
22811   withval=$with_postgresql;
22812   if test "$withval" != "no"; then
22813       if test "$withval" = "yes"; then
22814           PG_CONFIG=`which pg_config`
22815           if test -n "$PG_CONFIG"; then
22816               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22817               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22818               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22819           elif test -f /usr/local/include/libpq-fe.h; then
22820               POSTGRESQL_INCDIR=/usr/local/include
22821               if test -d /usr/local/lib64; then
22822                  POSTGRESQL_LIBDIR=/usr/local/lib64
22823               else
22824                  POSTGRESQL_LIBDIR=/usr/local/lib
22825               fi
22826               POSTGRESQL_BINDIR=/usr/local/bin
22827           elif test -f /usr/include/libpq-fe.h; then
22828               POSTGRESQL_INCDIR=/usr/include
22829               if test -d /usr/lib64; then
22830                  POSTGRESQL_LIBDIR=/usr/lib64
22831               else
22832                  POSTGRESQL_LIBDIR=/usr/lib
22833               fi
22834               POSTGRESQL_BINDIR=/usr/bin
22835           elif test -f /usr/include/pgsql/libpq-fe.h; then
22836               POSTGRESQL_INCDIR=/usr/include/pgsql
22837               if test -d /usr/lib64/pgsql; then
22838                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22839               else
22840                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22841               fi
22842               POSTGRESQL_BINDIR=/usr/bin
22843           elif test -f /usr/include/postgresql/libpq-fe.h; then
22844               POSTGRESQL_INCDIR=/usr/include/postgresql
22845               if test -d /usr/lib64/postgresql; then
22846                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22847               else
22848                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22849               fi
22850               POSTGRESQL_BINDIR=/usr/bin
22851           else
22852               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22853 $as_echo "no" >&6; }
22854               as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22855           fi
22856       elif test -f $withval/include/libpq-fe.h; then
22857           POSTGRESQL_INCDIR=$withval/include
22858           POSTGRESQL_LIBDIR=$withval/lib
22859           POSTGRESQL_BINDIR=$withval/bin
22860       elif test -f $withval/include/postgresql/libpq-fe.h; then
22861           POSTGRESQL_INCDIR=$withval/include/postgresql
22862           if test -d $withval/lib64; then
22863               POSTGRESQL_LIBDIR=$withval/lib64
22864           else
22865               POSTGRESQL_LIBDIR=$withval/lib
22866           fi
22867           POSTGRESQL_BINDIR=$withval/bin
22868       else
22869           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22870 $as_echo "no" >&6; }
22871           as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22872       fi
22873
22874 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22875
22876      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22877 $as_echo "yes" >&6; }
22878
22879      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
22880      POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
22881      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22882 if test "x$ac_cv_func_crypt" = x""yes; then :
22883
22884 else
22885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22886 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22887 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22888   $as_echo_n "(cached) " >&6
22889 else
22890   ac_check_lib_save_LIBS=$LIBS
22891 LIBS="-lcrypt  $LIBS"
22892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22893 /* end confdefs.h.  */
22894
22895 /* Override any GCC internal prototype to avoid an error.
22896    Use char because int might match the return type of a GCC
22897    builtin and then its argument prototype would still apply.  */
22898 #ifdef __cplusplus
22899 extern "C"
22900 #endif
22901 char crypt ();
22902 int
22903 main ()
22904 {
22905 return crypt ();
22906   ;
22907   return 0;
22908 }
22909 _ACEOF
22910 if ac_fn_c_try_link "$LINENO"; then :
22911   ac_cv_lib_crypt_crypt=yes
22912 else
22913   ac_cv_lib_crypt_crypt=no
22914 fi
22915 rm -f core conftest.err conftest.$ac_objext \
22916     conftest$ac_exeext conftest.$ac_ext
22917 LIBS=$ac_check_lib_save_LIBS
22918 fi
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22920 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22921 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22922   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
22923 fi
22924
22925 fi
22926
22927      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22928      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
22929
22930      if test -z "${db_backends}"; then
22931          db_backends="PostgreSQL"
22932      else
22933          db_backends="${db_backends} PostgreSQL"
22934      fi
22935      if test -z "${DB_BACKENDS}"; then
22936          DB_BACKENDS="postgresql"
22937      else
22938          DB_BACKENDS="${DB_BACKENDS} postgresql"
22939      fi
22940   else
22941      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22942 $as_echo "no" >&6; }
22943   fi
22944
22945 else
22946
22947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22948 $as_echo "no" >&6; }
22949
22950 fi
22951
22952
22953
22954
22955
22956
22957
22958
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22960 $as_echo_n "checking for MySQL support... " >&6; }
22961
22962 # Check whether --with-mysql was given.
22963 if test "${with_mysql+set}" = set; then :
22964   withval=$with_mysql;
22965   if test "$withval" != "no"; then
22966         if test "$withval" = "yes"; then
22967            if test -f /usr/local/mysql/include/mysql/mysql.h; then
22968                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
22969                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22970                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22971                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22972                    else
22973                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22974                    fi
22975                    MYSQL_BINDIR=/usr/local/mysql/bin
22976            elif test -f /usr/include/mysql/mysql.h; then
22977                    MYSQL_INCDIR=/usr/include/mysql
22978                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22979                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22980                            MYSQL_LIBDIR=/usr/lib64/mysql
22981                    elif test -f /usr/lib64/libmysqlclient_r.a \
22982                         -o -f /usr/lib64/libmysqlclient_r.so; then
22983                            MYSQL_LIBDIR=/usr/lib64
22984                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22985                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22986                            MYSQL_LIBDIR=/usr/lib/mysql
22987                    else
22988                            MYSQL_LIBDIR=/usr/lib
22989                    fi
22990                    MYSQL_BINDIR=/usr/bin
22991            elif test -f /usr/include/mysql.h; then
22992                    MYSQL_INCDIR=/usr/include
22993                    if test -f /usr/lib64/libmysqlclient_r.a \
22994                         -o -f /usr/lib64/libmysqlclient_r.so; then
22995                            MYSQL_LIBDIR=/usr/lib64
22996                    else
22997                            MYSQL_LIBDIR=/usr/lib
22998                    fi
22999                    MYSQL_BINDIR=/usr/bin
23000            elif test -f /usr/local/include/mysql/mysql.h; then
23001                    MYSQL_INCDIR=/usr/local/include/mysql
23002                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23003                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23004                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23005                    else
23006                            MYSQL_LIBDIR=/usr/local/lib/mysql
23007                    fi
23008                    MYSQL_BINDIR=/usr/local/bin
23009            elif test -f /usr/local/include/mysql.h; then
23010                    MYSQL_INCDIR=/usr/local/include
23011                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23012                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23013                            MYSQL_LIBDIR=/usr/local/lib64
23014                    else
23015                            MYSQL_LIBDIR=/usr/local/lib
23016                    fi
23017                    MYSQL_BINDIR=/usr/local/bin
23018            else
23019               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23020 $as_echo "no" >&6; }
23021               as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23022            fi
23023         else
23024            if test -f $withval/include/mysql/mysql.h; then
23025               MYSQL_INCDIR=$withval/include/mysql
23026               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23027                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23028                  MYSQL_LIBDIR=$withval/lib64/mysql
23029               elif test -f $withval/lib64/libmysqlclient_r.a \
23030                    -o -f $withval/lib64/libmysqlclient_r.so; then
23031                  MYSQL_LIBDIR=$withval/lib64
23032               elif test -f $withval/lib/libmysqlclient_r.a \
23033                    -o -f $withval/lib/libmysqlclient_r.so; then
23034                  MYSQL_LIBDIR=$withval/lib
23035               else
23036                  MYSQL_LIBDIR=$withval/lib/mysql
23037               fi
23038               MYSQL_BINDIR=$withval/bin
23039            elif test -f $withval/include/mysql.h; then
23040               MYSQL_INCDIR=$withval/include
23041               if test -f $withval/lib64/libmysqlclient_r.a \
23042                    -o -f $withval/lib64/libmysqlclient_r.so; then
23043                  MYSQL_LIBDIR=$withval/lib64
23044               else
23045                  MYSQL_LIBDIR=$withval/lib
23046               fi
23047               MYSQL_BINDIR=$withval/bin
23048            else
23049               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23050 $as_echo "no" >&6; }
23051               as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23052            fi
23053         fi
23054      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23055      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23056           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23057         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23058
23059 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23060
23061         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23062      fi
23063      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23064
23065
23066 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23067
23068      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23069 $as_echo "yes" >&6; }
23070
23071      if test -z "${db_backends}" ; then
23072          db_backends="MySQL"
23073      else
23074          db_backends="${db_backends} MySQL"
23075      fi
23076      if test -z "${DB_BACKENDS}" ; then
23077          DB_BACKENDS="mysql"
23078      else
23079          DB_BACKENDS="${DB_BACKENDS} mysql"
23080      fi
23081   else
23082      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23083 $as_echo "no" >&6; }
23084   fi
23085
23086
23087 fi
23088
23089
23090
23091 # Check whether --with-embedded-mysql was given.
23092 if test "${with_embedded_mysql+set}" = set; then :
23093   withval=$with_embedded_mysql;
23094   if test "$withval" != "no"; then
23095         if test "$withval" = "yes"; then
23096                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23097                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23098                         if test -d /usr/local/mysql/lib64/mysql; then
23099                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23100                         else
23101                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23102                         fi
23103                         MYSQL_BINDIR=/usr/local/mysql/bin
23104                 elif test -f /usr/include/mysql/mysql.h; then
23105                         MYSQL_INCDIR=/usr/include/mysql
23106                         if test -d /usr/lib64/mysql; then
23107                                 MYSQL_LIBDIR=/usr/lib64/mysql
23108                         else
23109                                 MYSQL_LIBDIR=/usr/lib/mysql
23110                         fi
23111                         MYSQL_BINDIR=/usr/bin
23112                 elif test -f /usr/include/mysql.h; then
23113                         MYSQL_INCDIR=/usr/include
23114                         if test -d /usr/lib64; then
23115                                 MYSQL_LIBDIR=/usr/lib64
23116                         else
23117                                 MYSQL_LIBDIR=/usr/lib
23118                         fi
23119                         MYSQL_BINDIR=/usr/bin
23120                 elif test -f /usr/local/include/mysql/mysql.h; then
23121                         MYSQL_INCDIR=/usr/local/include/mysql
23122                         if test -d /usr/local/lib64/mysql; then
23123                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23124                         else
23125                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23126                         fi
23127                         MYSQL_BINDIR=/usr/local/bin
23128                 elif test -f /usr/local/include/mysql.h; then
23129                         MYSQL_INCDIR=/usr/local/include
23130                         if test -d /usr/local/lib64; then
23131                                 MYSQL_LIBDIR=/usr/local/lib64
23132                         else
23133                                 MYSQL_LIBDIR=/usr/local/lib
23134                         fi
23135                         MYSQL_BINDIR=/usr/local/bin
23136                 else
23137                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23138 $as_echo "no" >&6; }
23139                    as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23140                 fi
23141         else
23142                 if test -f $withval/include/mysql/mysql.h; then
23143                         MYSQL_INCDIR=$withval/include/mysql
23144                         if test -d $withval/lib64/mysql; then
23145                                 MYSQL_LIBDIR=$withval/lib64/mysql
23146                         else
23147                                 MYSQL_LIBDIR=$withval/lib/mysql
23148                         fi
23149                         MYSQL_BINDIR=$withval/bin
23150                 elif test -f $withval/include/mysql.h; then
23151                         MYSQL_INCDIR=$withval/include
23152                         if test -d $withval/lib64; then
23153                                 MYSQL_LIBDIR=$withval/lib64
23154                         else
23155                                 MYSQL_LIBDIR=$withval/lib
23156                         fi
23157                         MYSQL_BINDIR=$withval/bin
23158                 else
23159                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23160 $as_echo "no" >&6; }
23161                    as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23162                 fi
23163         fi
23164      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23165      MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23166      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23167      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23168
23169
23170 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23171
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
23178      if test -z "${db_backends}"; then
23179          db_backends="MySQL"
23180      else
23181          db_backends="${db_backends} MySQL"
23182      fi
23183      if test -z "${DB_BACKENDS}"; then
23184          DB_BACKENDS="mysql"
23185      else
23186          DB_BACKENDS="${DB_BACKENDS} mysql"
23187      fi
23188   else
23189      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23190 $as_echo "no" >&6; }
23191   fi
23192
23193
23194 fi
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23205 $as_echo_n "checking for SQLite3 support... " >&6; }
23206
23207 # Check whether --with-sqlite3 was given.
23208 if test "${with_sqlite3+set}" = set; then :
23209   withval=$with_sqlite3;
23210   if test "$withval" != "no"; then
23211      if test "$withval" = "yes"; then
23212         if test -f /usr/local/include/sqlite3.h; then
23213            SQLITE_INCDIR=/usr/local/include
23214            if test -d /usr/local/lib64; then
23215               SQLITE_LIBDIR=/usr/local/lib64
23216            else
23217               SQLITE_LIBDIR=/usr/local/lib
23218            fi
23219            SQLITE_BINDIR=/usr/local/bin
23220         elif test -f /usr/include/sqlite3.h; then
23221            SQLITE_INCDIR=/usr/include
23222            if test -d /usr/lib64; then
23223               SQLITE_LIBDIR=/usr/lib64
23224            else
23225               SQLITE_LIBDIR=/usr/lib
23226            fi
23227            SQLITE_BINDIR=/usr/bin
23228         elif test -f $prefix/include/sqlite3.h; then
23229            SQLITE_INCDIR=$prefix/include
23230            if test -d $prefix/lib64; then
23231               SQLITE_LIBDIR=$prefix/lib64
23232            else
23233               SQLITE_LIBDIR=$prefix/lib
23234            fi
23235            SQLITE_BINDIR=$prefix/bin
23236         else
23237            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23238 $as_echo "no" >&6; }
23239            as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23240         fi
23241      else
23242         if test -f $withval/sqlite3.h; then
23243            SQLITE_INCDIR=$withval
23244            SQLITE_LIBDIR=$withval
23245            SQLITE_BINDIR=$withval
23246         elif test -f $withval/include/sqlite3.h; then
23247            SQLITE_INCDIR=$withval/include
23248            if test -d $withval/lib64; then
23249               SQLITE_LIBDIR=$withval/lib64
23250            else
23251               SQLITE_LIBDIR=$withval/lib
23252            fi
23253            SQLITE_BINDIR=$withval/bin
23254         else
23255            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23256 $as_echo "no" >&6; }
23257            as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23258         fi
23259      fi
23260      SQLITE_INCLUDE=-I$SQLITE_INCDIR
23261      SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23262      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23263      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23264
23265
23266 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23267
23268      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23269 $as_echo "yes" >&6; }
23270
23271      if test -z "${db_backends}"; then
23272          db_backends="SQLite3"
23273      else
23274          db_backends="${db_backends} SQLite3"
23275      fi
23276      if test -z "${DB_BACKENDS}"; then
23277          DB_BACKENDS="sqlite3"
23278      else
23279          DB_BACKENDS="${DB_BACKENDS} sqlite3"
23280      fi
23281   else
23282      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23283 $as_echo "no" >&6; }
23284   fi
23285
23286 else
23287
23288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23289 $as_echo "no" >&6; }
23290
23291 fi
23292
23293
23294
23295
23296
23297
23298
23299
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23301 $as_echo_n "checking for Ingres support... " >&6; }
23302
23303 # Check whether --with-ingres was given.
23304 if test "${with_ingres+set}" = set; then :
23305   withval=$with_ingres;
23306   if test "$withval" != "no"; then
23307      if test "$withval" = "yes"; then
23308         if test -f ${II_SYSTEM}/files/eqdefc.h; then
23309            INGRES_INCDIR=${II_SYSTEM}/files
23310            INGRES_LIBDIR=${II_SYSTEM}/lib
23311            INGRES_BINDIR=${II_SYSTEM}/bin
23312         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23313            INGRES_INCDIR=${II_SYSTEM}/ingres/files
23314            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23315            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23316         else
23317            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23318 $as_echo "no" >&6; }
23319            as_fn_error "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23320         fi
23321      else
23322         if test -f $withval/files/eqdefc.h; then
23323            INGRES_INCDIR=$withval/files
23324            INGRES_LIBDIR=$withval/lib
23325            INGRES_BINDIR=$withval/bin
23326         else
23327            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23328 $as_echo "no" >&6; }
23329            as_fn_error "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23330         fi
23331      fi
23332      INGRES_INCLUDE=-I$INGRES_INCDIR
23333      INGRES_LIBS="-R $INGRES_LIBDIR -L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23334      DB_LIBS="${DB_LIBS} ${INGRES_LIBS}"
23335
23336 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23337
23338      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23339 $as_echo "yes" >&6; }
23340
23341      if test -z "${db_backends}"; then
23342          db_backends="Ingres"
23343      else
23344          db_backends="${db_backends} Ingres"
23345      fi
23346      if test -z "${DB_BACKENDS}"; then
23347          DB_BACKENDS="ingres"
23348      else
23349          DB_BACKENDS="${DB_BACKENDS} ingres"
23350      fi
23351   else
23352      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23353 $as_echo "no" >&6; }
23354   fi
23355
23356 else
23357
23358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23359 $as_echo "no" >&6; }
23360
23361 fi
23362
23363
23364
23365
23366
23367
23368
23369
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23371 $as_echo_n "checking for DBI support... " >&6; }
23372
23373 # Check whether --with-dbi was given.
23374 if test "${with_dbi+set}" = set; then :
23375   withval=$with_dbi;
23376   if test "$withval" != "no"; then
23377      if test "$withval" = "yes"; then
23378         if test -f /usr/local/include/dbi/dbi.h; then
23379            DBI_INCDIR=/usr/local/dbi/include
23380            if test -d /usr/local/lib64; then
23381               DBI_LIBDIR=/usr/local/lib64
23382            else
23383               DBI_LIBDIR=/usr/local/lib
23384            fi
23385            DBI_BINDIR=/usr/local/bin
23386         elif test -f /usr/include/dbi/dbi.h; then
23387            DBI_INCDIR=/usr/include
23388            if test -d /usr/lib64; then
23389               DBI_LIBDIR=/usr/lib64
23390            else
23391               DBI_LIBDIR=/usr/lib
23392            fi
23393            DBI_BINDIR=/usr/bin
23394         elif test -f $prefix/include/dbi/dbi.h; then
23395            DBI_INCDIR=$prefix/include
23396            if test -d $prefix/lib64; then
23397               DBI_LIBDIR=$prefix/lib64
23398            else
23399               DBI_LIBDIR=$prefix/lib
23400            fi
23401            DBI_BINDIR=$prefix/bin
23402         else
23403            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23404 $as_echo "no" >&6; }
23405            as_fn_error "Unable to find dbi.h in standard locations" "$LINENO" 5
23406         fi
23407         if test -d /usr/local/lib/dbd; then
23408            DRIVERDIR=/usr/local/lib/dbd
23409            if test -d /usr/local/lib64/dbd; then
23410               DRIVERDIR=/usr/local/lib64/dbd
23411            else
23412               DRIVERDIR=/usr/local/lib/dbd
23413            fi
23414         elif test -d /usr/lib/dbd; then
23415            DRIVERDIR=/usr/lib/dbd
23416            if test -d /usr/lib64/dbd; then
23417               DRIVERDIR=/usr/lib64/dbd
23418            else
23419               DRIVERDIR=/usr/lib/dbd
23420            fi
23421         elif test -d $prefix/lib/dbd; then
23422            if test -d $prefix/lib64/dbd; then
23423               DRIVERDIR=$prefix/lib64/dbd
23424            else
23425               DRIVERDIR=$prefix/lib/dbd
23426            fi
23427         elif test -d /usr/local/lib64/dbd; then
23428            DRIVERDIR=/usr/local/lib64/dbd
23429         elif test -d /usr/lib64/dbd; then
23430            DRIVERDIR=/usr/lib64/dbd
23431         elif test -d $prefix/lib64/dbd; then
23432            DRIVERDIR=$prefix/lib64/dbd
23433         else
23434            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23435 $as_echo "no" >&6; }
23436            as_fn_error "Unable to find DBD drivers in standard locations" "$LINENO" 5
23437         fi
23438      else
23439         if test -f $withval/dbi.h; then
23440            DBI_INCDIR=$withval
23441            DBI_LIBDIR=$withval
23442            DBI_BINDIR=$withval
23443         elif test -f $withval/include/dbi/dbi.h; then
23444            DBI_INCDIR=$withval/include
23445            if test -d $withval/lib64; then
23446               DBI_LIBDIR=$withval/lib64
23447            else
23448               DBI_LIBDIR=$withval/lib
23449            fi
23450            DBI_BINDIR=$withval/bin
23451         else
23452            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23453 $as_echo "no" >&6; }
23454            as_fn_error "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23455         fi
23456         if test -d $withval/dbd; then
23457            DRIVERDIR=$withval/dbd
23458         elif test -d $withval/lib/; then
23459            if test -d $withval/lib64/dbd; then
23460               DRIVERDIR=$withval/lib64/dbd
23461            else
23462               DRIVERDIR=$withval/lib/dbd
23463            fi
23464         elif test -d $withval/lib64/dbd; then
23465            DRIVERDIR=$withval/lib64/dbd
23466         else
23467            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23468 $as_echo "no" >&6; }
23469            as_fn_error "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23470         fi
23471      fi
23472      DBI_INCLUDE=-I$DBI_INCDIR
23473      DBI_LIBS="-R $DBI_LIBDIR -L$DBI_LIBDIR -ldbi"
23474      DBI_LIB=$DBI_LIBDIR/libdbi.a
23475      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23476      DB_LIBS="${DB_LIBS} ${DBI_LIBS}"
23477
23478
23479 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23480
23481      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23482 $as_echo "yes" >&6; }
23483
23484      if test -z "${db_backends}"; then
23485          db_backends="DBI"
23486      else
23487          db_backends="${db_backends} DBI"
23488      fi
23489      if test -z "${DB_BACKENDS}" ; then
23490         DB_BACKENDS="dbi"
23491      else
23492         DB_BACKENDS="${DB_BACKENDS} dbi"
23493      fi
23494      uncomment_dbi=" "
23495
23496   else
23497      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23498 $as_echo "no" >&6; }
23499   fi
23500
23501 else
23502
23503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23504 $as_echo "no" >&6; }
23505
23506 fi
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518 db_prog=no
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23520 $as_echo_n "checking for DBI drivers support... " >&6; }
23521
23522 # Check whether --with-dbi-driver was given.
23523 if test "${with_dbi_driver+set}" = set; then :
23524   withval=$with_dbi_driver;
23525   if test "$withval" != "no"; then
23526      case $withval in
23527         "mysql")
23528            db_prog="mysql"
23529            if test -f /usr/local/mysql/bin/mysql; then
23530               SQL_BINDIR=/usr/local/mysql/bin
23531               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23532                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23533                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23534               else
23535                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23536               fi
23537            elif test -f /usr/bin/mysql; then
23538               SQL_BINDIR=/usr/bin
23539               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23540                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23541                   MYSQL_LIBDIR=/usr/lib64/mysql
23542               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23543                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23544                   MYSQL_LIBDIR=/usr/lib/mysql
23545               else
23546                   MYSQL_LIBDIR=/usr/lib
23547               fi
23548            elif test -f /usr/local/bin/mysql; then
23549               SQL_BINDIR=/usr/local/bin
23550               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23551                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23552                   MYSQL_LIBDIR=/usr/local/lib64/mysql
23553               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23554                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23555                   MYSQL_LIBDIR=/usr/local/lib/mysql
23556               else
23557                   MYSQL_LIBDIR=/usr/local/lib
23558               fi
23559            elif test -f $withval/bin/mysql; then
23560               SQL_BINDIR=$withval/bin
23561               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23562                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23563                   MYSQL_LIBDIR=$withval/lib64/mysql
23564               elif test -f $withval/lib64/libmysqlclient_r.a \
23565                   -o -f $withval/lib64/libmysqlclient_r.so; then
23566                   MYSQL_LIBDIR=$withval/lib64
23567               elif test -f $withval/lib/libmysqlclient_r.a \
23568                   -o -f $withval/lib/libmysqlclient_r.so; then
23569                   MYSQL_LIBDIR=$withval/lib/
23570               else
23571                   MYSQL_LIBDIR=$withval/lib/mysql
23572               fi
23573            else
23574               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23575 $as_echo "no" >&6; }
23576               as_fn_error "Unable to find mysql in standard locations" "$LINENO" 5
23577            fi
23578            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23579               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23580            else
23581               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23582            fi
23583         ;;
23584         "postgresql")
23585            db_prog="postgresql"
23586            PG_CONFIG=`which pg_config`
23587            if test -n "$PG_CONFIG"; then
23588               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23589               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23590            elif test -f /usr/local/bin/psql; then
23591               POSTGRESQL_BINDIR=/usr/local/bin
23592               if test -d /usr/local/lib64; then
23593                  POSTGRESQL_LIBDIR=/usr/local/lib64
23594               else
23595                  POSTGRESQL_LIBDIR=/usr/local/lib
23596               fi
23597            elif test -f /usr/bin/psql; then
23598               POSTGRESQL_BINDIR=/usr/local/bin
23599               if test -d /usr/lib64/postgresql; then
23600                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23601               elif test -d /usr/lib/postgresql; then
23602                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23603               elif test -d /usr/lib64; then
23604                  POSTGRESQL_LIBDIR=/usr/lib64
23605               else
23606                  POSTGRESQL_LIBDIR=/usr/lib
23607               fi
23608            elif test -f $withval/bin/psql; then
23609               POSTGRESQL_BINDIR=$withval/bin
23610               if test -d $withval/lib64; then
23611                  POSTGRESQL_LIBDIR=$withval/lib64
23612               else
23613                  POSTGRESQL_LIBDIR=$withval/lib
23614               fi
23615            else
23616               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23617 $as_echo "no" >&6; }
23618               as_fn_error "Unable to find psql in standard locations" "$LINENO" 5
23619            fi
23620            if test -f $POSTGRESQL_LIBDIR/libpq.so; then
23621               DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.so
23622            else
23623               DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.a
23624            fi
23625         ;;
23626         "sqlite3")
23627            db_prog="sqlite3"
23628            if test -f /usr/local/bin/sqlite3; then
23629               SQLITE_BINDIR=/usr/local/bin
23630               if test -d /usr/local/lib64; then
23631                  SQLITE_LIBDIR=/usr/local/lib64
23632               else
23633                  SQLITE_LIBDIR=/usr/local/lib
23634               fi
23635            elif test -f /usr/bin/sqlite3; then
23636               SQLITE_BINDIR=/usr/bin
23637               if test -d /usr/lib64; then
23638                  SQLITE_LIBDIR=/usr/lib64
23639               else
23640                  SQLITE_LIBDIR=/usr/lib
23641               fi
23642            elif test -f $withval/bin/sqlite3; then
23643               SQLITE_BINDIR=$withval/bin
23644               if test -d $withval/lib64; then
23645                  SQLITE_LIBDIR=$withval/lib64
23646               else
23647                  SQLITE_LIBDIR=$withval/lib
23648               fi
23649            else
23650               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23651 $as_echo "no" >&6; }
23652               as_fn_error "Unable to find sqlite in standard locations" "$LINENO" 5
23653            fi
23654            if test -f $SQLITE_LIBDIR/libsqlite3.so; then
23655               DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.so
23656            else
23657               DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.a
23658            fi
23659         ;;
23660         *)
23661            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23662 $as_echo "no" >&6; }
23663            as_fn_error "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23664         ;;
23665      esac
23666
23667      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23668 $as_echo "yes" >&6; }
23669      DB_PROG=$db_prog
23670   else
23671      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23672 $as_echo "no" >&6; }
23673   fi
23674
23675 else
23676
23677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23678 $as_echo "no" >&6; }
23679
23680 fi
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691 if test "x${db_backends}" = "x" ; then
23692    echo " "
23693    echo " "
23694    echo "You have not specified either --enable-client-only or one of the"
23695    echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23696    echo "This is not permitted. Please reconfigure."
23697    echo " "
23698    echo "Aborting the configuration ..."
23699    echo " "
23700    echo " "
23701    exit 1
23702 fi
23703
23704 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23705    1)
23706       DEFAULT_DB_TYPE="${DB_BACKENDS}"
23707       if test x$use_libtool = xno; then
23708          SHARED_CATALOG_TARGETS=""
23709       else
23710          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23711       fi
23712       ;;
23713    *)
23714                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23715
23716                         if test x$use_libtool = xno; then
23717          echo " "
23718          echo " "
23719          echo "You have specified two or more of the"
23720          echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23721          echo "This is not permitted when not using libtool Please reconfigure."
23722          echo " "
23723          echo "Aborting the configuration ..."
23724          echo " "
23725          echo " "
23726          exit 1
23727       fi
23728
23729       SHARED_CATALOG_TARGETS=""
23730       for db_type in ${DB_BACKENDS}
23731       do
23732          if test -z "${SHARED_CATALOG_TARGETS}"; then
23733             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23734          else
23735             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23736          fi
23737       done
23738       ;;
23739 esac
23740
23741 if test x$use_libtool = xyes; then
23742    DB_LIBS=""
23743 fi
23744
23745
23746
23747
23748
23749
23750 support_batch_insert=yes
23751 # Check whether --enable-batch-insert was given.
23752 if test "${enable_batch_insert+set}" = set; then :
23753   enableval=$enable_batch_insert;
23754        if test x$enableval = xno; then
23755           support_batch_insert=no
23756        fi
23757
23758
23759 fi
23760
23761
23762 if test x$support_batch_insert = xyes; then
23763
23764 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23765
23766 fi
23767
23768 if test ! -z "$MYSQL_LIB"; then
23769    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23770 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23771 if test "${ac_cv_lib_mysql_r_mysql_thread_safe+set}" = set; then :
23772   $as_echo_n "(cached) " >&6
23773 else
23774   ac_check_lib_save_LIBS=$LIBS
23775 LIBS="-lmysql_r  $LIBS"
23776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23777 /* end confdefs.h.  */
23778
23779 /* Override any GCC internal prototype to avoid an error.
23780    Use char because int might match the return type of a GCC
23781    builtin and then its argument prototype would still apply.  */
23782 #ifdef __cplusplus
23783 extern "C"
23784 #endif
23785 char mysql_thread_safe ();
23786 int
23787 main ()
23788 {
23789 return mysql_thread_safe ();
23790   ;
23791   return 0;
23792 }
23793 _ACEOF
23794 if ac_fn_c_try_link "$LINENO"; then :
23795   ac_cv_lib_mysql_r_mysql_thread_safe=yes
23796 else
23797   ac_cv_lib_mysql_r_mysql_thread_safe=no
23798 fi
23799 rm -f core conftest.err conftest.$ac_objext \
23800     conftest$ac_exeext conftest.$ac_ext
23801 LIBS=$ac_check_lib_save_LIBS
23802 fi
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23804 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23805 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = x""yes; then :
23806
23807 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23808
23809 fi
23810
23811 fi
23812
23813 if test ! -z "SQLITE_LIB"; then
23814    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23815 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23816 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
23817   $as_echo_n "(cached) " >&6
23818 else
23819   ac_check_lib_save_LIBS=$LIBS
23820 LIBS="-lsqlite3  $LIBS"
23821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23822 /* end confdefs.h.  */
23823
23824 /* Override any GCC internal prototype to avoid an error.
23825    Use char because int might match the return type of a GCC
23826    builtin and then its argument prototype would still apply.  */
23827 #ifdef __cplusplus
23828 extern "C"
23829 #endif
23830 char sqlite3_threadsafe ();
23831 int
23832 main ()
23833 {
23834 return sqlite3_threadsafe ();
23835   ;
23836   return 0;
23837 }
23838 _ACEOF
23839 if ac_fn_c_try_link "$LINENO"; then :
23840   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23841 else
23842   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23843 fi
23844 rm -f core conftest.err conftest.$ac_objext \
23845     conftest$ac_exeext conftest.$ac_ext
23846 LIBS=$ac_check_lib_save_LIBS
23847 fi
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23849 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23850 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
23851
23852 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23853
23854 fi
23855
23856 fi
23857
23858 if test ! -z "$POSTGRESQL_LIB"; then
23859       saved_LIBS="${LIBS}"
23860    LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23861
23862    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23863 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23864 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23865   $as_echo_n "(cached) " >&6
23866 else
23867   ac_check_lib_save_LIBS=$LIBS
23868 LIBS="-lpq  $LIBS"
23869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23870 /* end confdefs.h.  */
23871
23872 /* Override any GCC internal prototype to avoid an error.
23873    Use char because int might match the return type of a GCC
23874    builtin and then its argument prototype would still apply.  */
23875 #ifdef __cplusplus
23876 extern "C"
23877 #endif
23878 char PQisthreadsafe ();
23879 int
23880 main ()
23881 {
23882 return PQisthreadsafe ();
23883   ;
23884   return 0;
23885 }
23886 _ACEOF
23887 if ac_fn_c_try_link "$LINENO"; then :
23888   ac_cv_lib_pq_PQisthreadsafe=yes
23889 else
23890   ac_cv_lib_pq_PQisthreadsafe=no
23891 fi
23892 rm -f core conftest.err conftest.$ac_objext \
23893     conftest$ac_exeext conftest.$ac_ext
23894 LIBS=$ac_check_lib_save_LIBS
23895 fi
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23897 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23898 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
23899
23900 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23901
23902 fi
23903
23904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23905 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23906 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
23907   $as_echo_n "(cached) " >&6
23908 else
23909   ac_check_lib_save_LIBS=$LIBS
23910 LIBS="-lpq  $LIBS"
23911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23912 /* end confdefs.h.  */
23913
23914 /* Override any GCC internal prototype to avoid an error.
23915    Use char because int might match the return type of a GCC
23916    builtin and then its argument prototype would still apply.  */
23917 #ifdef __cplusplus
23918 extern "C"
23919 #endif
23920 char PQputCopyData ();
23921 int
23922 main ()
23923 {
23924 return PQputCopyData ();
23925   ;
23926   return 0;
23927 }
23928 _ACEOF
23929 if ac_fn_c_try_link "$LINENO"; then :
23930   ac_cv_lib_pq_PQputCopyData=yes
23931 else
23932   ac_cv_lib_pq_PQputCopyData=no
23933 fi
23934 rm -f core conftest.err conftest.$ac_objext \
23935     conftest$ac_exeext conftest.$ac_ext
23936 LIBS=$ac_check_lib_save_LIBS
23937 fi
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23939 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23940 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
23941
23942 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23943
23944 fi
23945
23946    if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23947       if test $support_batch_insert = yes ; then
23948
23949 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23950
23951       fi
23952    fi
23953
23954    if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23955    then
23956       echo "WARNING: Your PostgreSQL client library is too old to detect "
23957       echo "if it was compiled with --enable-thread-safety, consider to "
23958       echo "upgrade it in order to avoid problems with Batch insert mode"
23959       echo
23960    fi
23961
23962       LIBS="${saved_LIBS}"
23963 fi
23964
23965 if test ! -z "$DBI_LIBS"; then
23966             DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
23967
23968             if test $DB_PROG = postgresql; then
23969       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23970 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23971 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
23972   $as_echo_n "(cached) " >&6
23973 else
23974   ac_check_lib_save_LIBS=$LIBS
23975 LIBS="-lpq  $LIBS"
23976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23977 /* end confdefs.h.  */
23978
23979 /* Override any GCC internal prototype to avoid an error.
23980    Use char because int might match the return type of a GCC
23981    builtin and then its argument prototype would still apply.  */
23982 #ifdef __cplusplus
23983 extern "C"
23984 #endif
23985 char PQisthreadsafe ();
23986 int
23987 main ()
23988 {
23989 return PQisthreadsafe ();
23990   ;
23991   return 0;
23992 }
23993 _ACEOF
23994 if ac_fn_c_try_link "$LINENO"; then :
23995   ac_cv_lib_pq_PQisthreadsafe=yes
23996 else
23997   ac_cv_lib_pq_PQisthreadsafe=no
23998 fi
23999 rm -f core conftest.err conftest.$ac_objext \
24000     conftest$ac_exeext conftest.$ac_ext
24001 LIBS=$ac_check_lib_save_LIBS
24002 fi
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24004 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24005 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24006   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24007
24008 fi
24009
24010       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24011 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24012 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24013   $as_echo_n "(cached) " >&6
24014 else
24015   ac_check_lib_save_LIBS=$LIBS
24016 LIBS="-lpq  $LIBS"
24017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24018 /* end confdefs.h.  */
24019
24020 /* Override any GCC internal prototype to avoid an error.
24021    Use char because int might match the return type of a GCC
24022    builtin and then its argument prototype would still apply.  */
24023 #ifdef __cplusplus
24024 extern "C"
24025 #endif
24026 char PQputCopyData ();
24027 int
24028 main ()
24029 {
24030 return PQputCopyData ();
24031   ;
24032   return 0;
24033 }
24034 _ACEOF
24035 if ac_fn_c_try_link "$LINENO"; then :
24036   ac_cv_lib_pq_PQputCopyData=yes
24037 else
24038   ac_cv_lib_pq_PQputCopyData=no
24039 fi
24040 rm -f core conftest.err conftest.$ac_objext \
24041     conftest$ac_exeext conftest.$ac_ext
24042 LIBS=$ac_check_lib_save_LIBS
24043 fi
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24045 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24046 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24047   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24048
24049 fi
24050
24051       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24052       pkg=$?
24053       if test $pkg = 0; then
24054          if test $support_batch_insert = yes ; then
24055
24056 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24057
24058          fi
24059       fi
24060    fi
24061 else
24062             uncomment_dbi="#"
24063 fi
24064
24065
24066
24067 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24068
24069
24070 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24071    if test -z "$CCOPTS"; then
24072       CCOPTS='-g -O2 -Wall'
24073    fi
24074    CFLAGS="$CCOPTS"
24075 fi
24076
24077
24078
24079 largefile_support="no"
24080
24081    # Check whether --enable-largefile was given.
24082 if test "${enable_largefile+set}" = set; then :
24083   enableval=$enable_largefile;
24084 fi
24085
24086    if test "$enable_largefile" != no; then
24087      if test -n "$ac_tool_prefix"; then
24088   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24089 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24091 $as_echo_n "checking for $ac_word... " >&6; }
24092 if test "${ac_cv_prog_GETCONF+set}" = set; then :
24093   $as_echo_n "(cached) " >&6
24094 else
24095   if test -n "$GETCONF"; then
24096   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24097 else
24098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24099 for as_dir in $PATH
24100 do
24101   IFS=$as_save_IFS
24102   test -z "$as_dir" && as_dir=.
24103     for ac_exec_ext in '' $ac_executable_extensions; do
24104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24105     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24107     break 2
24108   fi
24109 done
24110   done
24111 IFS=$as_save_IFS
24112
24113 fi
24114 fi
24115 GETCONF=$ac_cv_prog_GETCONF
24116 if test -n "$GETCONF"; then
24117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24118 $as_echo "$GETCONF" >&6; }
24119 else
24120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24121 $as_echo "no" >&6; }
24122 fi
24123
24124
24125 fi
24126 if test -z "$ac_cv_prog_GETCONF"; then
24127   ac_ct_GETCONF=$GETCONF
24128   # Extract the first word of "getconf", so it can be a program name with args.
24129 set dummy getconf; ac_word=$2
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24131 $as_echo_n "checking for $ac_word... " >&6; }
24132 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24133   $as_echo_n "(cached) " >&6
24134 else
24135   if test -n "$ac_ct_GETCONF"; then
24136   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24137 else
24138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24139 for as_dir in $PATH
24140 do
24141   IFS=$as_save_IFS
24142   test -z "$as_dir" && as_dir=.
24143     for ac_exec_ext in '' $ac_executable_extensions; do
24144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24145     ac_cv_prog_ac_ct_GETCONF="getconf"
24146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24147     break 2
24148   fi
24149 done
24150   done
24151 IFS=$as_save_IFS
24152
24153 fi
24154 fi
24155 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24156 if test -n "$ac_ct_GETCONF"; then
24157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24158 $as_echo "$ac_ct_GETCONF" >&6; }
24159 else
24160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24161 $as_echo "no" >&6; }
24162 fi
24163
24164   if test "x$ac_ct_GETCONF" = x; then
24165     GETCONF=""
24166   else
24167     case $cross_compiling:$ac_tool_warned in
24168 yes:)
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24171 ac_tool_warned=yes ;;
24172 esac
24173     GETCONF=$ac_ct_GETCONF
24174   fi
24175 else
24176   GETCONF="$ac_cv_prog_GETCONF"
24177 fi
24178
24179      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24180 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24181 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24182   $as_echo_n "(cached) " >&6
24183 else
24184   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24185         ac_cv_sys_largefile_CFLAGS=no
24186         case "$host_os" in
24187            # IRIX 6.2 and later require cc -n32.
24188            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24189              if test "$GCC" != yes; then
24190                ac_cv_sys_largefile_CFLAGS=-n32
24191              fi
24192              ac_save_CC="$CC"
24193              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24194              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24195 /* end confdefs.h.  */
24196
24197 int
24198 main ()
24199 {
24200
24201   ;
24202   return 0;
24203 }
24204 _ACEOF
24205 if ac_fn_c_try_link "$LINENO"; then :
24206
24207 else
24208   ac_cv_sys_largefile_CFLAGS=no
24209 fi
24210 rm -f core conftest.err conftest.$ac_objext \
24211     conftest$ac_exeext conftest.$ac_ext
24212              CC="$ac_save_CC"
24213            esac
24214       }
24215 fi
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24217 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24218      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24219 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24220 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24221   $as_echo_n "(cached) " >&6
24222 else
24223   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24224         ac_cv_sys_largefile_LDFLAGS=no
24225
24226       }
24227 fi
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24229 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24230      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24231 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24232 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24233   $as_echo_n "(cached) " >&6
24234 else
24235   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24236         ac_cv_sys_largefile_LIBS=no
24237
24238       }
24239 fi
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24241 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24242
24243      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24244        case "$ac_flag" in
24245        no) ;;
24246        -D_FILE_OFFSET_BITS=*) ;;
24247        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24248        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24249        -D?* | -I?*)
24250          case "$ac_flag" in
24251    no) ;;
24252    ?*)
24253      case "$CPPFLAGS" in
24254      '') CPPFLAGS="$ac_flag" ;;
24255      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24256      esac ;;
24257    esac ;;
24258        *)
24259          case "$ac_flag" in
24260    no) ;;
24261    ?*)
24262      case "$CFLAGS" in
24263      '') CFLAGS="$ac_flag" ;;
24264      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24265      esac ;;
24266    esac ;;
24267        esac
24268      done
24269      case "$ac_cv_sys_largefile_LDFLAGS" in
24270    no) ;;
24271    ?*)
24272      case "$LDFLAGS" in
24273      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24274      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24275      esac ;;
24276    esac
24277      case "$ac_cv_sys_largefile_LIBS" in
24278    no) ;;
24279    ?*)
24280      case "$LIBS" in
24281      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24282      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24283      esac ;;
24284    esac
24285      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24286 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24287 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24288   $as_echo_n "(cached) " >&6
24289 else
24290   ac_cv_sys_file_offset_bits=no
24291       ac_cv_sys_file_offset_bits=64
24292       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24293         case "$ac_flag" in
24294         -D_FILE_OFFSET_BITS)
24295           ac_cv_sys_file_offset_bits=1 ;;
24296         -D_FILE_OFFSET_BITS=*)
24297           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24298         esac
24299       done
24300
24301 fi
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24303 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24304    if test "$ac_cv_sys_file_offset_bits" != no; then
24305
24306 cat >>confdefs.h <<_ACEOF
24307 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24308 _ACEOF
24309
24310    fi
24311      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24312 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24313 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24314   $as_echo_n "(cached) " >&6
24315 else
24316   ac_cv_sys_largefile_source=no
24317       ac_cv_sys_largefile_source=1
24318       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24319         case "$ac_flag" in
24320         -D_LARGEFILE_SOURCE)
24321           ac_cv_sys_largefile_source=1 ;;
24322         -D_LARGEFILE_SOURCE=*)
24323           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24324         esac
24325       done
24326
24327 fi
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24329 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24330    if test "$ac_cv_sys_largefile_source" != no; then
24331
24332 cat >>confdefs.h <<_ACEOF
24333 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24334 _ACEOF
24335
24336    fi
24337      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24338 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24339 if test "${ac_cv_sys_large_files+set}" = set; then :
24340   $as_echo_n "(cached) " >&6
24341 else
24342   ac_cv_sys_large_files=no
24343       ac_cv_sys_large_files=1
24344       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24345         case "$ac_flag" in
24346         -D_LARGE_FILES)
24347           ac_cv_sys_large_files=1 ;;
24348         -D_LARGE_FILES=*)
24349           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24350         esac
24351       done
24352
24353 fi
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24355 $as_echo "$ac_cv_sys_large_files" >&6; }
24356    if test "$ac_cv_sys_large_files" != no; then
24357
24358 cat >>confdefs.h <<_ACEOF
24359 #define _LARGE_FILES $ac_cv_sys_large_files
24360 _ACEOF
24361
24362    fi
24363    fi
24364
24365
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24367 $as_echo_n "checking for X... " >&6; }
24368
24369
24370 # Check whether --with-x was given.
24371 if test "${with_x+set}" = set; then :
24372   withval=$with_x;
24373 fi
24374
24375 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24376 if test "x$with_x" = xno; then
24377   # The user explicitly disabled X.
24378   have_x=disabled
24379 else
24380   case $x_includes,$x_libraries in #(
24381     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24382     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24383   $as_echo_n "(cached) " >&6
24384 else
24385   # One or both of the vars are not set, and there is no cached value.
24386 ac_x_includes=no ac_x_libraries=no
24387 rm -f -r conftest.dir
24388 if mkdir conftest.dir; then
24389   cd conftest.dir
24390   cat >Imakefile <<'_ACEOF'
24391 incroot:
24392         @echo incroot='${INCROOT}'
24393 usrlibdir:
24394         @echo usrlibdir='${USRLIBDIR}'
24395 libdir:
24396         @echo libdir='${LIBDIR}'
24397 _ACEOF
24398   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24399     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24400     for ac_var in incroot usrlibdir libdir; do
24401       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24402     done
24403     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24404     for ac_extension in a so sl dylib la dll; do
24405       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24406          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24407         ac_im_usrlibdir=$ac_im_libdir; break
24408       fi
24409     done
24410     # Screen out bogus values from the imake configuration.  They are
24411     # bogus both because they are the default anyway, and because
24412     # using them would break gcc on systems where it needs fixed includes.
24413     case $ac_im_incroot in
24414         /usr/include) ac_x_includes= ;;
24415         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24416     esac
24417     case $ac_im_usrlibdir in
24418         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24419         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24420     esac
24421   fi
24422   cd ..
24423   rm -f -r conftest.dir
24424 fi
24425
24426 # Standard set of common directories for X headers.
24427 # Check X11 before X11Rn because it is often a symlink to the current release.
24428 ac_x_header_dirs='
24429 /usr/X11/include
24430 /usr/X11R7/include
24431 /usr/X11R6/include
24432 /usr/X11R5/include
24433 /usr/X11R4/include
24434
24435 /usr/include/X11
24436 /usr/include/X11R7
24437 /usr/include/X11R6
24438 /usr/include/X11R5
24439 /usr/include/X11R4
24440
24441 /usr/local/X11/include
24442 /usr/local/X11R7/include
24443 /usr/local/X11R6/include
24444 /usr/local/X11R5/include
24445 /usr/local/X11R4/include
24446
24447 /usr/local/include/X11
24448 /usr/local/include/X11R7
24449 /usr/local/include/X11R6
24450 /usr/local/include/X11R5
24451 /usr/local/include/X11R4
24452
24453 /usr/X386/include
24454 /usr/x386/include
24455 /usr/XFree86/include/X11
24456
24457 /usr/include
24458 /usr/local/include
24459 /usr/unsupported/include
24460 /usr/athena/include
24461 /usr/local/x11r5/include
24462 /usr/lpp/Xamples/include
24463
24464 /usr/openwin/include
24465 /usr/openwin/share/include'
24466
24467 if test "$ac_x_includes" = no; then
24468   # Guess where to find include files, by looking for Xlib.h.
24469   # First, try using that file with no special directory specified.
24470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471 /* end confdefs.h.  */
24472 #include <X11/Xlib.h>
24473 _ACEOF
24474 if ac_fn_c_try_cpp "$LINENO"; then :
24475   # We can compile using X headers with no special include directory.
24476 ac_x_includes=
24477 else
24478   for ac_dir in $ac_x_header_dirs; do
24479   if test -r "$ac_dir/X11/Xlib.h"; then
24480     ac_x_includes=$ac_dir
24481     break
24482   fi
24483 done
24484 fi
24485 rm -f conftest.err conftest.$ac_ext
24486 fi # $ac_x_includes = no
24487
24488 if test "$ac_x_libraries" = no; then
24489   # Check for the libraries.
24490   # See if we find them without any special options.
24491   # Don't add to $LIBS permanently.
24492   ac_save_LIBS=$LIBS
24493   LIBS="-lX11 $LIBS"
24494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24495 /* end confdefs.h.  */
24496 #include <X11/Xlib.h>
24497 int
24498 main ()
24499 {
24500 XrmInitialize ()
24501   ;
24502   return 0;
24503 }
24504 _ACEOF
24505 if ac_fn_c_try_link "$LINENO"; then :
24506   LIBS=$ac_save_LIBS
24507 # We can link X programs with no special library path.
24508 ac_x_libraries=
24509 else
24510   LIBS=$ac_save_LIBS
24511 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24512 do
24513   # Don't even attempt the hair of trying to link an X program!
24514   for ac_extension in a so sl dylib la dll; do
24515     if test -r "$ac_dir/libX11.$ac_extension"; then
24516       ac_x_libraries=$ac_dir
24517       break 2
24518     fi
24519   done
24520 done
24521 fi
24522 rm -f core conftest.err conftest.$ac_objext \
24523     conftest$ac_exeext conftest.$ac_ext
24524 fi # $ac_x_libraries = no
24525
24526 case $ac_x_includes,$ac_x_libraries in #(
24527   no,* | *,no | *\'*)
24528     # Didn't find X, or a directory has "'" in its name.
24529     ac_cv_have_x="have_x=no";; #(
24530   *)
24531     # Record where we found X for the cache.
24532     ac_cv_have_x="have_x=yes\
24533         ac_x_includes='$ac_x_includes'\
24534         ac_x_libraries='$ac_x_libraries'"
24535 esac
24536 fi
24537 ;; #(
24538     *) have_x=yes;;
24539   esac
24540   eval "$ac_cv_have_x"
24541 fi # $with_x != no
24542
24543 if test "$have_x" != yes; then
24544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24545 $as_echo "$have_x" >&6; }
24546   no_x=yes
24547 else
24548   # If each of the values was on the command line, it overrides each guess.
24549   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24550   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24551   # Update the cache value to reflect the command line values.
24552   ac_cv_have_x="have_x=yes\
24553         ac_x_includes='$x_includes'\
24554         ac_x_libraries='$x_libraries'"
24555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24556 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24557 fi
24558
24559 if test "$no_x" = yes; then
24560   # Not all programs may use this symbol, but it does not hurt to define it.
24561
24562 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24563
24564   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24565 else
24566   if test -n "$x_includes"; then
24567     X_CFLAGS="$X_CFLAGS -I$x_includes"
24568   fi
24569
24570   # It would also be nice to do this for all -L options, not just this one.
24571   if test -n "$x_libraries"; then
24572     X_LIBS="$X_LIBS -L$x_libraries"
24573     # For Solaris; some versions of Sun CC require a space after -R and
24574     # others require no space.  Words are not sufficient . . . .
24575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24576 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24577     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24578     ac_xsave_c_werror_flag=$ac_c_werror_flag
24579     ac_c_werror_flag=yes
24580     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24581 /* end confdefs.h.  */
24582
24583 int
24584 main ()
24585 {
24586
24587   ;
24588   return 0;
24589 }
24590 _ACEOF
24591 if ac_fn_c_try_link "$LINENO"; then :
24592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24593 $as_echo "no" >&6; }
24594        X_LIBS="$X_LIBS -R$x_libraries"
24595 else
24596   LIBS="$ac_xsave_LIBS -R $x_libraries"
24597        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24598 /* end confdefs.h.  */
24599
24600 int
24601 main ()
24602 {
24603
24604   ;
24605   return 0;
24606 }
24607 _ACEOF
24608 if ac_fn_c_try_link "$LINENO"; then :
24609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24610 $as_echo "yes" >&6; }
24611           X_LIBS="$X_LIBS -R $x_libraries"
24612 else
24613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24614 $as_echo "neither works" >&6; }
24615 fi
24616 rm -f core conftest.err conftest.$ac_objext \
24617     conftest$ac_exeext conftest.$ac_ext
24618 fi
24619 rm -f core conftest.err conftest.$ac_objext \
24620     conftest$ac_exeext conftest.$ac_ext
24621     ac_c_werror_flag=$ac_xsave_c_werror_flag
24622     LIBS=$ac_xsave_LIBS
24623   fi
24624
24625   # Check for system-dependent libraries X programs must link with.
24626   # Do this before checking for the system-independent R6 libraries
24627   # (-lICE), since we may need -lsocket or whatever for X linking.
24628
24629   if test "$ISC" = yes; then
24630     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24631   else
24632     # Martyn Johnson says this is needed for Ultrix, if the X
24633     # libraries were built with DECnet support.  And Karl Berry says
24634     # the Alpha needs dnet_stub (dnet does not exist).
24635     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24636     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24637 /* end confdefs.h.  */
24638
24639 /* Override any GCC internal prototype to avoid an error.
24640    Use char because int might match the return type of a GCC
24641    builtin and then its argument prototype would still apply.  */
24642 #ifdef __cplusplus
24643 extern "C"
24644 #endif
24645 char XOpenDisplay ();
24646 int
24647 main ()
24648 {
24649 return XOpenDisplay ();
24650   ;
24651   return 0;
24652 }
24653 _ACEOF
24654 if ac_fn_c_try_link "$LINENO"; then :
24655
24656 else
24657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24658 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24659 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24660   $as_echo_n "(cached) " >&6
24661 else
24662   ac_check_lib_save_LIBS=$LIBS
24663 LIBS="-ldnet  $LIBS"
24664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24665 /* end confdefs.h.  */
24666
24667 /* Override any GCC internal prototype to avoid an error.
24668    Use char because int might match the return type of a GCC
24669    builtin and then its argument prototype would still apply.  */
24670 #ifdef __cplusplus
24671 extern "C"
24672 #endif
24673 char dnet_ntoa ();
24674 int
24675 main ()
24676 {
24677 return dnet_ntoa ();
24678   ;
24679   return 0;
24680 }
24681 _ACEOF
24682 if ac_fn_c_try_link "$LINENO"; then :
24683   ac_cv_lib_dnet_dnet_ntoa=yes
24684 else
24685   ac_cv_lib_dnet_dnet_ntoa=no
24686 fi
24687 rm -f core conftest.err conftest.$ac_objext \
24688     conftest$ac_exeext conftest.$ac_ext
24689 LIBS=$ac_check_lib_save_LIBS
24690 fi
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24692 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24693 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24694   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24695 fi
24696
24697     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24698       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24699 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24700 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24701   $as_echo_n "(cached) " >&6
24702 else
24703   ac_check_lib_save_LIBS=$LIBS
24704 LIBS="-ldnet_stub  $LIBS"
24705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24706 /* end confdefs.h.  */
24707
24708 /* Override any GCC internal prototype to avoid an error.
24709    Use char because int might match the return type of a GCC
24710    builtin and then its argument prototype would still apply.  */
24711 #ifdef __cplusplus
24712 extern "C"
24713 #endif
24714 char dnet_ntoa ();
24715 int
24716 main ()
24717 {
24718 return dnet_ntoa ();
24719   ;
24720   return 0;
24721 }
24722 _ACEOF
24723 if ac_fn_c_try_link "$LINENO"; then :
24724   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24725 else
24726   ac_cv_lib_dnet_stub_dnet_ntoa=no
24727 fi
24728 rm -f core conftest.err conftest.$ac_objext \
24729     conftest$ac_exeext conftest.$ac_ext
24730 LIBS=$ac_check_lib_save_LIBS
24731 fi
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24733 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24734 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24735   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24736 fi
24737
24738     fi
24739 fi
24740 rm -f core conftest.err conftest.$ac_objext \
24741     conftest$ac_exeext conftest.$ac_ext
24742     LIBS="$ac_xsave_LIBS"
24743
24744     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24745     # to get the SysV transport functions.
24746     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24747     # needs -lnsl.
24748     # The nsl library prevents programs from opening the X display
24749     # on Irix 5.2, according to T.E. Dickey.
24750     # The functions gethostbyname, getservbyname, and inet_addr are
24751     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24752     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24753 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24754
24755 fi
24756
24757     if test $ac_cv_func_gethostbyname = no; then
24758       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24759 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24760 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24761   $as_echo_n "(cached) " >&6
24762 else
24763   ac_check_lib_save_LIBS=$LIBS
24764 LIBS="-lnsl  $LIBS"
24765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24766 /* end confdefs.h.  */
24767
24768 /* Override any GCC internal prototype to avoid an error.
24769    Use char because int might match the return type of a GCC
24770    builtin and then its argument prototype would still apply.  */
24771 #ifdef __cplusplus
24772 extern "C"
24773 #endif
24774 char gethostbyname ();
24775 int
24776 main ()
24777 {
24778 return gethostbyname ();
24779   ;
24780   return 0;
24781 }
24782 _ACEOF
24783 if ac_fn_c_try_link "$LINENO"; then :
24784   ac_cv_lib_nsl_gethostbyname=yes
24785 else
24786   ac_cv_lib_nsl_gethostbyname=no
24787 fi
24788 rm -f core conftest.err conftest.$ac_objext \
24789     conftest$ac_exeext conftest.$ac_ext
24790 LIBS=$ac_check_lib_save_LIBS
24791 fi
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24793 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24794 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24795   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24796 fi
24797
24798       if test $ac_cv_lib_nsl_gethostbyname = no; then
24799         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24800 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24801 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24802   $as_echo_n "(cached) " >&6
24803 else
24804   ac_check_lib_save_LIBS=$LIBS
24805 LIBS="-lbsd  $LIBS"
24806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24807 /* end confdefs.h.  */
24808
24809 /* Override any GCC internal prototype to avoid an error.
24810    Use char because int might match the return type of a GCC
24811    builtin and then its argument prototype would still apply.  */
24812 #ifdef __cplusplus
24813 extern "C"
24814 #endif
24815 char gethostbyname ();
24816 int
24817 main ()
24818 {
24819 return gethostbyname ();
24820   ;
24821   return 0;
24822 }
24823 _ACEOF
24824 if ac_fn_c_try_link "$LINENO"; then :
24825   ac_cv_lib_bsd_gethostbyname=yes
24826 else
24827   ac_cv_lib_bsd_gethostbyname=no
24828 fi
24829 rm -f core conftest.err conftest.$ac_objext \
24830     conftest$ac_exeext conftest.$ac_ext
24831 LIBS=$ac_check_lib_save_LIBS
24832 fi
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24834 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24835 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24836   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24837 fi
24838
24839       fi
24840     fi
24841
24842     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24843     # socket/setsockopt and other routines are undefined under SCO ODT
24844     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24845     # on later versions), says Simon Leinen: it contains gethostby*
24846     # variants that don't use the name server (or something).  -lsocket
24847     # must be given before -lnsl if both are needed.  We assume that
24848     # if connect needs -lnsl, so does gethostbyname.
24849     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24850 if test "x$ac_cv_func_connect" = x""yes; then :
24851
24852 fi
24853
24854     if test $ac_cv_func_connect = no; then
24855       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24856 $as_echo_n "checking for connect in -lsocket... " >&6; }
24857 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24858   $as_echo_n "(cached) " >&6
24859 else
24860   ac_check_lib_save_LIBS=$LIBS
24861 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24863 /* end confdefs.h.  */
24864
24865 /* Override any GCC internal prototype to avoid an error.
24866    Use char because int might match the return type of a GCC
24867    builtin and then its argument prototype would still apply.  */
24868 #ifdef __cplusplus
24869 extern "C"
24870 #endif
24871 char connect ();
24872 int
24873 main ()
24874 {
24875 return connect ();
24876   ;
24877   return 0;
24878 }
24879 _ACEOF
24880 if ac_fn_c_try_link "$LINENO"; then :
24881   ac_cv_lib_socket_connect=yes
24882 else
24883   ac_cv_lib_socket_connect=no
24884 fi
24885 rm -f core conftest.err conftest.$ac_objext \
24886     conftest$ac_exeext conftest.$ac_ext
24887 LIBS=$ac_check_lib_save_LIBS
24888 fi
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24890 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24891 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24892   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24893 fi
24894
24895     fi
24896
24897     # Guillermo Gomez says -lposix is necessary on A/UX.
24898     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24899 if test "x$ac_cv_func_remove" = x""yes; then :
24900
24901 fi
24902
24903     if test $ac_cv_func_remove = no; then
24904       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24905 $as_echo_n "checking for remove in -lposix... " >&6; }
24906 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24907   $as_echo_n "(cached) " >&6
24908 else
24909   ac_check_lib_save_LIBS=$LIBS
24910 LIBS="-lposix  $LIBS"
24911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24912 /* end confdefs.h.  */
24913
24914 /* Override any GCC internal prototype to avoid an error.
24915    Use char because int might match the return type of a GCC
24916    builtin and then its argument prototype would still apply.  */
24917 #ifdef __cplusplus
24918 extern "C"
24919 #endif
24920 char remove ();
24921 int
24922 main ()
24923 {
24924 return remove ();
24925   ;
24926   return 0;
24927 }
24928 _ACEOF
24929 if ac_fn_c_try_link "$LINENO"; then :
24930   ac_cv_lib_posix_remove=yes
24931 else
24932   ac_cv_lib_posix_remove=no
24933 fi
24934 rm -f core conftest.err conftest.$ac_objext \
24935     conftest$ac_exeext conftest.$ac_ext
24936 LIBS=$ac_check_lib_save_LIBS
24937 fi
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24939 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24940 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24941   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24942 fi
24943
24944     fi
24945
24946     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24947     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24948 if test "x$ac_cv_func_shmat" = x""yes; then :
24949
24950 fi
24951
24952     if test $ac_cv_func_shmat = no; then
24953       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24954 $as_echo_n "checking for shmat in -lipc... " >&6; }
24955 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24956   $as_echo_n "(cached) " >&6
24957 else
24958   ac_check_lib_save_LIBS=$LIBS
24959 LIBS="-lipc  $LIBS"
24960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24961 /* end confdefs.h.  */
24962
24963 /* Override any GCC internal prototype to avoid an error.
24964    Use char because int might match the return type of a GCC
24965    builtin and then its argument prototype would still apply.  */
24966 #ifdef __cplusplus
24967 extern "C"
24968 #endif
24969 char shmat ();
24970 int
24971 main ()
24972 {
24973 return shmat ();
24974   ;
24975   return 0;
24976 }
24977 _ACEOF
24978 if ac_fn_c_try_link "$LINENO"; then :
24979   ac_cv_lib_ipc_shmat=yes
24980 else
24981   ac_cv_lib_ipc_shmat=no
24982 fi
24983 rm -f core conftest.err conftest.$ac_objext \
24984     conftest$ac_exeext conftest.$ac_ext
24985 LIBS=$ac_check_lib_save_LIBS
24986 fi
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24988 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24989 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24990   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24991 fi
24992
24993     fi
24994   fi
24995
24996   # Check for libraries that X11R6 Xt/Xaw programs need.
24997   ac_save_LDFLAGS=$LDFLAGS
24998   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24999   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25000   # check for ICE first), but we must link in the order -lSM -lICE or
25001   # we get undefined symbols.  So assume we have SM if we have ICE.
25002   # These have to be linked with before -lX11, unlike the other
25003   # libraries we check for below, so use a different variable.
25004   # John Interrante, Karl Berry
25005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25006 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25007 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25008   $as_echo_n "(cached) " >&6
25009 else
25010   ac_check_lib_save_LIBS=$LIBS
25011 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25013 /* end confdefs.h.  */
25014
25015 /* Override any GCC internal prototype to avoid an error.
25016    Use char because int might match the return type of a GCC
25017    builtin and then its argument prototype would still apply.  */
25018 #ifdef __cplusplus
25019 extern "C"
25020 #endif
25021 char IceConnectionNumber ();
25022 int
25023 main ()
25024 {
25025 return IceConnectionNumber ();
25026   ;
25027   return 0;
25028 }
25029 _ACEOF
25030 if ac_fn_c_try_link "$LINENO"; then :
25031   ac_cv_lib_ICE_IceConnectionNumber=yes
25032 else
25033   ac_cv_lib_ICE_IceConnectionNumber=no
25034 fi
25035 rm -f core conftest.err conftest.$ac_objext \
25036     conftest$ac_exeext conftest.$ac_ext
25037 LIBS=$ac_check_lib_save_LIBS
25038 fi
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25040 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25041 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25042   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25043 fi
25044
25045   LDFLAGS=$ac_save_LDFLAGS
25046
25047 fi
25048
25049
25050 for ac_header in \
25051    assert.h \
25052    fcntl.h \
25053    grp.h \
25054    pwd.h \
25055    libc.h \
25056    limits.h \
25057    stdarg.h \
25058    stdlib.h \
25059    stdint.h \
25060    string.h \
25061    strings.h \
25062    termios.h \
25063    termcap.h \
25064    term.h \
25065    unistd.h \
25066    sys/bitypes.h \
25067    sys/byteorder.h \
25068    sys/ioctl.h \
25069    sys/select.h \
25070    sys/socket.h \
25071    sys/sockio.h \
25072    sys/stat.h \
25073    sys/time.h \
25074    sys/types.h \
25075    arpa/nameser.h \
25076    mtio.h \
25077    sys/mtio.h \
25078    sys/tape.h \
25079    regex.h \
25080
25081 do :
25082   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25083 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25084 eval as_val=\$$as_ac_Header
25085    if test "x$as_val" = x""yes; then :
25086   cat >>confdefs.h <<_ACEOF
25087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25088 _ACEOF
25089
25090 fi
25091
25092 done
25093
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25095 $as_echo_n "checking for ANSI C header files... " >&6; }
25096 if test "${ac_cv_header_stdc+set}" = set; then :
25097   $as_echo_n "(cached) " >&6
25098 else
25099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25100 /* end confdefs.h.  */
25101 #include <stdlib.h>
25102 #include <stdarg.h>
25103 #include <string.h>
25104 #include <float.h>
25105
25106 int
25107 main ()
25108 {
25109
25110   ;
25111   return 0;
25112 }
25113 _ACEOF
25114 if ac_fn_c_try_compile "$LINENO"; then :
25115   ac_cv_header_stdc=yes
25116 else
25117   ac_cv_header_stdc=no
25118 fi
25119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25120
25121 if test $ac_cv_header_stdc = yes; then
25122   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25124 /* end confdefs.h.  */
25125 #include <string.h>
25126
25127 _ACEOF
25128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25129   $EGREP "memchr" >/dev/null 2>&1; then :
25130
25131 else
25132   ac_cv_header_stdc=no
25133 fi
25134 rm -f conftest*
25135
25136 fi
25137
25138 if test $ac_cv_header_stdc = yes; then
25139   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25141 /* end confdefs.h.  */
25142 #include <stdlib.h>
25143
25144 _ACEOF
25145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25146   $EGREP "free" >/dev/null 2>&1; then :
25147
25148 else
25149   ac_cv_header_stdc=no
25150 fi
25151 rm -f conftest*
25152
25153 fi
25154
25155 if test $ac_cv_header_stdc = yes; then
25156   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25157   if test "$cross_compiling" = yes; then :
25158   :
25159 else
25160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h.  */
25162 #include <ctype.h>
25163 #include <stdlib.h>
25164 #if ((' ' & 0x0FF) == 0x020)
25165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25167 #else
25168 # define ISLOWER(c) \
25169                    (('a' <= (c) && (c) <= 'i') \
25170                      || ('j' <= (c) && (c) <= 'r') \
25171                      || ('s' <= (c) && (c) <= 'z'))
25172 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25173 #endif
25174
25175 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25176 int
25177 main ()
25178 {
25179   int i;
25180   for (i = 0; i < 256; i++)
25181     if (XOR (islower (i), ISLOWER (i))
25182         || toupper (i) != TOUPPER (i))
25183       return 2;
25184   return 0;
25185 }
25186 _ACEOF
25187 if ac_fn_c_try_run "$LINENO"; then :
25188
25189 else
25190   ac_cv_header_stdc=no
25191 fi
25192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25193   conftest.$ac_objext conftest.beam conftest.$ac_ext
25194 fi
25195
25196 fi
25197 fi
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25199 $as_echo "$ac_cv_header_stdc" >&6; }
25200 if test $ac_cv_header_stdc = yes; then
25201
25202 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25203
25204 fi
25205
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25207 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25208 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25209   $as_echo_n "(cached) " >&6
25210 else
25211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25212 /* end confdefs.h.  */
25213 #include <sys/types.h>
25214 int
25215 main ()
25216 {
25217 return makedev(0, 0);
25218   ;
25219   return 0;
25220 }
25221 _ACEOF
25222 if ac_fn_c_try_link "$LINENO"; then :
25223   ac_cv_header_sys_types_h_makedev=yes
25224 else
25225   ac_cv_header_sys_types_h_makedev=no
25226 fi
25227 rm -f core conftest.err conftest.$ac_objext \
25228     conftest$ac_exeext conftest.$ac_ext
25229
25230 fi
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25232 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25233
25234 if test $ac_cv_header_sys_types_h_makedev = no; then
25235 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25236 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25237
25238 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25239
25240 fi
25241
25242
25243
25244   if test $ac_cv_header_sys_mkdev_h = no; then
25245     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25246 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25247
25248 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25249
25250 fi
25251
25252
25253   fi
25254 fi
25255
25256 ac_header_dirent=no
25257 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25258   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25260 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25262   $as_echo_n "(cached) " >&6
25263 else
25264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25265 /* end confdefs.h.  */
25266 #include <sys/types.h>
25267 #include <$ac_hdr>
25268
25269 int
25270 main ()
25271 {
25272 if ((DIR *) 0)
25273 return 0;
25274   ;
25275   return 0;
25276 }
25277 _ACEOF
25278 if ac_fn_c_try_compile "$LINENO"; then :
25279   eval "$as_ac_Header=yes"
25280 else
25281   eval "$as_ac_Header=no"
25282 fi
25283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25284 fi
25285 eval ac_res=\$$as_ac_Header
25286                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25287 $as_echo "$ac_res" >&6; }
25288 eval as_val=\$$as_ac_Header
25289    if test "x$as_val" = x""yes; then :
25290   cat >>confdefs.h <<_ACEOF
25291 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25292 _ACEOF
25293
25294 ac_header_dirent=$ac_hdr; break
25295 fi
25296
25297 done
25298 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25299 if test $ac_header_dirent = dirent.h; then
25300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25301 $as_echo_n "checking for library containing opendir... " >&6; }
25302 if test "${ac_cv_search_opendir+set}" = set; then :
25303   $as_echo_n "(cached) " >&6
25304 else
25305   ac_func_search_save_LIBS=$LIBS
25306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25307 /* end confdefs.h.  */
25308
25309 /* Override any GCC internal prototype to avoid an error.
25310    Use char because int might match the return type of a GCC
25311    builtin and then its argument prototype would still apply.  */
25312 #ifdef __cplusplus
25313 extern "C"
25314 #endif
25315 char opendir ();
25316 int
25317 main ()
25318 {
25319 return opendir ();
25320   ;
25321   return 0;
25322 }
25323 _ACEOF
25324 for ac_lib in '' dir; do
25325   if test -z "$ac_lib"; then
25326     ac_res="none required"
25327   else
25328     ac_res=-l$ac_lib
25329     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25330   fi
25331   if ac_fn_c_try_link "$LINENO"; then :
25332   ac_cv_search_opendir=$ac_res
25333 fi
25334 rm -f core conftest.err conftest.$ac_objext \
25335     conftest$ac_exeext
25336   if test "${ac_cv_search_opendir+set}" = set; then :
25337   break
25338 fi
25339 done
25340 if test "${ac_cv_search_opendir+set}" = set; then :
25341
25342 else
25343   ac_cv_search_opendir=no
25344 fi
25345 rm conftest.$ac_ext
25346 LIBS=$ac_func_search_save_LIBS
25347 fi
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25349 $as_echo "$ac_cv_search_opendir" >&6; }
25350 ac_res=$ac_cv_search_opendir
25351 if test "$ac_res" != no; then :
25352   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25353
25354 fi
25355
25356 else
25357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25358 $as_echo_n "checking for library containing opendir... " >&6; }
25359 if test "${ac_cv_search_opendir+set}" = set; then :
25360   $as_echo_n "(cached) " >&6
25361 else
25362   ac_func_search_save_LIBS=$LIBS
25363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25364 /* end confdefs.h.  */
25365
25366 /* Override any GCC internal prototype to avoid an error.
25367    Use char because int might match the return type of a GCC
25368    builtin and then its argument prototype would still apply.  */
25369 #ifdef __cplusplus
25370 extern "C"
25371 #endif
25372 char opendir ();
25373 int
25374 main ()
25375 {
25376 return opendir ();
25377   ;
25378   return 0;
25379 }
25380 _ACEOF
25381 for ac_lib in '' x; do
25382   if test -z "$ac_lib"; then
25383     ac_res="none required"
25384   else
25385     ac_res=-l$ac_lib
25386     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25387   fi
25388   if ac_fn_c_try_link "$LINENO"; then :
25389   ac_cv_search_opendir=$ac_res
25390 fi
25391 rm -f core conftest.err conftest.$ac_objext \
25392     conftest$ac_exeext
25393   if test "${ac_cv_search_opendir+set}" = set; then :
25394   break
25395 fi
25396 done
25397 if test "${ac_cv_search_opendir+set}" = set; then :
25398
25399 else
25400   ac_cv_search_opendir=no
25401 fi
25402 rm conftest.$ac_ext
25403 LIBS=$ac_func_search_save_LIBS
25404 fi
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25406 $as_echo "$ac_cv_search_opendir" >&6; }
25407 ac_res=$ac_cv_search_opendir
25408 if test "$ac_res" != no; then :
25409   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25410
25411 fi
25412
25413 fi
25414
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25416 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25417 if test "${ac_cv_header_stat_broken+set}" = set; then :
25418   $as_echo_n "(cached) " >&6
25419 else
25420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25421 /* end confdefs.h.  */
25422 #include <sys/types.h>
25423 #include <sys/stat.h>
25424
25425 #if defined S_ISBLK && defined S_IFDIR
25426 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25427 #endif
25428
25429 #if defined S_ISBLK && defined S_IFCHR
25430 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25431 #endif
25432
25433 #if defined S_ISLNK && defined S_IFREG
25434 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25435 #endif
25436
25437 #if defined S_ISSOCK && defined S_IFREG
25438 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25439 #endif
25440
25441 _ACEOF
25442 if ac_fn_c_try_compile "$LINENO"; then :
25443   ac_cv_header_stat_broken=no
25444 else
25445   ac_cv_header_stat_broken=yes
25446 fi
25447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25448 fi
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25450 $as_echo "$ac_cv_header_stat_broken" >&6; }
25451 if test $ac_cv_header_stat_broken = yes; then
25452
25453 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25454
25455 fi
25456
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25458 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25459 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25460   $as_echo_n "(cached) " >&6
25461 else
25462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25463 /* end confdefs.h.  */
25464 #include <sys/types.h>
25465 #include <sys/wait.h>
25466 #ifndef WEXITSTATUS
25467 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25468 #endif
25469 #ifndef WIFEXITED
25470 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25471 #endif
25472
25473 int
25474 main ()
25475 {
25476   int s;
25477   wait (&s);
25478   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25479   ;
25480   return 0;
25481 }
25482 _ACEOF
25483 if ac_fn_c_try_compile "$LINENO"; then :
25484   ac_cv_header_sys_wait_h=yes
25485 else
25486   ac_cv_header_sys_wait_h=no
25487 fi
25488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25489 fi
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25491 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25492 if test $ac_cv_header_sys_wait_h = yes; then
25493
25494 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25495
25496 fi
25497
25498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25499 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25500 if test "${ac_cv_header_time+set}" = set; then :
25501   $as_echo_n "(cached) " >&6
25502 else
25503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25504 /* end confdefs.h.  */
25505 #include <sys/types.h>
25506 #include <sys/time.h>
25507 #include <time.h>
25508
25509 int
25510 main ()
25511 {
25512 if ((struct tm *) 0)
25513 return 0;
25514   ;
25515   return 0;
25516 }
25517 _ACEOF
25518 if ac_fn_c_try_compile "$LINENO"; then :
25519   ac_cv_header_time=yes
25520 else
25521   ac_cv_header_time=no
25522 fi
25523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25524 fi
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25526 $as_echo "$ac_cv_header_time" >&6; }
25527 if test $ac_cv_header_time = yes; then
25528
25529 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25530
25531 fi
25532
25533 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25534 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25535
25536 cat >>confdefs.h <<_ACEOF
25537 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25538 _ACEOF
25539
25540
25541 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25542
25543 fi
25544
25545
25546 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25547 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
25548
25549 cat >>confdefs.h <<_ACEOF
25550 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25551 _ACEOF
25552
25553
25554 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25555
25556 else
25557   case " $LIBOBJS " in
25558   *" fileblocks.$ac_objext "* ) ;;
25559   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25560  ;;
25561 esac
25562
25563 fi
25564
25565
25566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25567 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25568 if test "${ac_cv_struct_tm+set}" = set; then :
25569   $as_echo_n "(cached) " >&6
25570 else
25571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25572 /* end confdefs.h.  */
25573 #include <sys/types.h>
25574 #include <time.h>
25575
25576 int
25577 main ()
25578 {
25579 struct tm tm;
25580                                      int *p = &tm.tm_sec;
25581                                      return !p;
25582   ;
25583   return 0;
25584 }
25585 _ACEOF
25586 if ac_fn_c_try_compile "$LINENO"; then :
25587   ac_cv_struct_tm=time.h
25588 else
25589   ac_cv_struct_tm=sys/time.h
25590 fi
25591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25592 fi
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25594 $as_echo "$ac_cv_struct_tm" >&6; }
25595 if test $ac_cv_struct_tm = sys/time.h; then
25596
25597 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25598
25599 fi
25600
25601 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25602 #include <$ac_cv_struct_tm>
25603
25604 "
25605 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
25606
25607 cat >>confdefs.h <<_ACEOF
25608 #define HAVE_STRUCT_TM_TM_ZONE 1
25609 _ACEOF
25610
25611
25612 fi
25613
25614 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25615
25616 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25617
25618 else
25619   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25620 "
25621 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
25622   ac_have_decl=1
25623 else
25624   ac_have_decl=0
25625 fi
25626
25627 cat >>confdefs.h <<_ACEOF
25628 #define HAVE_DECL_TZNAME $ac_have_decl
25629 _ACEOF
25630
25631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25632 $as_echo_n "checking for tzname... " >&6; }
25633 if test "${ac_cv_var_tzname+set}" = set; then :
25634   $as_echo_n "(cached) " >&6
25635 else
25636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25637 /* end confdefs.h.  */
25638 #include <time.h>
25639 #if !HAVE_DECL_TZNAME
25640 extern char *tzname[];
25641 #endif
25642
25643 int
25644 main ()
25645 {
25646 return tzname[0][0];
25647   ;
25648   return 0;
25649 }
25650 _ACEOF
25651 if ac_fn_c_try_link "$LINENO"; then :
25652   ac_cv_var_tzname=yes
25653 else
25654   ac_cv_var_tzname=no
25655 fi
25656 rm -f core conftest.err conftest.$ac_objext \
25657     conftest$ac_exeext conftest.$ac_ext
25658 fi
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25660 $as_echo "$ac_cv_var_tzname" >&6; }
25661   if test $ac_cv_var_tzname = yes; then
25662
25663 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25664
25665   fi
25666 fi
25667
25668
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25670 $as_echo_n "checking for utime.h... " >&6; }
25671 if test "${ba_cv_header_utime_h+set}" = set; then :
25672   $as_echo_n "(cached) " >&6
25673 else
25674
25675        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25676 /* end confdefs.h.  */
25677
25678               #include <sys/types.h>
25679               #include <utime.h>
25680
25681 int
25682 main ()
25683 {
25684
25685               struct utimbuf foo
25686
25687   ;
25688   return 0;
25689 }
25690 _ACEOF
25691 if ac_fn_c_try_compile "$LINENO"; then :
25692
25693               ba_cv_header_utime_h=yes
25694
25695 else
25696
25697               ba_cv_header_utime_h=no
25698
25699
25700 fi
25701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25702
25703
25704 fi
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25706 $as_echo "$ba_cv_header_utime_h" >&6; }
25707 test $ba_cv_header_utime_h = yes &&
25708 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25709
25710
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25712 $as_echo_n "checking for socklen_t... " >&6; }
25713 if test "${ba_cv_header_socklen_t+set}" = set; then :
25714   $as_echo_n "(cached) " >&6
25715 else
25716
25717        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25718 /* end confdefs.h.  */
25719
25720               #include <sys/types.h>
25721               #include <sys/socket.h>
25722
25723 int
25724 main ()
25725 {
25726
25727               socklen_t x
25728
25729   ;
25730   return 0;
25731 }
25732 _ACEOF
25733 if ac_fn_c_try_compile "$LINENO"; then :
25734
25735              ba_cv_header_socklen_t=yes
25736
25737 else
25738
25739              ba_cv_header_socklen_t=no
25740
25741
25742 fi
25743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25744
25745
25746 fi
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25748 $as_echo "$ba_cv_header_socklen_t" >&6; }
25749 test $ba_cv_header_socklen_t = yes &&
25750 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25751
25752
25753 ac_ext=cpp
25754 ac_cpp='$CXXCPP $CPPFLAGS'
25755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25758
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25760 $as_echo_n "checking for ioctl_req_t... " >&6; }
25761 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
25762   $as_echo_n "(cached) " >&6
25763 else
25764
25765        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25766 /* end confdefs.h.  */
25767
25768               #include <unistd.h>
25769               #include <sys/types.h>
25770               #include <sys/ioctl.h>
25771
25772 int
25773 main ()
25774 {
25775
25776               int (*d_ioctl)(int fd, unsigned long int request, ...);
25777               d_ioctl = ::ioctl;
25778
25779   ;
25780   return 0;
25781 }
25782 _ACEOF
25783 if ac_fn_cxx_try_compile "$LINENO"; then :
25784
25785              ba_cv_header_ioctl_req_t=yes
25786
25787 else
25788
25789              ba_cv_header_ioctl_req_t=no
25790
25791
25792 fi
25793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25794
25795
25796 fi
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25798 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25799 test $ba_cv_header_ioctl_req_t = yes &&
25800 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25801
25802
25803 ac_ext=c
25804 ac_cpp='$CPP $CPPFLAGS'
25805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25808
25809
25810 ac_ext=cpp
25811 ac_cpp='$CXXCPP $CPPFLAGS'
25812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25815
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25817 $as_echo_n "checking for typeof... " >&6; }
25818 if test "${ba_cv_have_typeof+set}" = set; then :
25819   $as_echo_n "(cached) " >&6
25820 else
25821
25822        if test "$cross_compiling" = yes; then :
25823
25824               ba_cv_have_typeof=no
25825
25826
25827 else
25828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25829 /* end confdefs.h.  */
25830
25831               main(){char *a = 0; a = (typeof a)a;}
25832
25833 _ACEOF
25834 if ac_fn_cxx_try_run "$LINENO"; then :
25835
25836               ba_cv_have_typeof=yes
25837
25838 else
25839
25840               ba_cv_have_typeof=no
25841
25842 fi
25843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25844   conftest.$ac_objext conftest.beam conftest.$ac_ext
25845 fi
25846
25847
25848
25849 fi
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25851 $as_echo "$ba_cv_have_typeof" >&6; }
25852 test $ba_cv_have_typeof = yes &&
25853 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25854
25855 ac_ext=c
25856 ac_cpp='$CPP $CPPFLAGS'
25857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25860
25861
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25863 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25864 if test "${ac_cv_c_const+set}" = set; then :
25865   $as_echo_n "(cached) " >&6
25866 else
25867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25868 /* end confdefs.h.  */
25869
25870 int
25871 main ()
25872 {
25873 /* FIXME: Include the comments suggested by Paul. */
25874 #ifndef __cplusplus
25875   /* Ultrix mips cc rejects this.  */
25876   typedef int charset[2];
25877   const charset cs;
25878   /* SunOS 4.1.1 cc rejects this.  */
25879   char const *const *pcpcc;
25880   char **ppc;
25881   /* NEC SVR4.0.2 mips cc rejects this.  */
25882   struct point {int x, y;};
25883   static struct point const zero = {0,0};
25884   /* AIX XL C 1.02.0.0 rejects this.
25885      It does not let you subtract one const X* pointer from another in
25886      an arm of an if-expression whose if-part is not a constant
25887      expression */
25888   const char *g = "string";
25889   pcpcc = &g + (g ? g-g : 0);
25890   /* HPUX 7.0 cc rejects these. */
25891   ++pcpcc;
25892   ppc = (char**) pcpcc;
25893   pcpcc = (char const *const *) ppc;
25894   { /* SCO 3.2v4 cc rejects this.  */
25895     char *t;
25896     char const *s = 0 ? (char *) 0 : (char const *) 0;
25897
25898     *t++ = 0;
25899     if (s) return 0;
25900   }
25901   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25902     int x[] = {25, 17};
25903     const int *foo = &x[0];
25904     ++foo;
25905   }
25906   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25907     typedef const int *iptr;
25908     iptr p = 0;
25909     ++p;
25910   }
25911   { /* AIX XL C 1.02.0.0 rejects this saying
25912        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25913     struct s { int j; const int *ap[3]; };
25914     struct s *b; b->j = 5;
25915   }
25916   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25917     const int foo = 10;
25918     if (!foo) return 0;
25919   }
25920   return !cs[0] && !zero.x;
25921 #endif
25922
25923   ;
25924   return 0;
25925 }
25926 _ACEOF
25927 if ac_fn_c_try_compile "$LINENO"; then :
25928   ac_cv_c_const=yes
25929 else
25930   ac_cv_c_const=no
25931 fi
25932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25933 fi
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25935 $as_echo "$ac_cv_c_const" >&6; }
25936 if test $ac_cv_c_const = no; then
25937
25938 $as_echo "#define const /**/" >>confdefs.h
25939
25940 fi
25941
25942
25943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25944 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25945 if test "${ac_cv_c_bigendian+set}" = set; then :
25946   $as_echo_n "(cached) " >&6
25947 else
25948   ac_cv_c_bigendian=unknown
25949     # See if we're dealing with a universal compiler.
25950     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25951 /* end confdefs.h.  */
25952 #ifndef __APPLE_CC__
25953                not a universal capable compiler
25954              #endif
25955              typedef int dummy;
25956
25957 _ACEOF
25958 if ac_fn_c_try_compile "$LINENO"; then :
25959
25960         # Check for potential -arch flags.  It is not universal unless
25961         # there are at least two -arch flags with different values.
25962         ac_arch=
25963         ac_prev=
25964         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25965          if test -n "$ac_prev"; then
25966            case $ac_word in
25967              i?86 | x86_64 | ppc | ppc64)
25968                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25969                  ac_arch=$ac_word
25970                else
25971                  ac_cv_c_bigendian=universal
25972                  break
25973                fi
25974                ;;
25975            esac
25976            ac_prev=
25977          elif test "x$ac_word" = "x-arch"; then
25978            ac_prev=arch
25979          fi
25980        done
25981 fi
25982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25983     if test $ac_cv_c_bigendian = unknown; then
25984       # See if sys/param.h defines the BYTE_ORDER macro.
25985       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25986 /* end confdefs.h.  */
25987 #include <sys/types.h>
25988              #include <sys/param.h>
25989
25990 int
25991 main ()
25992 {
25993 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25994                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25995                      && LITTLE_ENDIAN)
25996               bogus endian macros
25997              #endif
25998
25999   ;
26000   return 0;
26001 }
26002 _ACEOF
26003 if ac_fn_c_try_compile "$LINENO"; then :
26004   # It does; now see whether it defined to BIG_ENDIAN or not.
26005          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26006 /* end confdefs.h.  */
26007 #include <sys/types.h>
26008                 #include <sys/param.h>
26009
26010 int
26011 main ()
26012 {
26013 #if BYTE_ORDER != BIG_ENDIAN
26014                  not big endian
26015                 #endif
26016
26017   ;
26018   return 0;
26019 }
26020 _ACEOF
26021 if ac_fn_c_try_compile "$LINENO"; then :
26022   ac_cv_c_bigendian=yes
26023 else
26024   ac_cv_c_bigendian=no
26025 fi
26026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26027 fi
26028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26029     fi
26030     if test $ac_cv_c_bigendian = unknown; then
26031       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26032       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26033 /* end confdefs.h.  */
26034 #include <limits.h>
26035
26036 int
26037 main ()
26038 {
26039 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26040               bogus endian macros
26041              #endif
26042
26043   ;
26044   return 0;
26045 }
26046 _ACEOF
26047 if ac_fn_c_try_compile "$LINENO"; then :
26048   # It does; now see whether it defined to _BIG_ENDIAN or not.
26049          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26050 /* end confdefs.h.  */
26051 #include <limits.h>
26052
26053 int
26054 main ()
26055 {
26056 #ifndef _BIG_ENDIAN
26057                  not big endian
26058                 #endif
26059
26060   ;
26061   return 0;
26062 }
26063 _ACEOF
26064 if ac_fn_c_try_compile "$LINENO"; then :
26065   ac_cv_c_bigendian=yes
26066 else
26067   ac_cv_c_bigendian=no
26068 fi
26069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26070 fi
26071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26072     fi
26073     if test $ac_cv_c_bigendian = unknown; then
26074       # Compile a test program.
26075       if test "$cross_compiling" = yes; then :
26076   # Try to guess by grepping values from an object file.
26077          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26078 /* end confdefs.h.  */
26079 short int ascii_mm[] =
26080                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26081                 short int ascii_ii[] =
26082                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26083                 int use_ascii (int i) {
26084                   return ascii_mm[i] + ascii_ii[i];
26085                 }
26086                 short int ebcdic_ii[] =
26087                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26088                 short int ebcdic_mm[] =
26089                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26090                 int use_ebcdic (int i) {
26091                   return ebcdic_mm[i] + ebcdic_ii[i];
26092                 }
26093                 extern int foo;
26094
26095 int
26096 main ()
26097 {
26098 return use_ascii (foo) == use_ebcdic (foo);
26099   ;
26100   return 0;
26101 }
26102 _ACEOF
26103 if ac_fn_c_try_compile "$LINENO"; then :
26104   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26105               ac_cv_c_bigendian=yes
26106             fi
26107             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26108               if test "$ac_cv_c_bigendian" = unknown; then
26109                 ac_cv_c_bigendian=no
26110               else
26111                 # finding both strings is unlikely to happen, but who knows?
26112                 ac_cv_c_bigendian=unknown
26113               fi
26114             fi
26115 fi
26116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26117 else
26118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26119 /* end confdefs.h.  */
26120 $ac_includes_default
26121 int
26122 main ()
26123 {
26124
26125              /* Are we little or big endian?  From Harbison&Steele.  */
26126              union
26127              {
26128                long int l;
26129                char c[sizeof (long int)];
26130              } u;
26131              u.l = 1;
26132              return u.c[sizeof (long int) - 1] == 1;
26133
26134   ;
26135   return 0;
26136 }
26137 _ACEOF
26138 if ac_fn_c_try_run "$LINENO"; then :
26139   ac_cv_c_bigendian=no
26140 else
26141   ac_cv_c_bigendian=yes
26142 fi
26143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26144   conftest.$ac_objext conftest.beam conftest.$ac_ext
26145 fi
26146
26147     fi
26148 fi
26149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26150 $as_echo "$ac_cv_c_bigendian" >&6; }
26151  case $ac_cv_c_bigendian in #(
26152    yes)
26153
26154 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26155 ;; #(
26156    no)
26157
26158 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26159  ;; #(
26160    universal)
26161
26162 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26163
26164      ;; #(
26165    *)
26166      as_fn_error "unknown endianness
26167  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26168  esac
26169
26170
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26172 $as_echo_n "checking how to get filesystem type... " >&6; }
26173 fstype=no
26174 # The order of these tests is important.
26175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26176 /* end confdefs.h.  */
26177
26178        #include <sys/statvfs.h>
26179        #include <sys/fstyp.h>
26180
26181 _ACEOF
26182 if ac_fn_c_try_cpp "$LINENO"; then :
26183   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26184  fstype=SVR4
26185
26186 fi
26187 rm -f conftest.err conftest.$ac_ext
26188 if test $fstype = no; then
26189    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26190 /* end confdefs.h.  */
26191
26192           #include <sys/statfs.h>
26193           #include <sys/fstyp.h>
26194
26195 _ACEOF
26196 if ac_fn_c_try_cpp "$LINENO"; then :
26197   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26198  fstype=SVR3
26199
26200 fi
26201 rm -f conftest.err conftest.$ac_ext
26202 fi
26203 if test $fstype = no; then
26204    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26205 /* end confdefs.h.  */
26206
26207           #include <sys/statfs.h>
26208           #include <sys/vmount.h>
26209
26210 _ACEOF
26211 if ac_fn_c_try_cpp "$LINENO"; then :
26212   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26213  fstype=AIX
26214
26215 fi
26216 rm -f conftest.err conftest.$ac_ext
26217 fi
26218 if test $fstype = no; then
26219    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26220 /* end confdefs.h.  */
26221
26222           #include <mntent.h>
26223
26224 _ACEOF
26225 if ac_fn_c_try_cpp "$LINENO"; then :
26226   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26227  fstype=4.3BSD
26228
26229 fi
26230 rm -f conftest.err conftest.$ac_ext
26231 fi
26232 if test $fstype = no; then
26233    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26234 /* end confdefs.h.  */
26235 #include <sys/mount.h>
26236
26237 _ACEOF
26238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26239   $EGREP "f_type;" >/dev/null 2>&1; then :
26240   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26241  fstype=4.4BSD/OSF1
26242 fi
26243 rm -f conftest*
26244
26245 fi
26246 if test $fstype = no; then
26247    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26248 /* end confdefs.h.  */
26249
26250           #include <sys/mount.h>
26251           #include <sys/fs_types.h>
26252
26253 _ACEOF
26254 if ac_fn_c_try_cpp "$LINENO"; then :
26255   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26256  fstype=Ultrix
26257
26258 fi
26259 rm -f conftest.err conftest.$ac_ext
26260 fi
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26262 $as_echo "$fstype" >&6; }
26263
26264 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26265 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
26266
26267 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26268
26269 fi
26270
26271
26272
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26274 $as_echo_n "checking return type of signal handlers... " >&6; }
26275 if test "${ac_cv_type_signal+set}" = set; then :
26276   $as_echo_n "(cached) " >&6
26277 else
26278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26279 /* end confdefs.h.  */
26280 #include <sys/types.h>
26281 #include <signal.h>
26282
26283 int
26284 main ()
26285 {
26286 return *(signal (0, 0)) (0) == 1;
26287   ;
26288   return 0;
26289 }
26290 _ACEOF
26291 if ac_fn_c_try_compile "$LINENO"; then :
26292   ac_cv_type_signal=int
26293 else
26294   ac_cv_type_signal=void
26295 fi
26296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26297 fi
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26299 $as_echo "$ac_cv_type_signal" >&6; }
26300
26301 cat >>confdefs.h <<_ACEOF
26302 #define RETSIGTYPE $ac_cv_type_signal
26303 _ACEOF
26304
26305
26306
26307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26308 $as_echo_n "checking for type of signal functions... " >&6; }
26309   if test "${bash_cv_signal_vintage+set}" = set; then :
26310   $as_echo_n "(cached) " >&6
26311 else
26312
26313     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26314 /* end confdefs.h.  */
26315 #include <signal.h>
26316 int
26317 main ()
26318 {
26319
26320       sigset_t ss;
26321       struct sigaction sa;
26322       sigemptyset(&ss); sigsuspend(&ss);
26323       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26324       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26325
26326   ;
26327   return 0;
26328 }
26329 _ACEOF
26330 if ac_fn_c_try_link "$LINENO"; then :
26331   bash_cv_signal_vintage="posix"
26332 else
26333
26334       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26335 /* end confdefs.h.  */
26336 #include <signal.h>
26337 int
26338 main ()
26339 {
26340
26341           int mask = sigmask(SIGINT);
26342           sigsetmask(mask); sigblock(mask); sigpause(mask);
26343
26344   ;
26345   return 0;
26346 }
26347 _ACEOF
26348 if ac_fn_c_try_link "$LINENO"; then :
26349   bash_cv_signal_vintage="4.2bsd"
26350 else
26351
26352         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26353 /* end confdefs.h.  */
26354
26355           #include <signal.h>
26356           RETSIGTYPE foo() { }
26357 int
26358 main ()
26359 {
26360
26361                   int mask = sigmask(SIGINT);
26362                   sigset(SIGINT, foo); sigrelse(SIGINT);
26363                   sighold(SIGINT); sigpause(SIGINT);
26364
26365   ;
26366   return 0;
26367 }
26368 _ACEOF
26369 if ac_fn_c_try_link "$LINENO"; then :
26370   bash_cv_signal_vintage="svr3"
26371 else
26372   bash_cv_signal_vintage="v7"
26373
26374 fi
26375 rm -f core conftest.err conftest.$ac_objext \
26376     conftest$ac_exeext conftest.$ac_ext
26377
26378 fi
26379 rm -f core conftest.err conftest.$ac_objext \
26380     conftest$ac_exeext conftest.$ac_ext
26381
26382 fi
26383 rm -f core conftest.err conftest.$ac_objext \
26384     conftest$ac_exeext conftest.$ac_ext
26385
26386 fi
26387
26388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26389 $as_echo "$bash_cv_signal_vintage" >&6; }
26390   if test "$bash_cv_signal_vintage" = "posix"; then
26391     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26392
26393   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26394     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26395
26396   elif test "$bash_cv_signal_vintage" = "svr3"; then
26397     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26398
26399   fi
26400
26401 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26402 if test "x$ac_cv_type_mode_t" = x""yes; then :
26403
26404 else
26405
26406 cat >>confdefs.h <<_ACEOF
26407 #define mode_t int
26408 _ACEOF
26409
26410 fi
26411
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26413 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26414 if test "${ac_cv_type_uid_t+set}" = set; then :
26415   $as_echo_n "(cached) " >&6
26416 else
26417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26418 /* end confdefs.h.  */
26419 #include <sys/types.h>
26420
26421 _ACEOF
26422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26423   $EGREP "uid_t" >/dev/null 2>&1; then :
26424   ac_cv_type_uid_t=yes
26425 else
26426   ac_cv_type_uid_t=no
26427 fi
26428 rm -f conftest*
26429
26430 fi
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26432 $as_echo "$ac_cv_type_uid_t" >&6; }
26433 if test $ac_cv_type_uid_t = no; then
26434
26435 $as_echo "#define uid_t int" >>confdefs.h
26436
26437
26438 $as_echo "#define gid_t int" >>confdefs.h
26439
26440 fi
26441
26442 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26443 if test "x$ac_cv_type_size_t" = x""yes; then :
26444
26445 else
26446
26447 cat >>confdefs.h <<_ACEOF
26448 #define size_t unsigned int
26449 _ACEOF
26450
26451 fi
26452
26453 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26454 if test "x$ac_cv_type_pid_t" = x""yes; then :
26455
26456 else
26457
26458 cat >>confdefs.h <<_ACEOF
26459 #define pid_t int
26460 _ACEOF
26461
26462 fi
26463
26464 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26465 if test "x$ac_cv_type_off_t" = x""yes; then :
26466
26467 else
26468
26469 cat >>confdefs.h <<_ACEOF
26470 #define off_t long int
26471 _ACEOF
26472
26473 fi
26474
26475
26476   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26477 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26478
26479 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26480
26481 else
26482   for ac_type in 'int' 'long int' 'long long int'; do
26483        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26484 /* end confdefs.h.  */
26485 $ac_includes_default
26486 int
26487 main ()
26488 {
26489 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26490 test_array [0] = 0
26491
26492   ;
26493   return 0;
26494 }
26495 _ACEOF
26496 if ac_fn_c_try_compile "$LINENO"; then :
26497
26498 cat >>confdefs.h <<_ACEOF
26499 #define intptr_t $ac_type
26500 _ACEOF
26501
26502           ac_type=
26503 fi
26504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26505        test -z "$ac_type" && break
26506      done
26507 fi
26508
26509
26510
26511   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26512 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26513
26514 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26515
26516 else
26517   for ac_type in 'unsigned int' 'unsigned long int' \
26518         'unsigned long long int'; do
26519        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26520 /* end confdefs.h.  */
26521 $ac_includes_default
26522 int
26523 main ()
26524 {
26525 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26526 test_array [0] = 0
26527
26528   ;
26529   return 0;
26530 }
26531 _ACEOF
26532 if ac_fn_c_try_compile "$LINENO"; then :
26533
26534 cat >>confdefs.h <<_ACEOF
26535 #define uintptr_t $ac_type
26536 _ACEOF
26537
26538           ac_type=
26539 fi
26540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26541        test -z "$ac_type" && break
26542      done
26543 fi
26544
26545
26546 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26547 if test "x$ac_cv_type_ino_t" = x""yes; then :
26548
26549 else
26550
26551 cat >>confdefs.h <<_ACEOF
26552 #define ino_t unsigned long
26553 _ACEOF
26554
26555 fi
26556
26557 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26558 if test "x$ac_cv_type_dev_t" = x""yes; then :
26559
26560 else
26561
26562 cat >>confdefs.h <<_ACEOF
26563 #define dev_t unsigned long
26564 _ACEOF
26565
26566 fi
26567
26568 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26569 if test "x$ac_cv_type_daddr_t" = x""yes; then :
26570
26571 else
26572
26573 cat >>confdefs.h <<_ACEOF
26574 #define daddr_t long
26575 _ACEOF
26576
26577 fi
26578
26579 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26580 if test "x$ac_cv_type_major_t" = x""yes; then :
26581
26582 else
26583
26584 cat >>confdefs.h <<_ACEOF
26585 #define major_t int
26586 _ACEOF
26587
26588 fi
26589
26590 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26591 if test "x$ac_cv_type_minor_t" = x""yes; then :
26592
26593 else
26594
26595 cat >>confdefs.h <<_ACEOF
26596 #define minor_t int
26597 _ACEOF
26598
26599 fi
26600
26601 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26602 if test "x$ac_cv_type_ssize_t" = x""yes; then :
26603
26604 else
26605
26606 cat >>confdefs.h <<_ACEOF
26607 #define ssize_t int
26608 _ACEOF
26609
26610 fi
26611
26612 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26613 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26614
26615 cat >>confdefs.h <<_ACEOF
26616 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26617 _ACEOF
26618
26619
26620 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26621
26622 else
26623   case " $LIBOBJS " in
26624   *" fileblocks.$ac_objext "* ) ;;
26625   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26626  ;;
26627 esac
26628
26629 fi
26630
26631
26632 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26633 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
26634
26635 cat >>confdefs.h <<_ACEOF
26636 #define HAVE_STRUCT_STAT_ST_RDEV 1
26637 _ACEOF
26638
26639
26640 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26641
26642 fi
26643
26644
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26646 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26647 if test "${ac_cv_struct_tm+set}" = set; then :
26648   $as_echo_n "(cached) " >&6
26649 else
26650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26651 /* end confdefs.h.  */
26652 #include <sys/types.h>
26653 #include <time.h>
26654
26655 int
26656 main ()
26657 {
26658 struct tm tm;
26659                                      int *p = &tm.tm_sec;
26660                                      return !p;
26661   ;
26662   return 0;
26663 }
26664 _ACEOF
26665 if ac_fn_c_try_compile "$LINENO"; then :
26666   ac_cv_struct_tm=time.h
26667 else
26668   ac_cv_struct_tm=sys/time.h
26669 fi
26670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26671 fi
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26673 $as_echo "$ac_cv_struct_tm" >&6; }
26674 if test $ac_cv_struct_tm = sys/time.h; then
26675
26676 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26677
26678 fi
26679
26680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26681 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26682 if test "${ac_cv_c_const+set}" = set; then :
26683   $as_echo_n "(cached) " >&6
26684 else
26685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26686 /* end confdefs.h.  */
26687
26688 int
26689 main ()
26690 {
26691 /* FIXME: Include the comments suggested by Paul. */
26692 #ifndef __cplusplus
26693   /* Ultrix mips cc rejects this.  */
26694   typedef int charset[2];
26695   const charset cs;
26696   /* SunOS 4.1.1 cc rejects this.  */
26697   char const *const *pcpcc;
26698   char **ppc;
26699   /* NEC SVR4.0.2 mips cc rejects this.  */
26700   struct point {int x, y;};
26701   static struct point const zero = {0,0};
26702   /* AIX XL C 1.02.0.0 rejects this.
26703      It does not let you subtract one const X* pointer from another in
26704      an arm of an if-expression whose if-part is not a constant
26705      expression */
26706   const char *g = "string";
26707   pcpcc = &g + (g ? g-g : 0);
26708   /* HPUX 7.0 cc rejects these. */
26709   ++pcpcc;
26710   ppc = (char**) pcpcc;
26711   pcpcc = (char const *const *) ppc;
26712   { /* SCO 3.2v4 cc rejects this.  */
26713     char *t;
26714     char const *s = 0 ? (char *) 0 : (char const *) 0;
26715
26716     *t++ = 0;
26717     if (s) return 0;
26718   }
26719   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26720     int x[] = {25, 17};
26721     const int *foo = &x[0];
26722     ++foo;
26723   }
26724   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26725     typedef const int *iptr;
26726     iptr p = 0;
26727     ++p;
26728   }
26729   { /* AIX XL C 1.02.0.0 rejects this saying
26730        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26731     struct s { int j; const int *ap[3]; };
26732     struct s *b; b->j = 5;
26733   }
26734   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26735     const int foo = 10;
26736     if (!foo) return 0;
26737   }
26738   return !cs[0] && !zero.x;
26739 #endif
26740
26741   ;
26742   return 0;
26743 }
26744 _ACEOF
26745 if ac_fn_c_try_compile "$LINENO"; then :
26746   ac_cv_c_const=yes
26747 else
26748   ac_cv_c_const=no
26749 fi
26750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26751 fi
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26753 $as_echo "$ac_cv_c_const" >&6; }
26754 if test $ac_cv_c_const = no; then
26755
26756 $as_echo "#define const /**/" >>confdefs.h
26757
26758 fi
26759
26760
26761 # The cast to long int works around a bug in the HP C Compiler
26762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26764 # This bug is HP SR number 8606223364.
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26766 $as_echo_n "checking size of char... " >&6; }
26767 if test "${ac_cv_sizeof_char+set}" = set; then :
26768   $as_echo_n "(cached) " >&6
26769 else
26770   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26771
26772 else
26773   if test "$ac_cv_type_char" = yes; then
26774      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26776 { as_fn_set_status 77
26777 as_fn_error "cannot compute sizeof (char)
26778 See \`config.log' for more details." "$LINENO" 5; }; }
26779    else
26780      ac_cv_sizeof_char=0
26781    fi
26782 fi
26783
26784 fi
26785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26786 $as_echo "$ac_cv_sizeof_char" >&6; }
26787
26788
26789
26790 cat >>confdefs.h <<_ACEOF
26791 #define SIZEOF_CHAR $ac_cv_sizeof_char
26792 _ACEOF
26793
26794
26795 # The cast to long int works around a bug in the HP C Compiler
26796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26798 # This bug is HP SR number 8606223364.
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26800 $as_echo_n "checking size of short int... " >&6; }
26801 if test "${ac_cv_sizeof_short_int+set}" = set; then :
26802   $as_echo_n "(cached) " >&6
26803 else
26804   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26805
26806 else
26807   if test "$ac_cv_type_short_int" = yes; then
26808      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26810 { as_fn_set_status 77
26811 as_fn_error "cannot compute sizeof (short int)
26812 See \`config.log' for more details." "$LINENO" 5; }; }
26813    else
26814      ac_cv_sizeof_short_int=0
26815    fi
26816 fi
26817
26818 fi
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26820 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26821
26822
26823
26824 cat >>confdefs.h <<_ACEOF
26825 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26826 _ACEOF
26827
26828
26829 # The cast to long int works around a bug in the HP C Compiler
26830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26832 # This bug is HP SR number 8606223364.
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26834 $as_echo_n "checking size of int... " >&6; }
26835 if test "${ac_cv_sizeof_int+set}" = set; then :
26836   $as_echo_n "(cached) " >&6
26837 else
26838   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26839
26840 else
26841   if test "$ac_cv_type_int" = yes; then
26842      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26844 { as_fn_set_status 77
26845 as_fn_error "cannot compute sizeof (int)
26846 See \`config.log' for more details." "$LINENO" 5; }; }
26847    else
26848      ac_cv_sizeof_int=0
26849    fi
26850 fi
26851
26852 fi
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26854 $as_echo "$ac_cv_sizeof_int" >&6; }
26855
26856
26857
26858 cat >>confdefs.h <<_ACEOF
26859 #define SIZEOF_INT $ac_cv_sizeof_int
26860 _ACEOF
26861
26862
26863 # The cast to long int works around a bug in the HP C Compiler
26864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26866 # This bug is HP SR number 8606223364.
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26868 $as_echo_n "checking size of long int... " >&6; }
26869 if test "${ac_cv_sizeof_long_int+set}" = set; then :
26870   $as_echo_n "(cached) " >&6
26871 else
26872   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26873
26874 else
26875   if test "$ac_cv_type_long_int" = yes; then
26876      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26878 { as_fn_set_status 77
26879 as_fn_error "cannot compute sizeof (long int)
26880 See \`config.log' for more details." "$LINENO" 5; }; }
26881    else
26882      ac_cv_sizeof_long_int=0
26883    fi
26884 fi
26885
26886 fi
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26888 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26889
26890
26891
26892 cat >>confdefs.h <<_ACEOF
26893 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26894 _ACEOF
26895
26896
26897 # The cast to long int works around a bug in the HP C Compiler
26898 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26899 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26900 # This bug is HP SR number 8606223364.
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26902 $as_echo_n "checking size of long long int... " >&6; }
26903 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
26904   $as_echo_n "(cached) " >&6
26905 else
26906   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26907
26908 else
26909   if test "$ac_cv_type_long_long_int" = yes; then
26910      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26912 { as_fn_set_status 77
26913 as_fn_error "cannot compute sizeof (long long int)
26914 See \`config.log' for more details." "$LINENO" 5; }; }
26915    else
26916      ac_cv_sizeof_long_long_int=0
26917    fi
26918 fi
26919
26920 fi
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26922 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26923
26924
26925
26926 cat >>confdefs.h <<_ACEOF
26927 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26928 _ACEOF
26929
26930
26931 # The cast to long int works around a bug in the HP C Compiler
26932 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26933 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26934 # This bug is HP SR number 8606223364.
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26936 $as_echo_n "checking size of int *... " >&6; }
26937 if test "${ac_cv_sizeof_int_p+set}" = set; then :
26938   $as_echo_n "(cached) " >&6
26939 else
26940   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26941
26942 else
26943   if test "$ac_cv_type_int_p" = yes; then
26944      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26946 { as_fn_set_status 77
26947 as_fn_error "cannot compute sizeof (int *)
26948 See \`config.log' for more details." "$LINENO" 5; }; }
26949    else
26950      ac_cv_sizeof_int_p=0
26951    fi
26952 fi
26953
26954 fi
26955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26956 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26957
26958
26959
26960 cat >>confdefs.h <<_ACEOF
26961 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26962 _ACEOF
26963
26964
26965
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26967 $as_echo_n "checking for u_int type... " >&6; }
26968 if test "${ac_cv_have_u_int+set}" = set; then :
26969   $as_echo_n "(cached) " >&6
26970 else
26971
26972        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26973 /* end confdefs.h.  */
26974
26975               #include <sys/types.h>
26976
26977 int
26978 main ()
26979 {
26980
26981               u_int a; a = 1;
26982
26983   ;
26984   return 0;
26985 }
26986 _ACEOF
26987 if ac_fn_c_try_compile "$LINENO"; then :
26988
26989               ac_cv_have_u_int="yes"
26990
26991 else
26992
26993               ac_cv_have_u_int="no"
26994
26995
26996 fi
26997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26998
26999
27000 fi
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27002 $as_echo "$ac_cv_have_u_int" >&6; }
27003 if test "x$ac_cv_have_u_int" = "xyes" ; then
27004    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27005
27006    have_u_int=1
27007 fi
27008
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27010 $as_echo_n "checking for intmax_t type... " >&6; }
27011 if test "${ac_cv_have_intmax_t+set}" = set; then :
27012   $as_echo_n "(cached) " >&6
27013 else
27014
27015        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27016 /* end confdefs.h.  */
27017
27018               #include <sys/types.h>
27019
27020 int
27021 main ()
27022 {
27023
27024               intmax_t a; a = 1;
27025
27026   ;
27027   return 0;
27028 }
27029 _ACEOF
27030 if ac_fn_c_try_compile "$LINENO"; then :
27031
27032               ac_cv_have_intmax_t="yes"
27033
27034 else
27035
27036               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27037 /* end confdefs.h.  */
27038
27039                      #include <stdint.h>
27040
27041 int
27042 main ()
27043 {
27044
27045                      intmax_t a; a = 1;
27046
27047   ;
27048   return 0;
27049 }
27050 _ACEOF
27051 if ac_fn_c_try_compile "$LINENO"; then :
27052
27053                      ac_cv_have_intmax_t="yes"
27054
27055 else
27056
27057                      ac_cv_have_intmax_t="no"
27058
27059
27060 fi
27061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27062
27063
27064 fi
27065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27066
27067
27068 fi
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27070 $as_echo "$ac_cv_have_intmax_t" >&6; }
27071 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27072    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27073
27074    have_intmax_t=1
27075 fi
27076
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27078 $as_echo_n "checking for u_intmax_t type... " >&6; }
27079 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
27080   $as_echo_n "(cached) " >&6
27081 else
27082
27083        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h.  */
27085
27086               #include <sys/types.h>
27087
27088 int
27089 main ()
27090 {
27091
27092               u_intmax_t a; a = 1;
27093
27094   ;
27095   return 0;
27096 }
27097 _ACEOF
27098 if ac_fn_c_try_compile "$LINENO"; then :
27099
27100               ac_cv_have_u_intmax_t="yes"
27101
27102 else
27103
27104               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27105 /* end confdefs.h.  */
27106
27107                      #include <stdint.h>
27108
27109 int
27110 main ()
27111 {
27112
27113                     u_intmax_t a; a = 1;
27114
27115   ;
27116   return 0;
27117 }
27118 _ACEOF
27119 if ac_fn_c_try_compile "$LINENO"; then :
27120
27121                     ac_cv_have_u_intmax_t="yes"
27122
27123 else
27124
27125                     ac_cv_have_u_intmax_t="no"
27126
27127
27128 fi
27129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27130
27131
27132 fi
27133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27134
27135
27136 fi
27137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27138 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27139 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27140    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27141
27142    have_u_intmax_t=1
27143 fi
27144
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27146 $as_echo_n "checking for intXX_t types... " >&6; }
27147 if test "${ac_cv_have_intxx_t+set}" = set; then :
27148   $as_echo_n "(cached) " >&6
27149 else
27150
27151        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27152 /* end confdefs.h.  */
27153
27154               #include <sys/types.h>
27155
27156 int
27157 main ()
27158 {
27159
27160               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27161
27162   ;
27163   return 0;
27164 }
27165 _ACEOF
27166 if ac_fn_c_try_compile "$LINENO"; then :
27167
27168               ac_cv_have_intxx_t="yes"
27169
27170 else
27171
27172               ac_cv_have_intxx_t="no"
27173
27174
27175 fi
27176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27177
27178
27179 fi
27180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27181 $as_echo "$ac_cv_have_intxx_t" >&6; }
27182 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27183    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27184
27185    have_intxx_t=1
27186 fi
27187
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27189 $as_echo_n "checking for int64_t type... " >&6; }
27190 if test "${ac_cv_have_int64_t+set}" = set; then :
27191   $as_echo_n "(cached) " >&6
27192 else
27193
27194        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27195 /* end confdefs.h.  */
27196
27197               #include <sys/types.h>
27198
27199 int
27200 main ()
27201 {
27202
27203               int64_t a; a = 1;
27204
27205   ;
27206   return 0;
27207 }
27208 _ACEOF
27209 if ac_fn_c_try_compile "$LINENO"; then :
27210
27211               ac_cv_have_int64_t="yes"
27212
27213 else
27214
27215               ac_cv_have_int64_t="no"
27216
27217
27218 fi
27219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27220
27221
27222 fi
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27224 $as_echo "$ac_cv_have_int64_t" >&6; }
27225 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27226    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27227
27228    have_int64_t=1
27229 fi
27230
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27232 $as_echo_n "checking for u_intXX_t types... " >&6; }
27233 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
27234   $as_echo_n "(cached) " >&6
27235 else
27236
27237        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27238 /* end confdefs.h.  */
27239
27240               #include <sys/types.h>
27241
27242 int
27243 main ()
27244 {
27245
27246               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27247
27248   ;
27249   return 0;
27250 }
27251 _ACEOF
27252 if ac_fn_c_try_compile "$LINENO"; then :
27253
27254              ac_cv_have_u_intxx_t="yes"
27255
27256 else
27257
27258              ac_cv_have_u_intxx_t="no"
27259
27260
27261 fi
27262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27263
27264
27265 fi
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27267 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27268 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27269    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27270
27271    have_u_intxx_t=1
27272 fi
27273
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27275 $as_echo_n "checking for u_int64_t types... " >&6; }
27276 if test "${ac_cv_have_u_int64_t+set}" = set; then :
27277   $as_echo_n "(cached) " >&6
27278 else
27279
27280        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27281 /* end confdefs.h.  */
27282
27283               #include <sys/types.h>
27284
27285 int
27286 main ()
27287 {
27288
27289               u_int64_t a; a = 1;
27290
27291   ;
27292   return 0;
27293 }
27294 _ACEOF
27295 if ac_fn_c_try_compile "$LINENO"; then :
27296
27297              ac_cv_have_u_int64_t="yes"
27298
27299 else
27300
27301              ac_cv_have_u_int64_t="no"
27302
27303
27304 fi
27305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27306
27307
27308 fi
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27310 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27311 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27312    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27313
27314    have_u_int64_t=1
27315 fi
27316
27317 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27318     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27319 then
27320    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27321 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27322    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27323 /* end confdefs.h.  */
27324
27325           #include <sys/bitypes.h>
27326
27327 int
27328 main ()
27329 {
27330
27331           int8_t a; int16_t b; int32_t c;
27332           u_int8_t e; u_int16_t f; u_int32_t g;
27333           a = b = c = e = f = g = 1;
27334
27335   ;
27336   return 0;
27337 }
27338 _ACEOF
27339 if ac_fn_c_try_compile "$LINENO"; then :
27340
27341           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27342
27343           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27344
27345           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27346
27347           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27348 $as_echo "yes" >&6; }
27349
27350 else
27351
27352           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27353 $as_echo "no" >&6; }
27354
27355
27356 fi
27357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27358 fi
27359
27360 if test -z "$have_u_intxx_t" ; then
27361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27362 $as_echo_n "checking for uintXX_t types... " >&6; }
27363 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27364   $as_echo_n "(cached) " >&6
27365 else
27366
27367           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27368 /* end confdefs.h.  */
27369
27370                  #include <sys/types.h>
27371
27372 int
27373 main ()
27374 {
27375
27376                  uint8_t a; uint16_t b;
27377                  uint32_t c; a = b = c = 1;
27378
27379   ;
27380   return 0;
27381 }
27382 _ACEOF
27383 if ac_fn_c_try_compile "$LINENO"; then :
27384
27385                 ac_cv_have_uintxx_t="yes"
27386
27387 else
27388
27389                 ac_cv_have_uintxx_t="no"
27390
27391
27392 fi
27393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27394
27395
27396 fi
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27398 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27399    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27400       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27401
27402    fi
27403 fi
27404
27405 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27406     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27407 then
27408    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27409 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27410    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27411 /* end confdefs.h.  */
27412
27413           #include <sys/bitypes.h>
27414
27415 int
27416 main ()
27417 {
27418
27419           int64_t a; u_int64_t b;
27420           a = b = 1;
27421
27422   ;
27423   return 0;
27424 }
27425 _ACEOF
27426 if ac_fn_c_try_compile "$LINENO"; then :
27427
27428           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27429
27430           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27431
27432           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27433 $as_echo "yes" >&6; }
27434
27435 else
27436
27437           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27438 $as_echo "no" >&6; }
27439
27440
27441 fi
27442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27443 fi
27444
27445 if (test -z "$have_uintxx_t" && \
27446     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27447 then
27448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27449 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27450    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27451 /* end confdefs.h.  */
27452
27453           #include <sys/bitypes.h>
27454
27455 int
27456 main ()
27457 {
27458
27459           uint8_t a; uint16_t b;
27460           uint32_t c; a = b = c = 1;
27461
27462   ;
27463   return 0;
27464 }
27465 _ACEOF
27466 if ac_fn_c_try_compile "$LINENO"; then :
27467
27468           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27469
27470           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27471 $as_echo "yes" >&6; }
27472
27473 else
27474
27475           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27476 $as_echo "no" >&6; }
27477
27478
27479 fi
27480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27481 fi
27482
27483 for ac_func in \
27484    fork \
27485    getcwd \
27486    gethostname \
27487    getpid \
27488    gettimeofday \
27489    setpgid \
27490    setpgrp \
27491    setsid \
27492    signal \
27493    strerror \
27494    strncmp \
27495    strncpy \
27496    vfprintf \
27497
27498 do :
27499   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27500 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27501 eval as_val=\$$as_ac_var
27502    if test "x$as_val" = x""yes; then :
27503   cat >>confdefs.h <<_ACEOF
27504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27505 _ACEOF
27506
27507 else
27508   echo 'configure: cannot find needed function.'; exit 1
27509
27510 fi
27511 done
27512
27513
27514 for ac_func in fchdir
27515 do :
27516   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27517 if test "x$ac_cv_func_fchdir" = x""yes; then :
27518   cat >>confdefs.h <<_ACEOF
27519 #define HAVE_FCHDIR 1
27520 _ACEOF
27521  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27522
27523 fi
27524 done
27525
27526 for ac_func in strtoll
27527 do :
27528   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27529 if test "x$ac_cv_func_strtoll" = x""yes; then :
27530   cat >>confdefs.h <<_ACEOF
27531 #define HAVE_STRTOLL 1
27532 _ACEOF
27533  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27534
27535 fi
27536 done
27537
27538 for ac_func in posix_fadvise
27539 do :
27540   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27541 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
27542   cat >>confdefs.h <<_ACEOF
27543 #define HAVE_POSIX_FADVISE 1
27544 _ACEOF
27545
27546 fi
27547 done
27548
27549 for ac_func in fdatasync
27550 do :
27551   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27552 if test "x$ac_cv_func_fdatasync" = x""yes; then :
27553   cat >>confdefs.h <<_ACEOF
27554 #define HAVE_FDATASYNC 1
27555 _ACEOF
27556
27557 fi
27558 done
27559
27560
27561 for ac_func in chflags
27562 do :
27563   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27564 if test "x$ac_cv_func_chflags" = x""yes; then :
27565   cat >>confdefs.h <<_ACEOF
27566 #define HAVE_CHFLAGS 1
27567 _ACEOF
27568
27569 fi
27570 done
27571
27572
27573 for ac_func in snprintf vsnprintf gethostid fseeko
27574 do :
27575   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27576 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27577 eval as_val=\$$as_ac_var
27578    if test "x$as_val" = x""yes; then :
27579   cat >>confdefs.h <<_ACEOF
27580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27581 _ACEOF
27582
27583 fi
27584 done
27585
27586
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27588 $as_echo_n "checking for va_copy... " >&6; }
27589 if test "${ba_cv_va_copy+set}" = set; then :
27590   $as_echo_n "(cached) " >&6
27591 else
27592
27593        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27594 /* end confdefs.h.  */
27595
27596               #include <stdarg.h>
27597               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27598               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27599
27600 int
27601 main ()
27602 {
27603
27604               call_use_va_copy(1,2,3)
27605
27606   ;
27607   return 0;
27608 }
27609 _ACEOF
27610 if ac_fn_c_try_link "$LINENO"; then :
27611
27612               ba_cv_va_copy=yes,
27613
27614 else
27615
27616               ba_cv_va_copy=no
27617
27618
27619 fi
27620 rm -f core conftest.err conftest.$ac_objext \
27621     conftest$ac_exeext conftest.$ac_ext
27622
27623
27624 fi
27625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27626 $as_echo "$ba_cv_va_copy" >&6; }
27627 test $ba_cv_va_copy = yes &&
27628 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27629
27630
27631 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27632 do :
27633   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27634 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27635 eval as_val=\$$as_ac_var
27636    if test "x$as_val" = x""yes; then :
27637   cat >>confdefs.h <<_ACEOF
27638 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27639 _ACEOF
27640
27641 fi
27642 done
27643
27644
27645 # If resolver functions are not in libc check for -lnsl or -lresolv.
27646 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27647 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
27648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27649 $as_echo "using libc's resolver" >&6; }
27650 else
27651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27652 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27653 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
27654   $as_echo_n "(cached) " >&6
27655 else
27656   ac_check_lib_save_LIBS=$LIBS
27657 LIBS="-lnsl  $LIBS"
27658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27659 /* end confdefs.h.  */
27660
27661 /* Override any GCC internal prototype to avoid an error.
27662    Use char because int might match the return type of a GCC
27663    builtin and then its argument prototype would still apply.  */
27664 #ifdef __cplusplus
27665 extern "C"
27666 #endif
27667 char gethostbyname_r ();
27668 int
27669 main ()
27670 {
27671 return gethostbyname_r ();
27672   ;
27673   return 0;
27674 }
27675 _ACEOF
27676 if ac_fn_c_try_link "$LINENO"; then :
27677   ac_cv_lib_nsl_gethostbyname_r=yes
27678 else
27679   ac_cv_lib_nsl_gethostbyname_r=no
27680 fi
27681 rm -f core conftest.err conftest.$ac_objext \
27682     conftest$ac_exeext conftest.$ac_ext
27683 LIBS=$ac_check_lib_save_LIBS
27684 fi
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27686 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27687 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
27688   cat >>confdefs.h <<_ACEOF
27689 #define HAVE_LIBNSL 1
27690 _ACEOF
27691
27692   LIBS="-lnsl $LIBS"
27693
27694 fi
27695
27696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27697 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27698 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
27699   $as_echo_n "(cached) " >&6
27700 else
27701   ac_check_lib_save_LIBS=$LIBS
27702 LIBS="-lresolv  $LIBS"
27703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27704 /* end confdefs.h.  */
27705
27706 /* Override any GCC internal prototype to avoid an error.
27707    Use char because int might match the return type of a GCC
27708    builtin and then its argument prototype would still apply.  */
27709 #ifdef __cplusplus
27710 extern "C"
27711 #endif
27712 char gethostbyname_r ();
27713 int
27714 main ()
27715 {
27716 return gethostbyname_r ();
27717   ;
27718   return 0;
27719 }
27720 _ACEOF
27721 if ac_fn_c_try_link "$LINENO"; then :
27722   ac_cv_lib_resolv_gethostbyname_r=yes
27723 else
27724   ac_cv_lib_resolv_gethostbyname_r=no
27725 fi
27726 rm -f core conftest.err conftest.$ac_objext \
27727     conftest$ac_exeext conftest.$ac_ext
27728 LIBS=$ac_check_lib_save_LIBS
27729 fi
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27731 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27732 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
27733   cat >>confdefs.h <<_ACEOF
27734 #define HAVE_LIBRESOLV 1
27735 _ACEOF
27736
27737   LIBS="-lresolv $LIBS"
27738
27739 fi
27740
27741 fi
27742
27743
27744 for ac_func in inet_pton
27745 do :
27746   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27747 if test "x$ac_cv_func_inet_pton" = x""yes; then :
27748   cat >>confdefs.h <<_ACEOF
27749 #define HAVE_INET_PTON 1
27750 _ACEOF
27751  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27752
27753 fi
27754 done
27755
27756 for ac_func in inet_ntop
27757 do :
27758   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27759 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
27760   cat >>confdefs.h <<_ACEOF
27761 #define HAVE_INET_NTOP 1
27762 _ACEOF
27763  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27764
27765 fi
27766 done
27767
27768 for ac_func in gethostbyname2
27769 do :
27770   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27771 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
27772   cat >>confdefs.h <<_ACEOF
27773 #define HAVE_GETHOSTBYNAME2 1
27774 _ACEOF
27775  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27776
27777 fi
27778 done
27779
27780
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27782 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27783 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
27784   $as_echo_n "(cached) " >&6
27785 else
27786
27787        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27788 /* end confdefs.h.  */
27789
27790               #include <sys/socket.h>
27791
27792 int
27793 main ()
27794 {
27795
27796               struct sockaddr s; s.sa_len;
27797
27798   ;
27799   return 0;
27800 }
27801 _ACEOF
27802 if ac_fn_c_try_compile "$LINENO"; then :
27803
27804              ac_cv_struct_sockaddr_sa_len=yes
27805
27806 else
27807   ac_cv_struct_sockaddr_sa_len=no
27808
27809
27810 fi
27811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27812
27813
27814 fi
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27816 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27817
27818 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27819
27820 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27821
27822 fi
27823
27824 for ac_func in strftime
27825 do :
27826   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27827 if test "x$ac_cv_func_strftime" = x""yes; then :
27828   cat >>confdefs.h <<_ACEOF
27829 #define HAVE_STRFTIME 1
27830 _ACEOF
27831
27832 else
27833   # strftime is in -lintl on SCO UNIX.
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27835 $as_echo_n "checking for strftime in -lintl... " >&6; }
27836 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
27837   $as_echo_n "(cached) " >&6
27838 else
27839   ac_check_lib_save_LIBS=$LIBS
27840 LIBS="-lintl  $LIBS"
27841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27842 /* end confdefs.h.  */
27843
27844 /* Override any GCC internal prototype to avoid an error.
27845    Use char because int might match the return type of a GCC
27846    builtin and then its argument prototype would still apply.  */
27847 #ifdef __cplusplus
27848 extern "C"
27849 #endif
27850 char strftime ();
27851 int
27852 main ()
27853 {
27854 return strftime ();
27855   ;
27856   return 0;
27857 }
27858 _ACEOF
27859 if ac_fn_c_try_link "$LINENO"; then :
27860   ac_cv_lib_intl_strftime=yes
27861 else
27862   ac_cv_lib_intl_strftime=no
27863 fi
27864 rm -f core conftest.err conftest.$ac_objext \
27865     conftest$ac_exeext conftest.$ac_ext
27866 LIBS=$ac_check_lib_save_LIBS
27867 fi
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27869 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27870 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
27871   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27872
27873 LIBS="-lintl $LIBS"
27874 fi
27875
27876 fi
27877 done
27878
27879 for ac_func in vprintf
27880 do :
27881   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27882 if test "x$ac_cv_func_vprintf" = x""yes; then :
27883   cat >>confdefs.h <<_ACEOF
27884 #define HAVE_VPRINTF 1
27885 _ACEOF
27886
27887 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27888 if test "x$ac_cv_func__doprnt" = x""yes; then :
27889
27890 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27891
27892 fi
27893
27894 fi
27895 done
27896
27897
27898 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27899 # for constant arguments.  Useless!
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27901 $as_echo_n "checking for working alloca.h... " >&6; }
27902 if test "${ac_cv_working_alloca_h+set}" = set; then :
27903   $as_echo_n "(cached) " >&6
27904 else
27905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27906 /* end confdefs.h.  */
27907 #include <alloca.h>
27908 int
27909 main ()
27910 {
27911 char *p = (char *) alloca (2 * sizeof (int));
27912                           if (p) return 0;
27913   ;
27914   return 0;
27915 }
27916 _ACEOF
27917 if ac_fn_c_try_link "$LINENO"; then :
27918   ac_cv_working_alloca_h=yes
27919 else
27920   ac_cv_working_alloca_h=no
27921 fi
27922 rm -f core conftest.err conftest.$ac_objext \
27923     conftest$ac_exeext conftest.$ac_ext
27924 fi
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27926 $as_echo "$ac_cv_working_alloca_h" >&6; }
27927 if test $ac_cv_working_alloca_h = yes; then
27928
27929 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27930
27931 fi
27932
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27934 $as_echo_n "checking for alloca... " >&6; }
27935 if test "${ac_cv_func_alloca_works+set}" = set; then :
27936   $as_echo_n "(cached) " >&6
27937 else
27938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27939 /* end confdefs.h.  */
27940 #ifdef __GNUC__
27941 # define alloca __builtin_alloca
27942 #else
27943 # ifdef _MSC_VER
27944 #  include <malloc.h>
27945 #  define alloca _alloca
27946 # else
27947 #  ifdef HAVE_ALLOCA_H
27948 #   include <alloca.h>
27949 #  else
27950 #   ifdef _AIX
27951  #pragma alloca
27952 #   else
27953 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27954 char *alloca ();
27955 #    endif
27956 #   endif
27957 #  endif
27958 # endif
27959 #endif
27960
27961 int
27962 main ()
27963 {
27964 char *p = (char *) alloca (1);
27965                                     if (p) return 0;
27966   ;
27967   return 0;
27968 }
27969 _ACEOF
27970 if ac_fn_c_try_link "$LINENO"; then :
27971   ac_cv_func_alloca_works=yes
27972 else
27973   ac_cv_func_alloca_works=no
27974 fi
27975 rm -f core conftest.err conftest.$ac_objext \
27976     conftest$ac_exeext conftest.$ac_ext
27977 fi
27978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27979 $as_echo "$ac_cv_func_alloca_works" >&6; }
27980
27981 if test $ac_cv_func_alloca_works = yes; then
27982
27983 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27984
27985 else
27986   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27987 # that cause trouble.  Some versions do not even contain alloca or
27988 # contain a buggy version.  If you still want to use their alloca,
27989 # use ar to extract alloca.o from them instead of compiling alloca.c.
27990
27991 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27992
27993 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27994
27995
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27997 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27998 if test "${ac_cv_os_cray+set}" = set; then :
27999   $as_echo_n "(cached) " >&6
28000 else
28001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28002 /* end confdefs.h.  */
28003 #if defined CRAY && ! defined CRAY2
28004 webecray
28005 #else
28006 wenotbecray
28007 #endif
28008
28009 _ACEOF
28010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28011   $EGREP "webecray" >/dev/null 2>&1; then :
28012   ac_cv_os_cray=yes
28013 else
28014   ac_cv_os_cray=no
28015 fi
28016 rm -f conftest*
28017
28018 fi
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28020 $as_echo "$ac_cv_os_cray" >&6; }
28021 if test $ac_cv_os_cray = yes; then
28022   for ac_func in _getb67 GETB67 getb67; do
28023     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28024 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28025 eval as_val=\$$as_ac_var
28026    if test "x$as_val" = x""yes; then :
28027
28028 cat >>confdefs.h <<_ACEOF
28029 #define CRAY_STACKSEG_END $ac_func
28030 _ACEOF
28031
28032     break
28033 fi
28034
28035   done
28036 fi
28037
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28039 $as_echo_n "checking stack direction for C alloca... " >&6; }
28040 if test "${ac_cv_c_stack_direction+set}" = set; then :
28041   $as_echo_n "(cached) " >&6
28042 else
28043   if test "$cross_compiling" = yes; then :
28044   ac_cv_c_stack_direction=0
28045 else
28046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28047 /* end confdefs.h.  */
28048 $ac_includes_default
28049 int
28050 find_stack_direction ()
28051 {
28052   static char *addr = 0;
28053   auto char dummy;
28054   if (addr == 0)
28055     {
28056       addr = &dummy;
28057       return find_stack_direction ();
28058     }
28059   else
28060     return (&dummy > addr) ? 1 : -1;
28061 }
28062
28063 int
28064 main ()
28065 {
28066   return find_stack_direction () < 0;
28067 }
28068 _ACEOF
28069 if ac_fn_c_try_run "$LINENO"; then :
28070   ac_cv_c_stack_direction=1
28071 else
28072   ac_cv_c_stack_direction=-1
28073 fi
28074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28075   conftest.$ac_objext conftest.beam conftest.$ac_ext
28076 fi
28077
28078 fi
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28080 $as_echo "$ac_cv_c_stack_direction" >&6; }
28081 cat >>confdefs.h <<_ACEOF
28082 #define STACK_DIRECTION $ac_cv_c_stack_direction
28083 _ACEOF
28084
28085
28086 fi
28087
28088 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28089 # -lseq on Dynix/PTX, -lgen on Unixware.
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28091 $as_echo_n "checking for library containing getmntent... " >&6; }
28092 if test "${ac_cv_search_getmntent+set}" = set; then :
28093   $as_echo_n "(cached) " >&6
28094 else
28095   ac_func_search_save_LIBS=$LIBS
28096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28097 /* end confdefs.h.  */
28098
28099 /* Override any GCC internal prototype to avoid an error.
28100    Use char because int might match the return type of a GCC
28101    builtin and then its argument prototype would still apply.  */
28102 #ifdef __cplusplus
28103 extern "C"
28104 #endif
28105 char getmntent ();
28106 int
28107 main ()
28108 {
28109 return getmntent ();
28110   ;
28111   return 0;
28112 }
28113 _ACEOF
28114 for ac_lib in '' sun seq gen; do
28115   if test -z "$ac_lib"; then
28116     ac_res="none required"
28117   else
28118     ac_res=-l$ac_lib
28119     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28120   fi
28121   if ac_fn_c_try_link "$LINENO"; then :
28122   ac_cv_search_getmntent=$ac_res
28123 fi
28124 rm -f core conftest.err conftest.$ac_objext \
28125     conftest$ac_exeext
28126   if test "${ac_cv_search_getmntent+set}" = set; then :
28127   break
28128 fi
28129 done
28130 if test "${ac_cv_search_getmntent+set}" = set; then :
28131
28132 else
28133   ac_cv_search_getmntent=no
28134 fi
28135 rm conftest.$ac_ext
28136 LIBS=$ac_func_search_save_LIBS
28137 fi
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28139 $as_echo "$ac_cv_search_getmntent" >&6; }
28140 ac_res=$ac_cv_search_getmntent
28141 if test "$ac_res" != no; then :
28142   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28143   ac_cv_func_getmntent=yes
28144
28145 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28146
28147 else
28148   ac_cv_func_getmntent=no
28149 fi
28150
28151
28152 for ac_func in getmntinfo
28153 do :
28154   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28155 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
28156   cat >>confdefs.h <<_ACEOF
28157 #define HAVE_GETMNTINFO 1
28158 _ACEOF
28159  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28160
28161 fi
28162 done
28163
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28165 $as_echo_n "checking whether closedir returns void... " >&6; }
28166 if test "${ac_cv_func_closedir_void+set}" = set; then :
28167   $as_echo_n "(cached) " >&6
28168 else
28169   if test "$cross_compiling" = yes; then :
28170   ac_cv_func_closedir_void=yes
28171 else
28172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28173 /* end confdefs.h.  */
28174 $ac_includes_default
28175 #include <$ac_header_dirent>
28176 #ifndef __cplusplus
28177 int closedir ();
28178 #endif
28179
28180 int
28181 main ()
28182 {
28183 return closedir (opendir (".")) != 0;
28184   ;
28185   return 0;
28186 }
28187 _ACEOF
28188 if ac_fn_c_try_run "$LINENO"; then :
28189   ac_cv_func_closedir_void=no
28190 else
28191   ac_cv_func_closedir_void=yes
28192 fi
28193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28194   conftest.$ac_objext conftest.beam conftest.$ac_ext
28195 fi
28196
28197 fi
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28199 $as_echo "$ac_cv_func_closedir_void" >&6; }
28200 if test $ac_cv_func_closedir_void = yes; then
28201
28202 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28203
28204 fi
28205
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28207 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28208 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
28209   $as_echo_n "(cached) " >&6
28210 else
28211   if test "$cross_compiling" = yes; then :
28212   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
28213 else
28214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28215 /* end confdefs.h.  */
28216 $ac_includes_default
28217 int
28218 main ()
28219 {
28220 /* If this system has a BSD-style setpgrp which takes arguments,
28221   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28222   exit successfully. */
28223   return setpgrp (1,1) != -1;
28224   ;
28225   return 0;
28226 }
28227 _ACEOF
28228 if ac_fn_c_try_run "$LINENO"; then :
28229   ac_cv_func_setpgrp_void=no
28230 else
28231   ac_cv_func_setpgrp_void=yes
28232 fi
28233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28234   conftest.$ac_objext conftest.beam conftest.$ac_ext
28235 fi
28236
28237 fi
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28239 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28240 if test $ac_cv_func_setpgrp_void = yes; then
28241
28242 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28243
28244 fi
28245             # AC_FUNC_FNMATCH    dnl use local version
28246
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28248 $as_echo_n "checking for gettext in -lintl... " >&6; }
28249 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
28250   $as_echo_n "(cached) " >&6
28251 else
28252   ac_check_lib_save_LIBS=$LIBS
28253 LIBS="-lintl  $LIBS"
28254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28255 /* end confdefs.h.  */
28256
28257 /* Override any GCC internal prototype to avoid an error.
28258    Use char because int might match the return type of a GCC
28259    builtin and then its argument prototype would still apply.  */
28260 #ifdef __cplusplus
28261 extern "C"
28262 #endif
28263 char gettext ();
28264 int
28265 main ()
28266 {
28267 return gettext ();
28268   ;
28269   return 0;
28270 }
28271 _ACEOF
28272 if ac_fn_c_try_link "$LINENO"; then :
28273   ac_cv_lib_intl_gettext=yes
28274 else
28275   ac_cv_lib_intl_gettext=no
28276 fi
28277 rm -f core conftest.err conftest.$ac_objext \
28278     conftest$ac_exeext conftest.$ac_ext
28279 LIBS=$ac_check_lib_save_LIBS
28280 fi
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28282 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28283 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
28284   LIBS="$LIBS -lintl"
28285 fi
28286
28287
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28289 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28290 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
28291   $as_echo_n "(cached) " >&6
28292 else
28293   ac_check_lib_save_LIBS=$LIBS
28294 LIBS="-lsun  $LIBS"
28295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28296 /* end confdefs.h.  */
28297
28298 /* Override any GCC internal prototype to avoid an error.
28299    Use char because int might match the return type of a GCC
28300    builtin and then its argument prototype would still apply.  */
28301 #ifdef __cplusplus
28302 extern "C"
28303 #endif
28304 char getpwnam ();
28305 int
28306 main ()
28307 {
28308 return getpwnam ();
28309   ;
28310   return 0;
28311 }
28312 _ACEOF
28313 if ac_fn_c_try_link "$LINENO"; then :
28314   ac_cv_lib_sun_getpwnam=yes
28315 else
28316   ac_cv_lib_sun_getpwnam=no
28317 fi
28318 rm -f core conftest.err conftest.$ac_objext \
28319     conftest$ac_exeext conftest.$ac_ext
28320 LIBS=$ac_check_lib_save_LIBS
28321 fi
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28323 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28324 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28325   cat >>confdefs.h <<_ACEOF
28326 #define HAVE_LIBSUN 1
28327 _ACEOF
28328
28329   LIBS="-lsun $LIBS"
28330
28331 fi
28332
28333
28334 for ac_header in zlib.h
28335 do :
28336   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28337 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28338   cat >>confdefs.h <<_ACEOF
28339 #define HAVE_ZLIB_H 1
28340 _ACEOF
28341
28342 fi
28343
28344 done
28345
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28347 $as_echo_n "checking for deflate in -lz... " >&6; }
28348 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28349   $as_echo_n "(cached) " >&6
28350 else
28351   ac_check_lib_save_LIBS=$LIBS
28352 LIBS="-lz  $LIBS"
28353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28354 /* end confdefs.h.  */
28355
28356 /* Override any GCC internal prototype to avoid an error.
28357    Use char because int might match the return type of a GCC
28358    builtin and then its argument prototype would still apply.  */
28359 #ifdef __cplusplus
28360 extern "C"
28361 #endif
28362 char deflate ();
28363 int
28364 main ()
28365 {
28366 return deflate ();
28367   ;
28368   return 0;
28369 }
28370 _ACEOF
28371 if ac_fn_c_try_link "$LINENO"; then :
28372   ac_cv_lib_z_deflate=yes
28373 else
28374   ac_cv_lib_z_deflate=no
28375 fi
28376 rm -f core conftest.err conftest.$ac_objext \
28377     conftest$ac_exeext conftest.$ac_ext
28378 LIBS=$ac_check_lib_save_LIBS
28379 fi
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28381 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28382 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28383   ZLIBS="-lz"
28384 fi
28385
28386 have_zlib=no
28387 if test x$ZLIBS = x-lz; then
28388    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28389
28390    have_zlib=yes
28391 fi
28392
28393
28394 AFS_CFLAGS=""
28395 AFS_LIBS=""
28396 support_afs=auto
28397 # Check whether --enable-afs was given.
28398 if test "${enable_afs+set}" = set; then :
28399   enableval=$enable_afs;
28400        if test x$enableval = xyes; then
28401           support_afs=yes
28402        elif test x$enableval = xno; then
28403           support_afs=no
28404        fi
28405
28406
28407 fi
28408
28409
28410 have_afs=no
28411 if test x$support_afs = xyes -o x$support_afs = xauto; then
28412
28413 # Check whether --with-afsdir was given.
28414 if test "${with_afsdir+set}" = set; then :
28415   withval=$with_afsdir; with_afsdir=$withval
28416
28417 fi
28418
28419
28420             if test x$with_afsdir = x; then
28421       for root in /usr /usr/local; do
28422          if test -d ${root}/include/afs/ ; then
28423             with_afsdir=${root}
28424             break
28425          fi
28426       done
28427    fi
28428
28429    AFS_CFLAGS="-I${with_afsdir}/include"
28430
28431    saved_CFLAGS="${CFLAGS}"
28432    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28433
28434    for ac_header in afs/stds.h
28435 do :
28436   ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28437 if test "x$ac_cv_header_afs_stds_h" = x""yes; then :
28438   cat >>confdefs.h <<_ACEOF
28439 #define HAVE_AFS_STDS_H 1
28440 _ACEOF
28441
28442 fi
28443
28444 done
28445
28446
28447    CFLAGS="${saved_CFLAGS}"
28448
28449             for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28450    do
28451       for arch_type in .a .so
28452       do
28453          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28454          pkg=$?
28455          if test $pkg = 0; then
28456             have_afs=yes
28457             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28458             break
28459          fi
28460       done
28461    done
28462
28463    if test x$support_afs = xyes -a $have_afs != yes; then
28464       as_fn_error "afs support explicitly enabled but no supported afs implementation found,
28465   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28466    else
28467       if test $have_afs = yes; then
28468
28469 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28470
28471
28472 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28473
28474       fi
28475    fi
28476 fi
28477
28478
28479
28480
28481 support_acl=auto
28482 # Check whether --enable-acl was given.
28483 if test "${enable_acl+set}" = set; then :
28484   enableval=$enable_acl;
28485        if test x$enableval = xyes; then
28486           support_acl=yes
28487        elif test x$enableval = xno; then
28488           support_acl=no
28489        fi
28490
28491
28492 fi
28493
28494
28495 have_acl=no
28496 have_extended_acl=no
28497 if test x$support_acl = xyes -o x$support_acl = xauto; then
28498    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28499 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28500
28501 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28502
28503 fi
28504
28505
28506
28507             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28508 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28509
28510           have_acl=yes
28511
28512
28513 fi
28514
28515
28516             if test $have_acl = no; then
28517       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28518 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28519 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
28520   $as_echo_n "(cached) " >&6
28521 else
28522   ac_check_lib_save_LIBS=$LIBS
28523 LIBS="-lacl  $LIBS"
28524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28525 /* end confdefs.h.  */
28526
28527 /* Override any GCC internal prototype to avoid an error.
28528    Use char because int might match the return type of a GCC
28529    builtin and then its argument prototype would still apply.  */
28530 #ifdef __cplusplus
28531 extern "C"
28532 #endif
28533 char acl_get_file ();
28534 int
28535 main ()
28536 {
28537 return acl_get_file ();
28538   ;
28539   return 0;
28540 }
28541 _ACEOF
28542 if ac_fn_c_try_link "$LINENO"; then :
28543   ac_cv_lib_acl_acl_get_file=yes
28544 else
28545   ac_cv_lib_acl_acl_get_file=no
28546 fi
28547 rm -f core conftest.err conftest.$ac_objext \
28548     conftest$ac_exeext conftest.$ac_ext
28549 LIBS=$ac_check_lib_save_LIBS
28550 fi
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28552 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28553 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
28554
28555              have_acl=yes
28556              if test $have_afs = yes; then
28557                                                                 if test -d /usr/lib64/; then
28558                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28559                 else
28560                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
28561                 fi
28562              else
28563                 FDLIBS="-lacl $FDLIBS"
28564              fi
28565
28566
28567 fi
28568
28569    fi
28570
28571             if test $have_acl = no; then
28572       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28573 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28574 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
28575   $as_echo_n "(cached) " >&6
28576 else
28577   ac_check_lib_save_LIBS=$LIBS
28578 LIBS="-lpacl  $LIBS"
28579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28580 /* end confdefs.h.  */
28581
28582 /* Override any GCC internal prototype to avoid an error.
28583    Use char because int might match the return type of a GCC
28584    builtin and then its argument prototype would still apply.  */
28585 #ifdef __cplusplus
28586 extern "C"
28587 #endif
28588 char acl_get_file ();
28589 int
28590 main ()
28591 {
28592 return acl_get_file ();
28593   ;
28594   return 0;
28595 }
28596 _ACEOF
28597 if ac_fn_c_try_link "$LINENO"; then :
28598   ac_cv_lib_pacl_acl_get_file=yes
28599 else
28600   ac_cv_lib_pacl_acl_get_file=no
28601 fi
28602 rm -f core conftest.err conftest.$ac_objext \
28603     conftest$ac_exeext conftest.$ac_ext
28604 LIBS=$ac_check_lib_save_LIBS
28605 fi
28606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28607 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28608 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
28609
28610              have_acl=yes
28611              FDLIBS="-lpacl $FDLIBS"
28612
28613
28614 fi
28615
28616    fi
28617
28618             if test $have_acl = no -a \
28619            x${HAVE_SUN_OS_TRUE} = x; then
28620       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28621 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28622 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
28623   $as_echo_n "(cached) " >&6
28624 else
28625   ac_check_lib_save_LIBS=$LIBS
28626 LIBS="-lsec  $LIBS"
28627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28628 /* end confdefs.h.  */
28629
28630 /* Override any GCC internal prototype to avoid an error.
28631    Use char because int might match the return type of a GCC
28632    builtin and then its argument prototype would still apply.  */
28633 #ifdef __cplusplus
28634 extern "C"
28635 #endif
28636 char acltotext ();
28637 int
28638 main ()
28639 {
28640 return acltotext ();
28641   ;
28642   return 0;
28643 }
28644 _ACEOF
28645 if ac_fn_c_try_link "$LINENO"; then :
28646   ac_cv_lib_sec_acltotext=yes
28647 else
28648   ac_cv_lib_sec_acltotext=no
28649 fi
28650 rm -f core conftest.err conftest.$ac_objext \
28651     conftest$ac_exeext conftest.$ac_ext
28652 LIBS=$ac_check_lib_save_LIBS
28653 fi
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28655 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28656 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
28657
28658              have_acl=yes
28659              FDLIBS="-lsec $FDLIBS"
28660
28661              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28662 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28663 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
28664   $as_echo_n "(cached) " >&6
28665 else
28666   ac_check_lib_save_LIBS=$LIBS
28667 LIBS="-lsec  $LIBS"
28668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28669 /* end confdefs.h.  */
28670
28671 /* Override any GCC internal prototype to avoid an error.
28672    Use char because int might match the return type of a GCC
28673    builtin and then its argument prototype would still apply.  */
28674 #ifdef __cplusplus
28675 extern "C"
28676 #endif
28677 char acl_totext ();
28678 int
28679 main ()
28680 {
28681 return acl_totext ();
28682   ;
28683   return 0;
28684 }
28685 _ACEOF
28686 if ac_fn_c_try_link "$LINENO"; then :
28687   ac_cv_lib_sec_acl_totext=yes
28688 else
28689   ac_cv_lib_sec_acl_totext=no
28690 fi
28691 rm -f core conftest.err conftest.$ac_objext \
28692     conftest$ac_exeext conftest.$ac_ext
28693 LIBS=$ac_check_lib_save_LIBS
28694 fi
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28696 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28697 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
28698
28699                     have_extended_acl=yes
28700
28701
28702 fi
28703
28704
28705
28706 fi
28707
28708    fi
28709
28710             if test $have_acl = no -a \
28711            x${HAVE_AIX_OS_TRUE} = x; then
28712       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28713 if test "x$ac_cv_func_acl_get" = x""yes; then :
28714
28715              have_acl=yes
28716
28717              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28718 if test "x$ac_cv_func_aclx_get" = x""yes; then :
28719
28720                     have_extended_acl=yes
28721
28722
28723 fi
28724
28725
28726
28727 fi
28728
28729    fi
28730
28731    if test x$support_acl = xyes -a $have_acl != yes; then
28732       as_fn_error "acl support explicitly enabled but no supported acl implementation found,
28733   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28734    else
28735       if test $have_acl = yes; then
28736
28737 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28738
28739       fi
28740
28741       if test $have_extended_acl = yes; then
28742
28743 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28744
28745       fi
28746    fi
28747 fi
28748
28749 support_xattr=auto
28750 # Check whether --enable-xattr was given.
28751 if test "${enable_xattr+set}" = set; then :
28752   enableval=$enable_xattr;
28753        if test x$enableval = xyes; then
28754           support_xattr=yes
28755        elif test x$enableval = xno; then
28756           support_xattr=no
28757        fi
28758
28759
28760 fi
28761
28762
28763 have_xattr=no
28764 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28765                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28766            x${HAVE_NETBSD_OS_TRUE} = x -o \
28767            x${HAVE_OPENBSD_OS_TRUE} = x; then
28768       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28769 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
28770
28771 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28772
28773 fi
28774
28775
28776       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28777 if test "x$ac_cv_header_libutil_h" = x""yes; then :
28778
28779 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28780
28781 fi
28782
28783
28784       for ac_func in extattr_get_link extattr_set_link extattr_list_link
28785 do :
28786   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28787 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28788 eval as_val=\$$as_ac_var
28789    if test "x$as_val" = x""yes; then :
28790   cat >>confdefs.h <<_ACEOF
28791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28792 _ACEOF
28793
28794              have_xattr=yes
28795
28796 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28797
28798
28799 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28800
28801
28802 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28803
28804
28805
28806 fi
28807 done
28808
28809
28810       if test $have_xattr = no; then
28811          for ac_func in extattr_get_file extattr_set_file extattr_list_file
28812 do :
28813   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28814 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28815 eval as_val=\$$as_ac_var
28816    if test "x$as_val" = x""yes; then :
28817   cat >>confdefs.h <<_ACEOF
28818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28819 _ACEOF
28820
28821                 have_xattr=yes
28822
28823 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28824
28825
28826 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28827
28828
28829 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28830
28831
28832
28833 fi
28834 done
28835
28836       fi
28837
28838       if test $have_xattr = yes; then
28839          have_extattr_string_in_libc=no
28840          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28841 do :
28842   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28843 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28844 eval as_val=\$$as_ac_var
28845    if test "x$as_val" = x""yes; then :
28846   cat >>confdefs.h <<_ACEOF
28847 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28848 _ACEOF
28849
28850                 have_extattr_string_in_libc=yes
28851
28852 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28853
28854
28855 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28856
28857
28858
28859 fi
28860 done
28861
28862
28863                                     if test $have_extattr_string_in_libc = no; then
28864             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28865 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28866 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
28867   $as_echo_n "(cached) " >&6
28868 else
28869   ac_check_lib_save_LIBS=$LIBS
28870 LIBS="-lutil  $LIBS"
28871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28872 /* end confdefs.h.  */
28873
28874 /* Override any GCC internal prototype to avoid an error.
28875    Use char because int might match the return type of a GCC
28876    builtin and then its argument prototype would still apply.  */
28877 #ifdef __cplusplus
28878 extern "C"
28879 #endif
28880 char extattr_namespace_to_string extattr_string_to_namespace ();
28881 int
28882 main ()
28883 {
28884 return extattr_namespace_to_string extattr_string_to_namespace ();
28885   ;
28886   return 0;
28887 }
28888 _ACEOF
28889 if ac_fn_c_try_link "$LINENO"; then :
28890   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28891 else
28892   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28893 fi
28894 rm -f core conftest.err conftest.$ac_objext \
28895     conftest$ac_exeext conftest.$ac_ext
28896 LIBS=$ac_check_lib_save_LIBS
28897 fi
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28899 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28900 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
28901
28902
28903 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28904
28905
28906 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28907
28908                    FDLIBS="-lutil $FDLIBS"
28909
28910
28911 fi
28912
28913          fi
28914       fi
28915    fi
28916
28917                if test $have_xattr = no -a \
28918            x${HAVE_AIX_OS_TRUE} = x; then
28919       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28920 if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
28921
28922 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28923
28924 fi
28925
28926
28927       for ac_func in llistea lgetea lsetea
28928 do :
28929   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28930 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28931 eval as_val=\$$as_ac_var
28932    if test "x$as_val" = x""yes; then :
28933   cat >>confdefs.h <<_ACEOF
28934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28935 _ACEOF
28936
28937              have_xattr=yes
28938
28939 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
28940
28941
28942 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
28943
28944
28945 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
28946
28947
28948
28949 fi
28950 done
28951
28952
28953       if test $have_xattr = no; then
28954          for ac_func in listea getea setea
28955 do :
28956   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28957 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28958 eval as_val=\$$as_ac_var
28959    if test "x$as_val" = x""yes; then :
28960   cat >>confdefs.h <<_ACEOF
28961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28962 _ACEOF
28963
28964                 have_xattr=yes
28965
28966 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
28967
28968
28969 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
28970
28971
28972 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
28973
28974
28975
28976 fi
28977 done
28978
28979       fi
28980    fi
28981
28982                if test $have_xattr = no -a \
28983            x${HAVE_OSF1_OS_TRUE} = x; then
28984       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
28985 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then :
28986
28987 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
28988
28989 fi
28990
28991
28992       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
28993 do :
28994   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28995 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28996 eval as_val=\$$as_ac_var
28997    if test "x$as_val" = x""yes; then :
28998   cat >>confdefs.h <<_ACEOF
28999 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29000 _ACEOF
29001
29002              have_xattr=yes
29003
29004 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29005
29006
29007 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29008
29009
29010 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29011
29012
29013 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29014
29015
29016 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29017
29018
29019
29020 fi
29021 done
29022
29023    fi
29024
29025                if test $have_xattr = no -a \
29026            x${HAVE_SUN_OS_TRUE} = x; then
29027       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29028 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
29029
29030 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29031
29032 fi
29033
29034
29035       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29036 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
29037
29038 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29039
29040 fi
29041
29042
29043       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29044 if test "x$ac_cv_header_attr_h" = x""yes; then :
29045
29046 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29047
29048 fi
29049
29050
29051
29052       for ac_func in openat fstatat unlinkat fchownat futimesat
29053 do :
29054   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29055 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29056 eval as_val=\$$as_ac_var
29057    if test "x$as_val" = x""yes; then :
29058   cat >>confdefs.h <<_ACEOF
29059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29060 _ACEOF
29061
29062              have_xattr=yes
29063
29064 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29065
29066
29067 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29068
29069
29070 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29071
29072
29073 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29074
29075
29076 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29077
29078
29079
29080 fi
29081 done
29082
29083
29084       if test $have_xattr = yes; then
29085          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29086 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29087 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
29088   $as_echo_n "(cached) " >&6
29089 else
29090   ac_check_lib_save_LIBS=$LIBS
29091 LIBS="-lnvpair  $LIBS"
29092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29093 /* end confdefs.h.  */
29094
29095 /* Override any GCC internal prototype to avoid an error.
29096    Use char because int might match the return type of a GCC
29097    builtin and then its argument prototype would still apply.  */
29098 #ifdef __cplusplus
29099 extern "C"
29100 #endif
29101 char nvlist_next_nvpair ();
29102 int
29103 main ()
29104 {
29105 return nvlist_next_nvpair ();
29106   ;
29107   return 0;
29108 }
29109 _ACEOF
29110 if ac_fn_c_try_link "$LINENO"; then :
29111   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29112 else
29113   ac_cv_lib_nvpair_nvlist_next_nvpair=no
29114 fi
29115 rm -f core conftest.err conftest.$ac_objext \
29116     conftest$ac_exeext conftest.$ac_ext
29117 LIBS=$ac_check_lib_save_LIBS
29118 fi
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29120 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29121 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
29122
29123
29124 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29125
29126                 FDLIBS="-lnvpair $FDLIBS"
29127
29128
29129 fi
29130
29131       fi
29132    fi
29133
29134             if test $have_xattr = no; then
29135       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29136 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
29137
29138 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29139
29140 fi
29141
29142
29143       for ac_func in llistxattr lgetxattr lsetxattr
29144 do :
29145   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29147 eval as_val=\$$as_ac_var
29148    if test "x$as_val" = x""yes; then :
29149   cat >>confdefs.h <<_ACEOF
29150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29151 _ACEOF
29152
29153              have_xattr=yes
29154
29155 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29156
29157
29158 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29159
29160
29161 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29162
29163
29164
29165 fi
29166 done
29167
29168
29169       if test $have_xattr = no; then
29170          for ac_func in listxattr getxattr setxattr
29171 do :
29172   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29173 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29174 eval as_val=\$$as_ac_var
29175    if test "x$as_val" = x""yes; then :
29176   cat >>confdefs.h <<_ACEOF
29177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29178 _ACEOF
29179
29180                 have_xattr=yes
29181
29182 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29183
29184
29185 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29186
29187
29188 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29189
29190
29191
29192 fi
29193 done
29194
29195       fi
29196    fi
29197
29198    if test x$support_xattr = xyes -a $have_xattr != yes; then
29199       as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
29200   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29201    else
29202       if test $have_xattr = yes; then
29203
29204 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29205
29206       fi
29207    fi
29208 fi
29209
29210 PTHREAD_LIB=""
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29212 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29213 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
29214   $as_echo_n "(cached) " >&6
29215 else
29216   ac_check_lib_save_LIBS=$LIBS
29217 LIBS="-lpthread  $LIBS"
29218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29219 /* end confdefs.h.  */
29220
29221 /* Override any GCC internal prototype to avoid an error.
29222    Use char because int might match the return type of a GCC
29223    builtin and then its argument prototype would still apply.  */
29224 #ifdef __cplusplus
29225 extern "C"
29226 #endif
29227 char pthread_create ();
29228 int
29229 main ()
29230 {
29231 return pthread_create ();
29232   ;
29233   return 0;
29234 }
29235 _ACEOF
29236 if ac_fn_c_try_link "$LINENO"; then :
29237   ac_cv_lib_pthread_pthread_create=yes
29238 else
29239   ac_cv_lib_pthread_pthread_create=no
29240 fi
29241 rm -f core conftest.err conftest.$ac_objext \
29242     conftest$ac_exeext conftest.$ac_ext
29243 LIBS=$ac_check_lib_save_LIBS
29244 fi
29245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29246 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29247 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
29248   PTHREAD_LIB="-lpthread"
29249 else
29250
29251        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29252 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29253 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
29254   $as_echo_n "(cached) " >&6
29255 else
29256   ac_check_lib_save_LIBS=$LIBS
29257 LIBS="-lpthreads  $LIBS"
29258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29259 /* end confdefs.h.  */
29260
29261 /* Override any GCC internal prototype to avoid an error.
29262    Use char because int might match the return type of a GCC
29263    builtin and then its argument prototype would still apply.  */
29264 #ifdef __cplusplus
29265 extern "C"
29266 #endif
29267 char pthread_create ();
29268 int
29269 main ()
29270 {
29271 return pthread_create ();
29272   ;
29273   return 0;
29274 }
29275 _ACEOF
29276 if ac_fn_c_try_link "$LINENO"; then :
29277   ac_cv_lib_pthreads_pthread_create=yes
29278 else
29279   ac_cv_lib_pthreads_pthread_create=no
29280 fi
29281 rm -f core conftest.err conftest.$ac_objext \
29282     conftest$ac_exeext conftest.$ac_ext
29283 LIBS=$ac_check_lib_save_LIBS
29284 fi
29285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29286 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29287 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
29288   PTHREAD_LIB="-lpthreads"
29289 else
29290
29291               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29292 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29293 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
29294   $as_echo_n "(cached) " >&6
29295 else
29296   ac_check_lib_save_LIBS=$LIBS
29297 LIBS="-lc_r  $LIBS"
29298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29299 /* end confdefs.h.  */
29300
29301 /* Override any GCC internal prototype to avoid an error.
29302    Use char because int might match the return type of a GCC
29303    builtin and then its argument prototype would still apply.  */
29304 #ifdef __cplusplus
29305 extern "C"
29306 #endif
29307 char pthread_create ();
29308 int
29309 main ()
29310 {
29311 return pthread_create ();
29312   ;
29313   return 0;
29314 }
29315 _ACEOF
29316 if ac_fn_c_try_link "$LINENO"; then :
29317   ac_cv_lib_c_r_pthread_create=yes
29318 else
29319   ac_cv_lib_c_r_pthread_create=no
29320 fi
29321 rm -f core conftest.err conftest.$ac_objext \
29322     conftest$ac_exeext conftest.$ac_ext
29323 LIBS=$ac_check_lib_save_LIBS
29324 fi
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29326 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29327 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
29328   PTHREAD_LIB="-lc_r"
29329 else
29330
29331                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29332 if test "x$ac_cv_func_pthread_create" = x""yes; then :
29333
29334 fi
29335
29336
29337
29338 fi
29339
29340
29341
29342 fi
29343
29344
29345
29346 fi
29347
29348
29349 for ac_header in sys/prctl.h sys/capability.h
29350 do :
29351   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29352 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29353 eval as_val=\$$as_ac_Header
29354    if test "x$as_val" = x""yes; then :
29355   cat >>confdefs.h <<_ACEOF
29356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29357 _ACEOF
29358
29359 fi
29360
29361 done
29362
29363 for ac_func in prctl setreuid
29364 do :
29365   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29366 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29367 eval as_val=\$$as_ac_var
29368    if test "x$as_val" = x""yes; then :
29369   cat >>confdefs.h <<_ACEOF
29370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29371 _ACEOF
29372
29373 fi
29374 done
29375
29376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29377 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29378 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
29379   $as_echo_n "(cached) " >&6
29380 else
29381   ac_check_lib_save_LIBS=$LIBS
29382 LIBS="-lcap  $LIBS"
29383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29384 /* end confdefs.h.  */
29385
29386 /* Override any GCC internal prototype to avoid an error.
29387    Use char because int might match the return type of a GCC
29388    builtin and then its argument prototype would still apply.  */
29389 #ifdef __cplusplus
29390 extern "C"
29391 #endif
29392 char cap_set_proc ();
29393 int
29394 main ()
29395 {
29396 return cap_set_proc ();
29397   ;
29398   return 0;
29399 }
29400 _ACEOF
29401 if ac_fn_c_try_link "$LINENO"; then :
29402   ac_cv_lib_cap_cap_set_proc=yes
29403 else
29404   ac_cv_lib_cap_cap_set_proc=no
29405 fi
29406 rm -f core conftest.err conftest.$ac_objext \
29407     conftest$ac_exeext conftest.$ac_ext
29408 LIBS=$ac_check_lib_save_LIBS
29409 fi
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29411 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29412 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
29413   CAP_LIBS="-lcap"
29414 else
29415   CAP_LIBS=
29416 fi
29417
29418 if test x$CAP_LIBS = x-lcap; then
29419
29420 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29421
29422 fi
29423
29424
29425
29426 $as_echo "#define FDLIBS 1" >>confdefs.h
29427
29428
29429 CFLAGS=${CFLAGS--O}
29430
29431 if test x$have_gcc = xyes ; then
29432    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29433    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29434 fi
29435 LDFLAGS=${LDFLAGS--O}
29436 CPPFLAGS="$CPPFLAGS"
29437 CFLAGS="$CFLAGS"
29438
29439
29440
29441
29442
29443
29444
29445
29446
29447
29448
29449
29450
29451
29452
29453 OBJLIST=
29454
29455
29456 lld="lld"
29457 llu="llu"
29458
29459 WCFLAGS=
29460 WLDFLAGS=
29461
29462 PFILES="platforms/Makefile"
29463 PSCMD="ps -e"
29464 WIN32=
29465 MACOSX=
29466
29467 hostname=`uname -n | cut -d '.' -f 1`
29468 if test x${hostname} = x ; then
29469    hostname="localhost"
29470 fi
29471 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29472 if test ! $? = 0; then
29473   hostname="localhost"
29474 fi
29475
29476 case "$DISTNAME" in
29477 aix)
29478    DISTVER=`uname -r`
29479    PSCMD="ps -e -o pid,comm"
29480    PFILES="${PFILES} \
29481       platforms/aix/Makefile"
29482    TAPEDRIVE="/dev/rmt0.1"
29483   ;;
29484 alpha)
29485    DISTVER=`uname -r`
29486    PTHREAD_LIB="-lpthread -lexc"
29487    if test "${CC}" = "gcc" ; then
29488       lld="lld"
29489       llu="llu"
29490    else
29491       lld="ld"
29492       llu="lu"
29493    fi
29494    TAPEDRIVE="/dev/nrmt0"
29495   ;;
29496 bsdi)
29497    DISTVER=`uname -a |awk '{print $3}'`
29498    TAPEDRIVE="/dev/nrmt0"
29499    PTHREAD_LIB="-pthread"
29500    CFLAGS="${CFLAGS} -pthread"
29501    PSCMD="ps -ax -o pid,command"
29502    lld="qd"
29503    llu="qu"
29504    PFILES="${PFILES} \
29505        platforms/bsdi/Makefile \
29506        platforms/bsdi/bacula-fd \
29507        platforms/bsdi/bacula-sd \
29508        platforms/bsdi/bacula-dir"
29509    largefile_support="yes"
29510   ;;
29511 cygwin)
29512    DISTVER=`uname -a |awk '{print $3}'`
29513    TAPEDRIVE="/dev/nrst0"
29514    WIN32=win32
29515    WCFLAGS="-mwindows"
29516    WLDFLAGS="-mwindows"
29517   ;;
29518 darwin)
29519    DISTVER=`uname -r`
29520    TAPEDRIVE="/dev/nst0"
29521    PSCMD="ps -e -o pid,command"
29522    MACOSX=macosx
29523    PFILES="${PFILES} \
29524       platforms/darwin/Makefile"
29525   ;;
29526 osx)
29527    DISTVER=`uname -r`
29528    TAPEDRIVE="/dev/nst0"
29529    PSCMD="ps -e -o pid,command"
29530    MACOSX=macosx
29531    PFILES="${PFILES} \
29532       platforms/osx/Makefile"
29533   ;;
29534 debian)
29535    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29536       DISTNAME="ubuntu"
29537    fi
29538    DISTVER=`cat /etc/debian_version`
29539    if test -f /etc/lsb-release ; then
29540       . /etc/lsb-release
29541       if test "x$DISTRIB_ID" != "x" ; then
29542          DISTNAME=$DISTRIB_ID
29543       fi
29544       if test "x$DISTRIB_RELEASE" != "x" ; then
29545          DISTVER=$DISTRIB_RELEASE
29546       fi
29547    fi
29548    if test "$DISTNAME" = "Ubuntu" ; then
29549       DISTNAME="ubuntu"
29550    fi
29551    TAPEDRIVE="/dev/nst0"
29552    PSCMD="ps -e -o pid,command"
29553    if test "$DISTNAME" = "ubuntu" ; then
29554       PFILES="${PFILES} \
29555          platforms/ubuntu/Makefile \
29556          platforms/ubuntu/bacula-fd \
29557          platforms/ubuntu/bacula-sd \
29558          platforms/ubuntu/bacula-dir"
29559    else
29560       PFILES="${PFILES} \
29561          platforms/debian/Makefile \
29562          platforms/debian/bacula-fd \
29563          platforms/debian/bacula-sd \
29564          platforms/debian/bacula-dir"
29565    fi
29566   ;;
29567 freebsd)
29568    DISTVER=`uname -a |awk '{print $3}'`
29569    VER=`echo $DISTVER | cut -c 1`
29570    if test x$VER = x4 ; then
29571       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29572       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29573    fi
29574    lld="qd"
29575    llu="qu"
29576    TAPEDRIVE="/dev/nrsa0"
29577    PSCMD="ps -ax -o pid,command"
29578    PFILES="${PFILES} \
29579        platforms/freebsd/Makefile \
29580        platforms/freebsd/bacula-fd \
29581        platforms/freebsd/bacula-sd \
29582        platforms/freebsd/bacula-dir"
29583    largefile_support="yes"
29584   ;;
29585 hpux)
29586    PSCMD="UNIX95=1; ps -e -o pid,comm"
29587    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29588    DISTVER=`uname -r`
29589    TAPEDRIVE="/dev/rmt/0hnb"
29590    PTHREAD_LIB="-lpthread"
29591    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29592
29593   ;;
29594 irix)
29595    DISTVER=`uname -r`
29596    TAPEDRIVE="/dev/rmt/0cbn"
29597    PSCMD="ps -e -o pid,comm"
29598    PFILES="${PFILES} \
29599        platforms/irix/Makefile \
29600        platforms/irix/bacula-fd \
29601        platforms/irix/bacula-sd \
29602        platforms/irix/bacula-dir"
29603   ;;
29604 netbsd)
29605    DISTVER=`uname -a |awk '{print $3}'`
29606    lld="qd"
29607    llu="qu"
29608    TAPEDRIVE="/dev/nrst0"
29609    PSCMD="ps -ax -o pid,command"
29610    PTHREAD_LIB="-pthread"
29611    CFLAGS="${CFLAGS} -pthread"
29612   ;;
29613 openbsd)
29614    DISTVER=`uname -a |awk '{print $3}'`
29615    lld="qd"
29616    llu="qu"
29617    TAPEDRIVE="/dev/nrst0"
29618    PSCMD="ps -ax -o pid,command"
29619    PTHREAD_LIB="-pthread"
29620    CFLAGS="${CFLAGS} -pthread"
29621    PFILES="${PFILES} \
29622        platforms/openbsd/Makefile \
29623        platforms/openbsd/bacula-fd \
29624        platforms/openbsd/bacula-sd \
29625        platforms/openbsd/bacula-dir"
29626   ;;
29627 redhat)
29628    if test -f /etc/whitebox-release ; then
29629       f=/etc/whitebox-release
29630    else
29631       f=/etc/redhat-release
29632    fi
29633    if test `cat $f | grep release |\
29634          cut -f 3 -d ' '`x = "Enterprise"x ; then
29635       DISTVER="Enterprise "`cat $f | grep release |\
29636           cut -f 6 -d ' '`
29637    else
29638        DISTVER=`cat /etc/redhat-release | grep release |\
29639            cut -f 5 -d ' '`
29640    fi
29641    TAPEDRIVE="/dev/nst0"
29642    PSCMD="ps -e -o pid,command"
29643    PFILES="${PFILES} \
29644        platforms/redhat/Makefile \
29645        platforms/redhat/bacula-fd \
29646        platforms/redhat/bacula-sd \
29647        platforms/redhat/bacula-dir
29648        "
29649   ;;
29650 mandrake)
29651    DISTVER=`cat /etc/mandrake-release | grep release |\
29652       cut -f 5 -d ' '`
29653    TAPEDRIVE="/dev/nst0"
29654    PSCMD="ps -e -o pid,command"
29655    PFILES="${PFILES} \
29656        platforms/mandrake/Makefile \
29657        platforms/mandrake/bacula-fd \
29658        platforms/mandrake/bacula-sd \
29659        platforms/mandrake/bacula-dir \
29660        "
29661   ;;
29662 gentoo)
29663    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29664    TAPEDRIVE="/dev/nst0"
29665    PSCMD="ps -e -o pid,command"
29666    PFILES="${PFILES} \
29667        platforms/gentoo/Makefile \
29668     platforms/gentoo/bacula-init \
29669        platforms/gentoo/bacula-fd \
29670        platforms/gentoo/bacula-sd \
29671        platforms/gentoo/bacula-dir"
29672   ;;
29673 slackware)
29674    DISTVER=`cat /etc/slackware-version`
29675    TAPEDRIVE="/dev/nst0"
29676    PSCMD="ps -e -o pid,command"
29677    PFILES="${PFILES} \
29678        platforms/slackware/Makefile \
29679        platforms/slackware/rc.bacula-fd \
29680        platforms/slackware/rc.bacula-sd \
29681        platforms/slackware/rc.bacula-dir\
29682        platforms/slackware/functions.bacula"
29683   ;;
29684 solaris)
29685    DISTVER=`uname -r`
29686    TAPEDRIVE="/dev/rmt/0cbn"
29687    PSCMD="ps -e -o pid,comm"
29688    PFILES="${PFILES} \
29689        platforms/solaris/Makefile \
29690        platforms/solaris/bacula-fd \
29691        platforms/solaris/bacula-sd \
29692        platforms/solaris/bacula-dir"
29693    if test x$DISTVER = x5.6 ; then
29694        $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29695
29696    fi
29697    LIBS="$LIBS -lresolv -lrt"
29698   ;;
29699 suse)
29700    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29701        cut -f 3 -d ' '`
29702    TAPEDRIVE="/dev/nst0"
29703    PSCMD="ps -e -o pid,command"
29704    PFILES="${PFILES} \
29705        platforms/suse/Makefile \
29706        platforms/suse/bacula-fd \
29707        platforms/suse/bacula-sd \
29708        platforms/suse/bacula-dir \
29709        platforms/suse/bacula"
29710   ;;
29711 suse5)
29712    DISTNAME=suse
29713    DISTVER=5.x
29714    TAPEDRIVE="/dev/nst0"
29715    PSCMD="ps -e -o pid,command"
29716    PFILES="${PFILES} \
29717        platforms/suse/Makefile \
29718        platforms/suse/bacula-fd \
29719        platforms/suse/bacula-sd \
29720        platforms/suse/bacula-dir"
29721   ;;
29722 unknown)
29723    DISTVER=unknown
29724    TAPEDRIVE="/dev/nst0"
29725   ;;
29726 *)
29727   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29728   ;;
29729 esac
29730
29731
29732
29733 LIBS="$PTHREAD_LIB $LIBS"
29734
29735 cat >>confdefs.h <<_ACEOF
29736 #define lld "$lld"
29737 _ACEOF
29738
29739 cat >>confdefs.h <<_ACEOF
29740 #define llu "$llu"
29741 _ACEOF
29742
29743
29744
29745
29746
29747
29748
29749
29750 MCOMMON=./autoconf/Make.common
29751
29752
29753 if test "x${subsysdir}" = "x${sbindir}" ; then
29754    echo " "
29755    echo " "
29756    echo "You have set both --sbindir and --with-subsys-dir"
29757    echo "  equal to: ${subsysdir} "
29758    echo "This is not permitted. Please reconfigure."
29759    echo " "
29760    echo "Aborting configuration ..."
29761    echo " "
29762    echo " "
29763    exit 1
29764 fi
29765
29766 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/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
29767
29768 ac_config_commands="$ac_config_commands default"
29769
29770 cat >confcache <<\_ACEOF
29771 # This file is a shell script that caches the results of configure
29772 # tests run on this system so they can be shared between configure
29773 # scripts and configure runs, see configure's option --config-cache.
29774 # It is not useful on other systems.  If it contains results you don't
29775 # want to keep, you may remove or edit it.
29776 #
29777 # config.status only pays attention to the cache file if you give it
29778 # the --recheck option to rerun configure.
29779 #
29780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29782 # following values.
29783
29784 _ACEOF
29785
29786 # The following way of writing the cache mishandles newlines in values,
29787 # but we know of no workaround that is simple, portable, and efficient.
29788 # So, we kill variables containing newlines.
29789 # Ultrix sh set writes to stderr and can't be redirected directly,
29790 # and sets the high bit in the cache file unless we assign to the vars.
29791 (
29792   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29793     eval ac_val=\$$ac_var
29794     case $ac_val in #(
29795     *${as_nl}*)
29796       case $ac_var in #(
29797       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29799       esac
29800       case $ac_var in #(
29801       _ | IFS | as_nl) ;; #(
29802       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29803       *) { eval $ac_var=; unset $ac_var;} ;;
29804       esac ;;
29805     esac
29806   done
29807
29808   (set) 2>&1 |
29809     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29810     *${as_nl}ac_space=\ *)
29811       # `set' does not quote correctly, so add quotes: double-quote
29812       # substitution turns \\\\ into \\, and sed turns \\ into \.
29813       sed -n \
29814         "s/'/'\\\\''/g;
29815           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29816       ;; #(
29817     *)
29818       # `set' quotes correctly as required by POSIX, so do not add quotes.
29819       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29820       ;;
29821     esac |
29822     sort
29823 ) |
29824   sed '
29825      /^ac_cv_env_/b end
29826      t clear
29827      :clear
29828      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29829      t end
29830      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29831      :end' >>confcache
29832 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29833   if test -w "$cache_file"; then
29834     test "x$cache_file" != "x/dev/null" &&
29835       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29836 $as_echo "$as_me: updating cache $cache_file" >&6;}
29837     cat confcache >$cache_file
29838   else
29839     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29840 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29841   fi
29842 fi
29843 rm -f confcache
29844
29845 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29846 # Let make expand exec_prefix.
29847 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29848
29849 DEFS=-DHAVE_CONFIG_H
29850
29851 ac_libobjs=
29852 ac_ltlibobjs=
29853 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29854   # 1. Remove the extension, and $U if already installed.
29855   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29856   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29857   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29858   #    will be set to the directory where LIBOBJS objects are built.
29859   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29860   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29861 done
29862 LIBOBJS=$ac_libobjs
29863
29864 LTLIBOBJS=$ac_ltlibobjs
29865
29866
29867
29868
29869 : ${CONFIG_STATUS=./config.status}
29870 ac_write_fail=0
29871 ac_clean_files_save=$ac_clean_files
29872 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29874 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29875 as_write_fail=0
29876 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29877 #! $SHELL
29878 # Generated by $as_me.
29879 # Run this file to recreate the current configuration.
29880 # Compiler output produced by configure, useful for debugging
29881 # configure, is in config.log if it exists.
29882
29883 debug=false
29884 ac_cs_recheck=false
29885 ac_cs_silent=false
29886
29887 SHELL=\${CONFIG_SHELL-$SHELL}
29888 export SHELL
29889 _ASEOF
29890 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29891 ## -------------------- ##
29892 ## M4sh Initialization. ##
29893 ## -------------------- ##
29894
29895 # Be more Bourne compatible
29896 DUALCASE=1; export DUALCASE # for MKS sh
29897 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29898   emulate sh
29899   NULLCMD=:
29900   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29901   # is contrary to our usage.  Disable this feature.
29902   alias -g '${1+"$@"}'='"$@"'
29903   setopt NO_GLOB_SUBST
29904 else
29905   case `(set -o) 2>/dev/null` in #(
29906   *posix*) :
29907     set -o posix ;; #(
29908   *) :
29909      ;;
29910 esac
29911 fi
29912
29913
29914 as_nl='
29915 '
29916 export as_nl
29917 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29918 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29919 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29921 # Prefer a ksh shell builtin over an external printf program on Solaris,
29922 # but without wasting forks for bash or zsh.
29923 if test -z "$BASH_VERSION$ZSH_VERSION" \
29924     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29925   as_echo='print -r --'
29926   as_echo_n='print -rn --'
29927 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29928   as_echo='printf %s\n'
29929   as_echo_n='printf %s'
29930 else
29931   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29932     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29933     as_echo_n='/usr/ucb/echo -n'
29934   else
29935     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29936     as_echo_n_body='eval
29937       arg=$1;
29938       case $arg in #(
29939       *"$as_nl"*)
29940         expr "X$arg" : "X\\(.*\\)$as_nl";
29941         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29942       esac;
29943       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29944     '
29945     export as_echo_n_body
29946     as_echo_n='sh -c $as_echo_n_body as_echo'
29947   fi
29948   export as_echo_body
29949   as_echo='sh -c $as_echo_body as_echo'
29950 fi
29951
29952 # The user is always right.
29953 if test "${PATH_SEPARATOR+set}" != set; then
29954   PATH_SEPARATOR=:
29955   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29956     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29957       PATH_SEPARATOR=';'
29958   }
29959 fi
29960
29961
29962 # IFS
29963 # We need space, tab and new line, in precisely that order.  Quoting is
29964 # there to prevent editors from complaining about space-tab.
29965 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29966 # splitting by setting IFS to empty value.)
29967 IFS=" ""        $as_nl"
29968
29969 # Find who we are.  Look in the path if we contain no directory separator.
29970 case $0 in #((
29971   *[\\/]* ) as_myself=$0 ;;
29972   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29973 for as_dir in $PATH
29974 do
29975   IFS=$as_save_IFS
29976   test -z "$as_dir" && as_dir=.
29977     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29978   done
29979 IFS=$as_save_IFS
29980
29981      ;;
29982 esac
29983 # We did not find ourselves, most probably we were run as `sh COMMAND'
29984 # in which case we are not to be found in the path.
29985 if test "x$as_myself" = x; then
29986   as_myself=$0
29987 fi
29988 if test ! -f "$as_myself"; then
29989   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29990   exit 1
29991 fi
29992
29993 # Unset variables that we do not need and which cause bugs (e.g. in
29994 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29995 # suppresses any "Segmentation fault" message there.  '((' could
29996 # trigger a bug in pdksh 5.2.14.
29997 for as_var in BASH_ENV ENV MAIL MAILPATH
29998 do eval test x\${$as_var+set} = xset \
29999   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30000 done
30001 PS1='$ '
30002 PS2='> '
30003 PS4='+ '
30004
30005 # NLS nuisances.
30006 LC_ALL=C
30007 export LC_ALL
30008 LANGUAGE=C
30009 export LANGUAGE
30010
30011 # CDPATH.
30012 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30013
30014
30015 # as_fn_error ERROR [LINENO LOG_FD]
30016 # ---------------------------------
30017 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30018 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30019 # script with status $?, using 1 if that was 0.
30020 as_fn_error ()
30021 {
30022   as_status=$?; test $as_status -eq 0 && as_status=1
30023   if test "$3"; then
30024     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30025     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30026   fi
30027   $as_echo "$as_me: error: $1" >&2
30028   as_fn_exit $as_status
30029 } # as_fn_error
30030
30031
30032 # as_fn_set_status STATUS
30033 # -----------------------
30034 # Set $? to STATUS, without forking.
30035 as_fn_set_status ()
30036 {
30037   return $1
30038 } # as_fn_set_status
30039
30040 # as_fn_exit STATUS
30041 # -----------------
30042 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30043 as_fn_exit ()
30044 {
30045   set +e
30046   as_fn_set_status $1
30047   exit $1
30048 } # as_fn_exit
30049
30050 # as_fn_unset VAR
30051 # ---------------
30052 # Portably unset VAR.
30053 as_fn_unset ()
30054 {
30055   { eval $1=; unset $1;}
30056 }
30057 as_unset=as_fn_unset
30058 # as_fn_append VAR VALUE
30059 # ----------------------
30060 # Append the text in VALUE to the end of the definition contained in VAR. Take
30061 # advantage of any shell optimizations that allow amortized linear growth over
30062 # repeated appends, instead of the typical quadratic growth present in naive
30063 # implementations.
30064 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30065   eval 'as_fn_append ()
30066   {
30067     eval $1+=\$2
30068   }'
30069 else
30070   as_fn_append ()
30071   {
30072     eval $1=\$$1\$2
30073   }
30074 fi # as_fn_append
30075
30076 # as_fn_arith ARG...
30077 # ------------------
30078 # Perform arithmetic evaluation on the ARGs, and store the result in the
30079 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30080 # must be portable across $(()) and expr.
30081 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30082   eval 'as_fn_arith ()
30083   {
30084     as_val=$(( $* ))
30085   }'
30086 else
30087   as_fn_arith ()
30088   {
30089     as_val=`expr "$@" || test $? -eq 1`
30090   }
30091 fi # as_fn_arith
30092
30093
30094 if expr a : '\(a\)' >/dev/null 2>&1 &&
30095    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30096   as_expr=expr
30097 else
30098   as_expr=false
30099 fi
30100
30101 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30102   as_basename=basename
30103 else
30104   as_basename=false
30105 fi
30106
30107 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30108   as_dirname=dirname
30109 else
30110   as_dirname=false
30111 fi
30112
30113 as_me=`$as_basename -- "$0" ||
30114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30115          X"$0" : 'X\(//\)$' \| \
30116          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30117 $as_echo X/"$0" |
30118     sed '/^.*\/\([^/][^/]*\)\/*$/{
30119             s//\1/
30120             q
30121           }
30122           /^X\/\(\/\/\)$/{
30123             s//\1/
30124             q
30125           }
30126           /^X\/\(\/\).*/{
30127             s//\1/
30128             q
30129           }
30130           s/.*/./; q'`
30131
30132 # Avoid depending upon Character Ranges.
30133 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30134 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30135 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30136 as_cr_digits='0123456789'
30137 as_cr_alnum=$as_cr_Letters$as_cr_digits
30138
30139 ECHO_C= ECHO_N= ECHO_T=
30140 case `echo -n x` in #(((((
30141 -n*)
30142   case `echo 'xy\c'` in
30143   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30144   xy)  ECHO_C='\c';;
30145   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30146        ECHO_T=' ';;
30147   esac;;
30148 *)
30149   ECHO_N='-n';;
30150 esac
30151
30152 rm -f conf$$ conf$$.exe conf$$.file
30153 if test -d conf$$.dir; then
30154   rm -f conf$$.dir/conf$$.file
30155 else
30156   rm -f conf$$.dir
30157   mkdir conf$$.dir 2>/dev/null
30158 fi
30159 if (echo >conf$$.file) 2>/dev/null; then
30160   if ln -s conf$$.file conf$$ 2>/dev/null; then
30161     as_ln_s='ln -s'
30162     # ... but there are two gotchas:
30163     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30164     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30165     # In both cases, we have to default to `cp -p'.
30166     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30167       as_ln_s='cp -p'
30168   elif ln conf$$.file conf$$ 2>/dev/null; then
30169     as_ln_s=ln
30170   else
30171     as_ln_s='cp -p'
30172   fi
30173 else
30174   as_ln_s='cp -p'
30175 fi
30176 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30177 rmdir conf$$.dir 2>/dev/null
30178
30179
30180 # as_fn_mkdir_p
30181 # -------------
30182 # Create "$as_dir" as a directory, including parents if necessary.
30183 as_fn_mkdir_p ()
30184 {
30185
30186   case $as_dir in #(
30187   -*) as_dir=./$as_dir;;
30188   esac
30189   test -d "$as_dir" || eval $as_mkdir_p || {
30190     as_dirs=
30191     while :; do
30192       case $as_dir in #(
30193       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30194       *) as_qdir=$as_dir;;
30195       esac
30196       as_dirs="'$as_qdir' $as_dirs"
30197       as_dir=`$as_dirname -- "$as_dir" ||
30198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30199          X"$as_dir" : 'X\(//\)[^/]' \| \
30200          X"$as_dir" : 'X\(//\)$' \| \
30201          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30202 $as_echo X"$as_dir" |
30203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30204             s//\1/
30205             q
30206           }
30207           /^X\(\/\/\)[^/].*/{
30208             s//\1/
30209             q
30210           }
30211           /^X\(\/\/\)$/{
30212             s//\1/
30213             q
30214           }
30215           /^X\(\/\).*/{
30216             s//\1/
30217             q
30218           }
30219           s/.*/./; q'`
30220       test -d "$as_dir" && break
30221     done
30222     test -z "$as_dirs" || eval "mkdir $as_dirs"
30223   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30224
30225
30226 } # as_fn_mkdir_p
30227 if mkdir -p . 2>/dev/null; then
30228   as_mkdir_p='mkdir -p "$as_dir"'
30229 else
30230   test -d ./-p && rmdir ./-p
30231   as_mkdir_p=false
30232 fi
30233
30234 if test -x / >/dev/null 2>&1; then
30235   as_test_x='test -x'
30236 else
30237   if ls -dL / >/dev/null 2>&1; then
30238     as_ls_L_option=L
30239   else
30240     as_ls_L_option=
30241   fi
30242   as_test_x='
30243     eval sh -c '\''
30244       if test -d "$1"; then
30245         test -d "$1/.";
30246       else
30247         case $1 in #(
30248         -*)set "./$1";;
30249         esac;
30250         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30251         ???[sx]*):;;*)false;;esac;fi
30252     '\'' sh
30253   '
30254 fi
30255 as_executable_p=$as_test_x
30256
30257 # Sed expression to map a string onto a valid CPP name.
30258 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30259
30260 # Sed expression to map a string onto a valid variable name.
30261 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30262
30263
30264 exec 6>&1
30265 ## ----------------------------------- ##
30266 ## Main body of $CONFIG_STATUS script. ##
30267 ## ----------------------------------- ##
30268 _ASEOF
30269 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30270
30271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30272 # Save the log message, to keep $0 and so on meaningful, and to
30273 # report actual input values of CONFIG_FILES etc. instead of their
30274 # values after options handling.
30275 ac_log="
30276 This file was extended by $as_me, which was
30277 generated by GNU Autoconf 2.65.  Invocation command line was
30278
30279   CONFIG_FILES    = $CONFIG_FILES
30280   CONFIG_HEADERS  = $CONFIG_HEADERS
30281   CONFIG_LINKS    = $CONFIG_LINKS
30282   CONFIG_COMMANDS = $CONFIG_COMMANDS
30283   $ $0 $@
30284
30285 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30286 "
30287
30288 _ACEOF
30289
30290 case $ac_config_files in *"
30291 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30292 esac
30293
30294 case $ac_config_headers in *"
30295 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30296 esac
30297
30298
30299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30300 # Files that config.status was made for.
30301 config_files="$ac_config_files"
30302 config_headers="$ac_config_headers"
30303 config_commands="$ac_config_commands"
30304
30305 _ACEOF
30306
30307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30308 ac_cs_usage="\
30309 \`$as_me' instantiates files and other configuration actions
30310 from templates according to the current configuration.  Unless the files
30311 and actions are specified as TAGs, all are instantiated by default.
30312
30313 Usage: $0 [OPTION]... [TAG]...
30314
30315   -h, --help       print this help, then exit
30316   -V, --version    print version number and configuration settings, then exit
30317       --config     print configuration, then exit
30318   -q, --quiet, --silent
30319                    do not print progress messages
30320   -d, --debug      don't remove temporary files
30321       --recheck    update $as_me by reconfiguring in the same conditions
30322       --file=FILE[:TEMPLATE]
30323                    instantiate the configuration file FILE
30324       --header=FILE[:TEMPLATE]
30325                    instantiate the configuration header FILE
30326
30327 Configuration files:
30328 $config_files
30329
30330 Configuration headers:
30331 $config_headers
30332
30333 Configuration commands:
30334 $config_commands
30335
30336 Report bugs to the package provider."
30337
30338 _ACEOF
30339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30340 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30341 ac_cs_version="\\
30342 config.status
30343 configured by $0, generated by GNU Autoconf 2.65,
30344   with options \\"\$ac_cs_config\\"
30345
30346 Copyright (C) 2009 Free Software Foundation, Inc.
30347 This config.status script is free software; the Free Software Foundation
30348 gives unlimited permission to copy, distribute and modify it."
30349
30350 ac_pwd='$ac_pwd'
30351 srcdir='$srcdir'
30352 INSTALL='$INSTALL'
30353 AWK='$AWK'
30354 test -n "\$AWK" || AWK=awk
30355 _ACEOF
30356
30357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30358 # The default lists apply if the user does not specify any file.
30359 ac_need_defaults=:
30360 while test $# != 0
30361 do
30362   case $1 in
30363   --*=*)
30364     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30365     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30366     ac_shift=:
30367     ;;
30368   *)
30369     ac_option=$1
30370     ac_optarg=$2
30371     ac_shift=shift
30372     ;;
30373   esac
30374
30375   case $ac_option in
30376   # Handling of the options.
30377   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30378     ac_cs_recheck=: ;;
30379   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30380     $as_echo "$ac_cs_version"; exit ;;
30381   --config | --confi | --conf | --con | --co | --c )
30382     $as_echo "$ac_cs_config"; exit ;;
30383   --debug | --debu | --deb | --de | --d | -d )
30384     debug=: ;;
30385   --file | --fil | --fi | --f )
30386     $ac_shift
30387     case $ac_optarg in
30388     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30389     esac
30390     as_fn_append CONFIG_FILES " '$ac_optarg'"
30391     ac_need_defaults=false;;
30392   --header | --heade | --head | --hea )
30393     $ac_shift
30394     case $ac_optarg in
30395     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30396     esac
30397     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30398     ac_need_defaults=false;;
30399   --he | --h)
30400     # Conflict between --help and --header
30401     as_fn_error "ambiguous option: \`$1'
30402 Try \`$0 --help' for more information.";;
30403   --help | --hel | -h )
30404     $as_echo "$ac_cs_usage"; exit ;;
30405   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30406   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30407     ac_cs_silent=: ;;
30408
30409   # This is an error.
30410   -*) as_fn_error "unrecognized option: \`$1'
30411 Try \`$0 --help' for more information." ;;
30412
30413   *) as_fn_append ac_config_targets " $1"
30414      ac_need_defaults=false ;;
30415
30416   esac
30417   shift
30418 done
30419
30420 ac_configure_extra_args=
30421
30422 if $ac_cs_silent; then
30423   exec 6>/dev/null
30424   ac_configure_extra_args="$ac_configure_extra_args --silent"
30425 fi
30426
30427 _ACEOF
30428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30429 if \$ac_cs_recheck; then
30430   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30431   shift
30432   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30433   CONFIG_SHELL='$SHELL'
30434   export CONFIG_SHELL
30435   exec "\$@"
30436 fi
30437
30438 _ACEOF
30439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30440 exec 5>>config.log
30441 {
30442   echo
30443   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30444 ## Running $as_me. ##
30445 _ASBOX
30446   $as_echo "$ac_log"
30447 } >&5
30448
30449 _ACEOF
30450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30451 #
30452 # INIT-COMMANDS
30453 #
30454
30455
30456 # The HP-UX ksh and POSIX shell print the target directory to stdout
30457 # if CDPATH is set.
30458 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30459
30460 sed_quote_subst='$sed_quote_subst'
30461 double_quote_subst='$double_quote_subst'
30462 delay_variable_subst='$delay_variable_subst'
30463 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30464 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30465 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30466 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30467 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30468 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30469 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30470 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30471 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30472 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30473 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30474 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30475 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30476 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30477 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30478 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30479 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30480 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30481 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30482 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30483 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30484 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30485 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30486 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30487 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30488 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30489 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30490 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30491 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30492 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30493 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30494 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30495 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30496 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30497 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30498 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30499 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30500 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30501 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30502 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30503 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30504 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30505 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30506 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30507 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"`'
30508 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"`'
30509 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30510 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30511 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30512 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30513 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30514 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30515 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30516 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30517 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30518 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30519 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30520 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30521 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30522 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30523 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30524 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30525 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30526 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30527 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30528 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30529 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30530 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30531 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30532 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30533 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30534 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30535 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30536 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30537 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30538 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30539 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30540 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30541 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30542 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30543 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30544 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30545 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30546 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30547 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30548 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30549 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30550 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30551 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30552 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30553 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30554 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30555 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30556 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30557 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30558 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30559 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30560 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30561 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30562 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30563 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30564 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30565 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30566 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30567 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30568 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30569 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30570 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30571 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30572 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30573 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30574 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30575 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30576 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30577 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30578 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30579 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30580 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30581 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30582 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30583 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30584 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30585 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30586 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30587 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30588 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30589 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30590 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30591 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30592 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30593 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30594 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30595 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30596 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30597 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30598 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30599 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30600 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30601 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30602 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30603 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30604 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30605 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30606 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30607 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30608 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30609 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30610 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30611 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30612 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30613 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30614 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30615 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30616 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30617 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30618 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30619 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30620 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30621 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30622 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30623 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30624 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30625 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30626 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30627 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30628 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30629 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30630 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30631 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30632 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30633 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30634
30635 LTCC='$LTCC'
30636 LTCFLAGS='$LTCFLAGS'
30637 compiler='$compiler_DEFAULT'
30638
30639 # Quote evaled strings.
30640 for var in SED \
30641 GREP \
30642 EGREP \
30643 FGREP \
30644 LD \
30645 NM \
30646 LN_S \
30647 lt_SP2NL \
30648 lt_NL2SP \
30649 reload_flag \
30650 OBJDUMP \
30651 deplibs_check_method \
30652 file_magic_cmd \
30653 AR \
30654 AR_FLAGS \
30655 STRIP \
30656 RANLIB \
30657 CC \
30658 CFLAGS \
30659 compiler \
30660 lt_cv_sys_global_symbol_pipe \
30661 lt_cv_sys_global_symbol_to_cdecl \
30662 lt_cv_sys_global_symbol_to_c_name_address \
30663 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30664 SHELL \
30665 ECHO \
30666 lt_prog_compiler_no_builtin_flag \
30667 lt_prog_compiler_wl \
30668 lt_prog_compiler_pic \
30669 lt_prog_compiler_static \
30670 lt_cv_prog_compiler_c_o \
30671 need_locks \
30672 DSYMUTIL \
30673 NMEDIT \
30674 LIPO \
30675 OTOOL \
30676 OTOOL64 \
30677 shrext_cmds \
30678 export_dynamic_flag_spec \
30679 whole_archive_flag_spec \
30680 compiler_needs_object \
30681 with_gnu_ld \
30682 allow_undefined_flag \
30683 no_undefined_flag \
30684 hardcode_libdir_flag_spec \
30685 hardcode_libdir_flag_spec_ld \
30686 hardcode_libdir_separator \
30687 fix_srcfile_path \
30688 exclude_expsyms \
30689 include_expsyms \
30690 file_list_spec \
30691 variables_saved_for_relink \
30692 libname_spec \
30693 library_names_spec \
30694 soname_spec \
30695 finish_eval \
30696 old_striplib \
30697 striplib \
30698 compiler_lib_search_dirs \
30699 predep_objects \
30700 postdep_objects \
30701 predeps \
30702 postdeps \
30703 compiler_lib_search_path \
30704 LD_CXX \
30705 compiler_CXX \
30706 lt_prog_compiler_no_builtin_flag_CXX \
30707 lt_prog_compiler_wl_CXX \
30708 lt_prog_compiler_pic_CXX \
30709 lt_prog_compiler_static_CXX \
30710 lt_cv_prog_compiler_c_o_CXX \
30711 export_dynamic_flag_spec_CXX \
30712 whole_archive_flag_spec_CXX \
30713 compiler_needs_object_CXX \
30714 with_gnu_ld_CXX \
30715 allow_undefined_flag_CXX \
30716 no_undefined_flag_CXX \
30717 hardcode_libdir_flag_spec_CXX \
30718 hardcode_libdir_flag_spec_ld_CXX \
30719 hardcode_libdir_separator_CXX \
30720 fix_srcfile_path_CXX \
30721 exclude_expsyms_CXX \
30722 include_expsyms_CXX \
30723 file_list_spec_CXX \
30724 compiler_lib_search_dirs_CXX \
30725 predep_objects_CXX \
30726 postdep_objects_CXX \
30727 predeps_CXX \
30728 postdeps_CXX \
30729 compiler_lib_search_path_CXX; do
30730     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30731     *[\\\\\\\`\\"\\\$]*)
30732       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30733       ;;
30734     *)
30735       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30736       ;;
30737     esac
30738 done
30739
30740 # Double-quote double-evaled strings.
30741 for var in reload_cmds \
30742 old_postinstall_cmds \
30743 old_postuninstall_cmds \
30744 old_archive_cmds \
30745 extract_expsyms_cmds \
30746 old_archive_from_new_cmds \
30747 old_archive_from_expsyms_cmds \
30748 archive_cmds \
30749 archive_expsym_cmds \
30750 module_cmds \
30751 module_expsym_cmds \
30752 export_symbols_cmds \
30753 prelink_cmds \
30754 postinstall_cmds \
30755 postuninstall_cmds \
30756 finish_cmds \
30757 sys_lib_search_path_spec \
30758 sys_lib_dlsearch_path_spec \
30759 old_archive_cmds_CXX \
30760 old_archive_from_new_cmds_CXX \
30761 old_archive_from_expsyms_cmds_CXX \
30762 archive_cmds_CXX \
30763 archive_expsym_cmds_CXX \
30764 module_cmds_CXX \
30765 module_expsym_cmds_CXX \
30766 export_symbols_cmds_CXX \
30767 prelink_cmds_CXX; do
30768     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30769     *[\\\\\\\`\\"\\\$]*)
30770       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30771       ;;
30772     *)
30773       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30774       ;;
30775     esac
30776 done
30777
30778 # Fix-up fallback echo if it was mangled by the above quoting rules.
30779 case \$lt_ECHO in
30780 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30781   ;;
30782 esac
30783
30784 ac_aux_dir='$ac_aux_dir'
30785 xsi_shell='$xsi_shell'
30786 lt_shell_append='$lt_shell_append'
30787
30788 # See if we are running on zsh, and set the options which allow our
30789 # commands through without removal of \ escapes INIT.
30790 if test -n "\${ZSH_VERSION+set}" ; then
30791    setopt NO_GLOB_SUBST
30792 fi
30793
30794
30795     PACKAGE='$PACKAGE'
30796     VERSION='$VERSION'
30797     TIMESTAMP='$TIMESTAMP'
30798     RM='$RM'
30799     ofile='$ofile'
30800
30801
30802
30803
30804
30805 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30806     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30807     # from automake.
30808     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30809     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30810     LINGUAS="${LINGUAS-%UNSET%}"
30811
30812
30813 _ACEOF
30814
30815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30816
30817 # Handling of arguments.
30818 for ac_config_target in $ac_config_targets
30819 do
30820   case $ac_config_target in
30821     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30822     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30823     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30824     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30825     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30826     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30827     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30828     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30829     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30830     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30831     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30832     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30833     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30834     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30835     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30836     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30837     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30838     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30839     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30840     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30841     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30842     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30843     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30844     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30845     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30846     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30847     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30848     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30849     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30850     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30851     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30852     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30853     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30854     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30855     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30856     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30857     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30858     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30859     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30860     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30861     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30862     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30863     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30864     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30865     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30866     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30867     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30868     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30869     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30870     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30871     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30872     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30873     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30874     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30875     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30876     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30877     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30878     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30879     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30880     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30881     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30882     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30883     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30884     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30885     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30886     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30887     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30888     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30889     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30890     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30891     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30892     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30893     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30894     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30895     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30896     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30897     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30898     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30899     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30900     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30901     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30902     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30903     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30904     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30905     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30906     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30907     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30908     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30909     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30910     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30911     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30912     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30913     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30914     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30915     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30916     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30917     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30918     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30919     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30920     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30921     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30922     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30923     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30924     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30925     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30926     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30927     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30928     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30929     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30930     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30931     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30932     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30933     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30934     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30935     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30936     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30937     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30938
30939   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30940   esac
30941 done
30942
30943
30944 # If the user did not use the arguments to specify the items to instantiate,
30945 # then the envvar interface is used.  Set only those that are not.
30946 # We use the long form for the default assignment because of an extremely
30947 # bizarre bug on SunOS 4.1.3.
30948 if $ac_need_defaults; then
30949   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30950   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30951   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30952 fi
30953
30954 # Have a temporary directory for convenience.  Make it in the build tree
30955 # simply because there is no reason against having it here, and in addition,
30956 # creating and moving files from /tmp can sometimes cause problems.
30957 # Hook for its removal unless debugging.
30958 # Note that there is a small window in which the directory will not be cleaned:
30959 # after its creation but before its name has been assigned to `$tmp'.
30960 $debug ||
30961 {
30962   tmp=
30963   trap 'exit_status=$?
30964   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30965 ' 0
30966   trap 'as_fn_exit 1' 1 2 13 15
30967 }
30968 # Create a (secure) tmp directory for tmp files.
30969
30970 {
30971   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30972   test -n "$tmp" && test -d "$tmp"
30973 }  ||
30974 {
30975   tmp=./conf$$-$RANDOM
30976   (umask 077 && mkdir "$tmp")
30977 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
30978
30979 # Set up the scripts for CONFIG_FILES section.
30980 # No need to generate them if there are no CONFIG_FILES.
30981 # This happens for instance with `./config.status config.h'.
30982 if test -n "$CONFIG_FILES"; then
30983
30984 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30985   ac_cs_awk_getline=:
30986   ac_cs_awk_pipe_init=
30987   ac_cs_awk_read_file='
30988       while ((getline aline < (F[key])) > 0)
30989         print(aline)
30990       close(F[key])'
30991   ac_cs_awk_pipe_fini=
30992 else
30993   ac_cs_awk_getline=false
30994   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
30995   ac_cs_awk_read_file='
30996       print "|#_!!_#|"
30997       print "cat " F[key] " &&"
30998       '$ac_cs_awk_pipe_init
30999   # The final `:' finishes the AND list.
31000   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31001 fi
31002 ac_cr=`echo X | tr X '\015'`
31003 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31004 # But we know of no other shell where ac_cr would be empty at this
31005 # point, so we can use a bashism as a fallback.
31006 if test "x$ac_cr" = x; then
31007   eval ac_cr=\$\'\\r\'
31008 fi
31009 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31010 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31011   ac_cs_awk_cr='\r'
31012 else
31013   ac_cs_awk_cr=$ac_cr
31014 fi
31015
31016 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31017 _ACEOF
31018
31019 # Create commands to substitute file output variables.
31020 {
31021   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31022   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31023   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31024   echo "_ACAWK" &&
31025   echo "_ACEOF"
31026 } >conf$$files.sh &&
31027 . ./conf$$files.sh ||
31028   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31029 rm -f conf$$files.sh
31030
31031 {
31032   echo "cat >conf$$subs.awk <<_ACEOF" &&
31033   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31034   echo "_ACEOF"
31035 } >conf$$subs.sh ||
31036   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31037 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31038 ac_delim='%!_!# '
31039 for ac_last_try in false false false false false :; do
31040   . ./conf$$subs.sh ||
31041     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31042
31043   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31044   if test $ac_delim_n = $ac_delim_num; then
31045     break
31046   elif $ac_last_try; then
31047     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31048   else
31049     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31050   fi
31051 done
31052 rm -f conf$$subs.sh
31053
31054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31055 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31056 _ACEOF
31057 sed -n '
31058 h
31059 s/^/S["/; s/!.*/"]=/
31060 p
31061 g
31062 s/^[^!]*!//
31063 :repl
31064 t repl
31065 s/'"$ac_delim"'$//
31066 t delim
31067 :nl
31068 h
31069 s/\(.\{148\}\)..*/\1/
31070 t more1
31071 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31072 p
31073 n
31074 b repl
31075 :more1
31076 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31077 p
31078 g
31079 s/.\{148\}//
31080 t nl
31081 :delim
31082 h
31083 s/\(.\{148\}\)..*/\1/
31084 t more2
31085 s/["\\]/\\&/g; s/^/"/; s/$/"/
31086 p
31087 b
31088 :more2
31089 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31090 p
31091 g
31092 s/.\{148\}//
31093 t delim
31094 ' <conf$$subs.awk | sed '
31095 /^[^""]/{
31096   N
31097   s/\n//
31098 }
31099 ' >>$CONFIG_STATUS || ac_write_fail=1
31100 rm -f conf$$subs.awk
31101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31102 _ACAWK
31103 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31104   for (key in S) S_is_set[key] = 1
31105   FS = "\a"
31106   \$ac_cs_awk_pipe_init
31107 }
31108 {
31109   line = $ 0
31110   nfields = split(line, field, "@")
31111   substed = 0
31112   len = length(field[1])
31113   for (i = 2; i < nfields; i++) {
31114     key = field[i]
31115     keylen = length(key)
31116     if (S_is_set[key]) {
31117       value = S[key]
31118       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31119       len += length(value) + length(field[++i])
31120       substed = 1
31121     } else
31122       len += 1 + keylen
31123   }
31124   if (nfields == 3 && !substed) {
31125     key = field[2]
31126     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
31127       \$ac_cs_awk_read_file
31128       next
31129     }
31130   }
31131   print line
31132 }
31133 \$ac_cs_awk_pipe_fini
31134 _ACAWK
31135 _ACEOF
31136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31137 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31138   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31139 else
31140   cat
31141 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31142   || as_fn_error "could not setup config files machinery" "$LINENO" 5
31143 _ACEOF
31144
31145 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31146 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31147 # trailing colons and then remove the whole line if VPATH becomes empty
31148 # (actually we leave an empty line to preserve line numbers).
31149 if test "x$srcdir" = x.; then
31150   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31151 s/:*\$(srcdir):*/:/
31152 s/:*\${srcdir}:*/:/
31153 s/:*@srcdir@:*/:/
31154 s/^\([^=]*=[     ]*\):*/\1/
31155 s/:*$//
31156 s/^[^=]*=[       ]*$//
31157 }'
31158 fi
31159
31160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31161 fi # test -n "$CONFIG_FILES"
31162
31163 # Set up the scripts for CONFIG_HEADERS section.
31164 # No need to generate them if there are no CONFIG_HEADERS.
31165 # This happens for instance with `./config.status Makefile'.
31166 if test -n "$CONFIG_HEADERS"; then
31167 cat >"$tmp/defines.awk" <<\_ACAWK ||
31168 BEGIN {
31169 _ACEOF
31170
31171 # Transform confdefs.h into an awk script `defines.awk', embedded as
31172 # here-document in config.status, that substitutes the proper values into
31173 # config.h.in to produce config.h.
31174
31175 # Create a delimiter string that does not exist in confdefs.h, to ease
31176 # handling of long lines.
31177 ac_delim='%!_!# '
31178 for ac_last_try in false false :; do
31179   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31180   if test -z "$ac_t"; then
31181     break
31182   elif $ac_last_try; then
31183     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31184   else
31185     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31186   fi
31187 done
31188
31189 # For the awk script, D is an array of macro values keyed by name,
31190 # likewise P contains macro parameters if any.  Preserve backslash
31191 # newline sequences.
31192
31193 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31194 sed -n '
31195 s/.\{148\}/&'"$ac_delim"'/g
31196 t rset
31197 :rset
31198 s/^[     ]*#[    ]*define[       ][      ]*/ /
31199 t def
31200 d
31201 :def
31202 s/\\$//
31203 t bsnl
31204 s/["\\]/\\&/g
31205 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31206 D["\1"]=" \3"/p
31207 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31208 d
31209 :bsnl
31210 s/["\\]/\\&/g
31211 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31212 D["\1"]=" \3\\\\\\n"\\/p
31213 t cont
31214 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31215 t cont
31216 d
31217 :cont
31218 n
31219 s/.\{148\}/&'"$ac_delim"'/g
31220 t clear
31221 :clear
31222 s/\\$//
31223 t bsnlc
31224 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31225 d
31226 :bsnlc
31227 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31228 b cont
31229 ' <confdefs.h | sed '
31230 s/'"$ac_delim"'/"\\\
31231 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31232
31233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31234   for (key in D) D_is_set[key] = 1
31235   FS = "\a"
31236 }
31237 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31238   line = \$ 0
31239   split(line, arg, " ")
31240   if (arg[1] == "#") {
31241     defundef = arg[2]
31242     mac1 = arg[3]
31243   } else {
31244     defundef = substr(arg[1], 2)
31245     mac1 = arg[2]
31246   }
31247   split(mac1, mac2, "(") #)
31248   macro = mac2[1]
31249   prefix = substr(line, 1, index(line, defundef) - 1)
31250   if (D_is_set[macro]) {
31251     # Preserve the white space surrounding the "#".
31252     print prefix "define", macro P[macro] D[macro]
31253     next
31254   } else {
31255     # Replace #undef with comments.  This is necessary, for example,
31256     # in the case of _POSIX_SOURCE, which is predefined and required
31257     # on some systems where configure will not decide to define it.
31258     if (defundef == "undef") {
31259       print "/*", prefix defundef, macro, "*/"
31260       next
31261     }
31262   }
31263 }
31264 { print }
31265 _ACAWK
31266 _ACEOF
31267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31268   as_fn_error "could not setup config headers machinery" "$LINENO" 5
31269 fi # test -n "$CONFIG_HEADERS"
31270
31271
31272 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31273 shift
31274 for ac_tag
31275 do
31276   case $ac_tag in
31277   :[FHLC]) ac_mode=$ac_tag; continue;;
31278   esac
31279   case $ac_mode$ac_tag in
31280   :[FHL]*:*);;
31281   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31282   :[FH]-) ac_tag=-:-;;
31283   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31284   esac
31285   ac_save_IFS=$IFS
31286   IFS=:
31287   set x $ac_tag
31288   IFS=$ac_save_IFS
31289   shift
31290   ac_file=$1
31291   shift
31292
31293   case $ac_mode in
31294   :L) ac_source=$1;;
31295   :[FH])
31296     ac_file_inputs=
31297     for ac_f
31298     do
31299       case $ac_f in
31300       -) ac_f="$tmp/stdin";;
31301       *) # Look for the file first in the build tree, then in the source tree
31302          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31303          # because $ac_f cannot contain `:'.
31304          test -f "$ac_f" ||
31305            case $ac_f in
31306            [\\/$]*) false;;
31307            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31308            esac ||
31309            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31310       esac
31311       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31312       as_fn_append ac_file_inputs " '$ac_f'"
31313     done
31314
31315     # Let's still pretend it is `configure' which instantiates (i.e., don't
31316     # use $as_me), people would be surprised to read:
31317     #    /* config.h.  Generated by config.status.  */
31318     configure_input='Generated from '`
31319           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31320         `' by configure.'
31321     if test x"$ac_file" != x-; then
31322       configure_input="$ac_file.  $configure_input"
31323       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31324 $as_echo "$as_me: creating $ac_file" >&6;}
31325     fi
31326     # Neutralize special characters interpreted by sed in replacement strings.
31327     case $configure_input in #(
31328     *\&* | *\|* | *\\* )
31329        ac_sed_conf_input=`$as_echo "$configure_input" |
31330        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31331     *) ac_sed_conf_input=$configure_input;;
31332     esac
31333
31334     case $ac_tag in
31335     *:-:* | *:-) cat >"$tmp/stdin" \
31336       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31337     esac
31338     ;;
31339   esac
31340
31341   ac_dir=`$as_dirname -- "$ac_file" ||
31342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31343          X"$ac_file" : 'X\(//\)[^/]' \| \
31344          X"$ac_file" : 'X\(//\)$' \| \
31345          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31346 $as_echo X"$ac_file" |
31347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31348             s//\1/
31349             q
31350           }
31351           /^X\(\/\/\)[^/].*/{
31352             s//\1/
31353             q
31354           }
31355           /^X\(\/\/\)$/{
31356             s//\1/
31357             q
31358           }
31359           /^X\(\/\).*/{
31360             s//\1/
31361             q
31362           }
31363           s/.*/./; q'`
31364   as_dir="$ac_dir"; as_fn_mkdir_p
31365   ac_builddir=.
31366
31367 case "$ac_dir" in
31368 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31369 *)
31370   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31371   # A ".." for each directory in $ac_dir_suffix.
31372   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31373   case $ac_top_builddir_sub in
31374   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31375   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31376   esac ;;
31377 esac
31378 ac_abs_top_builddir=$ac_pwd
31379 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31380 # for backward compatibility:
31381 ac_top_builddir=$ac_top_build_prefix
31382
31383 case $srcdir in
31384   .)  # We are building in place.
31385     ac_srcdir=.
31386     ac_top_srcdir=$ac_top_builddir_sub
31387     ac_abs_top_srcdir=$ac_pwd ;;
31388   [\\/]* | ?:[\\/]* )  # Absolute name.
31389     ac_srcdir=$srcdir$ac_dir_suffix;
31390     ac_top_srcdir=$srcdir
31391     ac_abs_top_srcdir=$srcdir ;;
31392   *) # Relative name.
31393     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31394     ac_top_srcdir=$ac_top_build_prefix$srcdir
31395     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31396 esac
31397 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31398
31399
31400   case $ac_mode in
31401   :F)
31402   #
31403   # CONFIG_FILE
31404   #
31405
31406   case $INSTALL in
31407   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31408   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31409   esac
31410 _ACEOF
31411
31412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31413 # If the template does not know about datarootdir, expand it.
31414 # FIXME: This hack should be removed a few years after 2.60.
31415 ac_datarootdir_hack=; ac_datarootdir_seen=
31416 ac_sed_dataroot='
31417 /datarootdir/ {
31418   p
31419   q
31420 }
31421 /@datadir@/p
31422 /@docdir@/p
31423 /@infodir@/p
31424 /@localedir@/p
31425 /@mandir@/p'
31426 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31427 *datarootdir*) ac_datarootdir_seen=yes;;
31428 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31429   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31430 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31431 _ACEOF
31432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31433   ac_datarootdir_hack='
31434   s&@datadir@&$datadir&g
31435   s&@docdir@&$docdir&g
31436   s&@infodir@&$infodir&g
31437   s&@localedir@&$localedir&g
31438   s&@mandir@&$mandir&g
31439   s&\\\${datarootdir}&$datarootdir&g' ;;
31440 esac
31441 _ACEOF
31442
31443 # Neutralize VPATH when `$srcdir' = `.'.
31444 # Shell code in configure.ac might set extrasub.
31445 # FIXME: do we really want to maintain this feature?
31446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31447 ac_sed_extra="$ac_vpsub
31448 $extrasub
31449 _ACEOF
31450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31451 :t
31452 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31453 s|@configure_input@|$ac_sed_conf_input|;t t
31454 s&@top_builddir@&$ac_top_builddir_sub&;t t
31455 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31456 s&@srcdir@&$ac_srcdir&;t t
31457 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31458 s&@top_srcdir@&$ac_top_srcdir&;t t
31459 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31460 s&@builddir@&$ac_builddir&;t t
31461 s&@abs_builddir@&$ac_abs_builddir&;t t
31462 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31463 s&@INSTALL@&$ac_INSTALL&;t t
31464 $ac_datarootdir_hack
31465 "
31466 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31467 if $ac_cs_awk_getline; then
31468   $AWK -f "$tmp/subs.awk"
31469 else
31470   $AWK -f "$tmp/subs.awk" | $SHELL
31471 fi >$tmp/out \
31472   || as_fn_error "could not create $ac_file" "$LINENO" 5
31473
31474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31475   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31476   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31477   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31478 which seems to be undefined.  Please make sure it is defined." >&5
31479 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31480 which seems to be undefined.  Please make sure it is defined." >&2;}
31481
31482   rm -f "$tmp/stdin"
31483   case $ac_file in
31484   -) cat "$tmp/out" && rm -f "$tmp/out";;
31485   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31486   esac \
31487   || as_fn_error "could not create $ac_file" "$LINENO" 5
31488  ;;
31489   :H)
31490   #
31491   # CONFIG_HEADER
31492   #
31493   if test x"$ac_file" != x-; then
31494     {
31495       $as_echo "/* $configure_input  */" \
31496       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31497     } >"$tmp/config.h" \
31498       || as_fn_error "could not create $ac_file" "$LINENO" 5
31499     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31500       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31501 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31502     else
31503       rm -f "$ac_file"
31504       mv "$tmp/config.h" "$ac_file" \
31505         || as_fn_error "could not create $ac_file" "$LINENO" 5
31506     fi
31507   else
31508     $as_echo "/* $configure_input  */" \
31509       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31510       || as_fn_error "could not create -" "$LINENO" 5
31511   fi
31512  ;;
31513
31514   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31515 $as_echo "$as_me: executing $ac_file commands" >&6;}
31516  ;;
31517   esac
31518
31519
31520   case $ac_file$ac_mode in
31521     "libtool":C)
31522
31523     # See if we are running on zsh, and set the options which allow our
31524     # commands through without removal of \ escapes.
31525     if test -n "${ZSH_VERSION+set}" ; then
31526       setopt NO_GLOB_SUBST
31527     fi
31528
31529     cfgfile="${ofile}T"
31530     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31531     $RM "$cfgfile"
31532
31533     cat <<_LT_EOF >> "$cfgfile"
31534 #! $SHELL
31535
31536 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31537 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31538 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31539 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31540 #
31541 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31542 #                 2006, 2007, 2008 Free Software Foundation, Inc.
31543 #   Written by Gordon Matzigkeit, 1996
31544 #
31545 #   This file is part of GNU Libtool.
31546 #
31547 # GNU Libtool is free software; you can redistribute it and/or
31548 # modify it under the terms of the GNU General Public License as
31549 # published by the Free Software Foundation; either version 2 of
31550 # the License, or (at your option) any later version.
31551 #
31552 # As a special exception to the GNU General Public License,
31553 # if you distribute this file as part of a program or library that
31554 # is built using GNU Libtool, you may include this file under the
31555 # same distribution terms that you use for the rest of that program.
31556 #
31557 # GNU Libtool is distributed in the hope that it will be useful,
31558 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31559 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31560 # GNU General Public License for more details.
31561 #
31562 # You should have received a copy of the GNU General Public License
31563 # along with GNU Libtool; see the file COPYING.  If not, a copy
31564 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31565 # obtained by writing to the Free Software Foundation, Inc.,
31566 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31567
31568
31569 # The names of the tagged configurations supported by this script.
31570 available_tags="CXX "
31571
31572 # ### BEGIN LIBTOOL CONFIG
31573
31574 # Which release of libtool.m4 was used?
31575 macro_version=$macro_version
31576 macro_revision=$macro_revision
31577
31578 # Whether or not to build shared libraries.
31579 build_libtool_libs=$enable_shared
31580
31581 # Whether or not to build static libraries.
31582 build_old_libs=$enable_static
31583
31584 # What type of objects to build.
31585 pic_mode=$pic_mode
31586
31587 # Whether or not to optimize for fast installation.
31588 fast_install=$enable_fast_install
31589
31590 # The host system.
31591 host_alias=$host_alias
31592 host=$host
31593 host_os=$host_os
31594
31595 # The build system.
31596 build_alias=$build_alias
31597 build=$build
31598 build_os=$build_os
31599
31600 # A sed program that does not truncate output.
31601 SED=$lt_SED
31602
31603 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31604 Xsed="\$SED -e 1s/^X//"
31605
31606 # A grep program that handles long lines.
31607 GREP=$lt_GREP
31608
31609 # An ERE matcher.
31610 EGREP=$lt_EGREP
31611
31612 # A literal string matcher.
31613 FGREP=$lt_FGREP
31614
31615 # A BSD- or MS-compatible name lister.
31616 NM=$lt_NM
31617
31618 # Whether we need soft or hard links.
31619 LN_S=$lt_LN_S
31620
31621 # What is the maximum length of a command?
31622 max_cmd_len=$max_cmd_len
31623
31624 # Object file suffix (normally "o").
31625 objext=$ac_objext
31626
31627 # Executable file suffix (normally "").
31628 exeext=$exeext
31629
31630 # whether the shell understands "unset".
31631 lt_unset=$lt_unset
31632
31633 # turn spaces into newlines.
31634 SP2NL=$lt_lt_SP2NL
31635
31636 # turn newlines into spaces.
31637 NL2SP=$lt_lt_NL2SP
31638
31639 # How to create reloadable object files.
31640 reload_flag=$lt_reload_flag
31641 reload_cmds=$lt_reload_cmds
31642
31643 # An object symbol dumper.
31644 OBJDUMP=$lt_OBJDUMP
31645
31646 # Method to check whether dependent libraries are shared objects.
31647 deplibs_check_method=$lt_deplibs_check_method
31648
31649 # Command to use when deplibs_check_method == "file_magic".
31650 file_magic_cmd=$lt_file_magic_cmd
31651
31652 # The archiver.
31653 AR=$lt_AR
31654 AR_FLAGS=$lt_AR_FLAGS
31655
31656 # A symbol stripping program.
31657 STRIP=$lt_STRIP
31658
31659 # Commands used to install an old-style archive.
31660 RANLIB=$lt_RANLIB
31661 old_postinstall_cmds=$lt_old_postinstall_cmds
31662 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31663
31664 # A C compiler.
31665 LTCC=$lt_CC
31666
31667 # LTCC compiler flags.
31668 LTCFLAGS=$lt_CFLAGS
31669
31670 # Take the output of nm and produce a listing of raw symbols and C names.
31671 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31672
31673 # Transform the output of nm in a proper C declaration.
31674 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31675
31676 # Transform the output of nm in a C name address pair.
31677 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31678
31679 # Transform the output of nm in a C name address pair when lib prefix is needed.
31680 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31681
31682 # The name of the directory that contains temporary libtool files.
31683 objdir=$objdir
31684
31685 # Shell to use when invoking shell scripts.
31686 SHELL=$lt_SHELL
31687
31688 # An echo program that does not interpret backslashes.
31689 ECHO=$lt_ECHO
31690
31691 # Used to examine libraries when file_magic_cmd begins with "file".
31692 MAGIC_CMD=$MAGIC_CMD
31693
31694 # Must we lock files when doing compilation?
31695 need_locks=$lt_need_locks
31696
31697 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31698 DSYMUTIL=$lt_DSYMUTIL
31699
31700 # Tool to change global to local symbols on Mac OS X.
31701 NMEDIT=$lt_NMEDIT
31702
31703 # Tool to manipulate fat objects and archives on Mac OS X.
31704 LIPO=$lt_LIPO
31705
31706 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31707 OTOOL=$lt_OTOOL
31708
31709 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31710 OTOOL64=$lt_OTOOL64
31711
31712 # Old archive suffix (normally "a").
31713 libext=$libext
31714
31715 # Shared library suffix (normally ".so").
31716 shrext_cmds=$lt_shrext_cmds
31717
31718 # The commands to extract the exported symbol list from a shared archive.
31719 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31720
31721 # Variables whose values should be saved in libtool wrapper scripts and
31722 # restored at link time.
31723 variables_saved_for_relink=$lt_variables_saved_for_relink
31724
31725 # Do we need the "lib" prefix for modules?
31726 need_lib_prefix=$need_lib_prefix
31727
31728 # Do we need a version for libraries?
31729 need_version=$need_version
31730
31731 # Library versioning type.
31732 version_type=$version_type
31733
31734 # Shared library runtime path variable.
31735 runpath_var=$runpath_var
31736
31737 # Shared library path variable.
31738 shlibpath_var=$shlibpath_var
31739
31740 # Is shlibpath searched before the hard-coded library search path?
31741 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31742
31743 # Format of library name prefix.
31744 libname_spec=$lt_libname_spec
31745
31746 # List of archive names.  First name is the real one, the rest are links.
31747 # The last name is the one that the linker finds with -lNAME
31748 library_names_spec=$lt_library_names_spec
31749
31750 # The coded name of the library, if different from the real name.
31751 soname_spec=$lt_soname_spec
31752
31753 # Command to use after installation of a shared archive.
31754 postinstall_cmds=$lt_postinstall_cmds
31755
31756 # Command to use after uninstallation of a shared archive.
31757 postuninstall_cmds=$lt_postuninstall_cmds
31758
31759 # Commands used to finish a libtool library installation in a directory.
31760 finish_cmds=$lt_finish_cmds
31761
31762 # As "finish_cmds", except a single script fragment to be evaled but
31763 # not shown.
31764 finish_eval=$lt_finish_eval
31765
31766 # Whether we should hardcode library paths into libraries.
31767 hardcode_into_libs=$hardcode_into_libs
31768
31769 # Compile-time system search path for libraries.
31770 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31771
31772 # Run-time system search path for libraries.
31773 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31774
31775 # Whether dlopen is supported.
31776 dlopen_support=$enable_dlopen
31777
31778 # Whether dlopen of programs is supported.
31779 dlopen_self=$enable_dlopen_self
31780
31781 # Whether dlopen of statically linked programs is supported.
31782 dlopen_self_static=$enable_dlopen_self_static
31783
31784 # Commands to strip libraries.
31785 old_striplib=$lt_old_striplib
31786 striplib=$lt_striplib
31787
31788
31789 # The linker used to build libraries.
31790 LD=$lt_LD
31791
31792 # Commands used to build an old-style archive.
31793 old_archive_cmds=$lt_old_archive_cmds
31794
31795 # A language specific compiler.
31796 CC=$lt_compiler
31797
31798 # Is the compiler the GNU compiler?
31799 with_gcc=$GCC
31800
31801 # Compiler flag to turn off builtin functions.
31802 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31803
31804 # How to pass a linker flag through the compiler.
31805 wl=$lt_lt_prog_compiler_wl
31806
31807 # Additional compiler flags for building library objects.
31808 pic_flag=$lt_lt_prog_compiler_pic
31809
31810 # Compiler flag to prevent dynamic linking.
31811 link_static_flag=$lt_lt_prog_compiler_static
31812
31813 # Does compiler simultaneously support -c and -o options?
31814 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31815
31816 # Whether or not to add -lc for building shared libraries.
31817 build_libtool_need_lc=$archive_cmds_need_lc
31818
31819 # Whether or not to disallow shared libs when runtime libs are static.
31820 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31821
31822 # Compiler flag to allow reflexive dlopens.
31823 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31824
31825 # Compiler flag to generate shared objects directly from archives.
31826 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31827
31828 # Whether the compiler copes with passing no objects directly.
31829 compiler_needs_object=$lt_compiler_needs_object
31830
31831 # Create an old-style archive from a shared archive.
31832 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31833
31834 # Create a temporary old-style archive to link instead of a shared archive.
31835 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31836
31837 # Commands used to build a shared archive.
31838 archive_cmds=$lt_archive_cmds
31839 archive_expsym_cmds=$lt_archive_expsym_cmds
31840
31841 # Commands used to build a loadable module if different from building
31842 # a shared archive.
31843 module_cmds=$lt_module_cmds
31844 module_expsym_cmds=$lt_module_expsym_cmds
31845
31846 # Whether we are building with GNU ld or not.
31847 with_gnu_ld=$lt_with_gnu_ld
31848
31849 # Flag that allows shared libraries with undefined symbols to be built.
31850 allow_undefined_flag=$lt_allow_undefined_flag
31851
31852 # Flag that enforces no undefined symbols.
31853 no_undefined_flag=$lt_no_undefined_flag
31854
31855 # Flag to hardcode \$libdir into a binary during linking.
31856 # This must work even if \$libdir does not exist
31857 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31858
31859 # If ld is used when linking, flag to hardcode \$libdir into a binary
31860 # during linking.  This must work even if \$libdir does not exist.
31861 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31862
31863 # Whether we need a single "-rpath" flag with a separated argument.
31864 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31865
31866 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31867 # DIR into the resulting binary.
31868 hardcode_direct=$hardcode_direct
31869
31870 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31871 # DIR into the resulting binary and the resulting library dependency is
31872 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31873 # library is relocated.
31874 hardcode_direct_absolute=$hardcode_direct_absolute
31875
31876 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31877 # into the resulting binary.
31878 hardcode_minus_L=$hardcode_minus_L
31879
31880 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31881 # into the resulting binary.
31882 hardcode_shlibpath_var=$hardcode_shlibpath_var
31883
31884 # Set to "yes" if building a shared library automatically hardcodes DIR
31885 # into the library and all subsequent libraries and executables linked
31886 # against it.
31887 hardcode_automatic=$hardcode_automatic
31888
31889 # Set to yes if linker adds runtime paths of dependent libraries
31890 # to runtime path list.
31891 inherit_rpath=$inherit_rpath
31892
31893 # Whether libtool must link a program against all its dependency libraries.
31894 link_all_deplibs=$link_all_deplibs
31895
31896 # Fix the shell variable \$srcfile for the compiler.
31897 fix_srcfile_path=$lt_fix_srcfile_path
31898
31899 # Set to "yes" if exported symbols are required.
31900 always_export_symbols=$always_export_symbols
31901
31902 # The commands to list exported symbols.
31903 export_symbols_cmds=$lt_export_symbols_cmds
31904
31905 # Symbols that should not be listed in the preloaded symbols.
31906 exclude_expsyms=$lt_exclude_expsyms
31907
31908 # Symbols that must always be exported.
31909 include_expsyms=$lt_include_expsyms
31910
31911 # Commands necessary for linking programs (against libraries) with templates.
31912 prelink_cmds=$lt_prelink_cmds
31913
31914 # Specify filename containing input files.
31915 file_list_spec=$lt_file_list_spec
31916
31917 # How to hardcode a shared library path into an executable.
31918 hardcode_action=$hardcode_action
31919
31920 # The directories searched by this compiler when creating a shared library.
31921 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31922
31923 # Dependencies to place before and after the objects being linked to
31924 # create a shared library.
31925 predep_objects=$lt_predep_objects
31926 postdep_objects=$lt_postdep_objects
31927 predeps=$lt_predeps
31928 postdeps=$lt_postdeps
31929
31930 # The library search path used internally by the compiler when linking
31931 # a shared library.
31932 compiler_lib_search_path=$lt_compiler_lib_search_path
31933
31934 # ### END LIBTOOL CONFIG
31935
31936 _LT_EOF
31937
31938   case $host_os in
31939   aix3*)
31940     cat <<\_LT_EOF >> "$cfgfile"
31941 # AIX sometimes has problems with the GCC collect2 program.  For some
31942 # reason, if we set the COLLECT_NAMES environment variable, the problems
31943 # vanish in a puff of smoke.
31944 if test "X${COLLECT_NAMES+set}" != Xset; then
31945   COLLECT_NAMES=
31946   export COLLECT_NAMES
31947 fi
31948 _LT_EOF
31949     ;;
31950   esac
31951
31952
31953 ltmain="$ac_aux_dir/ltmain.sh"
31954
31955
31956   # We use sed instead of cat because bash on DJGPP gets confused if
31957   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31958   # text mode, it properly converts lines to CR/LF.  This bash problem
31959   # is reportedly fixed, but why not run on old versions too?
31960   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31961     || (rm -f "$cfgfile"; exit 1)
31962
31963   case $xsi_shell in
31964   yes)
31965     cat << \_LT_EOF >> "$cfgfile"
31966
31967 # func_dirname file append nondir_replacement
31968 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31969 # otherwise set result to NONDIR_REPLACEMENT.
31970 func_dirname ()
31971 {
31972   case ${1} in
31973     */*) func_dirname_result="${1%/*}${2}" ;;
31974     *  ) func_dirname_result="${3}" ;;
31975   esac
31976 }
31977
31978 # func_basename file
31979 func_basename ()
31980 {
31981   func_basename_result="${1##*/}"
31982 }
31983
31984 # func_dirname_and_basename file append nondir_replacement
31985 # perform func_basename and func_dirname in a single function
31986 # call:
31987 #   dirname:  Compute the dirname of FILE.  If nonempty,
31988 #             add APPEND to the result, otherwise set result
31989 #             to NONDIR_REPLACEMENT.
31990 #             value returned in "$func_dirname_result"
31991 #   basename: Compute filename of FILE.
31992 #             value retuned in "$func_basename_result"
31993 # Implementation must be kept synchronized with func_dirname
31994 # and func_basename. For efficiency, we do not delegate to
31995 # those functions but instead duplicate the functionality here.
31996 func_dirname_and_basename ()
31997 {
31998   case ${1} in
31999     */*) func_dirname_result="${1%/*}${2}" ;;
32000     *  ) func_dirname_result="${3}" ;;
32001   esac
32002   func_basename_result="${1##*/}"
32003 }
32004
32005 # func_stripname prefix suffix name
32006 # strip PREFIX and SUFFIX off of NAME.
32007 # PREFIX and SUFFIX must not contain globbing or regex special
32008 # characters, hashes, percent signs, but SUFFIX may contain a leading
32009 # dot (in which case that matches only a dot).
32010 func_stripname ()
32011 {
32012   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32013   # positional parameters, so assign one to ordinary parameter first.
32014   func_stripname_result=${3}
32015   func_stripname_result=${func_stripname_result#"${1}"}
32016   func_stripname_result=${func_stripname_result%"${2}"}
32017 }
32018
32019 # func_opt_split
32020 func_opt_split ()
32021 {
32022   func_opt_split_opt=${1%%=*}
32023   func_opt_split_arg=${1#*=}
32024 }
32025
32026 # func_lo2o object
32027 func_lo2o ()
32028 {
32029   case ${1} in
32030     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32031     *)    func_lo2o_result=${1} ;;
32032   esac
32033 }
32034
32035 # func_xform libobj-or-source
32036 func_xform ()
32037 {
32038   func_xform_result=${1%.*}.lo
32039 }
32040
32041 # func_arith arithmetic-term...
32042 func_arith ()
32043 {
32044   func_arith_result=$(( $* ))
32045 }
32046
32047 # func_len string
32048 # STRING may not start with a hyphen.
32049 func_len ()
32050 {
32051   func_len_result=${#1}
32052 }
32053
32054 _LT_EOF
32055     ;;
32056   *) # Bourne compatible functions.
32057     cat << \_LT_EOF >> "$cfgfile"
32058
32059 # func_dirname file append nondir_replacement
32060 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32061 # otherwise set result to NONDIR_REPLACEMENT.
32062 func_dirname ()
32063 {
32064   # Extract subdirectory from the argument.
32065   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32066   if test "X$func_dirname_result" = "X${1}"; then
32067     func_dirname_result="${3}"
32068   else
32069     func_dirname_result="$func_dirname_result${2}"
32070   fi
32071 }
32072
32073 # func_basename file
32074 func_basename ()
32075 {
32076   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32077 }
32078
32079
32080 # func_stripname prefix suffix name
32081 # strip PREFIX and SUFFIX off of NAME.
32082 # PREFIX and SUFFIX must not contain globbing or regex special
32083 # characters, hashes, percent signs, but SUFFIX may contain a leading
32084 # dot (in which case that matches only a dot).
32085 # func_strip_suffix prefix name
32086 func_stripname ()
32087 {
32088   case ${2} in
32089     .*) func_stripname_result=`$ECHO "X${3}" \
32090            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32091     *)  func_stripname_result=`$ECHO "X${3}" \
32092            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32093   esac
32094 }
32095
32096 # sed scripts:
32097 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32098 my_sed_long_arg='1s/^-[^=]*=//'
32099
32100 # func_opt_split
32101 func_opt_split ()
32102 {
32103   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32104   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32105 }
32106
32107 # func_lo2o object
32108 func_lo2o ()
32109 {
32110   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32111 }
32112
32113 # func_xform libobj-or-source
32114 func_xform ()
32115 {
32116   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32117 }
32118
32119 # func_arith arithmetic-term...
32120 func_arith ()
32121 {
32122   func_arith_result=`expr "$@"`
32123 }
32124
32125 # func_len string
32126 # STRING may not start with a hyphen.
32127 func_len ()
32128 {
32129   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32130 }
32131
32132 _LT_EOF
32133 esac
32134
32135 case $lt_shell_append in
32136   yes)
32137     cat << \_LT_EOF >> "$cfgfile"
32138
32139 # func_append var value
32140 # Append VALUE to the end of shell variable VAR.
32141 func_append ()
32142 {
32143   eval "$1+=\$2"
32144 }
32145 _LT_EOF
32146     ;;
32147   *)
32148     cat << \_LT_EOF >> "$cfgfile"
32149
32150 # func_append var value
32151 # Append VALUE to the end of shell variable VAR.
32152 func_append ()
32153 {
32154   eval "$1=\$$1\$2"
32155 }
32156
32157 _LT_EOF
32158     ;;
32159   esac
32160
32161
32162   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32163     || (rm -f "$cfgfile"; exit 1)
32164
32165   mv -f "$cfgfile" "$ofile" ||
32166     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32167   chmod +x "$ofile"
32168
32169
32170     cat <<_LT_EOF >> "$ofile"
32171
32172 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32173
32174 # The linker used to build libraries.
32175 LD=$lt_LD_CXX
32176
32177 # Commands used to build an old-style archive.
32178 old_archive_cmds=$lt_old_archive_cmds_CXX
32179
32180 # A language specific compiler.
32181 CC=$lt_compiler_CXX
32182
32183 # Is the compiler the GNU compiler?
32184 with_gcc=$GCC_CXX
32185
32186 # Compiler flag to turn off builtin functions.
32187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32188
32189 # How to pass a linker flag through the compiler.
32190 wl=$lt_lt_prog_compiler_wl_CXX
32191
32192 # Additional compiler flags for building library objects.
32193 pic_flag=$lt_lt_prog_compiler_pic_CXX
32194
32195 # Compiler flag to prevent dynamic linking.
32196 link_static_flag=$lt_lt_prog_compiler_static_CXX
32197
32198 # Does compiler simultaneously support -c and -o options?
32199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32200
32201 # Whether or not to add -lc for building shared libraries.
32202 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32203
32204 # Whether or not to disallow shared libs when runtime libs are static.
32205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32206
32207 # Compiler flag to allow reflexive dlopens.
32208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32209
32210 # Compiler flag to generate shared objects directly from archives.
32211 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32212
32213 # Whether the compiler copes with passing no objects directly.
32214 compiler_needs_object=$lt_compiler_needs_object_CXX
32215
32216 # Create an old-style archive from a shared archive.
32217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32218
32219 # Create a temporary old-style archive to link instead of a shared archive.
32220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32221
32222 # Commands used to build a shared archive.
32223 archive_cmds=$lt_archive_cmds_CXX
32224 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32225
32226 # Commands used to build a loadable module if different from building
32227 # a shared archive.
32228 module_cmds=$lt_module_cmds_CXX
32229 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32230
32231 # Whether we are building with GNU ld or not.
32232 with_gnu_ld=$lt_with_gnu_ld_CXX
32233
32234 # Flag that allows shared libraries with undefined symbols to be built.
32235 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32236
32237 # Flag that enforces no undefined symbols.
32238 no_undefined_flag=$lt_no_undefined_flag_CXX
32239
32240 # Flag to hardcode \$libdir into a binary during linking.
32241 # This must work even if \$libdir does not exist
32242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32243
32244 # If ld is used when linking, flag to hardcode \$libdir into a binary
32245 # during linking.  This must work even if \$libdir does not exist.
32246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32247
32248 # Whether we need a single "-rpath" flag with a separated argument.
32249 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32250
32251 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32252 # DIR into the resulting binary.
32253 hardcode_direct=$hardcode_direct_CXX
32254
32255 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32256 # DIR into the resulting binary and the resulting library dependency is
32257 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32258 # library is relocated.
32259 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32260
32261 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32262 # into the resulting binary.
32263 hardcode_minus_L=$hardcode_minus_L_CXX
32264
32265 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32266 # into the resulting binary.
32267 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32268
32269 # Set to "yes" if building a shared library automatically hardcodes DIR
32270 # into the library and all subsequent libraries and executables linked
32271 # against it.
32272 hardcode_automatic=$hardcode_automatic_CXX
32273
32274 # Set to yes if linker adds runtime paths of dependent libraries
32275 # to runtime path list.
32276 inherit_rpath=$inherit_rpath_CXX
32277
32278 # Whether libtool must link a program against all its dependency libraries.
32279 link_all_deplibs=$link_all_deplibs_CXX
32280
32281 # Fix the shell variable \$srcfile for the compiler.
32282 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32283
32284 # Set to "yes" if exported symbols are required.
32285 always_export_symbols=$always_export_symbols_CXX
32286
32287 # The commands to list exported symbols.
32288 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32289
32290 # Symbols that should not be listed in the preloaded symbols.
32291 exclude_expsyms=$lt_exclude_expsyms_CXX
32292
32293 # Symbols that must always be exported.
32294 include_expsyms=$lt_include_expsyms_CXX
32295
32296 # Commands necessary for linking programs (against libraries) with templates.
32297 prelink_cmds=$lt_prelink_cmds_CXX
32298
32299 # Specify filename containing input files.
32300 file_list_spec=$lt_file_list_spec_CXX
32301
32302 # How to hardcode a shared library path into an executable.
32303 hardcode_action=$hardcode_action_CXX
32304
32305 # The directories searched by this compiler when creating a shared library.
32306 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32307
32308 # Dependencies to place before and after the objects being linked to
32309 # create a shared library.
32310 predep_objects=$lt_predep_objects_CXX
32311 postdep_objects=$lt_postdep_objects_CXX
32312 predeps=$lt_predeps_CXX
32313 postdeps=$lt_postdeps_CXX
32314
32315 # The library search path used internally by the compiler when linking
32316 # a shared library.
32317 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32318
32319 # ### END LIBTOOL TAG CONFIG: CXX
32320 _LT_EOF
32321
32322  ;;
32323     "default-1":C)
32324     for ac_file in $CONFIG_FILES; do
32325       # Support "outfile[:infile[:infile...]]"
32326       case "$ac_file" in
32327         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32328       esac
32329       # PO directories have a Makefile.in generated from Makefile.in.in.
32330       case "$ac_file" in */Makefile.in)
32331         # Adjust a relative srcdir.
32332         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32333         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32334         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32335         # In autoconf-2.13 it is called $ac_given_srcdir.
32336         # In autoconf-2.50 it is called $srcdir.
32337         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32338         case "$ac_given_srcdir" in
32339           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32340           /*) top_srcdir="$ac_given_srcdir" ;;
32341           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32342         esac
32343         # Treat a directory as a PO directory if and only if it has a
32344         # POTFILES.in file. This allows packages to have multiple PO
32345         # directories under different names or in different locations.
32346         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32347           rm -f "$ac_dir/POTFILES"
32348           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32349           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32350           POMAKEFILEDEPS="POTFILES.in"
32351           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32352           # on $ac_dir but don't depend on user-specified configuration
32353           # parameters.
32354           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32355             # The LINGUAS file contains the set of available languages.
32356             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32357               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32358             fi
32359             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32360             # Hide the ALL_LINGUAS assigment from automake.
32361             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32362             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32363           else
32364             # The set of available languages was given in configure.in.
32365             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32366           fi
32367           # Compute POFILES
32368           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32369           # Compute UPDATEPOFILES
32370           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32371           # Compute DUMMYPOFILES
32372           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32373           # Compute GMOFILES
32374           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32375           case "$ac_given_srcdir" in
32376             .) srcdirpre= ;;
32377             *) srcdirpre='$(srcdir)/' ;;
32378           esac
32379           POFILES=
32380           UPDATEPOFILES=
32381           DUMMYPOFILES=
32382           GMOFILES=
32383           for lang in $ALL_LINGUAS; do
32384             POFILES="$POFILES $srcdirpre$lang.po"
32385             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32386             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32387             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32388           done
32389           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32390           # environment variable.
32391           INST_LINGUAS=
32392           if test -n "$ALL_LINGUAS"; then
32393             for presentlang in $ALL_LINGUAS; do
32394               useit=no
32395               if test "%UNSET%" != "$LINGUAS"; then
32396                 desiredlanguages="$LINGUAS"
32397               else
32398                 desiredlanguages="$ALL_LINGUAS"
32399               fi
32400               for desiredlang in $desiredlanguages; do
32401                 # Use the presentlang catalog if desiredlang is
32402                 #   a. equal to presentlang, or
32403                 #   b. a variant of presentlang (because in this case,
32404                 #      presentlang can be used as a fallback for messages
32405                 #      which are not translated in the desiredlang catalog).
32406                 case "$desiredlang" in
32407                   "$presentlang"*) useit=yes;;
32408                 esac
32409               done
32410               if test $useit = yes; then
32411                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32412               fi
32413             done
32414           fi
32415           CATALOGS=
32416           if test -n "$INST_LINGUAS"; then
32417             for lang in $INST_LINGUAS; do
32418               CATALOGS="$CATALOGS $lang.gmo"
32419             done
32420           fi
32421           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32422           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"
32423           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32424             if test -f "$f"; then
32425               case "$f" in
32426                 *.orig | *.bak | *~) ;;
32427                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32428               esac
32429             fi
32430           done
32431         fi
32432         ;;
32433       esac
32434     done ;;
32435     "default":C)
32436  ;;
32437
32438   esac
32439 done # for ac_tag
32440
32441
32442 as_fn_exit 0
32443 _ACEOF
32444 ac_clean_files=$ac_clean_files_save
32445
32446 test $ac_write_fail = 0 ||
32447   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
32448
32449
32450 # configure is writing to config.log, and then calls config.status.
32451 # config.status does its own redirection, appending to config.log.
32452 # Unfortunately, on DOS this fails, as config.log is still kept open
32453 # by configure, so config.status won't be able to write to it; its
32454 # output is simply discarded.  So we exec the FD to /dev/null,
32455 # effectively closing config.log, so it can be properly (re)opened and
32456 # appended to by config.status.  When coming back to configure, we
32457 # need to make the FD available again.
32458 if test "$no_create" != yes; then
32459   ac_cs_success=:
32460   ac_config_status_args=
32461   test "$silent" = yes &&
32462     ac_config_status_args="$ac_config_status_args --quiet"
32463   exec 5>/dev/null
32464   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32465   exec 5>>config.log
32466   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32467   # would make configure fail if this is the last instruction.
32468   $ac_cs_success || as_fn_exit $?
32469 fi
32470 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32471   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32472 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32473 fi
32474
32475
32476 if test "${support_bat}" = "yes" ; then
32477    if test "x$QMAKE" = "xnone"; then
32478       as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32479    fi
32480
32481    QMAKEBIN="qmake"
32482    cd src/qt-console
32483    echo "Creating bat Makefile"
32484    touch bat
32485    chmod 755 bat
32486    rm -f Makefile
32487    $QMAKEBIN
32488    ${MAKE:-make} clean
32489    cd ${BUILD_DIR}
32490 fi
32491
32492 if test X"$GCC" = "Xyes" ; then
32493   echo "Doing make of dependencies"
32494   ${MAKE:-make} depend
32495 fi
32496
32497 cd src/qt-console
32498 chmod 755 install_conf_file build-depkgs-qt-console
32499 cd ${BUILD_DIR}
32500
32501 cd scripts
32502 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32503 chmod 755 dvd-handler dvd-simulator
32504 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32505 cd ..
32506
32507 c=updatedb
32508 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
32509 chmod 755 $c/update_postgresql_tables_10_to_11
32510 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
32511 chmod 755 $c/update_postgresql_tables_11_to_12
32512
32513
32514 c=src/cats
32515
32516 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32517 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32518
32519 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32520 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32521
32522 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32523 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32524
32525 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32526 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32527
32528 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
32529 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
32530
32531
32532 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
32533 chmod 755 $c/sqlite
32534 chmod 755 $c/mysql
32535
32536 chmod 755 src/win32/build-depkgs-mingw32
32537
32538 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32539    largefile_support="yes"
32540 fi
32541
32542 if test X"$GCC" = "Xyes" ; then
32543                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32544    if test "x${CCVERSION}" = "x" ; then
32545       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32546    fi
32547    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32548    if test x"${CXXVERSION}" = x ; then
32549       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32550    fi
32551 fi
32552
32553 # clean up any old junk
32554 echo " "
32555 echo "Cleaning up"
32556 echo " "
32557 ${MAKE:-make} clean
32558
32559 echo "
32560 Configuration on `date`:
32561
32562    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32563    Bacula version:           ${BACULA} ${VERSION} (${DATE})
32564    Source code location:     ${srcdir}
32565    Install binaries:         ${sbindir}
32566    Install libraries:        ${libdir}
32567    Install config files:     ${sysconfdir}
32568    Scripts directory:        ${scriptdir}
32569    Archive directory:        ${archivedir}
32570    Working directory:        ${working_dir}
32571    PID directory:            ${piddir}
32572    Subsys directory:         ${subsysdir}
32573    Man directory:            ${mandir}
32574    Data directory:           ${datarootdir}
32575    Plugin directory:         ${plugindir}
32576    C Compiler:               ${CC} ${CCVERSION}
32577    C++ Compiler:             ${CXX} ${CXXVERSION}
32578    Compiler flags:           ${WCFLAGS} ${CFLAGS}
32579    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
32580    Libraries:                ${LIBS}
32581    Statically Linked Tools:  ${support_static_tools}
32582    Statically Linked FD:     ${support_static_fd}
32583    Statically Linked SD:     ${support_static_sd}
32584    Statically Linked DIR:    ${support_static_dir}
32585    Statically Linked CONS:   ${support_static_cons}
32586    Database backends:        ${db_backends}
32587    Database port:            ${db_port}
32588    Database name:            ${db_name}
32589    Database user:            ${db_user}
32590
32591    Job Output Email:         ${job_email}
32592    Traceback Email:          ${dump_email}
32593    SMTP Host Address:        ${smtp_host}
32594
32595    Director Port:            ${dir_port}
32596    File daemon Port:         ${fd_port}
32597    Storage daemon Port:      ${sd_port}
32598
32599    Director User:            ${dir_user}
32600    Director Group:           ${dir_group}
32601    Storage Daemon User:      ${sd_user}
32602    Storage DaemonGroup:      ${sd_group}
32603    File Daemon User:         ${fd_user}
32604    File Daemon Group:        ${fd_group}
32605
32606    Large file support:      $largefile_support
32607    Bacula conio support:    ${got_conio} ${CONS_LIBS}
32608    readline support:        ${got_readline} ${PRTREADLINE_SRC}
32609    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
32610    TLS support:             ${support_tls}
32611    Encryption support:      ${support_crypto}
32612    ZLIB support:            ${have_zlib}
32613    enable-smartalloc:       ${support_smartalloc}
32614    enable-lockmgr:          ${support_lockmgr}
32615    bat support:             ${support_bat}
32616    enable-gnome:            ${support_gnome} ${gnome_version}
32617    enable-bwx-console:      ${support_wx_console} ${wx_version}
32618    enable-tray-monitor:     ${support_tray_monitor}
32619    client-only:             ${build_client_only}
32620    build-dird:              ${build_dird}
32621    build-stored:            ${build_stored}
32622    Plugin support:          ${have_plugins}
32623    AFS support:             ${have_afs}
32624    ACL support:             ${have_acl}
32625    XATTR support:           ${have_xattr}
32626    Python support:          ${support_python} ${PYTHON_LIBS}
32627    Batch insert enabled:    ${support_batch_insert}
32628
32629   " > config.out
32630
32631 # create a small shell script useful for support with
32632 # configure options and config.out info
32633 cat > scripts/bacula_config << EOF
32634 #!/bin/sh
32635 cat << __EOC__
32636 $ $0 $ac_configure_args
32637 EOF
32638 cat config.out >> scripts/bacula_config
32639 echo __EOC__ >> scripts/bacula_config
32640 chmod 755 scripts/bacula_config
32641
32642 cat config.out