1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for rrdtool 1.3.999.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
531 case X$lt_ECHO in
532 X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535 ;;
536 esac
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
544 :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
547 :
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
557 $*
558 _LT_EOF
559 exit 0
560 fi
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
575 fi
576 done
577 fi
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
582 :
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
587 #
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
599 fi
600 done
601 IFS="$lt_save_ifs"
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
625 :
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
648 fi
649 prev="$cmd"
650 done
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
659 fi
660 fi
661 fi
662 fi
663 fi
664 fi
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
676 exec 7<&0 </dev/null 6>&1
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
695 # Identity of this package.
696 PACKAGE_NAME='rrdtool'
697 PACKAGE_TARNAME='rrdtool'
698 PACKAGE_VERSION='1.3.999'
699 PACKAGE_STRING='rrdtool 1.3.999'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL=''
703 # Factoring default headers for most tests.
704 ac_includes_default="\
705 #include <stdio.h>
706 #ifdef HAVE_SYS_TYPES_H
707 # include <sys/types.h>
708 #endif
709 #ifdef HAVE_SYS_STAT_H
710 # include <sys/stat.h>
711 #endif
712 #ifdef STDC_HEADERS
713 # include <stdlib.h>
714 # include <stddef.h>
715 #else
716 # ifdef HAVE_STDLIB_H
717 # include <stdlib.h>
718 # endif
719 #endif
720 #ifdef HAVE_STRING_H
721 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
722 # include <memory.h>
723 # endif
724 # include <string.h>
725 #endif
726 #ifdef HAVE_STRINGS_H
727 # include <strings.h>
728 #endif
729 #ifdef HAVE_INTTYPES_H
730 # include <inttypes.h>
731 #endif
732 #ifdef HAVE_STDINT_H
733 # include <stdint.h>
734 #endif
735 #ifdef HAVE_UNISTD_H
736 # include <unistd.h>
737 #endif"
739 ac_default_prefix=/usr/local/rrdtool-$PACKAGE_VERSION
740 ac_subst_vars='am__EXEEXT_FALSE
741 am__EXEEXT_TRUE
742 LTLIBOBJS
743 LIBOBJS
744 RRDDOCDIR
745 TROFF
746 NROFF
747 COMP_PYTHON
748 PYTHON_INCLUDES
749 pkgpyexecdir
750 pyexecdir
751 pkgpythondir
752 pythondir
753 PYTHON_PLATFORM
754 PYTHON_EXEC_PREFIX
755 PYTHON_PREFIX
756 PYTHON_VERSION
757 PYTHON
758 TCL_INCLUDE_SPEC
759 TCL_PACKAGE_DIR
760 TCL_VERSION
761 TCL_STUB_LIB_SPEC
762 TCL_LD_SEARCH_FLAGS
763 TCL_PACKAGE_PATH
764 TCL_SHLIB_SUFFIX
765 TCL_SHLIB_LD
766 TCL_SHLIB_CFLAGS
767 TCL_PREFIX
768 BUILD_TCL_SITE_FALSE
769 BUILD_TCL_SITE_TRUE
770 BUILD_TCL_FALSE
771 BUILD_TCL_TRUE
772 BUILD_LUA_FALSE
773 BUILD_LUA_TRUE
774 LUA50_FALSE
775 LUA50_TRUE
776 LUA_SITE_LINSTALL_FALSE
777 LUA_SITE_LINSTALL_TRUE
778 LUA_SITE_CINSTALL_FALSE
779 LUA_SITE_CINSTALL_TRUE
780 LUA_NEED_OUR_COMPAT51_FALSE
781 LUA_NEED_OUR_COMPAT51_TRUE
782 LUA_DEFINES
783 LUA_LFLAGS
784 LUA_CFLAGS
785 LUA_INSTALL_LMOD
786 LUA_INSTALL_CMOD
787 COMP_LUA
788 LUA
789 COMP_RUBY
790 RUBY_MAKE_OPTIONS
791 RUBY
792 PERL_VERSION
793 COMP_PERL
794 PERL_MAKE_OPTIONS
795 PERL_CC
796 PERLLDFLAGS
797 PERLLD
798 PERLCCFLAGS
799 PERLCC
800 POD2HTML
801 POD2MAN
802 PERL
803 ALL_LIBS
804 CORE_LIBS
805 PKGCONFIG
806 BUILD_RRDCGI_FALSE
807 BUILD_RRDCGI_TRUE
808 BUILD_LIBDBI_FALSE
809 BUILD_LIBDBI_TRUE
810 BUILD_MULTITHREAD_FALSE
811 BUILD_MULTITHREAD_TRUE
812 PTHREAD_CFLAGS
813 PTHREAD_LIBS
814 PTHREAD_CC
815 acx_pthread_config
816 MULTITHREAD_LDFLAGS
817 MULTITHREAD_CFLAGS
818 BUILD_GETOPT_FALSE
819 BUILD_GETOPT_TRUE
820 RRD_GETOPT_LONG
821 POSUB
822 LTLIBINTL
823 LIBINTL
824 INTLLIBS
825 INTL_LIBTOOL_SUFFIX_PREFIX
826 INTLOBJS
827 GENCAT
828 INSTOBJEXT
829 DATADIRNAME
830 CATOBJEXT
831 USE_INCLUDED_LIBINTL
832 BUILD_INCLUDED_LIBINTL
833 INTLBISON
834 LTLIBICONV
835 LIBICONV
836 HAVE_WPRINTF
837 HAVE_SNPRINTF
838 HAVE_ASPRINTF
839 HAVE_POSIX_PRINTF
840 INTL_MACOSX_LIBS
841 GLIBC21
842 ALLOCA
843 GLIBC2
844 MSGMERGE
845 XGETTEXT
846 GMSGFMT
847 MSGFMT
848 USE_NLS
849 MKINSTALLDIRS
850 RRD_DEFAULT_FONT
851 WERROR
852 OTOOL64
853 OTOOL
854 LIPO
855 NMEDIT
856 DSYMUTIL
857 lt_ECHO
858 RANLIB
859 AR
860 OBJDUMP
861 LN_S
862 NM
863 ac_ct_DUMPBIN
864 DUMPBIN
865 LD
866 FGREP
867 SED
868 LIBTOOL
869 STATIC_PROGRAMS_FALSE
870 STATIC_PROGRAMS_TRUE
871 RRDGRAPH_YLEGEND_ANGLE
872 AM_BACKSLASH
873 AM_DEFAULT_VERBOSITY
874 MAINT
875 MAINTAINER_MODE_FALSE
876 MAINTAINER_MODE_TRUE
877 am__fastdepCC_FALSE
878 am__fastdepCC_TRUE
879 CCDEPMODE
880 AMDEPBACKSLASH
881 AMDEP_FALSE
882 AMDEP_TRUE
883 am__quote
884 am__include
885 DEPDIR
886 am__untar
887 am__tar
888 AMTAR
889 am__leading_dot
890 SET_MAKE
891 AWK
892 mkdir_p
893 MKDIR_P
894 INSTALL_STRIP_PROGRAM
895 STRIP
896 install_sh
897 MAKEINFO
898 AUTOHEADER
899 AUTOMAKE
900 AUTOCONF
901 ACLOCAL
902 VERSION
903 PACKAGE
904 CYGPATH_W
905 am__isrc
906 INSTALL_DATA
907 INSTALL_SCRIPT
908 INSTALL_PROGRAM
909 EGREP
910 GREP
911 CPP
912 OBJEXT
913 EXEEXT
914 ac_ct_CC
915 CPPFLAGS
916 LDFLAGS
917 CFLAGS
918 CC
919 target_os
920 target_vendor
921 target_cpu
922 target
923 host_os
924 host_vendor
925 host_cpu
926 host
927 build_os
928 build_vendor
929 build_cpu
930 build
931 LIBVERS
932 NUMVERS
933 target_alias
934 host_alias
935 build_alias
936 LIBS
937 ECHO_T
938 ECHO_N
939 ECHO_C
940 DEFS
941 mandir
942 localedir
943 libdir
944 psdir
945 pdfdir
946 dvidir
947 htmldir
948 infodir
949 docdir
950 oldincludedir
951 includedir
952 localstatedir
953 sharedstatedir
954 sysconfdir
955 datadir
956 datarootdir
957 libexecdir
958 sbindir
959 bindir
960 program_transform_name
961 prefix
962 exec_prefix
963 PACKAGE_URL
964 PACKAGE_BUGREPORT
965 PACKAGE_STRING
966 PACKAGE_VERSION
967 PACKAGE_TARNAME
968 PACKAGE_NAME
969 PATH_SEPARATOR
970 SHELL
971 PERLFLAGS'
972 ac_subst_files=''
973 ac_user_opts='
974 enable_option_checking
975 enable_dependency_tracking
976 enable_maintainer_mode
977 enable_silent_rules
978 enable_rrdcgi
979 with_rrd_default_font
980 enable_mmap
981 enable_pthread
982 enable_static_programs
983 enable_shared
984 enable_static
985 with_pic
986 enable_fast_install
987 with_gnu_ld
988 enable_libtool_lock
989 enable_nls
990 enable_rpath
991 with_libiconv_prefix
992 with_included_gettext
993 with_libintl_prefix
994 enable_libdbi
995 enable_perl
996 enable_perl_site_install
997 with_perl_options
998 enable_ruby
999 enable_ruby_site_install
1000 with_ruby_options
1001 enable_lua
1002 enable_lua_site_install
1003 enable_tcl
1004 with_tcllib
1005 enable_python
1006 '
1007 ac_precious_vars='build_alias
1008 host_alias
1009 target_alias
1010 CC
1011 CFLAGS
1012 LDFLAGS
1013 LIBS
1014 CPPFLAGS
1015 CPP
1016 RRDGRAPH_YLEGEND_ANGLE
1017 PERLCC
1018 PERLCCFLAGS
1019 PERLLD
1020 PERLLDFLAGS
1021 RRDDOCDIR'
1024 # Initialize some variables set by options.
1025 ac_init_help=
1026 ac_init_version=false
1027 ac_unrecognized_opts=
1028 ac_unrecognized_sep=
1029 # The variables have the same names as the options, with
1030 # dashes changed to underlines.
1031 cache_file=/dev/null
1032 exec_prefix=NONE
1033 no_create=
1034 no_recursion=
1035 prefix=NONE
1036 program_prefix=NONE
1037 program_suffix=NONE
1038 program_transform_name=s,x,x,
1039 silent=
1040 site=
1041 srcdir=
1042 verbose=
1043 x_includes=NONE
1044 x_libraries=NONE
1046 # Installation directory options.
1047 # These are left unexpanded so users can "make install exec_prefix=/foo"
1048 # and all the variables that are supposed to be based on exec_prefix
1049 # by default will actually change.
1050 # Use braces instead of parens because sh, perl, etc. also accept them.
1051 # (The list follows the same order as the GNU Coding Standards.)
1052 bindir='${exec_prefix}/bin'
1053 sbindir='${exec_prefix}/sbin'
1054 libexecdir='${exec_prefix}/libexec'
1055 datarootdir='${prefix}/share'
1056 datadir='${datarootdir}'
1057 sysconfdir='${prefix}/etc'
1058 sharedstatedir='${prefix}/com'
1059 localstatedir='${prefix}/var'
1060 includedir='${prefix}/include'
1061 oldincludedir='/usr/include'
1062 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1063 infodir='${datarootdir}/info'
1064 htmldir='${docdir}'
1065 dvidir='${docdir}'
1066 pdfdir='${docdir}'
1067 psdir='${docdir}'
1068 libdir='${exec_prefix}/lib'
1069 localedir='${datarootdir}/locale'
1070 mandir='${datarootdir}/man'
1072 ac_prev=
1073 ac_dashdash=
1074 for ac_option
1075 do
1076 # If the previous option needs an argument, assign it.
1077 if test -n "$ac_prev"; then
1078 eval $ac_prev=\$ac_option
1079 ac_prev=
1080 continue
1081 fi
1083 case $ac_option in
1084 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1085 *) ac_optarg=yes ;;
1086 esac
1088 # Accept the important Cygnus configure options, so we can diagnose typos.
1090 case $ac_dashdash$ac_option in
1091 --)
1092 ac_dashdash=yes ;;
1094 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1095 ac_prev=bindir ;;
1096 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1097 bindir=$ac_optarg ;;
1099 -build | --build | --buil | --bui | --bu)
1100 ac_prev=build_alias ;;
1101 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1102 build_alias=$ac_optarg ;;
1104 -cache-file | --cache-file | --cache-fil | --cache-fi \
1105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1106 ac_prev=cache_file ;;
1107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1109 cache_file=$ac_optarg ;;
1111 --config-cache | -C)
1112 cache_file=config.cache ;;
1114 -datadir | --datadir | --datadi | --datad)
1115 ac_prev=datadir ;;
1116 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1117 datadir=$ac_optarg ;;
1119 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1120 | --dataroo | --dataro | --datar)
1121 ac_prev=datarootdir ;;
1122 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1123 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1124 datarootdir=$ac_optarg ;;
1126 -disable-* | --disable-*)
1127 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error "invalid feature name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1134 *"
1135 "enable_$ac_useropt"
1136 "*) ;;
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1139 esac
1140 eval enable_$ac_useropt=no ;;
1142 -docdir | --docdir | --docdi | --doc | --do)
1143 ac_prev=docdir ;;
1144 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1145 docdir=$ac_optarg ;;
1147 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1148 ac_prev=dvidir ;;
1149 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1150 dvidir=$ac_optarg ;;
1152 -enable-* | --enable-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error "invalid feature name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "enable_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval enable_$ac_useropt=\$ac_optarg ;;
1168 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1169 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1170 | --exec | --exe | --ex)
1171 ac_prev=exec_prefix ;;
1172 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1173 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1174 | --exec=* | --exe=* | --ex=*)
1175 exec_prefix=$ac_optarg ;;
1177 -gas | --gas | --ga | --g)
1178 # Obsolete; use --with-gas.
1179 with_gas=yes ;;
1181 -help | --help | --hel | --he | -h)
1182 ac_init_help=long ;;
1183 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1184 ac_init_help=recursive ;;
1185 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1186 ac_init_help=short ;;
1188 -host | --host | --hos | --ho)
1189 ac_prev=host_alias ;;
1190 -host=* | --host=* | --hos=* | --ho=*)
1191 host_alias=$ac_optarg ;;
1193 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1194 ac_prev=htmldir ;;
1195 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1196 | --ht=*)
1197 htmldir=$ac_optarg ;;
1199 -includedir | --includedir | --includedi | --included | --include \
1200 | --includ | --inclu | --incl | --inc)
1201 ac_prev=includedir ;;
1202 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1203 | --includ=* | --inclu=* | --incl=* | --inc=*)
1204 includedir=$ac_optarg ;;
1206 -infodir | --infodir | --infodi | --infod | --info | --inf)
1207 ac_prev=infodir ;;
1208 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1209 infodir=$ac_optarg ;;
1211 -libdir | --libdir | --libdi | --libd)
1212 ac_prev=libdir ;;
1213 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1214 libdir=$ac_optarg ;;
1216 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1217 | --libexe | --libex | --libe)
1218 ac_prev=libexecdir ;;
1219 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1220 | --libexe=* | --libex=* | --libe=*)
1221 libexecdir=$ac_optarg ;;
1223 -localedir | --localedir | --localedi | --localed | --locale)
1224 ac_prev=localedir ;;
1225 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1226 localedir=$ac_optarg ;;
1228 -localstatedir | --localstatedir | --localstatedi | --localstated \
1229 | --localstate | --localstat | --localsta | --localst | --locals)
1230 ac_prev=localstatedir ;;
1231 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1232 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1233 localstatedir=$ac_optarg ;;
1235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1236 ac_prev=mandir ;;
1237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1238 mandir=$ac_optarg ;;
1240 -nfp | --nfp | --nf)
1241 # Obsolete; use --without-fp.
1242 with_fp=no ;;
1244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1245 | --no-cr | --no-c | -n)
1246 no_create=yes ;;
1248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1250 no_recursion=yes ;;
1252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1254 | --oldin | --oldi | --old | --ol | --o)
1255 ac_prev=oldincludedir ;;
1256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1259 oldincludedir=$ac_optarg ;;
1261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1262 ac_prev=prefix ;;
1263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1264 prefix=$ac_optarg ;;
1266 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1267 | --program-pre | --program-pr | --program-p)
1268 ac_prev=program_prefix ;;
1269 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1271 program_prefix=$ac_optarg ;;
1273 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1274 | --program-suf | --program-su | --program-s)
1275 ac_prev=program_suffix ;;
1276 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1278 program_suffix=$ac_optarg ;;
1280 -program-transform-name | --program-transform-name \
1281 | --program-transform-nam | --program-transform-na \
1282 | --program-transform-n | --program-transform- \
1283 | --program-transform | --program-transfor \
1284 | --program-transfo | --program-transf \
1285 | --program-trans | --program-tran \
1286 | --progr-tra | --program-tr | --program-t)
1287 ac_prev=program_transform_name ;;
1288 -program-transform-name=* | --program-transform-name=* \
1289 | --program-transform-nam=* | --program-transform-na=* \
1290 | --program-transform-n=* | --program-transform-=* \
1291 | --program-transform=* | --program-transfor=* \
1292 | --program-transfo=* | --program-transf=* \
1293 | --program-trans=* | --program-tran=* \
1294 | --progr-tra=* | --program-tr=* | --program-t=*)
1295 program_transform_name=$ac_optarg ;;
1297 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1298 ac_prev=pdfdir ;;
1299 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1300 pdfdir=$ac_optarg ;;
1302 -psdir | --psdir | --psdi | --psd | --ps)
1303 ac_prev=psdir ;;
1304 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1305 psdir=$ac_optarg ;;
1307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1308 | -silent | --silent | --silen | --sile | --sil)
1309 silent=yes ;;
1311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1312 ac_prev=sbindir ;;
1313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1314 | --sbi=* | --sb=*)
1315 sbindir=$ac_optarg ;;
1317 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1319 | --sharedst | --shareds | --shared | --share | --shar \
1320 | --sha | --sh)
1321 ac_prev=sharedstatedir ;;
1322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1325 | --sha=* | --sh=*)
1326 sharedstatedir=$ac_optarg ;;
1328 -site | --site | --sit)
1329 ac_prev=site ;;
1330 -site=* | --site=* | --sit=*)
1331 site=$ac_optarg ;;
1333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1334 ac_prev=srcdir ;;
1335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1336 srcdir=$ac_optarg ;;
1338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1339 | --syscon | --sysco | --sysc | --sys | --sy)
1340 ac_prev=sysconfdir ;;
1341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1343 sysconfdir=$ac_optarg ;;
1345 -target | --target | --targe | --targ | --tar | --ta | --t)
1346 ac_prev=target_alias ;;
1347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1348 target_alias=$ac_optarg ;;
1350 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1351 verbose=yes ;;
1353 -version | --version | --versio | --versi | --vers | -V)
1354 ac_init_version=: ;;
1356 -with-* | --with-*)
1357 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360 as_fn_error "invalid package name: $ac_useropt"
1361 ac_useropt_orig=$ac_useropt
1362 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363 case $ac_user_opts in
1364 *"
1365 "with_$ac_useropt"
1366 "*) ;;
1367 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1368 ac_unrecognized_sep=', ';;
1369 esac
1370 eval with_$ac_useropt=\$ac_optarg ;;
1372 -without-* | --without-*)
1373 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1374 # Reject names that are not valid shell variable names.
1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1376 as_fn_error "invalid package name: $ac_useropt"
1377 ac_useropt_orig=$ac_useropt
1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379 case $ac_user_opts in
1380 *"
1381 "with_$ac_useropt"
1382 "*) ;;
1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1384 ac_unrecognized_sep=', ';;
1385 esac
1386 eval with_$ac_useropt=no ;;
1388 --x)
1389 # Obsolete; use --with-x.
1390 with_x=yes ;;
1392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1393 | --x-incl | --x-inc | --x-in | --x-i)
1394 ac_prev=x_includes ;;
1395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1397 x_includes=$ac_optarg ;;
1399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1401 ac_prev=x_libraries ;;
1402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1404 x_libraries=$ac_optarg ;;
1406 -*) as_fn_error "unrecognized option: \`$ac_option'
1407 Try \`$0 --help' for more information."
1408 ;;
1410 *=*)
1411 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1412 # Reject names that are not valid shell variable names.
1413 case $ac_envvar in #(
1414 '' | [0-9]* | *[!_$as_cr_alnum]* )
1415 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1416 esac
1417 eval $ac_envvar=\$ac_optarg
1418 export $ac_envvar ;;
1420 *)
1421 # FIXME: should be removed in autoconf 3.0.
1422 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1423 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1424 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1425 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1426 ;;
1428 esac
1429 done
1431 if test -n "$ac_prev"; then
1432 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1433 as_fn_error "missing argument to $ac_option"
1434 fi
1436 if test -n "$ac_unrecognized_opts"; then
1437 case $enable_option_checking in
1438 no) ;;
1439 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1440 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1441 esac
1442 fi
1444 # Check all directory arguments for consistency.
1445 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1446 datadir sysconfdir sharedstatedir localstatedir includedir \
1447 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1448 libdir localedir mandir
1449 do
1450 eval ac_val=\$$ac_var
1451 # Remove trailing slashes.
1452 case $ac_val in
1453 */ )
1454 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1455 eval $ac_var=\$ac_val;;
1456 esac
1457 # Be sure to have absolute directory names.
1458 case $ac_val in
1459 [\\/$]* | ?:[\\/]* ) continue;;
1460 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461 esac
1462 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1463 done
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1468 build=$build_alias
1469 host=$host_alias
1470 target=$target_alias
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474 if test "x$build_alias" = x; then
1475 cross_compiling=maybe
1476 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477 If a cross compiler is detected then cross compile mode will be used." >&2
1478 elif test "x$build_alias" != "x$host_alias"; then
1479 cross_compiling=yes
1480 fi
1481 fi
1483 ac_tool_prefix=
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486 test "$silent" = yes && exec 6>/dev/null
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492 as_fn_error "working directory cannot be determined"
1493 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1494 as_fn_error "pwd does not report name of working directory"
1497 # Find the source files, if location was not specified.
1498 if test -z "$srcdir"; then
1499 ac_srcdir_defaulted=yes
1500 # Try the directory containing this script, then the parent directory.
1501 ac_confdir=`$as_dirname -- "$as_myself" ||
1502 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1503 X"$as_myself" : 'X\(//\)[^/]' \| \
1504 X"$as_myself" : 'X\(//\)$' \| \
1505 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1506 $as_echo X"$as_myself" |
1507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1508 s//\1/
1509 q
1510 }
1511 /^X\(\/\/\)[^/].*/{
1512 s//\1/
1513 q
1514 }
1515 /^X\(\/\/\)$/{
1516 s//\1/
1517 q
1518 }
1519 /^X\(\/\).*/{
1520 s//\1/
1521 q
1522 }
1523 s/.*/./; q'`
1524 srcdir=$ac_confdir
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526 srcdir=..
1527 fi
1528 else
1529 ac_srcdir_defaulted=no
1530 fi
1531 if test ! -r "$srcdir/$ac_unique_file"; then
1532 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1533 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1534 fi
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 ac_abs_confdir=`(
1537 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1538 pwd)`
1539 # When building in place, set srcdir=.
1540 if test "$ac_abs_confdir" = "$ac_pwd"; then
1541 srcdir=.
1542 fi
1543 # Remove unnecessary trailing slashes from srcdir.
1544 # Double slashes in file names in object file debugging info
1545 # mess up M-x gdb in Emacs.
1546 case $srcdir in
1547 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1548 esac
1549 for ac_var in $ac_precious_vars; do
1550 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1551 eval ac_env_${ac_var}_value=\$${ac_var}
1552 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1553 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1554 done
1556 #
1557 # Report the --help message.
1558 #
1559 if test "$ac_init_help" = "long"; then
1560 # Omit some internal or obsolete options to make the list less imposing.
1561 # This message is too long to be a string in the A/UX 3.1 sh.
1562 cat <<_ACEOF
1563 \`configure' configures rrdtool 1.3.999 to adapt to many kinds of systems.
1565 Usage: $0 [OPTION]... [VAR=VALUE]...
1567 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1568 VAR=VALUE. See below for descriptions of some of the useful variables.
1570 Defaults for the options are specified in brackets.
1572 Configuration:
1573 -h, --help display this help and exit
1574 --help=short display options specific to this package
1575 --help=recursive display the short help of all the included packages
1576 -V, --version display version information and exit
1577 -q, --quiet, --silent do not print \`checking...' messages
1578 --cache-file=FILE cache test results in FILE [disabled]
1579 -C, --config-cache alias for \`--cache-file=config.cache'
1580 -n, --no-create do not create output files
1581 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1583 Installation directories:
1584 --prefix=PREFIX install architecture-independent files in PREFIX
1585 [$ac_default_prefix]
1586 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1587 [PREFIX]
1589 By default, \`make install' will install all the files in
1590 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1591 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1592 for instance \`--prefix=\$HOME'.
1594 For better control, use the options below.
1596 Fine tuning of the installation directories:
1597 --bindir=DIR user executables [EPREFIX/bin]
1598 --sbindir=DIR system admin executables [EPREFIX/sbin]
1599 --libexecdir=DIR program executables [EPREFIX/libexec]
1600 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1601 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1602 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1603 --libdir=DIR object code libraries [EPREFIX/lib]
1604 --includedir=DIR C header files [PREFIX/include]
1605 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1606 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1607 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1608 --infodir=DIR info documentation [DATAROOTDIR/info]
1609 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1610 --mandir=DIR man documentation [DATAROOTDIR/man]
1611 --docdir=DIR documentation root [DATAROOTDIR/doc/rrdtool]
1612 --htmldir=DIR html documentation [DOCDIR]
1613 --dvidir=DIR dvi documentation [DOCDIR]
1614 --pdfdir=DIR pdf documentation [DOCDIR]
1615 --psdir=DIR ps documentation [DOCDIR]
1616 _ACEOF
1618 cat <<\_ACEOF
1620 Program names:
1621 --program-prefix=PREFIX prepend PREFIX to installed program names
1622 --program-suffix=SUFFIX append SUFFIX to installed program names
1623 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1625 System types:
1626 --build=BUILD configure for building on BUILD [guessed]
1627 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1628 --target=TARGET configure for building compilers for TARGET [HOST]
1629 _ACEOF
1630 fi
1632 if test -n "$ac_init_help"; then
1633 case $ac_init_help in
1634 short | recursive ) echo "Configuration of rrdtool 1.3.999:";;
1635 esac
1636 cat <<\_ACEOF
1638 Optional Features:
1639 --disable-option-checking ignore unrecognized --enable/--with options
1640 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1641 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1642 --disable-dependency-tracking speeds up one-time build
1643 --enable-dependency-tracking do not reject slow dependency extractors
1644 --enable-maintainer-mode enable make rules and dependencies not useful
1645 (and sometimes confusing) to the casual installer
1646 --enable-silent-rules less verbose build output (undo: `make V=1')
1647 --disable-silent-rules verbose build output (undo: `make V=0')
1648 --disable-rrdcgi disable building of rrdcgi
1649 --disable-mmap disable mmap in rrd_update, use seek+write instead
1650 --disable-pthread disable multithread support
1651 --enable-static-programs
1652 Build static programs
1653 --enable-shared[=PKGS] build shared libraries [default=yes]
1654 --enable-static[=PKGS] build static libraries [default=yes]
1655 --enable-fast-install[=PKGS]
1656 optimize for fast installation [default=yes]
1657 --disable-libtool-lock avoid locking (might break parallel builds)
1658 --disable-nls do not use Native Language Support
1659 --disable-rpath do not hardcode runtime library paths
1660 --disable-libdbi do not build in support for libdbi
1661 --disable-perl do not build the perl modules
1662 --enable-perl-site-install
1663 by default the rrdtool perl modules are installed
1664 together with rrdtool in $prefix/lib/perl. You have
1665 to put a 'use lib qw($prefix/lib/perl)' into your
1666 scripts when you want to use them. When you set this
1667 option the perl modules will get installed wherever
1668 your perl setup thinks it is best.
1669 --disable-ruby do not build the ruby modules
1670 --enable-ruby-site-install
1671 by default the rrdtool ruby modules are installed
1672 together with rrdtool in $prefix/lib/ruby. You have
1673 to add $prefix/lib/ruby/$ruby_version/$sitearch to
1674 your $: variable for ruby to find the RRD.so file.
1675 --disable-lua do not build the lua modules
1676 --enable-lua-site-install
1677 by default the lua module is installed together with
1678 rrdtool in $prefix/lib/lua/$lua_version. You have to
1679 add $prefix/lib/lua/$lua_version/?.so to
1680 package.cpath for lua to find 'rrd.so'. For lua 5.0
1681 you may also need to change LUA_PATH to the same
1682 dir, to require 'compat-5.1'. When you set this
1683 option the lua modules will get installed wherever
1684 your Lua setup thinks it is best. WARNING: if you
1685 set this option, system lua modules compat-5.1.lua
1686 and rrd.so, if any, may be overwritten.
1687 --disable-tcl do not build the tcl modules
1688 --enable-tcl-site install the tcl extension in the tcl tree
1689 --disable-python do not build the python modules
1691 Optional Packages:
1692 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1693 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1694 --with-rrd-default-font=OPTIONS set the full path to your default font.
1695 --with-pic try to use only PIC/non-PIC objects [default=use
1696 both]
1697 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1698 --with-gnu-ld assume the C compiler uses GNU ld default=no
1699 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1700 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1701 --with-included-gettext use the GNU gettext library included here
1702 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1703 --without-libintl-prefix don't search for libintl in includedir and libdir
1704 --with-perl-options=OPTIONS options to pass on command-line when
1705 generating Makefile from Makefile.PL. If you set this
1706 option, interesting things may happen unless you know
1707 what you are doing!
1708 --with-ruby-options=OPTIONS options to pass on command-line when
1709 generating Makefile from extconf.rb. If you set this
1710 option, interesting things may happen unless you know
1711 what you are doing!
1712 --with-tcllib=DIR location of the tclConfig.sh
1714 Some influential environment variables:
1715 CC C compiler command
1716 CFLAGS C compiler flags
1717 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1718 nonstandard directory <lib dir>
1719 LIBS libraries to pass to the linker, e.g. -l<library>
1720 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1721 you have headers in a nonstandard directory <include dir>
1722 CPP C preprocessor
1723 RRDGRAPH_YLEGEND_ANGLE
1724 Vertical label angle: -90.0 (default) or 90.0
1725 PERLCC C compiler for Perl modules
1726 PERLCCFLAGS CC flags for Perl modules
1727 PERLLD Linker for Perl modules
1728 PERLLDFLAGS LD flags for Perl modules
1729 RRDDOCDIR [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1731 Use these variables to override the choices made by `configure' or to help
1732 it to find libraries and programs with nonstandard names/locations.
1734 Report bugs to the package provider.
1735 _ACEOF
1736 ac_status=$?
1737 fi
1739 if test "$ac_init_help" = "recursive"; then
1740 # If there are subdirs, report their specific --help.
1741 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1742 test -d "$ac_dir" ||
1743 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1744 continue
1745 ac_builddir=.
1747 case "$ac_dir" in
1748 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1749 *)
1750 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1751 # A ".." for each directory in $ac_dir_suffix.
1752 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1753 case $ac_top_builddir_sub in
1754 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1755 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1756 esac ;;
1757 esac
1758 ac_abs_top_builddir=$ac_pwd
1759 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1760 # for backward compatibility:
1761 ac_top_builddir=$ac_top_build_prefix
1763 case $srcdir in
1764 .) # We are building in place.
1765 ac_srcdir=.
1766 ac_top_srcdir=$ac_top_builddir_sub
1767 ac_abs_top_srcdir=$ac_pwd ;;
1768 [\\/]* | ?:[\\/]* ) # Absolute name.
1769 ac_srcdir=$srcdir$ac_dir_suffix;
1770 ac_top_srcdir=$srcdir
1771 ac_abs_top_srcdir=$srcdir ;;
1772 *) # Relative name.
1773 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1774 ac_top_srcdir=$ac_top_build_prefix$srcdir
1775 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1776 esac
1777 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1779 cd "$ac_dir" || { ac_status=$?; continue; }
1780 # Check for guested configure.
1781 if test -f "$ac_srcdir/configure.gnu"; then
1782 echo &&
1783 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1784 elif test -f "$ac_srcdir/configure"; then
1785 echo &&
1786 $SHELL "$ac_srcdir/configure" --help=recursive
1787 else
1788 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1789 fi || ac_status=$?
1790 cd "$ac_pwd" || { ac_status=$?; break; }
1791 done
1792 fi
1794 test -n "$ac_init_help" && exit $ac_status
1795 if $ac_init_version; then
1796 cat <<\_ACEOF
1797 rrdtool configure 1.3.999
1798 generated by GNU Autoconf 2.64
1800 Copyright (C) 2009 Free Software Foundation, Inc.
1801 This configure script is free software; the Free Software Foundation
1802 gives unlimited permission to copy, distribute and modify it.
1803 _ACEOF
1804 exit
1805 fi
1807 ## ------------------------ ##
1808 ## Autoconf initialization. ##
1809 ## ------------------------ ##
1811 # ac_fn_c_try_compile LINENO
1812 # --------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_c_try_compile ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext
1818 if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1842 ac_retval=1
1843 fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
1847 } # ac_fn_c_try_compile
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_cpp ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } >/dev/null && {
1871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872 test ! -s conftest.err
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1879 ac_retval=1
1880 fi
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 return $ac_retval
1884 } # ac_fn_c_try_cpp
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1890 # accordingly.
1891 ac_fn_c_check_header_mongrel ()
1892 {
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 else
1904 # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 $4
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913 ac_header_compiler=yes
1914 else
1915 ac_header_compiler=no
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_cpp "$LINENO"; then :
1929 ac_header_preproc=yes
1930 else
1931 ac_header_preproc=no
1932 fi
1933 rm -f conftest.err conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1937 # So? What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 yes:no: )
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944 ;;
1945 no:yes:* )
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956 ;;
1957 esac
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 eval "$3=\$ac_header_compiler"
1964 fi
1965 eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 fi
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971 } # ac_fn_c_check_header_mongrel
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1977 ac_fn_c_try_run ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if { { ac_try="$ac_link"
1981 case "(($ac_try" in
1982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983 *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987 (eval "$ac_link") 2>&5
1988 ac_status=$?
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991 { { case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_try") 2>&5
1998 ac_status=$?
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; }; }; then :
2001 ac_retval=0
2002 else
2003 $as_echo "$as_me: program exited with status $ac_status" >&5
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2007 ac_retval=$ac_status
2008 fi
2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011 return $ac_retval
2013 } # ac_fn_c_try_run
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile ()
2020 {
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025 $as_echo_n "(cached) " >&6
2026 else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $4
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 eval "$3=yes"
2034 else
2035 eval "$3=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044 } # ac_fn_c_check_header_compile
2046 # ac_fn_c_try_link LINENO
2047 # -----------------------
2048 # Try to link conftest.$ac_ext, and return whether this succeeded.
2049 ac_fn_c_try_link ()
2050 {
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 rm -f conftest.$ac_objext conftest$ac_exeext
2053 if { { ac_try="$ac_link"
2054 case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2057 esac
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_link") 2>conftest.err
2061 ac_status=$?
2062 if test -s conftest.err; then
2063 grep -v '^ *+' conftest.err >conftest.er1
2064 cat conftest.er1 >&5
2065 mv -f conftest.er1 conftest.err
2066 fi
2067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2068 test $ac_status = 0; } && {
2069 test -z "$ac_c_werror_flag" ||
2070 test ! -s conftest.err
2071 } && test -s conftest$ac_exeext && {
2072 test "$cross_compiling" = yes ||
2073 $as_test_x conftest$ac_exeext
2074 }; then :
2075 ac_retval=0
2076 else
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2080 ac_retval=1
2081 fi
2082 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2083 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2084 # interfere with the next link command; also delete a directory that is
2085 # left behind by Apple's compiler. We do this before executing the actions.
2086 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 return $ac_retval
2090 } # ac_fn_c_try_link
2092 # ac_fn_c_check_func LINENO FUNC VAR
2093 # ----------------------------------
2094 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2095 ac_fn_c_check_func ()
2096 {
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099 $as_echo_n "checking for $2... " >&6; }
2100 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2101 $as_echo_n "(cached) " >&6
2102 else
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2107 #define $2 innocuous_$2
2109 /* System header to define __stub macros and hopefully few prototypes,
2110 which can conflict with char $2 (); below.
2111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2112 <limits.h> exists even on freestanding compilers. */
2114 #ifdef __STDC__
2115 # include <limits.h>
2116 #else
2117 # include <assert.h>
2118 #endif
2120 #undef $2
2122 /* Override any GCC internal prototype to avoid an error.
2123 Use char because int might match the return type of a GCC
2124 builtin and then its argument prototype would still apply. */
2125 #ifdef __cplusplus
2126 extern "C"
2127 #endif
2128 char $2 ();
2129 /* The GNU C library defines this for functions which it implements
2130 to always fail with ENOSYS. Some functions are actually named
2131 something starting with __ and the normal name is an alias. */
2132 #if defined __stub_$2 || defined __stub___$2
2133 choke me
2134 #endif
2136 int
2137 main ()
2138 {
2139 return $2 ();
2140 ;
2141 return 0;
2142 }
2143 _ACEOF
2144 if ac_fn_c_try_link "$LINENO"; then :
2145 eval "$3=yes"
2146 else
2147 eval "$3=no"
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext \
2150 conftest$ac_exeext conftest.$ac_ext
2151 fi
2152 eval ac_res=\$$3
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2157 } # ac_fn_c_check_func
2159 # ac_fn_c_check_decl LINENO SYMBOL VAR
2160 # ------------------------------------
2161 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2162 ac_fn_c_check_decl ()
2163 {
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2166 $as_echo_n "checking whether $2 is declared... " >&6; }
2167 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2168 $as_echo_n "(cached) " >&6
2169 else
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2172 $4
2173 int
2174 main ()
2175 {
2176 #ifndef $2
2177 (void) $2;
2178 #endif
2180 ;
2181 return 0;
2182 }
2183 _ACEOF
2184 if ac_fn_c_try_compile "$LINENO"; then :
2185 eval "$3=yes"
2186 else
2187 eval "$3=no"
2188 fi
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 fi
2191 eval ac_res=\$$3
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 } # ac_fn_c_check_decl
2198 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2199 # -------------------------------------------
2200 # Tests whether TYPE exists after having included INCLUDES, setting cache
2201 # variable VAR accordingly.
2202 ac_fn_c_check_type ()
2203 {
2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206 $as_echo_n "checking for $2... " >&6; }
2207 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2208 $as_echo_n "(cached) " >&6
2209 else
2210 eval "$3=no"
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2213 $4
2214 int
2215 main ()
2216 {
2217 if (sizeof ($2))
2218 return 0;
2219 ;
2220 return 0;
2221 }
2222 _ACEOF
2223 if ac_fn_c_try_compile "$LINENO"; then :
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $4
2227 int
2228 main ()
2229 {
2230 if (sizeof (($2)))
2231 return 0;
2232 ;
2233 return 0;
2234 }
2235 _ACEOF
2236 if ac_fn_c_try_compile "$LINENO"; then :
2238 else
2239 eval "$3=yes"
2240 fi
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 fi
2245 eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250 } # ac_fn_c_check_type
2252 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2253 # --------------------------------------------
2254 # Tries to find the compile-time value of EXPR in a program that includes
2255 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2256 # computed
2257 ac_fn_c_compute_int ()
2258 {
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 if test "$cross_compiling" = yes; then
2261 # Depending upon the size, compute the lo and hi bounds.
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2264 $4
2265 int
2266 main ()
2267 {
2268 static int test_array [1 - 2 * !(($2) >= 0)];
2269 test_array [0] = 0
2271 ;
2272 return 0;
2273 }
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276 ac_lo=0 ac_mid=0
2277 while :; do
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2280 $4
2281 int
2282 main ()
2283 {
2284 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2285 test_array [0] = 0
2287 ;
2288 return 0;
2289 }
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 ac_hi=$ac_mid; break
2293 else
2294 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2295 if test $ac_lo -le $ac_mid; then
2296 ac_lo= ac_hi=
2297 break
2298 fi
2299 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2300 fi
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 done
2303 else
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2306 $4
2307 int
2308 main ()
2309 {
2310 static int test_array [1 - 2 * !(($2) < 0)];
2311 test_array [0] = 0
2313 ;
2314 return 0;
2315 }
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"; then :
2318 ac_hi=-1 ac_mid=-1
2319 while :; do
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2322 $4
2323 int
2324 main ()
2325 {
2326 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2327 test_array [0] = 0
2329 ;
2330 return 0;
2331 }
2332 _ACEOF
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334 ac_lo=$ac_mid; break
2335 else
2336 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2337 if test $ac_mid -le $ac_hi; then
2338 ac_lo= ac_hi=
2339 break
2340 fi
2341 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2342 fi
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 done
2345 else
2346 ac_lo= ac_hi=
2347 fi
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 fi
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 # Binary search between lo and hi bounds.
2352 while test "x$ac_lo" != "x$ac_hi"; do
2353 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2356 $4
2357 int
2358 main ()
2359 {
2360 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2361 test_array [0] = 0
2363 ;
2364 return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_c_try_compile "$LINENO"; then :
2368 ac_hi=$ac_mid
2369 else
2370 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2371 fi
2372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 done
2374 case $ac_lo in #((
2375 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2376 '') ac_retval=1 ;;
2377 esac
2378 else
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2381 $4
2382 static long int longval () { return $2; }
2383 static unsigned long int ulongval () { return $2; }
2384 #include <stdio.h>
2385 #include <stdlib.h>
2386 int
2387 main ()
2388 {
2390 FILE *f = fopen ("conftest.val", "w");
2391 if (! f)
2392 return 1;
2393 if (($2) < 0)
2394 {
2395 long int i = longval ();
2396 if (i != ($2))
2397 return 1;
2398 fprintf (f, "%ld", i);
2399 }
2400 else
2401 {
2402 unsigned long int i = ulongval ();
2403 if (i != ($2))
2404 return 1;
2405 fprintf (f, "%lu", i);
2406 }
2407 /* Do not output a trailing newline, as this causes \r\n confusion
2408 on some platforms. */
2409 return ferror (f) || fclose (f) != 0;
2411 ;
2412 return 0;
2413 }
2414 _ACEOF
2415 if ac_fn_c_try_run "$LINENO"; then :
2416 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2417 else
2418 ac_retval=1
2419 fi
2420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2421 conftest.$ac_objext conftest.beam conftest.$ac_ext
2422 rm -f conftest.val
2424 fi
2425 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2426 return $ac_retval
2428 } # ac_fn_c_compute_int
2429 cat >config.log <<_ACEOF
2430 This file contains any messages produced by compilers while
2431 running configure, to aid debugging if configure makes a mistake.
2433 It was created by rrdtool $as_me 1.3.999, which was
2434 generated by GNU Autoconf 2.64. Invocation command line was
2436 $ $0 $@
2438 _ACEOF
2439 exec 5>>config.log
2440 {
2441 cat <<_ASUNAME
2442 ## --------- ##
2443 ## Platform. ##
2444 ## --------- ##
2446 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2447 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2448 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2449 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2450 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2452 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2453 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2455 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2456 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2457 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2458 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2459 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2460 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2461 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2463 _ASUNAME
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH
2467 do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 $as_echo "PATH: $as_dir"
2471 done
2472 IFS=$as_save_IFS
2474 } >&5
2476 cat >&5 <<_ACEOF
2479 ## ----------- ##
2480 ## Core tests. ##
2481 ## ----------- ##
2483 _ACEOF
2486 # Keep a trace of the command line.
2487 # Strip out --no-create and --no-recursion so they do not pile up.
2488 # Strip out --silent because we don't want to record it for future runs.
2489 # Also quote any args containing shell meta-characters.
2490 # Make two passes to allow for proper duplicate-argument suppression.
2491 ac_configure_args=
2492 ac_configure_args0=
2493 ac_configure_args1=
2494 ac_must_keep_next=false
2495 for ac_pass in 1 2
2496 do
2497 for ac_arg
2498 do
2499 case $ac_arg in
2500 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2502 | -silent | --silent | --silen | --sile | --sil)
2503 continue ;;
2504 *\'*)
2505 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2506 esac
2507 case $ac_pass in
2508 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2509 2)
2510 as_fn_append ac_configure_args1 " '$ac_arg'"
2511 if test $ac_must_keep_next = true; then
2512 ac_must_keep_next=false # Got value, back to normal.
2513 else
2514 case $ac_arg in
2515 *=* | --config-cache | -C | -disable-* | --disable-* \
2516 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2517 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2518 | -with-* | --with-* | -without-* | --without-* | --x)
2519 case "$ac_configure_args0 " in
2520 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2521 esac
2522 ;;
2523 -* ) ac_must_keep_next=true ;;
2524 esac
2525 fi
2526 as_fn_append ac_configure_args " '$ac_arg'"
2527 ;;
2528 esac
2529 done
2530 done
2531 { ac_configure_args0=; unset ac_configure_args0;}
2532 { ac_configure_args1=; unset ac_configure_args1;}
2534 # When interrupted or exit'd, cleanup temporary files, and complete
2535 # config.log. We remove comments because anyway the quotes in there
2536 # would cause problems or look ugly.
2537 # WARNING: Use '\'' to represent an apostrophe within the trap.
2538 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2539 trap 'exit_status=$?
2540 # Save into config.log some information that might help in debugging.
2541 {
2542 echo
2544 cat <<\_ASBOX
2545 ## ---------------- ##
2546 ## Cache variables. ##
2547 ## ---------------- ##
2548 _ASBOX
2549 echo
2550 # The following way of writing the cache mishandles newlines in values,
2551 (
2552 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2553 eval ac_val=\$$ac_var
2554 case $ac_val in #(
2555 *${as_nl}*)
2556 case $ac_var in #(
2557 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2558 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2559 esac
2560 case $ac_var in #(
2561 _ | IFS | as_nl) ;; #(
2562 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2563 *) { eval $ac_var=; unset $ac_var;} ;;
2564 esac ;;
2565 esac
2566 done
2567 (set) 2>&1 |
2568 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2569 *${as_nl}ac_space=\ *)
2570 sed -n \
2571 "s/'\''/'\''\\\\'\'''\''/g;
2572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2573 ;; #(
2574 *)
2575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2576 ;;
2577 esac |
2578 sort
2579 )
2580 echo
2582 cat <<\_ASBOX
2583 ## ----------------- ##
2584 ## Output variables. ##
2585 ## ----------------- ##
2586 _ASBOX
2587 echo
2588 for ac_var in $ac_subst_vars
2589 do
2590 eval ac_val=\$$ac_var
2591 case $ac_val in
2592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2593 esac
2594 $as_echo "$ac_var='\''$ac_val'\''"
2595 done | sort
2596 echo
2598 if test -n "$ac_subst_files"; then
2599 cat <<\_ASBOX
2600 ## ------------------- ##
2601 ## File substitutions. ##
2602 ## ------------------- ##
2603 _ASBOX
2604 echo
2605 for ac_var in $ac_subst_files
2606 do
2607 eval ac_val=\$$ac_var
2608 case $ac_val in
2609 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2610 esac
2611 $as_echo "$ac_var='\''$ac_val'\''"
2612 done | sort
2613 echo
2614 fi
2616 if test -s confdefs.h; then
2617 cat <<\_ASBOX
2618 ## ----------- ##
2619 ## confdefs.h. ##
2620 ## ----------- ##
2621 _ASBOX
2622 echo
2623 cat confdefs.h
2624 echo
2625 fi
2626 test "$ac_signal" != 0 &&
2627 $as_echo "$as_me: caught signal $ac_signal"
2628 $as_echo "$as_me: exit $exit_status"
2629 } >&5
2630 rm -f core *.core core.conftest.* &&
2631 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2632 exit $exit_status
2633 ' 0
2634 for ac_signal in 1 2 13 15; do
2635 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2636 done
2637 ac_signal=0
2639 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2640 rm -f -r conftest* confdefs.h
2642 $as_echo "/* confdefs.h */" > confdefs.h
2644 # Predefined preprocessor variables.
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_NAME "$PACKAGE_NAME"
2648 _ACEOF
2650 cat >>confdefs.h <<_ACEOF
2651 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2652 _ACEOF
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2656 _ACEOF
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_STRING "$PACKAGE_STRING"
2660 _ACEOF
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2664 _ACEOF
2666 cat >>confdefs.h <<_ACEOF
2667 #define PACKAGE_URL "$PACKAGE_URL"
2668 _ACEOF
2671 # Let the site file select an alternate cache file if it wants to.
2672 # Prefer an explicitly selected file to automatically selected ones.
2673 ac_site_file1=NONE
2674 ac_site_file2=NONE
2675 if test -n "$CONFIG_SITE"; then
2676 ac_site_file1=$CONFIG_SITE
2677 elif test "x$prefix" != xNONE; then
2678 ac_site_file1=$prefix/share/config.site
2679 ac_site_file2=$prefix/etc/config.site
2680 else
2681 ac_site_file1=$ac_default_prefix/share/config.site
2682 ac_site_file2=$ac_default_prefix/etc/config.site
2683 fi
2684 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2685 do
2686 test "x$ac_site_file" = xNONE && continue
2687 if test -r "$ac_site_file"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2689 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2690 sed 's/^/| /' "$ac_site_file" >&5
2691 . "$ac_site_file"
2692 fi
2693 done
2695 if test -r "$cache_file"; then
2696 # Some versions of bash will fail to source /dev/null (special
2697 # files actually), so we avoid doing that.
2698 if test -f "$cache_file"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2700 $as_echo "$as_me: loading cache $cache_file" >&6;}
2701 case $cache_file in
2702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2703 *) . "./$cache_file";;
2704 esac
2705 fi
2706 else
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2708 $as_echo "$as_me: creating cache $cache_file" >&6;}
2709 >$cache_file
2710 fi
2712 # Check that the precious variables saved in the cache have kept the same
2713 # value.
2714 ac_cache_corrupted=false
2715 for ac_var in $ac_precious_vars; do
2716 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2717 eval ac_new_set=\$ac_env_${ac_var}_set
2718 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2719 eval ac_new_val=\$ac_env_${ac_var}_value
2720 case $ac_old_set,$ac_new_set in
2721 set,)
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2723 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2724 ac_cache_corrupted=: ;;
2725 ,set)
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2727 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2728 ac_cache_corrupted=: ;;
2729 ,);;
2730 *)
2731 if test "x$ac_old_val" != "x$ac_new_val"; then
2732 # differences in whitespace do not lead to failure.
2733 ac_old_val_w=`echo x $ac_old_val`
2734 ac_new_val_w=`echo x $ac_new_val`
2735 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2737 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2738 ac_cache_corrupted=:
2739 else
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2741 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2742 eval $ac_var=\$ac_old_val
2743 fi
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2745 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2747 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2748 fi;;
2749 esac
2750 # Pass precious variables to config.status.
2751 if test "$ac_new_set" = set; then
2752 case $ac_new_val in
2753 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2754 *) ac_arg=$ac_var=$ac_new_val ;;
2755 esac
2756 case " $ac_configure_args " in
2757 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2758 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2759 esac
2760 fi
2761 done
2762 if $ac_cache_corrupted; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2766 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2767 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2768 fi
2769 ## -------------------- ##
2770 ## Main body of script. ##
2771 ## -------------------- ##
2773 ac_ext=c
2774 ac_cpp='$CPP $CPPFLAGS'
2775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 NUMVERS=1.3999
2784 LIBVERS=5:0:1
2787 ac_aux_dir=
2788 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2789 for ac_t in install-sh install.sh shtool; do
2790 if test -f "$ac_dir/$ac_t"; then
2791 ac_aux_dir=$ac_dir
2792 ac_install_sh="$ac_aux_dir/$ac_t -c"
2793 break 2
2794 fi
2795 done
2796 done
2797 if test -z "$ac_aux_dir"; then
2798 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2799 fi
2801 # These three variables are undocumented and unsupported,
2802 # and are intended to be withdrawn in a future Autoconf release.
2803 # They can cause serious problems if a builder's source tree is in a directory
2804 # whose full name contains unusual characters.
2805 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2806 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2807 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2810 # Make sure we can run config.sub.
2811 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2812 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2815 $as_echo_n "checking build system type... " >&6; }
2816 if test "${ac_cv_build+set}" = set; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 ac_build_alias=$build_alias
2820 test "x$ac_build_alias" = x &&
2821 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2822 test "x$ac_build_alias" = x &&
2823 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2824 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2825 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2827 fi
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2829 $as_echo "$ac_cv_build" >&6; }
2830 case $ac_cv_build in
2831 *-*-*) ;;
2832 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2833 esac
2834 build=$ac_cv_build
2835 ac_save_IFS=$IFS; IFS='-'
2836 set x $ac_cv_build
2837 shift
2838 build_cpu=$1
2839 build_vendor=$2
2840 shift; shift
2841 # Remember, the first character of IFS is used to create $*,
2842 # except with old shells:
2843 build_os=$*
2844 IFS=$ac_save_IFS
2845 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2849 $as_echo_n "checking host system type... " >&6; }
2850 if test "${ac_cv_host+set}" = set; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 if test "x$host_alias" = x; then
2854 ac_cv_host=$ac_cv_build
2855 else
2856 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2857 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2858 fi
2860 fi
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2862 $as_echo "$ac_cv_host" >&6; }
2863 case $ac_cv_host in
2864 *-*-*) ;;
2865 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2866 esac
2867 host=$ac_cv_host
2868 ac_save_IFS=$IFS; IFS='-'
2869 set x $ac_cv_host
2870 shift
2871 host_cpu=$1
2872 host_vendor=$2
2873 shift; shift
2874 # Remember, the first character of IFS is used to create $*,
2875 # except with old shells:
2876 host_os=$*
2877 IFS=$ac_save_IFS
2878 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2882 $as_echo_n "checking target system type... " >&6; }
2883 if test "${ac_cv_target+set}" = set; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test "x$target_alias" = x; then
2887 ac_cv_target=$ac_cv_host
2888 else
2889 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2890 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2891 fi
2893 fi
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2895 $as_echo "$ac_cv_target" >&6; }
2896 case $ac_cv_target in
2897 *-*-*) ;;
2898 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2899 esac
2900 target=$ac_cv_target
2901 ac_save_IFS=$IFS; IFS='-'
2902 set x $ac_cv_target
2903 shift
2904 target_cpu=$1
2905 target_vendor=$2
2906 shift; shift
2907 # Remember, the first character of IFS is used to create $*,
2908 # except with old shells:
2909 target_os=$*
2910 IFS=$ac_save_IFS
2911 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2914 # The aliases save the names the user supplied, while $host etc.
2915 # will get canonicalized.
2916 test -n "$target_alias" &&
2917 test "$program_prefix$program_suffix$program_transform_name" = \
2918 NONENONEs,x,x, &&
2919 program_prefix=${target_alias}-
2920 ac_ext=c
2921 ac_cpp='$CPP $CPPFLAGS'
2922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if test "${ac_cv_prog_CC+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947 done
2948 done
2949 IFS=$as_save_IFS
2951 fi
2952 fi
2953 CC=$ac_cv_prog_CC
2954 if test -n "$CC"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2963 fi
2964 if test -z "$ac_cv_prog_CC"; then
2965 ac_ct_CC=$CC
2966 # Extract the first word of "gcc", so it can be a program name with args.
2967 set dummy gcc; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$ac_ct_CC"; then
2974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_ac_ct_CC="gcc"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2991 fi
2992 fi
2993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2994 if test -n "$ac_ct_CC"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2996 $as_echo "$ac_ct_CC" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3002 if test "x$ac_ct_CC" = x; then
3003 CC=""
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned=yes ;;
3010 esac
3011 CC=$ac_ct_CC
3012 fi
3013 else
3014 CC="$ac_cv_prog_CC"
3015 fi
3017 if test -z "$CC"; then
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}cc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_CC+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_CC="${ac_tool_prefix}cc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3056 fi
3057 fi
3058 if test -z "$CC"; then
3059 # Extract the first word of "cc", so it can be a program name with args.
3060 set dummy cc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if test "${ac_cv_prog_CC+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$CC"; then
3067 ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 ac_prog_rejected=no
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3078 ac_prog_rejected=yes
3079 continue
3080 fi
3081 ac_cv_prog_CC="cc"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3089 if test $ac_prog_rejected = yes; then
3090 # We found a bogon in the path, so make sure we never use it.
3091 set dummy $ac_cv_prog_CC
3092 shift
3093 if test $# != 0; then
3094 # We chose a different compiler from the bogus one.
3095 # However, it has the same basename, so the bogon will be chosen
3096 # first if we set CC to just the basename; use the full file name.
3097 shift
3098 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3099 fi
3100 fi
3101 fi
3102 fi
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3107 else
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3113 fi
3114 if test -z "$CC"; then
3115 if test -n "$ac_tool_prefix"; then
3116 for ac_prog in cl.exe
3117 do
3118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if test "${ac_cv_prog_CC+set}" = set; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141 IFS=$as_save_IFS
3143 fi
3144 fi
3145 CC=$ac_cv_prog_CC
3146 if test -n "$CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3148 $as_echo "$CC" >&6; }
3149 else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3155 test -n "$CC" && break
3156 done
3157 fi
3158 if test -z "$CC"; then
3159 ac_ct_CC=$CC
3160 for ac_prog in cl.exe
3161 do
3162 # Extract the first word of "$ac_prog", so it can be a program name with args.
3163 set dummy $ac_prog; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test -n "$ac_ct_CC"; then
3170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_ac_ct_CC="$ac_prog"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183 done
3184 done
3185 IFS=$as_save_IFS
3187 fi
3188 fi
3189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3190 if test -n "$ac_ct_CC"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3192 $as_echo "$ac_ct_CC" >&6; }
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3196 fi
3199 test -n "$ac_ct_CC" && break
3200 done
3202 if test "x$ac_ct_CC" = x; then
3203 CC=""
3204 else
3205 case $cross_compiling:$ac_tool_warned in
3206 yes:)
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3209 ac_tool_warned=yes ;;
3210 esac
3211 CC=$ac_ct_CC
3212 fi
3213 fi
3215 fi
3218 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3220 as_fn_error "no acceptable C compiler found in \$PATH
3221 See \`config.log' for more details." "$LINENO" 5; }
3223 # Provide some information about the compiler.
3224 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3225 set X $ac_compile
3226 ac_compiler=$2
3227 for ac_option in --version -v -V -qversion; do
3228 { { ac_try="$ac_compiler $ac_option >&5"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234 $as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3236 ac_status=$?
3237 if test -s conftest.err; then
3238 sed '10a\
3239 ... rest of stderr output deleted ...
3240 10q' conftest.err >conftest.er1
3241 cat conftest.er1 >&5
3242 rm -f conftest.er1 conftest.err
3243 fi
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }
3246 done
3248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3249 /* end confdefs.h. */
3250 #include <stdio.h>
3251 int
3252 main ()
3253 {
3254 FILE *f = fopen ("conftest.out", "w");
3255 return ferror (f) || fclose (f) != 0;
3257 ;
3258 return 0;
3259 }
3260 _ACEOF
3261 ac_clean_files_save=$ac_clean_files
3262 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3263 # Try to create an executable without -o first, disregard a.out.
3264 # It will help us diagnose broken compilers, and finding out an intuition
3265 # of exeext.
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3267 $as_echo_n "checking for C compiler default output file name... " >&6; }
3268 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3270 # The possible output files:
3271 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3273 ac_rmfiles=
3274 for ac_file in $ac_files
3275 do
3276 case $ac_file in
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3278 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3279 esac
3280 done
3281 rm -f $ac_rmfiles
3283 if { { ac_try="$ac_link_default"
3284 case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290 (eval "$ac_link_default") 2>&5
3291 ac_status=$?
3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293 test $ac_status = 0; }; then :
3294 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3295 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3296 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3297 # so that the user can short-circuit this test for compilers unknown to
3298 # Autoconf.
3299 for ac_file in $ac_files ''
3300 do
3301 test -f "$ac_file" || continue
3302 case $ac_file in
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3304 ;;
3305 [ab].out )
3306 # We found the default executable, but exeext='' is most
3307 # certainly right.
3308 break;;
3309 *.* )
3310 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3311 then :; else
3312 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313 fi
3314 # We set ac_cv_exeext here because the later test for it is not
3315 # safe: cross compilers may not add the suffix if given an `-o'
3316 # argument, so we may need to know it at that point already.
3317 # Even if this section looks crufty: it has the advantage of
3318 # actually working.
3319 break;;
3320 * )
3321 break;;
3322 esac
3323 done
3324 test "$ac_cv_exeext" = no && ac_cv_exeext=
3326 else
3327 ac_file=''
3328 fi
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3330 $as_echo "$ac_file" >&6; }
3331 if test -z "$ac_file"; then :
3332 $as_echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337 { as_fn_set_status 77
3338 as_fn_error "C compiler cannot create executables
3339 See \`config.log' for more details." "$LINENO" 5; }; }
3340 fi
3341 ac_exeext=$ac_cv_exeext
3343 # Check that the compiler produces executables we can run. If not, either
3344 # the compiler is broken, or we cross compile.
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3346 $as_echo_n "checking whether the C compiler works... " >&6; }
3347 # If not cross compiling, check that we can run a simple program.
3348 if test "$cross_compiling" != yes; then
3349 if { ac_try='./$ac_file'
3350 { { case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353 esac
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 $as_echo "$ac_try_echo"; } >&5
3356 (eval "$ac_try") 2>&5
3357 ac_status=$?
3358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359 test $ac_status = 0; }; }; then
3360 cross_compiling=no
3361 else
3362 if test "$cross_compiling" = maybe; then
3363 cross_compiling=yes
3364 else
3365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 as_fn_error "cannot run C compiled programs.
3368 If you meant to cross compile, use \`--host'.
3369 See \`config.log' for more details." "$LINENO" 5; }
3370 fi
3371 fi
3372 fi
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374 $as_echo "yes" >&6; }
3376 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3377 ac_clean_files=$ac_clean_files_save
3378 # Check that the compiler produces executables we can run. If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3381 $as_echo_n "checking whether we are cross compiling... " >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3383 $as_echo "$cross_compiling" >&6; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3386 $as_echo_n "checking for suffix of executables... " >&6; }
3387 if { { ac_try="$ac_link"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_link") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
3398 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3399 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3400 # work properly (i.e., refer to `conftest.exe'), while it won't with
3401 # `rm'.
3402 for ac_file in conftest.exe conftest conftest.*; do
3403 test -f "$ac_file" || continue
3404 case $ac_file in
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407 break;;
3408 * ) break;;
3409 esac
3410 done
3411 else
3412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error "cannot compute suffix of executables: cannot compile and link
3415 See \`config.log' for more details." "$LINENO" 5; }
3416 fi
3417 rm -f conftest$ac_cv_exeext
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3419 $as_echo "$ac_cv_exeext" >&6; }
3421 rm -f conftest.$ac_ext
3422 EXEEXT=$ac_cv_exeext
3423 ac_exeext=$EXEEXT
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3425 $as_echo_n "checking for suffix of object files... " >&6; }
3426 if test "${ac_cv_objext+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3432 int
3433 main ()
3434 {
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 rm -f conftest.o conftest.obj
3441 if { { ac_try="$ac_compile"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_compile") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; then :
3452 for ac_file in conftest.o conftest.obj conftest.*; do
3453 test -f "$ac_file" || continue;
3454 case $ac_file in
3455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3456 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3457 break;;
3458 esac
3459 done
3460 else
3461 $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error "cannot compute suffix of object files: cannot compile
3467 See \`config.log' for more details." "$LINENO" 5; }
3468 fi
3469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3472 $as_echo "$ac_cv_objext" >&6; }
3473 OBJEXT=$ac_cv_objext
3474 ac_objext=$OBJEXT
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3476 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3477 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3483 int
3484 main ()
3485 {
3486 #ifndef __GNUC__
3487 choke me
3488 #endif
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_compiler_gnu=yes
3496 else
3497 ac_compiler_gnu=no
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3504 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3505 if test $ac_compiler_gnu = yes; then
3506 GCC=yes
3507 else
3508 GCC=
3509 fi
3510 ac_test_CFLAGS=${CFLAGS+set}
3511 ac_save_CFLAGS=$CFLAGS
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3513 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3514 if test "${ac_cv_prog_cc_g+set}" = set; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 ac_save_c_werror_flag=$ac_c_werror_flag
3518 ac_c_werror_flag=yes
3519 ac_cv_prog_cc_g=no
3520 CFLAGS="-g"
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3524 int
3525 main ()
3526 {
3528 ;
3529 return 0;
3530 }
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533 ac_cv_prog_cc_g=yes
3534 else
3535 CFLAGS=""
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3539 int
3540 main ()
3541 {
3543 ;
3544 return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3549 else
3550 ac_c_werror_flag=$ac_save_c_werror_flag
3551 CFLAGS="-g"
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3555 int
3556 main ()
3557 {
3559 ;
3560 return 0;
3561 }
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564 ac_cv_prog_cc_g=yes
3565 fi
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 fi
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 fi
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3574 $as_echo "$ac_cv_prog_cc_g" >&6; }
3575 if test "$ac_test_CFLAGS" = set; then
3576 CFLAGS=$ac_save_CFLAGS
3577 elif test $ac_cv_prog_cc_g = yes; then
3578 if test "$GCC" = yes; then
3579 CFLAGS="-g -O2"
3580 else
3581 CFLAGS="-g"
3582 fi
3583 else
3584 if test "$GCC" = yes; then
3585 CFLAGS="-O2"
3586 else
3587 CFLAGS=
3588 fi
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3591 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3592 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 ac_cv_prog_cc_c89=no
3596 ac_save_CC=$CC
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3599 #include <stdarg.h>
3600 #include <stdio.h>
3601 #include <sys/types.h>
3602 #include <sys/stat.h>
3603 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3604 struct buf { int x; };
3605 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3606 static char *e (p, i)
3607 char **p;
3608 int i;
3609 {
3610 return p[i];
3611 }
3612 static char *f (char * (*g) (char **, int), char **p, ...)
3613 {
3614 char *s;
3615 va_list v;
3616 va_start (v,p);
3617 s = g (p, va_arg (v,int));
3618 va_end (v);
3619 return s;
3620 }
3622 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3623 function prototypes and stuff, but not '\xHH' hex character constants.
3624 These don't provoke an error unfortunately, instead are silently treated
3625 as 'x'. The following induces an error, until -std is added to get
3626 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3627 array size at least. It's necessary to write '\x00'==0 to get something
3628 that's true only with -std. */
3629 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3631 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3632 inside strings and character constants. */
3633 #define FOO(x) 'x'
3634 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3636 int test (int i, double x);
3637 struct s1 {int (*f) (int a);};
3638 struct s2 {int (*f) (double a);};
3639 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3640 int argc;
3641 char **argv;
3642 int
3643 main ()
3644 {
3645 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3646 ;
3647 return 0;
3648 }
3649 _ACEOF
3650 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3651 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3652 do
3653 CC="$ac_save_CC $ac_arg"
3654 if ac_fn_c_try_compile "$LINENO"; then :
3655 ac_cv_prog_cc_c89=$ac_arg
3656 fi
3657 rm -f core conftest.err conftest.$ac_objext
3658 test "x$ac_cv_prog_cc_c89" != "xno" && break
3659 done
3660 rm -f conftest.$ac_ext
3661 CC=$ac_save_CC
3663 fi
3664 # AC_CACHE_VAL
3665 case "x$ac_cv_prog_cc_c89" in
3666 x)
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3668 $as_echo "none needed" >&6; } ;;
3669 xno)
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3671 $as_echo "unsupported" >&6; } ;;
3672 *)
3673 CC="$CC $ac_cv_prog_cc_c89"
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3675 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3676 esac
3677 if test "x$ac_cv_prog_cc_c89" != xno; then :
3679 fi
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688 ac_ext=c
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3694 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3695 # On Suns, sometimes $CPP names a directory.
3696 if test -n "$CPP" && test -d "$CPP"; then
3697 CPP=
3698 fi
3699 if test -z "$CPP"; then
3700 if test "${ac_cv_prog_CPP+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 # Double quotes because CPP needs to be expanded
3704 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3705 do
3706 ac_preproc_ok=false
3707 for ac_c_preproc_warn_flag in '' yes
3708 do
3709 # Use a header file that comes with gcc, so configuring glibc
3710 # with a fresh cross-compiler works.
3711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3712 # <limits.h> exists even on freestanding compilers.
3713 # On the NeXT, cc -E runs the code through the compiler's parser,
3714 # not just through cpp. "Syntax error" is here to catch this case.
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3717 #ifdef __STDC__
3718 # include <limits.h>
3719 #else
3720 # include <assert.h>
3721 #endif
3722 Syntax error
3723 _ACEOF
3724 if ac_fn_c_try_cpp "$LINENO"; then :
3726 else
3727 # Broken: fails on valid input.
3728 continue
3729 fi
3730 rm -f conftest.err conftest.$ac_ext
3732 # OK, works on sane cases. Now check whether nonexistent headers
3733 # can be detected and how.
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3736 #include <ac_nonexistent.h>
3737 _ACEOF
3738 if ac_fn_c_try_cpp "$LINENO"; then :
3739 # Broken: success on invalid input.
3740 continue
3741 else
3742 # Passes both tests.
3743 ac_preproc_ok=:
3744 break
3745 fi
3746 rm -f conftest.err conftest.$ac_ext
3748 done
3749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3750 rm -f conftest.err conftest.$ac_ext
3751 if $ac_preproc_ok; then :
3752 break
3753 fi
3755 done
3756 ac_cv_prog_CPP=$CPP
3758 fi
3759 CPP=$ac_cv_prog_CPP
3760 else
3761 ac_cv_prog_CPP=$CPP
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3764 $as_echo "$CPP" >&6; }
3765 ac_preproc_ok=false
3766 for ac_c_preproc_warn_flag in '' yes
3767 do
3768 # Use a header file that comes with gcc, so configuring glibc
3769 # with a fresh cross-compiler works.
3770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3771 # <limits.h> exists even on freestanding compilers.
3772 # On the NeXT, cc -E runs the code through the compiler's parser,
3773 # not just through cpp. "Syntax error" is here to catch this case.
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776 #ifdef __STDC__
3777 # include <limits.h>
3778 #else
3779 # include <assert.h>
3780 #endif
3781 Syntax error
3782 _ACEOF
3783 if ac_fn_c_try_cpp "$LINENO"; then :
3785 else
3786 # Broken: fails on valid input.
3787 continue
3788 fi
3789 rm -f conftest.err conftest.$ac_ext
3791 # OK, works on sane cases. Now check whether nonexistent headers
3792 # can be detected and how.
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795 #include <ac_nonexistent.h>
3796 _ACEOF
3797 if ac_fn_c_try_cpp "$LINENO"; then :
3798 # Broken: success on invalid input.
3799 continue
3800 else
3801 # Passes both tests.
3802 ac_preproc_ok=:
3803 break
3804 fi
3805 rm -f conftest.err conftest.$ac_ext
3807 done
3808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3809 rm -f conftest.err conftest.$ac_ext
3810 if $ac_preproc_ok; then :
3812 else
3813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3816 See \`config.log' for more details." "$LINENO" 5; }
3817 fi
3819 ac_ext=c
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3827 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3828 if test "${ac_cv_path_GREP+set}" = set; then :
3829 $as_echo_n "(cached) " >&6
3830 else
3831 if test -z "$GREP"; then
3832 ac_path_GREP_found=false
3833 # Loop through the user's path and test for each of PROGNAME-LIST
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3836 do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_prog in grep ggrep; do
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3842 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3843 # Check for GNU ac_path_GREP and select it if it is found.
3844 # Check for GNU $ac_path_GREP
3845 case `"$ac_path_GREP" --version 2>&1` in
3846 *GNU*)
3847 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3848 *)
3849 ac_count=0
3850 $as_echo_n 0123456789 >"conftest.in"
3851 while :
3852 do
3853 cat "conftest.in" "conftest.in" >"conftest.tmp"
3854 mv "conftest.tmp" "conftest.in"
3855 cp "conftest.in" "conftest.nl"
3856 $as_echo 'GREP' >> "conftest.nl"
3857 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3859 as_fn_arith $ac_count + 1 && ac_count=$as_val
3860 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3861 # Best one so far, save it but keep looking for a better one
3862 ac_cv_path_GREP="$ac_path_GREP"
3863 ac_path_GREP_max=$ac_count
3864 fi
3865 # 10*(2^10) chars as input seems more than enough
3866 test $ac_count -gt 10 && break
3867 done
3868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3869 esac
3871 $ac_path_GREP_found && break 3
3872 done
3873 done
3874 done
3875 IFS=$as_save_IFS
3876 if test -z "$ac_cv_path_GREP"; then
3877 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3878 fi
3879 else
3880 ac_cv_path_GREP=$GREP
3881 fi
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3885 $as_echo "$ac_cv_path_GREP" >&6; }
3886 GREP="$ac_cv_path_GREP"
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3890 $as_echo_n "checking for egrep... " >&6; }
3891 if test "${ac_cv_path_EGREP+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3893 else
3894 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3895 then ac_cv_path_EGREP="$GREP -E"
3896 else
3897 if test -z "$EGREP"; then
3898 ac_path_EGREP_found=false
3899 # Loop through the user's path and test for each of PROGNAME-LIST
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3902 do
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_prog in egrep; do
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3908 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3909 # Check for GNU ac_path_EGREP and select it if it is found.
3910 # Check for GNU $ac_path_EGREP
3911 case `"$ac_path_EGREP" --version 2>&1` in
3912 *GNU*)
3913 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3914 *)
3915 ac_count=0
3916 $as_echo_n 0123456789 >"conftest.in"
3917 while :
3918 do
3919 cat "conftest.in" "conftest.in" >"conftest.tmp"
3920 mv "conftest.tmp" "conftest.in"
3921 cp "conftest.in" "conftest.nl"
3922 $as_echo 'EGREP' >> "conftest.nl"
3923 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3925 as_fn_arith $ac_count + 1 && ac_count=$as_val
3926 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3927 # Best one so far, save it but keep looking for a better one
3928 ac_cv_path_EGREP="$ac_path_EGREP"
3929 ac_path_EGREP_max=$ac_count
3930 fi
3931 # 10*(2^10) chars as input seems more than enough
3932 test $ac_count -gt 10 && break
3933 done
3934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3935 esac
3937 $ac_path_EGREP_found && break 3
3938 done
3939 done
3940 done
3941 IFS=$as_save_IFS
3942 if test -z "$ac_cv_path_EGREP"; then
3943 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3944 fi
3945 else
3946 ac_cv_path_EGREP=$EGREP
3947 fi
3949 fi
3950 fi
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3952 $as_echo "$ac_cv_path_EGREP" >&6; }
3953 EGREP="$ac_cv_path_EGREP"
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3957 $as_echo_n "checking for ANSI C header files... " >&6; }
3958 if test "${ac_cv_header_stdc+set}" = set; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963 #include <stdlib.h>
3964 #include <stdarg.h>
3965 #include <string.h>
3966 #include <float.h>
3968 int
3969 main ()
3970 {
3972 ;
3973 return 0;
3974 }
3975 _ACEOF
3976 if ac_fn_c_try_compile "$LINENO"; then :
3977 ac_cv_header_stdc=yes
3978 else
3979 ac_cv_header_stdc=no
3980 fi
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 if test $ac_cv_header_stdc = yes; then
3984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987 #include <string.h>
3989 _ACEOF
3990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3991 $EGREP "memchr" >/dev/null 2>&1; then :
3993 else
3994 ac_cv_header_stdc=no
3995 fi
3996 rm -f conftest*
3998 fi
4000 if test $ac_cv_header_stdc = yes; then
4001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004 #include <stdlib.h>
4006 _ACEOF
4007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4008 $EGREP "free" >/dev/null 2>&1; then :
4010 else
4011 ac_cv_header_stdc=no
4012 fi
4013 rm -f conftest*
4015 fi
4017 if test $ac_cv_header_stdc = yes; then
4018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4019 if test "$cross_compiling" = yes; then :
4020 :
4021 else
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4024 #include <ctype.h>
4025 #include <stdlib.h>
4026 #if ((' ' & 0x0FF) == 0x020)
4027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4028 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4029 #else
4030 # define ISLOWER(c) \
4031 (('a' <= (c) && (c) <= 'i') \
4032 || ('j' <= (c) && (c) <= 'r') \
4033 || ('s' <= (c) && (c) <= 'z'))
4034 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4035 #endif
4037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4038 int
4039 main ()
4040 {
4041 int i;
4042 for (i = 0; i < 256; i++)
4043 if (XOR (islower (i), ISLOWER (i))
4044 || toupper (i) != TOUPPER (i))
4045 return 2;
4046 return 0;
4047 }
4048 _ACEOF
4049 if ac_fn_c_try_run "$LINENO"; then :
4051 else
4052 ac_cv_header_stdc=no
4053 fi
4054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4055 conftest.$ac_objext conftest.beam conftest.$ac_ext
4056 fi
4058 fi
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4061 $as_echo "$ac_cv_header_stdc" >&6; }
4062 if test $ac_cv_header_stdc = yes; then
4064 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4066 fi
4068 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4069 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4070 inttypes.h stdint.h unistd.h
4071 do :
4072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4074 "
4075 eval as_val=\$$as_ac_Header
4076 if test "x$as_val" = x""yes; then :
4077 cat >>confdefs.h <<_ACEOF
4078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079 _ACEOF
4081 fi
4083 done
4087 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4088 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4089 MINIX=yes
4090 else
4091 MINIX=
4092 fi
4095 if test "$MINIX" = yes; then
4097 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4100 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4103 $as_echo "#define _MINIX 1" >>confdefs.h
4105 fi
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4109 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4110 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4112 else
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4116 # define __EXTENSIONS__ 1
4117 $ac_includes_default
4118 int
4119 main ()
4120 {
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_safe_to_define___extensions__=yes
4128 else
4129 ac_cv_safe_to_define___extensions__=no
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4134 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4135 test $ac_cv_safe_to_define___extensions__ = yes &&
4136 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4138 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4140 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4142 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4144 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4147 am__api_version='1.11'
4149 # Find a good install program. We prefer a C program (faster),
4150 # so one script is as good as another. But avoid the broken or
4151 # incompatible versions:
4152 # SysV /etc/install, /usr/sbin/install
4153 # SunOS /usr/etc/install
4154 # IRIX /sbin/install
4155 # AIX /bin/install
4156 # AmigaOS /C/install, which installs bootblocks on floppy discs
4157 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4158 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4159 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4160 # OS/2's system install, which has a completely different semantic
4161 # ./install, which can be erroneously created by make from ./install.sh.
4162 # Reject install programs that cannot install multiple files.
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4164 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4165 if test -z "$INSTALL"; then
4166 if test "${ac_cv_path_install+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 # Account for people who put trailing slashes in PATH elements.
4175 case $as_dir/ in #((
4176 ./ | .// | /[cC]/* | \
4177 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4178 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4179 /usr/ucb/* ) ;;
4180 *)
4181 # OSF1 and SCO ODT 3.0 have their own names for install.
4182 # Don't use installbsd from OSF since it installs stuff as root
4183 # by default.
4184 for ac_prog in ginstall scoinst install; do
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4187 if test $ac_prog = install &&
4188 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4189 # AIX install. It has an incompatible calling convention.
4190 :
4191 elif test $ac_prog = install &&
4192 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4193 # program-specific install script used by HP pwplus--don't use.
4194 :
4195 else
4196 rm -rf conftest.one conftest.two conftest.dir
4197 echo one > conftest.one
4198 echo two > conftest.two
4199 mkdir conftest.dir
4200 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4201 test -s conftest.one && test -s conftest.two &&
4202 test -s conftest.dir/conftest.one &&
4203 test -s conftest.dir/conftest.two
4204 then
4205 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4206 break 3
4207 fi
4208 fi
4209 fi
4210 done
4211 done
4212 ;;
4213 esac
4215 done
4216 IFS=$as_save_IFS
4218 rm -rf conftest.one conftest.two conftest.dir
4220 fi
4221 if test "${ac_cv_path_install+set}" = set; then
4222 INSTALL=$ac_cv_path_install
4223 else
4224 # As a last resort, use the slow shell script. Don't cache a
4225 # value for INSTALL within a source directory, because that will
4226 # break other packages using the cache if that directory is
4227 # removed, or if the value is a relative name.
4228 INSTALL=$ac_install_sh
4229 fi
4230 fi
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4232 $as_echo "$INSTALL" >&6; }
4234 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4235 # It thinks the first close brace ends the variable substitution.
4236 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4238 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4240 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4243 $as_echo_n "checking whether build environment is sane... " >&6; }
4244 # Just in case
4245 sleep 1
4246 echo timestamp > conftest.file
4247 # Reject unsafe characters in $srcdir or the absolute working directory
4248 # name. Accept space and tab only in the latter.
4249 am_lf='
4250 '
4251 case `pwd` in
4252 *[\\\"\#\$\&\'\`$am_lf]*)
4253 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4254 esac
4255 case $srcdir in
4256 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4257 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4258 esac
4260 # Do `set' in a subshell so we don't clobber the current shell's
4261 # arguments. Must try -L first in case configure is actually a
4262 # symlink; some systems play weird games with the mod time of symlinks
4263 # (eg FreeBSD returns the mod time of the symlink's containing
4264 # directory).
4265 if (
4266 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4267 if test "$*" = "X"; then
4268 # -L didn't work.
4269 set X `ls -t "$srcdir/configure" conftest.file`
4270 fi
4271 rm -f conftest.file
4272 if test "$*" != "X $srcdir/configure conftest.file" \
4273 && test "$*" != "X conftest.file $srcdir/configure"; then
4275 # If neither matched, then we have a broken ls. This can happen
4276 # if, for instance, CONFIG_SHELL is bash and it inherits a
4277 # broken ls alias from the environment. This has actually
4278 # happened. Such a system could not be considered "sane".
4279 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4280 alias in your environment" "$LINENO" 5
4281 fi
4283 test "$2" = conftest.file
4284 )
4285 then
4286 # Ok.
4287 :
4288 else
4289 as_fn_error "newly created file is older than distributed files!
4290 Check your system clock" "$LINENO" 5
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4293 $as_echo "yes" >&6; }
4294 test "$program_prefix" != NONE &&
4295 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4296 # Use a double $ so make ignores it.
4297 test "$program_suffix" != NONE &&
4298 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4299 # Double any \ or $.
4300 # By default was `s,x,x', remove it if useless.
4301 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4302 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4304 # expand $ac_aux_dir to an absolute path
4305 am_aux_dir=`cd $ac_aux_dir && pwd`
4307 if test x"${MISSING+set}" != xset; then
4308 case $am_aux_dir in
4309 *\ * | *\ *)
4310 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4311 *)
4312 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4313 esac
4314 fi
4315 # Use eval to expand $SHELL
4316 if eval "$MISSING --run true"; then
4317 am_missing_run="$MISSING --run "
4318 else
4319 am_missing_run=
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4321 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4322 fi
4324 if test x"${install_sh}" != xset; then
4325 case $am_aux_dir in
4326 *\ * | *\ *)
4327 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4328 *)
4329 install_sh="\${SHELL} $am_aux_dir/install-sh"
4330 esac
4331 fi
4333 # Installed binaries are usually stripped using `strip' when the user
4334 # run `make install-strip'. However `strip' might not be the right
4335 # tool to use in cross-compilation environments, therefore Automake
4336 # will honor the `STRIP' environment variable to overrule this program.
4337 if test "$cross_compiling" != no; then
4338 if test -n "$ac_tool_prefix"; then
4339 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4340 set dummy ${ac_tool_prefix}strip; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if test "${ac_cv_prog_STRIP+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if test -n "$STRIP"; then
4347 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4351 do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4356 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4359 fi
4360 done
4361 done
4362 IFS=$as_save_IFS
4364 fi
4365 fi
4366 STRIP=$ac_cv_prog_STRIP
4367 if test -n "$STRIP"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4369 $as_echo "$STRIP" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 fi
4376 fi
4377 if test -z "$ac_cv_prog_STRIP"; then
4378 ac_ct_STRIP=$STRIP
4379 # Extract the first word of "strip", so it can be a program name with args.
4380 set dummy strip; ac_word=$2
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382 $as_echo_n "checking for $ac_word... " >&6; }
4383 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 if test -n "$ac_ct_STRIP"; then
4387 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_prog_ac_ct_STRIP="strip"
4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4399 fi
4400 done
4401 done
4402 IFS=$as_save_IFS
4404 fi
4405 fi
4406 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4407 if test -n "$ac_ct_STRIP"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4409 $as_echo "$ac_ct_STRIP" >&6; }
4410 else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4413 fi
4415 if test "x$ac_ct_STRIP" = x; then
4416 STRIP=":"
4417 else
4418 case $cross_compiling:$ac_tool_warned in
4419 yes:)
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4422 ac_tool_warned=yes ;;
4423 esac
4424 STRIP=$ac_ct_STRIP
4425 fi
4426 else
4427 STRIP="$ac_cv_prog_STRIP"
4428 fi
4430 fi
4431 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4434 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4435 if test -z "$MKDIR_P"; then
4436 if test "${ac_cv_path_mkdir+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4441 do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_prog in mkdir gmkdir; do
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4447 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4448 'mkdir (GNU coreutils) '* | \
4449 'mkdir (coreutils) '* | \
4450 'mkdir (fileutils) '4.1*)
4451 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4452 break 3;;
4453 esac
4454 done
4455 done
4456 done
4457 IFS=$as_save_IFS
4459 fi
4461 if test "${ac_cv_path_mkdir+set}" = set; then
4462 MKDIR_P="$ac_cv_path_mkdir -p"
4463 else
4464 # As a last resort, use the slow shell script. Don't cache a
4465 # value for MKDIR_P within a source directory, because that will
4466 # break other packages using the cache if that directory is
4467 # removed, or if the value is a relative name.
4468 test -d ./--version && rmdir ./--version
4469 MKDIR_P="$ac_install_sh -d"
4470 fi
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4473 $as_echo "$MKDIR_P" >&6; }
4475 mkdir_p="$MKDIR_P"
4476 case $mkdir_p in
4477 [\\/$]* | ?:[\\/]*) ;;
4478 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4479 esac
4481 for ac_prog in gawk mawk nawk awk
4482 do
4483 # Extract the first word of "$ac_prog", so it can be a program name with args.
4484 set dummy $ac_prog; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if test "${ac_cv_prog_AWK+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test -n "$AWK"; then
4491 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500 ac_cv_prog_AWK="$ac_prog"
4501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4503 fi
4504 done
4505 done
4506 IFS=$as_save_IFS
4508 fi
4509 fi
4510 AWK=$ac_cv_prog_AWK
4511 if test -n "$AWK"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4513 $as_echo "$AWK" >&6; }
4514 else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4517 fi
4520 test -n "$AWK" && break
4521 done
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4524 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4525 set x ${MAKE-make}
4526 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4527 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 cat >conftest.make <<\_ACEOF
4531 SHELL = /bin/sh
4532 all:
4533 @echo '@@@%%%=$(MAKE)=@@@%%%'
4534 _ACEOF
4535 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4536 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4537 *@@@%%%=?*=@@@%%%*)
4538 eval ac_cv_prog_make_${ac_make}_set=yes;;
4539 *)
4540 eval ac_cv_prog_make_${ac_make}_set=no;;
4541 esac
4542 rm -f conftest.make
4543 fi
4544 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4546 $as_echo "yes" >&6; }
4547 SET_MAKE=
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551 SET_MAKE="MAKE=${MAKE-make}"
4552 fi
4554 rm -rf .tst 2>/dev/null
4555 mkdir .tst 2>/dev/null
4556 if test -d .tst; then
4557 am__leading_dot=.
4558 else
4559 am__leading_dot=_
4560 fi
4561 rmdir .tst 2>/dev/null
4563 DEPDIR="${am__leading_dot}deps"
4565 ac_config_commands="$ac_config_commands depfiles"
4568 am_make=${MAKE-make}
4569 cat > confinc << 'END'
4570 am__doit:
4571 @echo this is the am__doit target
4572 .PHONY: am__doit
4573 END
4574 # If we don't find an include directive, just comment out the code.
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4576 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4577 am__include="#"
4578 am__quote=
4579 _am_result=none
4580 # First try GNU make style include.
4581 echo "include confinc" > confmf
4582 # Ignore all kinds of additional output from `make'.
4583 case `$am_make -s -f confmf 2> /dev/null` in #(
4584 *the\ am__doit\ target*)
4585 am__include=include
4586 am__quote=
4587 _am_result=GNU
4588 ;;
4589 esac
4590 # Now try BSD make style include.
4591 if test "$am__include" = "#"; then
4592 echo '.include "confinc"' > confmf
4593 case `$am_make -s -f confmf 2> /dev/null` in #(
4594 *the\ am__doit\ target*)
4595 am__include=.include
4596 am__quote="\""
4597 _am_result=BSD
4598 ;;
4599 esac
4600 fi
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4604 $as_echo "$_am_result" >&6; }
4605 rm -f confinc confmf
4607 # Check whether --enable-dependency-tracking was given.
4608 if test "${enable_dependency_tracking+set}" = set; then :
4609 enableval=$enable_dependency_tracking;
4610 fi
4612 if test "x$enable_dependency_tracking" != xno; then
4613 am_depcomp="$ac_aux_dir/depcomp"
4614 AMDEPBACKSLASH='\'
4615 fi
4616 if test "x$enable_dependency_tracking" != xno; then
4617 AMDEP_TRUE=
4618 AMDEP_FALSE='#'
4619 else
4620 AMDEP_TRUE='#'
4621 AMDEP_FALSE=
4622 fi
4625 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4626 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4627 # is not polluted with repeated "-I."
4628 am__isrc=' -I$(srcdir)'
4629 # test to see if srcdir already configured
4630 if test -f $srcdir/config.status; then
4631 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4632 fi
4633 fi
4635 # test whether we have cygpath
4636 if test -z "$CYGPATH_W"; then
4637 if (cygpath --version) >/dev/null 2>/dev/null; then
4638 CYGPATH_W='cygpath -w'
4639 else
4640 CYGPATH_W=echo
4641 fi
4642 fi
4645 # Define the identity of the package.
4646 PACKAGE='rrdtool'
4647 VERSION='1.3.999'
4650 cat >>confdefs.h <<_ACEOF
4651 #define PACKAGE "$PACKAGE"
4652 _ACEOF
4655 cat >>confdefs.h <<_ACEOF
4656 #define VERSION "$VERSION"
4657 _ACEOF
4659 # Some tools Automake needs.
4661 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4664 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4667 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4670 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4673 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4675 # We need awk for the "check" target. The system "awk" is bad on
4676 # some platforms.
4677 # Always define AMTAR for backward compatibility.
4679 AMTAR=${AMTAR-"${am_missing_run}tar"}
4681 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4686 depcc="$CC" am_compiler_list=
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4689 $as_echo_n "checking dependency style of $depcc... " >&6; }
4690 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4694 # We make a subdir and do the tests there. Otherwise we can end up
4695 # making bogus files that we don't know about and never remove. For
4696 # instance it was reported that on HP-UX the gcc test will end up
4697 # making a dummy file named `D' -- because `-MD' means `put the output
4698 # in D'.
4699 mkdir conftest.dir
4700 # Copy depcomp to subdir because otherwise we won't find it if we're
4701 # using a relative directory.
4702 cp "$am_depcomp" conftest.dir
4703 cd conftest.dir
4704 # We will build objects and dependencies in a subdirectory because
4705 # it helps to detect inapplicable dependency modes. For instance
4706 # both Tru64's cc and ICC support -MD to output dependencies as a
4707 # side effect of compilation, but ICC will put the dependencies in
4708 # the current directory while Tru64 will put them in the object
4709 # directory.
4710 mkdir sub
4712 am_cv_CC_dependencies_compiler_type=none
4713 if test "$am_compiler_list" = ""; then
4714 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4715 fi
4716 am__universal=false
4717 case " $depcc " in #(
4718 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4719 esac
4721 for depmode in $am_compiler_list; do
4722 # Setup a source with many dependencies, because some compilers
4723 # like to wrap large dependency lists on column 80 (with \), and
4724 # we should not choose a depcomp mode which is confused by this.
4725 #
4726 # We need to recreate these files for each test, as the compiler may
4727 # overwrite some of them when testing with obscure command lines.
4728 # This happens at least with the AIX C compiler.
4729 : > sub/conftest.c
4730 for i in 1 2 3 4 5 6; do
4731 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4732 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4733 # Solaris 8's {/usr,}/bin/sh.
4734 touch sub/conftst$i.h
4735 done
4736 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4738 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4739 # mode. It turns out that the SunPro C++ compiler does not properly
4740 # handle `-M -o', and we need to detect this. Also, some Intel
4741 # versions had trouble with output in subdirs
4742 am__obj=sub/conftest.${OBJEXT-o}
4743 am__minus_obj="-o $am__obj"
4744 case $depmode in
4745 gcc)
4746 # This depmode causes a compiler race in universal mode.
4747 test "$am__universal" = false || continue
4748 ;;
4749 nosideeffect)
4750 # after this tag, mechanisms are not by side-effect, so they'll
4751 # only be used when explicitly requested
4752 if test "x$enable_dependency_tracking" = xyes; then
4753 continue
4754 else
4755 break
4756 fi
4757 ;;
4758 msvisualcpp | msvcmsys)
4759 # This compiler won't grok `-c -o', but also, the minuso test has
4760 # not run yet. These depmodes are late enough in the game, and
4761 # so weak that their functioning should not be impacted.
4762 am__obj=conftest.${OBJEXT-o}
4763 am__minus_obj=
4764 ;;
4765 none) break ;;
4766 esac
4767 if depmode=$depmode \
4768 source=sub/conftest.c object=$am__obj \
4769 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4770 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4771 >/dev/null 2>conftest.err &&
4772 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4773 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4774 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4775 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4776 # icc doesn't choke on unknown options, it will just issue warnings
4777 # or remarks (even with -Werror). So we grep stderr for any message
4778 # that says an option was ignored or not supported.
4779 # When given -MP, icc 7.0 and 7.1 complain thusly:
4780 # icc: Command line warning: ignoring option '-M'; no argument required
4781 # The diagnosis changed in icc 8.0:
4782 # icc: Command line remark: option '-MP' not supported
4783 if (grep 'ignoring option' conftest.err ||
4784 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4785 am_cv_CC_dependencies_compiler_type=$depmode
4786 break
4787 fi
4788 fi
4789 done
4791 cd ..
4792 rm -rf conftest.dir
4793 else
4794 am_cv_CC_dependencies_compiler_type=none
4795 fi
4797 fi
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4799 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4800 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4802 if
4803 test "x$enable_dependency_tracking" != xno \
4804 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4805 am__fastdepCC_TRUE=
4806 am__fastdepCC_FALSE='#'
4807 else
4808 am__fastdepCC_TRUE='#'
4809 am__fastdepCC_FALSE=
4810 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4816 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4817 # Check whether --enable-maintainer-mode was given.
4818 if test "${enable_maintainer_mode+set}" = set; then :
4819 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4820 else
4821 USE_MAINTAINER_MODE=no
4822 fi
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4825 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4826 if test $USE_MAINTAINER_MODE = yes; then
4827 MAINTAINER_MODE_TRUE=
4828 MAINTAINER_MODE_FALSE='#'
4829 else
4830 MAINTAINER_MODE_TRUE='#'
4831 MAINTAINER_MODE_FALSE=
4832 fi
4834 MAINT=$MAINTAINER_MODE_TRUE
4837 # Enable silent build rules by default, requires at least
4838 # Automake-1.11. Disable by either passing --disable-silent-rules to
4839 # configure or passing V=1 to make
4840 # Check whether --enable-silent-rules was given.
4841 if test "${enable_silent_rules+set}" = set; then :
4842 enableval=$enable_silent_rules;
4843 fi
4845 case $enable_silent_rules in
4846 yes) AM_DEFAULT_VERBOSITY=0;;
4847 no) AM_DEFAULT_VERBOSITY=1;;
4848 *) AM_DEFAULT_VERBOSITY=0;;
4849 esac
4850 AM_BACKSLASH='\'
4852 ac_config_headers="$ac_config_headers rrd_config.h"
4871 cat >>confdefs.h <<_ACEOF
4872 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
4873 _ACEOF
4876 # Check whether --enable-rrdcgi was given.
4877 if test "${enable_rrdcgi+set}" = set; then :
4878 enableval=$enable_rrdcgi;
4879 else
4880 enable_rrdcgi=yes
4881 fi
4885 # Check whether --with-rrd-default-font was given.
4886 if test "${with_rrd_default_font+set}" = set; then :
4887 withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
4888 else
4890 if test -d ${WINDIR:-nodir}/cour.ttf ; then
4891 RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
4892 else
4893 RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
4894 fi
4896 fi
4899 # Check whether --enable-mmap was given.
4900 if test "${enable_mmap+set}" = set; then :
4901 enableval=$enable_mmap;
4902 else
4903 enable_mmap=yes
4904 fi
4907 # Check whether --enable-pthread was given.
4908 if test "${enable_pthread+set}" = set; then :
4909 enableval=$enable_pthread;
4910 else
4911 enable_pthread=yes
4912 fi
4915 # Check whether --enable-static-programs was given.
4916 if test "${enable_static_programs+set}" = set; then :
4917 enableval=$enable_static_programs; case "${enableval}" in
4918 yes) staticprogs=yes ;;
4919 no) staticprogs=no ;;
4920 *) as_fn_error "bad value ${enableval} for --enable-static-programs" "$LINENO" 5 ;;
4921 esac
4922 else
4923 staticprogs=no
4924 fi
4926 if test "x$staticprogs" = "xyes"; then
4927 STATIC_PROGRAMS_TRUE=
4928 STATIC_PROGRAMS_FALSE='#'
4929 else
4930 STATIC_PROGRAMS_TRUE='#'
4931 STATIC_PROGRAMS_FALSE=
4932 fi
4937 case $TERM in
4938 # for the most important terminal types we directly know the sequences
4939 xterm|xterm*|vt220|vt220*)
4940 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
4941 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
4942 ;;
4943 vt100|vt100*|cygwin)
4944 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
4945 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
4946 ;;
4947 *)
4948 T_MD=''
4949 T_ME=''
4950 ;;
4951 esac
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4953 $as_echo "" >&6; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
4955 $as_echo "${T_MD}Audit Compilation Environment${T_ME}" >&6; }
4959 ac_ext=c
4960 ac_cpp='$CPP $CPPFLAGS'
4961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4965 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4966 # On Suns, sometimes $CPP names a directory.
4967 if test -n "$CPP" && test -d "$CPP"; then
4968 CPP=
4969 fi
4970 if test -z "$CPP"; then
4971 if test "${ac_cv_prog_CPP+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 # Double quotes because CPP needs to be expanded
4975 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4976 do
4977 ac_preproc_ok=false
4978 for ac_c_preproc_warn_flag in '' yes
4979 do
4980 # Use a header file that comes with gcc, so configuring glibc
4981 # with a fresh cross-compiler works.
4982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4983 # <limits.h> exists even on freestanding compilers.
4984 # On the NeXT, cc -E runs the code through the compiler's parser,
4985 # not just through cpp. "Syntax error" is here to catch this case.
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #ifdef __STDC__
4989 # include <limits.h>
4990 #else
4991 # include <assert.h>
4992 #endif
4993 Syntax error
4994 _ACEOF
4995 if ac_fn_c_try_cpp "$LINENO"; then :
4997 else
4998 # Broken: fails on valid input.
4999 continue
5000 fi
5001 rm -f conftest.err conftest.$ac_ext
5003 # OK, works on sane cases. Now check whether nonexistent headers
5004 # can be detected and how.
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5007 #include <ac_nonexistent.h>
5008 _ACEOF
5009 if ac_fn_c_try_cpp "$LINENO"; then :
5010 # Broken: success on invalid input.
5011 continue
5012 else
5013 # Passes both tests.
5014 ac_preproc_ok=:
5015 break
5016 fi
5017 rm -f conftest.err conftest.$ac_ext
5019 done
5020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5021 rm -f conftest.err conftest.$ac_ext
5022 if $ac_preproc_ok; then :
5023 break
5024 fi
5026 done
5027 ac_cv_prog_CPP=$CPP
5029 fi
5030 CPP=$ac_cv_prog_CPP
5031 else
5032 ac_cv_prog_CPP=$CPP
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5035 $as_echo "$CPP" >&6; }
5036 ac_preproc_ok=false
5037 for ac_c_preproc_warn_flag in '' yes
5038 do
5039 # Use a header file that comes with gcc, so configuring glibc
5040 # with a fresh cross-compiler works.
5041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5042 # <limits.h> exists even on freestanding compilers.
5043 # On the NeXT, cc -E runs the code through the compiler's parser,
5044 # not just through cpp. "Syntax error" is here to catch this case.
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 #ifdef __STDC__
5048 # include <limits.h>
5049 #else
5050 # include <assert.h>
5051 #endif
5052 Syntax error
5053 _ACEOF
5054 if ac_fn_c_try_cpp "$LINENO"; then :
5056 else
5057 # Broken: fails on valid input.
5058 continue
5059 fi
5060 rm -f conftest.err conftest.$ac_ext
5062 # OK, works on sane cases. Now check whether nonexistent headers
5063 # can be detected and how.
5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5065 /* end confdefs.h. */
5066 #include <ac_nonexistent.h>
5067 _ACEOF
5068 if ac_fn_c_try_cpp "$LINENO"; then :
5069 # Broken: success on invalid input.
5070 continue
5071 else
5072 # Passes both tests.
5073 ac_preproc_ok=:
5074 break
5075 fi
5076 rm -f conftest.err conftest.$ac_ext
5078 done
5079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5080 rm -f conftest.err conftest.$ac_ext
5081 if $ac_preproc_ok; then :
5083 else
5084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5086 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5087 See \`config.log' for more details." "$LINENO" 5; }
5088 fi
5090 ac_ext=c
5091 ac_cpp='$CPP $CPPFLAGS'
5092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5096 ac_ext=c
5097 ac_cpp='$CPP $CPPFLAGS'
5098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101 if test -n "$ac_tool_prefix"; then
5102 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5103 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if test "${ac_cv_prog_CC+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 if test -n "$CC"; then
5110 ac_cv_prog_CC="$CC" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5127 fi
5128 fi
5129 CC=$ac_cv_prog_CC
5130 if test -n "$CC"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5132 $as_echo "$CC" >&6; }
5133 else
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5139 fi
5140 if test -z "$ac_cv_prog_CC"; then
5141 ac_ct_CC=$CC
5142 # Extract the first word of "gcc", so it can be a program name with args.
5143 set dummy gcc; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5147 $as_echo_n "(cached) " >&6
5148 else
5149 if test -n "$ac_ct_CC"; then
5150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159 ac_cv_prog_ac_ct_CC="gcc"
5160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163 done
5164 done
5165 IFS=$as_save_IFS
5167 fi
5168 fi
5169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5170 if test -n "$ac_ct_CC"; then
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5172 $as_echo "$ac_ct_CC" >&6; }
5173 else
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 fi
5178 if test "x$ac_ct_CC" = x; then
5179 CC=""
5180 else
5181 case $cross_compiling:$ac_tool_warned in
5182 yes:)
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5185 ac_tool_warned=yes ;;
5186 esac
5187 CC=$ac_ct_CC
5188 fi
5189 else
5190 CC="$ac_cv_prog_CC"
5191 fi
5193 if test -z "$CC"; then
5194 if test -n "$ac_tool_prefix"; then
5195 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5196 set dummy ${ac_tool_prefix}cc; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if test "${ac_cv_prog_CC+set}" = set; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test -n "$CC"; then
5203 ac_cv_prog_CC="$CC" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2
5215 fi
5216 done
5217 done
5218 IFS=$as_save_IFS
5220 fi
5221 fi
5222 CC=$ac_cv_prog_CC
5223 if test -n "$CC"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5225 $as_echo "$CC" >&6; }
5226 else
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5229 fi
5232 fi
5233 fi
5234 if test -z "$CC"; then
5235 # Extract the first word of "cc", so it can be a program name with args.
5236 set dummy cc; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if test "${ac_cv_prog_CC+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 if test -n "$CC"; then
5243 ac_cv_prog_CC="$CC" # Let the user override the test.
5244 else
5245 ac_prog_rejected=no
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5254 ac_prog_rejected=yes
5255 continue
5256 fi
5257 ac_cv_prog_CC="cc"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5260 fi
5261 done
5262 done
5263 IFS=$as_save_IFS
5265 if test $ac_prog_rejected = yes; then
5266 # We found a bogon in the path, so make sure we never use it.
5267 set dummy $ac_cv_prog_CC
5268 shift
5269 if test $# != 0; then
5270 # We chose a different compiler from the bogus one.
5271 # However, it has the same basename, so the bogon will be chosen
5272 # first if we set CC to just the basename; use the full file name.
5273 shift
5274 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5275 fi
5276 fi
5277 fi
5278 fi
5279 CC=$ac_cv_prog_CC
5280 if test -n "$CC"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5282 $as_echo "$CC" >&6; }
5283 else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 fi
5289 fi
5290 if test -z "$CC"; then
5291 if test -n "$ac_tool_prefix"; then
5292 for ac_prog in cl.exe
5293 do
5294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if test "${ac_cv_prog_CC+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 if test -n "$CC"; then
5302 ac_cv_prog_CC="$CC" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315 done
5316 done
5317 IFS=$as_save_IFS
5319 fi
5320 fi
5321 CC=$ac_cv_prog_CC
5322 if test -n "$CC"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5324 $as_echo "$CC" >&6; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328 fi
5331 test -n "$CC" && break
5332 done
5333 fi
5334 if test -z "$CC"; then
5335 ac_ct_CC=$CC
5336 for ac_prog in cl.exe
5337 do
5338 # Extract the first word of "$ac_prog", so it can be a program name with args.
5339 set dummy $ac_prog; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 if test -n "$ac_ct_CC"; then
5346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355 ac_cv_prog_ac_ct_CC="$ac_prog"
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359 done
5360 done
5361 IFS=$as_save_IFS
5363 fi
5364 fi
5365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5366 if test -n "$ac_ct_CC"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5368 $as_echo "$ac_ct_CC" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 fi
5375 test -n "$ac_ct_CC" && break
5376 done
5378 if test "x$ac_ct_CC" = x; then
5379 CC=""
5380 else
5381 case $cross_compiling:$ac_tool_warned in
5382 yes:)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5385 ac_tool_warned=yes ;;
5386 esac
5387 CC=$ac_ct_CC
5388 fi
5389 fi
5391 fi
5394 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5396 as_fn_error "no acceptable C compiler found in \$PATH
5397 See \`config.log' for more details." "$LINENO" 5; }
5399 # Provide some information about the compiler.
5400 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5401 set X $ac_compile
5402 ac_compiler=$2
5403 for ac_option in --version -v -V -qversion; do
5404 { { ac_try="$ac_compiler $ac_option >&5"
5405 case "(($ac_try" in
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5408 esac
5409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5410 $as_echo "$ac_try_echo"; } >&5
5411 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5412 ac_status=$?
5413 if test -s conftest.err; then
5414 sed '10a\
5415 ... rest of stderr output deleted ...
5416 10q' conftest.err >conftest.er1
5417 cat conftest.er1 >&5
5418 rm -f conftest.er1 conftest.err
5419 fi
5420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5421 test $ac_status = 0; }
5422 done
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5425 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5426 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5432 int
5433 main ()
5434 {
5435 #ifndef __GNUC__
5436 choke me
5437 #endif
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444 ac_compiler_gnu=yes
5445 else
5446 ac_compiler_gnu=no
5447 fi
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5451 fi
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5453 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5454 if test $ac_compiler_gnu = yes; then
5455 GCC=yes
5456 else
5457 GCC=
5458 fi
5459 ac_test_CFLAGS=${CFLAGS+set}
5460 ac_save_CFLAGS=$CFLAGS
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5462 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5463 if test "${ac_cv_prog_cc_g+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 ac_save_c_werror_flag=$ac_c_werror_flag
5467 ac_c_werror_flag=yes
5468 ac_cv_prog_cc_g=no
5469 CFLAGS="-g"
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5473 int
5474 main ()
5475 {
5477 ;
5478 return 0;
5479 }
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482 ac_cv_prog_cc_g=yes
5483 else
5484 CFLAGS=""
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5488 int
5489 main ()
5490 {
5492 ;
5493 return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"; then :
5498 else
5499 ac_c_werror_flag=$ac_save_c_werror_flag
5500 CFLAGS="-g"
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5504 int
5505 main ()
5506 {
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 if ac_fn_c_try_compile "$LINENO"; then :
5513 ac_cv_prog_cc_g=yes
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 fi
5517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 fi
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 ac_c_werror_flag=$ac_save_c_werror_flag
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5523 $as_echo "$ac_cv_prog_cc_g" >&6; }
5524 if test "$ac_test_CFLAGS" = set; then
5525 CFLAGS=$ac_save_CFLAGS
5526 elif test $ac_cv_prog_cc_g = yes; then
5527 if test "$GCC" = yes; then
5528 CFLAGS="-g -O2"
5529 else
5530 CFLAGS="-g"
5531 fi
5532 else
5533 if test "$GCC" = yes; then
5534 CFLAGS="-O2"
5535 else
5536 CFLAGS=
5537 fi
5538 fi
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5540 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5541 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 ac_cv_prog_cc_c89=no
5545 ac_save_CC=$CC
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <stdarg.h>
5549 #include <stdio.h>
5550 #include <sys/types.h>
5551 #include <sys/stat.h>
5552 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5553 struct buf { int x; };
5554 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5555 static char *e (p, i)
5556 char **p;
5557 int i;
5558 {
5559 return p[i];
5560 }
5561 static char *f (char * (*g) (char **, int), char **p, ...)
5562 {
5563 char *s;
5564 va_list v;
5565 va_start (v,p);
5566 s = g (p, va_arg (v,int));
5567 va_end (v);
5568 return s;
5569 }
5571 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5572 function prototypes and stuff, but not '\xHH' hex character constants.
5573 These don't provoke an error unfortunately, instead are silently treated
5574 as 'x'. The following induces an error, until -std is added to get
5575 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5576 array size at least. It's necessary to write '\x00'==0 to get something
5577 that's true only with -std. */
5578 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5580 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5581 inside strings and character constants. */
5582 #define FOO(x) 'x'
5583 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5585 int test (int i, double x);
5586 struct s1 {int (*f) (int a);};
5587 struct s2 {int (*f) (double a);};
5588 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5589 int argc;
5590 char **argv;
5591 int
5592 main ()
5593 {
5594 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5600 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5601 do
5602 CC="$ac_save_CC $ac_arg"
5603 if ac_fn_c_try_compile "$LINENO"; then :
5604 ac_cv_prog_cc_c89=$ac_arg
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext
5607 test "x$ac_cv_prog_cc_c89" != "xno" && break
5608 done
5609 rm -f conftest.$ac_ext
5610 CC=$ac_save_CC
5612 fi
5613 # AC_CACHE_VAL
5614 case "x$ac_cv_prog_cc_c89" in
5615 x)
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5617 $as_echo "none needed" >&6; } ;;
5618 xno)
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5620 $as_echo "unsupported" >&6; } ;;
5621 *)
5622 CC="$CC $ac_cv_prog_cc_c89"
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5624 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5625 esac
5626 if test "x$ac_cv_prog_cc_c89" != xno; then :
5628 fi
5630 ac_ext=c
5631 ac_cpp='$CPP $CPPFLAGS'
5632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636 if test "x$CC" != xcc; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5638 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5641 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5642 fi
5643 set dummy $CC; ac_cc=`$as_echo "$2" |
5644 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5645 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5651 int
5652 main ()
5653 {
5655 ;
5656 return 0;
5657 }
5658 _ACEOF
5659 # Make sure it works both with $CC and with simple cc.
5660 # We do the test twice because some compilers refuse to overwrite an
5661 # existing .o file with -o, though they will create one.
5662 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5663 rm -f conftest2.*
5664 if { { case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667 esac
5668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5669 $as_echo "$ac_try_echo"; } >&5
5670 (eval "$ac_try") 2>&5
5671 ac_status=$?
5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673 test $ac_status = 0; } &&
5674 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5677 esac
5678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5679 $as_echo "$ac_try_echo"; } >&5
5680 (eval "$ac_try") 2>&5
5681 ac_status=$?
5682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5683 test $ac_status = 0; };
5684 then
5685 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5686 if test "x$CC" != xcc; then
5687 # Test first that cc exists at all.
5688 if { ac_try='cc -c conftest.$ac_ext >&5'
5689 { { case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692 esac
5693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5694 $as_echo "$ac_try_echo"; } >&5
5695 (eval "$ac_try") 2>&5
5696 ac_status=$?
5697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698 test $ac_status = 0; }; }; then
5699 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5700 rm -f conftest2.*
5701 if { { case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704 esac
5705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5706 $as_echo "$ac_try_echo"; } >&5
5707 (eval "$ac_try") 2>&5
5708 ac_status=$?
5709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710 test $ac_status = 0; } &&
5711 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5716 $as_echo "$ac_try_echo"; } >&5
5717 (eval "$ac_try") 2>&5
5718 ac_status=$?
5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; };
5721 then
5722 # cc works too.
5723 :
5724 else
5725 # cc exists but doesn't like -o.
5726 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5727 fi
5728 fi
5729 fi
5730 else
5731 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5732 fi
5733 rm -f core conftest*
5735 fi
5736 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5738 $as_echo "yes" >&6; }
5739 else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5743 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5745 fi
5747 # FIXME: we rely on the cache variable name because
5748 # there is no other way.
5749 set dummy $CC
5750 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5751 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5752 if test "$am_t" != yes; then
5753 # Losing compiler, so override with the script.
5754 # FIXME: It is wrong to rewrite CC.
5755 # But if we don't then we get into trouble of one sort or another.
5756 # A longer-term fix would be to have automake use am__CC in this case,
5757 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5758 CC="$am_aux_dir/compile $CC"
5759 fi
5762 case `pwd` in
5763 *\ * | *\ *)
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5765 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5766 esac
5770 macro_version='2.2.6'
5771 macro_revision='1.3012'
5785 ltmain="$ac_aux_dir/ltmain.sh"
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5788 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5789 if test "${ac_cv_path_SED+set}" = set; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5793 for ac_i in 1 2 3 4 5 6 7; do
5794 ac_script="$ac_script$as_nl$ac_script"
5795 done
5796 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5797 { ac_script=; unset ac_script;}
5798 if test -z "$SED"; then
5799 ac_path_SED_found=false
5800 # Loop through the user's path and test for each of PROGNAME-LIST
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_prog in sed gsed; do
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5809 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5810 # Check for GNU ac_path_SED and select it if it is found.
5811 # Check for GNU $ac_path_SED
5812 case `"$ac_path_SED" --version 2>&1` in
5813 *GNU*)
5814 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5815 *)
5816 ac_count=0
5817 $as_echo_n 0123456789 >"conftest.in"
5818 while :
5819 do
5820 cat "conftest.in" "conftest.in" >"conftest.tmp"
5821 mv "conftest.tmp" "conftest.in"
5822 cp "conftest.in" "conftest.nl"
5823 $as_echo '' >> "conftest.nl"
5824 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5826 as_fn_arith $ac_count + 1 && ac_count=$as_val
5827 if test $ac_count -gt ${ac_path_SED_max-0}; then
5828 # Best one so far, save it but keep looking for a better one
5829 ac_cv_path_SED="$ac_path_SED"
5830 ac_path_SED_max=$ac_count
5831 fi
5832 # 10*(2^10) chars as input seems more than enough
5833 test $ac_count -gt 10 && break
5834 done
5835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5836 esac
5838 $ac_path_SED_found && break 3
5839 done
5840 done
5841 done
5842 IFS=$as_save_IFS
5843 if test -z "$ac_cv_path_SED"; then
5844 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5845 fi
5846 else
5847 ac_cv_path_SED=$SED
5848 fi
5850 fi
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5852 $as_echo "$ac_cv_path_SED" >&6; }
5853 SED="$ac_cv_path_SED"
5854 rm -f conftest.sed
5856 test -z "$SED" && SED=sed
5857 Xsed="$SED -e 1s/^X//"
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5870 $as_echo_n "checking for fgrep... " >&6; }
5871 if test "${ac_cv_path_FGREP+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5875 then ac_cv_path_FGREP="$GREP -F"
5876 else
5877 if test -z "$FGREP"; then
5878 ac_path_FGREP_found=false
5879 # Loop through the user's path and test for each of PROGNAME-LIST
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5882 do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
5885 for ac_prog in fgrep; do
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5888 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5889 # Check for GNU ac_path_FGREP and select it if it is found.
5890 # Check for GNU $ac_path_FGREP
5891 case `"$ac_path_FGREP" --version 2>&1` in
5892 *GNU*)
5893 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5894 *)
5895 ac_count=0
5896 $as_echo_n 0123456789 >"conftest.in"
5897 while :
5898 do
5899 cat "conftest.in" "conftest.in" >"conftest.tmp"
5900 mv "conftest.tmp" "conftest.in"
5901 cp "conftest.in" "conftest.nl"
5902 $as_echo 'FGREP' >> "conftest.nl"
5903 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5905 as_fn_arith $ac_count + 1 && ac_count=$as_val
5906 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5907 # Best one so far, save it but keep looking for a better one
5908 ac_cv_path_FGREP="$ac_path_FGREP"
5909 ac_path_FGREP_max=$ac_count
5910 fi
5911 # 10*(2^10) chars as input seems more than enough
5912 test $ac_count -gt 10 && break
5913 done
5914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5915 esac
5917 $ac_path_FGREP_found && break 3
5918 done
5919 done
5920 done
5921 IFS=$as_save_IFS
5922 if test -z "$ac_cv_path_FGREP"; then
5923 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5924 fi
5925 else
5926 ac_cv_path_FGREP=$FGREP
5927 fi
5929 fi
5930 fi
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5932 $as_echo "$ac_cv_path_FGREP" >&6; }
5933 FGREP="$ac_cv_path_FGREP"
5936 test -z "$GREP" && GREP=grep
5956 # Check whether --with-gnu-ld was given.
5957 if test "${with_gnu_ld+set}" = set; then :
5958 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5959 else
5960 with_gnu_ld=no
5961 fi
5963 ac_prog=ld
5964 if test "$GCC" = yes; then
5965 # Check if gcc -print-prog-name=ld gives a path.
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5967 $as_echo_n "checking for ld used by $CC... " >&6; }
5968 case $host in
5969 *-*-mingw*)
5970 # gcc leaves a trailing carriage return which upsets mingw
5971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5972 *)
5973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5974 esac
5975 case $ac_prog in
5976 # Accept absolute paths.
5977 [\\/]* | ?:[\\/]*)
5978 re_direlt='/[^/][^/]*/\.\./'
5979 # Canonicalize the pathname of ld
5980 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5981 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5982 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5983 done
5984 test -z "$LD" && LD="$ac_prog"
5985 ;;
5986 "")
5987 # If it fails, then pretend we aren't using GCC.
5988 ac_prog=ld
5989 ;;
5990 *)
5991 # If it is relative, then search for the first ld in PATH.
5992 with_gnu_ld=unknown
5993 ;;
5994 esac
5995 elif test "$with_gnu_ld" = yes; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5997 $as_echo_n "checking for GNU ld... " >&6; }
5998 else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6000 $as_echo_n "checking for non-GNU ld... " >&6; }
6001 fi
6002 if test "${lt_cv_path_LD+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 if test -z "$LD"; then
6006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6007 for ac_dir in $PATH; do
6008 IFS="$lt_save_ifs"
6009 test -z "$ac_dir" && ac_dir=.
6010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6011 lt_cv_path_LD="$ac_dir/$ac_prog"
6012 # Check to see if the program is GNU ld. I'd rather use --version,
6013 # but apparently some variants of GNU ld only accept -v.
6014 # Break only if it was the GNU/non-GNU ld that we prefer.
6015 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6016 *GNU* | *'with BFD'*)
6017 test "$with_gnu_ld" != no && break
6018 ;;
6019 *)
6020 test "$with_gnu_ld" != yes && break
6021 ;;
6022 esac
6023 fi
6024 done
6025 IFS="$lt_save_ifs"
6026 else
6027 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6028 fi
6029 fi
6031 LD="$lt_cv_path_LD"
6032 if test -n "$LD"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6034 $as_echo "$LD" >&6; }
6035 else
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6038 fi
6039 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6041 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6042 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6046 case `$LD -v 2>&1 </dev/null` in
6047 *GNU* | *'with BFD'*)
6048 lt_cv_prog_gnu_ld=yes
6049 ;;
6050 *)
6051 lt_cv_prog_gnu_ld=no
6052 ;;
6053 esac
6054 fi
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6056 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6057 with_gnu_ld=$lt_cv_prog_gnu_ld
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6068 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6069 if test "${lt_cv_path_NM+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$NM"; then
6073 # Let the user override the test.
6074 lt_cv_path_NM="$NM"
6075 else
6076 lt_nm_to_check="${ac_tool_prefix}nm"
6077 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6078 lt_nm_to_check="$lt_nm_to_check nm"
6079 fi
6080 for lt_tmp_nm in $lt_nm_to_check; do
6081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6082 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6083 IFS="$lt_save_ifs"
6084 test -z "$ac_dir" && ac_dir=.
6085 tmp_nm="$ac_dir/$lt_tmp_nm"
6086 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6087 # Check to see if the nm accepts a BSD-compat flag.
6088 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6089 # nm: unknown option "B" ignored
6090 # Tru64's nm complains that /dev/null is an invalid object file
6091 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6092 */dev/null* | *'Invalid file or object type'*)
6093 lt_cv_path_NM="$tmp_nm -B"
6094 break
6095 ;;
6096 *)
6097 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6098 */dev/null*)
6099 lt_cv_path_NM="$tmp_nm -p"
6100 break
6101 ;;
6102 *)
6103 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6104 continue # so that we can try to find one that supports BSD flags
6105 ;;
6106 esac
6107 ;;
6108 esac
6109 fi
6110 done
6111 IFS="$lt_save_ifs"
6112 done
6113 : ${lt_cv_path_NM=no}
6114 fi
6115 fi
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6117 $as_echo "$lt_cv_path_NM" >&6; }
6118 if test "$lt_cv_path_NM" != "no"; then
6119 NM="$lt_cv_path_NM"
6120 else
6121 # Didn't find any BSD compatible name lister, look for dumpbin.
6122 if test -n "$ac_tool_prefix"; then
6123 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6124 do
6125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 if test -n "$DUMPBIN"; then
6133 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 break 2
6145 fi
6146 done
6147 done
6148 IFS=$as_save_IFS
6150 fi
6151 fi
6152 DUMPBIN=$ac_cv_prog_DUMPBIN
6153 if test -n "$DUMPBIN"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6155 $as_echo "$DUMPBIN" >&6; }
6156 else
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6159 fi
6162 test -n "$DUMPBIN" && break
6163 done
6164 fi
6165 if test -z "$DUMPBIN"; then
6166 ac_ct_DUMPBIN=$DUMPBIN
6167 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6168 do
6169 # Extract the first word of "$ac_prog", so it can be a program name with args.
6170 set dummy $ac_prog; ac_word=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6174 $as_echo_n "(cached) " >&6
6175 else
6176 if test -n "$ac_ct_DUMPBIN"; then
6177 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6189 fi
6190 done
6191 done
6192 IFS=$as_save_IFS
6194 fi
6195 fi
6196 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6197 if test -n "$ac_ct_DUMPBIN"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6199 $as_echo "$ac_ct_DUMPBIN" >&6; }
6200 else
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6203 fi
6206 test -n "$ac_ct_DUMPBIN" && break
6207 done
6209 if test "x$ac_ct_DUMPBIN" = x; then
6210 DUMPBIN=":"
6211 else
6212 case $cross_compiling:$ac_tool_warned in
6213 yes:)
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216 ac_tool_warned=yes ;;
6217 esac
6218 DUMPBIN=$ac_ct_DUMPBIN
6219 fi
6220 fi
6223 if test "$DUMPBIN" != ":"; then
6224 NM="$DUMPBIN"
6225 fi
6226 fi
6227 test -z "$NM" && NM=nm
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6235 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6236 if test "${lt_cv_nm_interface+set}" = set; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 lt_cv_nm_interface="BSD nm"
6240 echo "int some_variable = 0;" > conftest.$ac_ext
6241 (eval echo "\"\$as_me:6241: $ac_compile\"" >&5)
6242 (eval "$ac_compile" 2>conftest.err)
6243 cat conftest.err >&5
6244 (eval echo "\"\$as_me:6244: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6245 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6246 cat conftest.err >&5
6247 (eval echo "\"\$as_me:6247: output\"" >&5)
6248 cat conftest.out >&5
6249 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6250 lt_cv_nm_interface="MS dumpbin"
6251 fi
6252 rm -f conftest*
6253 fi
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6255 $as_echo "$lt_cv_nm_interface" >&6; }
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6258 $as_echo_n "checking whether ln -s works... " >&6; }
6259 LN_S=$as_ln_s
6260 if test "$LN_S" = "ln -s"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6262 $as_echo "yes" >&6; }
6263 else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6265 $as_echo "no, using $LN_S" >&6; }
6266 fi
6268 # find the maximum length of command line arguments
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6270 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6271 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 i=0
6275 teststring="ABCD"
6277 case $build_os in
6278 msdosdjgpp*)
6279 # On DJGPP, this test can blow up pretty badly due to problems in libc
6280 # (any single argument exceeding 2000 bytes causes a buffer overrun
6281 # during glob expansion). Even if it were fixed, the result of this
6282 # check would be larger than it should be.
6283 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6284 ;;
6286 gnu*)
6287 # Under GNU Hurd, this test is not required because there is
6288 # no limit to the length of command line arguments.
6289 # Libtool will interpret -1 as no limit whatsoever
6290 lt_cv_sys_max_cmd_len=-1;
6291 ;;
6293 cygwin* | mingw* | cegcc*)
6294 # On Win9x/ME, this test blows up -- it succeeds, but takes
6295 # about 5 minutes as the teststring grows exponentially.
6296 # Worse, since 9x/ME are not pre-emptively multitasking,
6297 # you end up with a "frozen" computer, even though with patience
6298 # the test eventually succeeds (with a max line length of 256k).
6299 # Instead, let's just punt: use the minimum linelength reported by
6300 # all of the supported platforms: 8192 (on NT/2K/XP).
6301 lt_cv_sys_max_cmd_len=8192;
6302 ;;
6304 amigaos*)
6305 # On AmigaOS with pdksh, this test takes hours, literally.
6306 # So we just punt and use a minimum line length of 8192.
6307 lt_cv_sys_max_cmd_len=8192;
6308 ;;
6310 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6311 # This has been around since 386BSD, at least. Likely further.
6312 if test -x /sbin/sysctl; then
6313 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6314 elif test -x /usr/sbin/sysctl; then
6315 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6316 else
6317 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6318 fi
6319 # And add a safety zone
6320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6322 ;;
6324 interix*)
6325 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6326 lt_cv_sys_max_cmd_len=196608
6327 ;;
6329 osf*)
6330 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6331 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6332 # nice to cause kernel panics so lets avoid the loop below.
6333 # First set a reasonable default.
6334 lt_cv_sys_max_cmd_len=16384
6335 #
6336 if test -x /sbin/sysconfig; then
6337 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6338 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6339 esac
6340 fi
6341 ;;
6342 sco3.2v5*)
6343 lt_cv_sys_max_cmd_len=102400
6344 ;;
6345 sysv5* | sco5v6* | sysv4.2uw2*)
6346 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6347 if test -n "$kargmax"; then
6348 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6349 else
6350 lt_cv_sys_max_cmd_len=32768
6351 fi
6352 ;;
6353 *)
6354 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6355 if test -n "$lt_cv_sys_max_cmd_len"; then
6356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6358 else
6359 # Make teststring a little bigger before we do anything with it.
6360 # a 1K string should be a reasonable start.
6361 for i in 1 2 3 4 5 6 7 8 ; do
6362 teststring=$teststring$teststring
6363 done
6364 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6365 # If test is not a shell built-in, we'll probably end up computing a
6366 # maximum length that is only half of the actual maximum length, but
6367 # we can't tell.
6368 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6369 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6370 test $i != 17 # 1/2 MB should be enough
6371 do
6372 i=`expr $i + 1`
6373 teststring=$teststring$teststring
6374 done
6375 # Only check the string length outside the loop.
6376 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6377 teststring=
6378 # Add a significant safety factor because C++ compilers can tack on
6379 # massive amounts of additional arguments before passing them to the
6380 # linker. It appears as though 1/2 is a usable value.
6381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6382 fi
6383 ;;
6384 esac
6386 fi
6388 if test -n $lt_cv_sys_max_cmd_len ; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6390 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6391 else
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6393 $as_echo "none" >&6; }
6394 fi
6395 max_cmd_len=$lt_cv_sys_max_cmd_len
6402 : ${CP="cp -f"}
6403 : ${MV="mv -f"}
6404 : ${RM="rm -f"}
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6407 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6408 # Try some XSI features
6409 xsi_shell=no
6410 ( _lt_dummy="a/b/c"
6411 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6412 = c,a/b,, \
6413 && eval 'test $(( 1 + 1 )) -eq 2 \
6414 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6415 && xsi_shell=yes
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6417 $as_echo "$xsi_shell" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6421 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6422 lt_shell_append=no
6423 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6424 >/dev/null 2>&1 \
6425 && lt_shell_append=yes
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6427 $as_echo "$lt_shell_append" >&6; }
6430 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6431 lt_unset=unset
6432 else
6433 lt_unset=false
6434 fi
6440 # test EBCDIC or ASCII
6441 case `echo X|tr X '\101'` in
6442 A) # ASCII based system
6443 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6444 lt_SP2NL='tr \040 \012'
6445 lt_NL2SP='tr \015\012 \040\040'
6446 ;;
6447 *) # EBCDIC based system
6448 lt_SP2NL='tr \100 \n'
6449 lt_NL2SP='tr \r\n \100\100'
6450 ;;
6451 esac
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6462 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6463 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 lt_cv_ld_reload_flag='-r'
6467 fi
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6469 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6470 reload_flag=$lt_cv_ld_reload_flag
6471 case $reload_flag in
6472 "" | " "*) ;;
6473 *) reload_flag=" $reload_flag" ;;
6474 esac
6475 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6476 case $host_os in
6477 darwin*)
6478 if test "$GCC" = yes; then
6479 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6480 else
6481 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6482 fi
6483 ;;
6484 esac
6494 if test -n "$ac_tool_prefix"; then
6495 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6496 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 if test -n "$OBJDUMP"; then
6503 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516 done
6517 done
6518 IFS=$as_save_IFS
6520 fi
6521 fi
6522 OBJDUMP=$ac_cv_prog_OBJDUMP
6523 if test -n "$OBJDUMP"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6525 $as_echo "$OBJDUMP" >&6; }
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 fi
6532 fi
6533 if test -z "$ac_cv_prog_OBJDUMP"; then
6534 ac_ct_OBJDUMP=$OBJDUMP
6535 # Extract the first word of "objdump", so it can be a program name with args.
6536 set dummy objdump; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 if test -n "$ac_ct_OBJDUMP"; then
6543 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6555 fi
6556 done
6557 done
6558 IFS=$as_save_IFS
6560 fi
6561 fi
6562 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6563 if test -n "$ac_ct_OBJDUMP"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6565 $as_echo "$ac_ct_OBJDUMP" >&6; }
6566 else
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6571 if test "x$ac_ct_OBJDUMP" = x; then
6572 OBJDUMP="false"
6573 else
6574 case $cross_compiling:$ac_tool_warned in
6575 yes:)
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578 ac_tool_warned=yes ;;
6579 esac
6580 OBJDUMP=$ac_ct_OBJDUMP
6581 fi
6582 else
6583 OBJDUMP="$ac_cv_prog_OBJDUMP"
6584 fi
6586 test -z "$OBJDUMP" && OBJDUMP=objdump
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6597 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6598 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 lt_cv_file_magic_cmd='$MAGIC_CMD'
6602 lt_cv_file_magic_test_file=
6603 lt_cv_deplibs_check_method='unknown'
6604 # Need to set the preceding variable on all platforms that support
6605 # interlibrary dependencies.
6606 # 'none' -- dependencies not supported.
6607 # `unknown' -- same as none, but documents that we really don't know.
6608 # 'pass_all' -- all dependencies passed with no checks.
6609 # 'test_compile' -- check by making test program.
6610 # 'file_magic [[regex]]' -- check by looking for files in library path
6611 # which responds to the $file_magic_cmd with a given extended regex.
6612 # If you have `file' or equivalent on your system and you're not sure
6613 # whether `pass_all' will *always* work, you probably want this one.
6615 case $host_os in
6616 aix[4-9]*)
6617 lt_cv_deplibs_check_method=pass_all
6618 ;;
6620 beos*)
6621 lt_cv_deplibs_check_method=pass_all
6622 ;;
6624 bsdi[45]*)
6625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6626 lt_cv_file_magic_cmd='/usr/bin/file -L'
6627 lt_cv_file_magic_test_file=/shlib/libc.so
6628 ;;
6630 cygwin*)
6631 # func_win32_libid is a shell function defined in ltmain.sh
6632 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6633 lt_cv_file_magic_cmd='func_win32_libid'
6634 ;;
6636 mingw* | pw32*)
6637 # Base MSYS/MinGW do not provide the 'file' command needed by
6638 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6639 # unless we find 'file', for example because we are cross-compiling.
6640 if ( file / ) >/dev/null 2>&1; then
6641 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6642 lt_cv_file_magic_cmd='func_win32_libid'
6643 else
6644 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6645 lt_cv_file_magic_cmd='$OBJDUMP -f'
6646 fi
6647 ;;
6649 cegcc)
6650 # use the weaker test based on 'objdump'. See mingw*.
6651 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6652 lt_cv_file_magic_cmd='$OBJDUMP -f'
6653 ;;
6655 darwin* | rhapsody*)
6656 lt_cv_deplibs_check_method=pass_all
6657 ;;
6659 freebsd* | dragonfly*)
6660 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6661 case $host_cpu in
6662 i*86 )
6663 # Not sure whether the presence of OpenBSD here was a mistake.
6664 # Let's accept both of them until this is cleared up.
6665 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6666 lt_cv_file_magic_cmd=/usr/bin/file
6667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6668 ;;
6669 esac
6670 else
6671 lt_cv_deplibs_check_method=pass_all
6672 fi
6673 ;;
6675 gnu*)
6676 lt_cv_deplibs_check_method=pass_all
6677 ;;
6679 hpux10.20* | hpux11*)
6680 lt_cv_file_magic_cmd=/usr/bin/file
6681 case $host_cpu in
6682 ia64*)
6683 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6684 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6685 ;;
6686 hppa*64*)
6687 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]'
6688 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6689 ;;
6690 *)
6691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6692 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6693 ;;
6694 esac
6695 ;;
6697 interix[3-9]*)
6698 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6700 ;;
6702 irix5* | irix6* | nonstopux*)
6703 case $LD in
6704 *-32|*"-32 ") libmagic=32-bit;;
6705 *-n32|*"-n32 ") libmagic=N32;;
6706 *-64|*"-64 ") libmagic=64-bit;;
6707 *) libmagic=never-match;;
6708 esac
6709 lt_cv_deplibs_check_method=pass_all
6710 ;;
6712 # This must be Linux ELF.
6713 linux* | k*bsd*-gnu)
6714 lt_cv_deplibs_check_method=pass_all
6715 ;;
6717 netbsd* | netbsdelf*-gnu)
6718 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6720 else
6721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6722 fi
6723 ;;
6725 newos6*)
6726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6727 lt_cv_file_magic_cmd=/usr/bin/file
6728 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6729 ;;
6731 *nto* | *qnx*)
6732 lt_cv_deplibs_check_method=pass_all
6733 ;;
6735 openbsd*)
6736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6738 else
6739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6740 fi
6741 ;;
6743 osf3* | osf4* | osf5*)
6744 lt_cv_deplibs_check_method=pass_all
6745 ;;
6747 rdos*)
6748 lt_cv_deplibs_check_method=pass_all
6749 ;;
6751 solaris*)
6752 lt_cv_deplibs_check_method=pass_all
6753 ;;
6755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6756 lt_cv_deplibs_check_method=pass_all
6757 ;;
6759 sysv4 | sysv4.3*)
6760 case $host_vendor in
6761 motorola)
6762 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]'
6763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6764 ;;
6765 ncr)
6766 lt_cv_deplibs_check_method=pass_all
6767 ;;
6768 sequent)
6769 lt_cv_file_magic_cmd='/bin/file'
6770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6771 ;;
6772 sni)
6773 lt_cv_file_magic_cmd='/bin/file'
6774 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6775 lt_cv_file_magic_test_file=/lib/libc.so
6776 ;;
6777 siemens)
6778 lt_cv_deplibs_check_method=pass_all
6779 ;;
6780 pc)
6781 lt_cv_deplibs_check_method=pass_all
6782 ;;
6783 esac
6784 ;;
6786 tpf*)
6787 lt_cv_deplibs_check_method=pass_all
6788 ;;
6789 esac
6791 fi
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6793 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6794 file_magic_cmd=$lt_cv_file_magic_cmd
6795 deplibs_check_method=$lt_cv_deplibs_check_method
6796 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6809 if test -n "$ac_tool_prefix"; then
6810 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6811 set dummy ${ac_tool_prefix}ar; ac_word=$2
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if test "${ac_cv_prog_AR+set}" = set; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 if test -n "$AR"; then
6818 ac_cv_prog_AR="$AR" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827 ac_cv_prog_AR="${ac_tool_prefix}ar"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6830 fi
6831 done
6832 done
6833 IFS=$as_save_IFS
6835 fi
6836 fi
6837 AR=$ac_cv_prog_AR
6838 if test -n "$AR"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6840 $as_echo "$AR" >&6; }
6841 else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843 $as_echo "no" >&6; }
6844 fi
6847 fi
6848 if test -z "$ac_cv_prog_AR"; then
6849 ac_ct_AR=$AR
6850 # Extract the first word of "ar", so it can be a program name with args.
6851 set dummy ar; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 if test -n "$ac_ct_AR"; then
6858 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863 IFS=$as_save_IFS
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6867 ac_cv_prog_ac_ct_AR="ar"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 break 2
6870 fi
6871 done
6872 done
6873 IFS=$as_save_IFS
6875 fi
6876 fi
6877 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6878 if test -n "$ac_ct_AR"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6880 $as_echo "$ac_ct_AR" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6884 fi
6886 if test "x$ac_ct_AR" = x; then
6887 AR="false"
6888 else
6889 case $cross_compiling:$ac_tool_warned in
6890 yes:)
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6893 ac_tool_warned=yes ;;
6894 esac
6895 AR=$ac_ct_AR
6896 fi
6897 else
6898 AR="$ac_cv_prog_AR"
6899 fi
6901 test -z "$AR" && AR=ar
6902 test -z "$AR_FLAGS" && AR_FLAGS=cru
6914 if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6916 set dummy ${ac_tool_prefix}strip; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if test "${ac_cv_prog_STRIP+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 if test -n "$STRIP"; then
6923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936 done
6937 done
6938 IFS=$as_save_IFS
6940 fi
6941 fi
6942 STRIP=$ac_cv_prog_STRIP
6943 if test -n "$STRIP"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6945 $as_echo "$STRIP" >&6; }
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6952 fi
6953 if test -z "$ac_cv_prog_STRIP"; then
6954 ac_ct_STRIP=$STRIP
6955 # Extract the first word of "strip", so it can be a program name with args.
6956 set dummy strip; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 if test -n "$ac_ct_STRIP"; then
6963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_prog_ac_ct_STRIP="strip"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976 done
6977 done
6978 IFS=$as_save_IFS
6980 fi
6981 fi
6982 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6983 if test -n "$ac_ct_STRIP"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6985 $as_echo "$ac_ct_STRIP" >&6; }
6986 else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6991 if test "x$ac_ct_STRIP" = x; then
6992 STRIP=":"
6993 else
6994 case $cross_compiling:$ac_tool_warned in
6995 yes:)
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6998 ac_tool_warned=yes ;;
6999 esac
7000 STRIP=$ac_ct_STRIP
7001 fi
7002 else
7003 STRIP="$ac_cv_prog_STRIP"
7004 fi
7006 test -z "$STRIP" && STRIP=:
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7015 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 if test -n "$RANLIB"; then
7022 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7039 fi
7040 fi
7041 RANLIB=$ac_cv_prog_RANLIB
7042 if test -n "$RANLIB"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7044 $as_echo "$RANLIB" >&6; }
7045 else
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7048 fi
7051 fi
7052 if test -z "$ac_cv_prog_RANLIB"; then
7053 ac_ct_RANLIB=$RANLIB
7054 # Extract the first word of "ranlib", so it can be a program name with args.
7055 set dummy ranlib; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 if test -n "$ac_ct_RANLIB"; then
7062 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_prog_ac_ct_RANLIB="ranlib"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7074 fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7079 fi
7080 fi
7081 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7082 if test -n "$ac_ct_RANLIB"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7084 $as_echo "$ac_ct_RANLIB" >&6; }
7085 else
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7088 fi
7090 if test "x$ac_ct_RANLIB" = x; then
7091 RANLIB=":"
7092 else
7093 case $cross_compiling:$ac_tool_warned in
7094 yes:)
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7097 ac_tool_warned=yes ;;
7098 esac
7099 RANLIB=$ac_ct_RANLIB
7100 fi
7101 else
7102 RANLIB="$ac_cv_prog_RANLIB"
7103 fi
7105 test -z "$RANLIB" && RANLIB=:
7112 # Determine commands to create old-style static archives.
7113 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7114 old_postinstall_cmds='chmod 644 $oldlib'
7115 old_postuninstall_cmds=
7117 if test -n "$RANLIB"; then
7118 case $host_os in
7119 openbsd*)
7120 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7121 ;;
7122 *)
7123 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7124 ;;
7125 esac
7126 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7127 fi
7162 # If no C compiler was specified, use CC.
7163 LTCC=${LTCC-"$CC"}
7165 # If no C compiler flags were specified, use CFLAGS.
7166 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7168 # Allow CC to be a program name with arguments.
7169 compiler=$CC
7172 # Check for command to grab the raw symbol name followed by C symbol from nm.
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7174 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7175 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7179 # These are sane defaults that work on at least a few old systems.
7180 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7182 # Character class describing NM global symbol codes.
7183 symcode='[BCDEGRST]'
7185 # Regexp to match symbols that can be accessed directly from C.
7186 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7188 # Define system-specific variables.
7189 case $host_os in
7190 aix*)
7191 symcode='[BCDT]'
7192 ;;
7193 cygwin* | mingw* | pw32* | cegcc*)
7194 symcode='[ABCDGISTW]'
7195 ;;
7196 hpux*)
7197 if test "$host_cpu" = ia64; then
7198 symcode='[ABCDEGRST]'
7199 fi
7200 ;;
7201 irix* | nonstopux*)
7202 symcode='[BCDEGRST]'
7203 ;;
7204 osf*)
7205 symcode='[BCDEGQRST]'
7206 ;;
7207 solaris*)
7208 symcode='[BDRT]'
7209 ;;
7210 sco3.2v5*)
7211 symcode='[DT]'
7212 ;;
7213 sysv4.2uw2*)
7214 symcode='[DT]'
7215 ;;
7216 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7217 symcode='[ABDT]'
7218 ;;
7219 sysv4)
7220 symcode='[DFNSTU]'
7221 ;;
7222 esac
7224 # If we're using GNU nm, then use its standard symbol codes.
7225 case `$NM -V 2>&1` in
7226 *GNU* | *'with BFD'*)
7227 symcode='[ABCDGIRSTW]' ;;
7228 esac
7230 # Transform an extracted symbol line into a proper C declaration.
7231 # Some systems (esp. on ia64) link data and code symbols differently,
7232 # so use this general approach.
7233 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7235 # Transform an extracted symbol line into symbol name and symbol address
7236 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7237 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'"
7239 # Handle CRLF in mingw tool chain
7240 opt_cr=
7241 case $build_os in
7242 mingw*)
7243 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7244 ;;
7245 esac
7247 # Try without a prefix underscore, then with it.
7248 for ac_symprfx in "" "_"; do
7250 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7251 symxfrm="\\1 $ac_symprfx\\2 \\2"
7253 # Write the raw and C identifiers.
7254 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7255 # Fake it for dumpbin and say T for any non-static function
7256 # and D for any global variable.
7257 # Also find C++ and __fastcall symbols from MSVC++,
7258 # which start with @ or ?.
7259 lt_cv_sys_global_symbol_pipe="$AWK '"\
7260 " {last_section=section; section=\$ 3};"\
7261 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7262 " \$ 0!~/External *\|/{next};"\
7263 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7264 " {if(hide[section]) next};"\
7265 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7266 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7267 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7268 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7269 " ' prfx=^$ac_symprfx"
7270 else
7271 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7272 fi
7274 # Check to see that the pipe works correctly.
7275 pipe_works=no
7277 rm -f conftest*
7278 cat > conftest.$ac_ext <<_LT_EOF
7279 #ifdef __cplusplus
7280 extern "C" {
7281 #endif
7282 char nm_test_var;
7283 void nm_test_func(void);
7284 void nm_test_func(void){}
7285 #ifdef __cplusplus
7286 }
7287 #endif
7288 int main(){nm_test_var='a';nm_test_func();return(0);}
7289 _LT_EOF
7291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7292 (eval $ac_compile) 2>&5
7293 ac_status=$?
7294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295 test $ac_status = 0; }; then
7296 # Now try to grab the symbols.
7297 nlist=conftest.nm
7298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7299 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7300 ac_status=$?
7301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7302 test $ac_status = 0; } && test -s "$nlist"; then
7303 # Try sorting and uniquifying the output.
7304 if sort "$nlist" | uniq > "$nlist"T; then
7305 mv -f "$nlist"T "$nlist"
7306 else
7307 rm -f "$nlist"T
7308 fi
7310 # Make sure that we snagged all the symbols we need.
7311 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7312 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7313 cat <<_LT_EOF > conftest.$ac_ext
7314 #ifdef __cplusplus
7315 extern "C" {
7316 #endif
7318 _LT_EOF
7319 # Now generate the symbol file.
7320 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7322 cat <<_LT_EOF >> conftest.$ac_ext
7324 /* The mapping between symbol names and symbols. */
7325 const struct {
7326 const char *name;
7327 void *address;
7328 }
7329 lt__PROGRAM__LTX_preloaded_symbols[] =
7330 {
7331 { "@PROGRAM@", (void *) 0 },
7332 _LT_EOF
7333 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7334 cat <<\_LT_EOF >> conftest.$ac_ext
7335 {0, (void *) 0}
7336 };
7338 /* This works around a problem in FreeBSD linker */
7339 #ifdef FREEBSD_WORKAROUND
7340 static const void *lt_preloaded_setup() {
7341 return lt__PROGRAM__LTX_preloaded_symbols;
7342 }
7343 #endif
7345 #ifdef __cplusplus
7346 }
7347 #endif
7348 _LT_EOF
7349 # Now try linking the two files.
7350 mv conftest.$ac_objext conftstm.$ac_objext
7351 lt_save_LIBS="$LIBS"
7352 lt_save_CFLAGS="$CFLAGS"
7353 LIBS="conftstm.$ac_objext"
7354 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7356 (eval $ac_link) 2>&5
7357 ac_status=$?
7358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7359 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7360 pipe_works=yes
7361 fi
7362 LIBS="$lt_save_LIBS"
7363 CFLAGS="$lt_save_CFLAGS"
7364 else
7365 echo "cannot find nm_test_func in $nlist" >&5
7366 fi
7367 else
7368 echo "cannot find nm_test_var in $nlist" >&5
7369 fi
7370 else
7371 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7372 fi
7373 else
7374 echo "$progname: failed program was:" >&5
7375 cat conftest.$ac_ext >&5
7376 fi
7377 rm -rf conftest* conftst*
7379 # Do not use the global_symbol_pipe unless it works.
7380 if test "$pipe_works" = yes; then
7381 break
7382 else
7383 lt_cv_sys_global_symbol_pipe=
7384 fi
7385 done
7387 fi
7389 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7390 lt_cv_sys_global_symbol_to_cdecl=
7391 fi
7392 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7394 $as_echo "failed" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7397 $as_echo "ok" >&6; }
7398 fi
7421 # Check whether --enable-libtool-lock was given.
7422 if test "${enable_libtool_lock+set}" = set; then :
7423 enableval=$enable_libtool_lock;
7424 fi
7426 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7428 # Some flags need to be propagated to the compiler or linker for good
7429 # libtool support.
7430 case $host in
7431 ia64-*-hpux*)
7432 # Find out which ABI we are using.
7433 echo 'int i;' > conftest.$ac_ext
7434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7435 (eval $ac_compile) 2>&5
7436 ac_status=$?
7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438 test $ac_status = 0; }; then
7439 case `/usr/bin/file conftest.$ac_objext` in
7440 *ELF-32*)
7441 HPUX_IA64_MODE="32"
7442 ;;
7443 *ELF-64*)
7444 HPUX_IA64_MODE="64"
7445 ;;
7446 esac
7447 fi
7448 rm -rf conftest*
7449 ;;
7450 *-*-irix6*)
7451 # Find out which ABI we are using.
7452 echo '#line 7452 "configure"' > conftest.$ac_ext
7453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7454 (eval $ac_compile) 2>&5
7455 ac_status=$?
7456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7457 test $ac_status = 0; }; then
7458 if test "$lt_cv_prog_gnu_ld" = yes; then
7459 case `/usr/bin/file conftest.$ac_objext` in
7460 *32-bit*)
7461 LD="${LD-ld} -melf32bsmip"
7462 ;;
7463 *N32*)
7464 LD="${LD-ld} -melf32bmipn32"
7465 ;;
7466 *64-bit*)
7467 LD="${LD-ld} -melf64bmip"
7468 ;;
7469 esac
7470 else
7471 case `/usr/bin/file conftest.$ac_objext` in
7472 *32-bit*)
7473 LD="${LD-ld} -32"
7474 ;;
7475 *N32*)
7476 LD="${LD-ld} -n32"
7477 ;;
7478 *64-bit*)
7479 LD="${LD-ld} -64"
7480 ;;
7481 esac
7482 fi
7483 fi
7484 rm -rf conftest*
7485 ;;
7487 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7488 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7489 # Find out which ABI we are using.
7490 echo 'int i;' > conftest.$ac_ext
7491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7492 (eval $ac_compile) 2>&5
7493 ac_status=$?
7494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7495 test $ac_status = 0; }; then
7496 case `/usr/bin/file conftest.o` in
7497 *32-bit*)
7498 case $host in
7499 x86_64-*kfreebsd*-gnu)
7500 LD="${LD-ld} -m elf_i386_fbsd"
7501 ;;
7502 x86_64-*linux*)
7503 LD="${LD-ld} -m elf_i386"
7504 ;;
7505 ppc64-*linux*|powerpc64-*linux*)
7506 LD="${LD-ld} -m elf32ppclinux"
7507 ;;
7508 s390x-*linux*)
7509 LD="${LD-ld} -m elf_s390"
7510 ;;
7511 sparc64-*linux*)
7512 LD="${LD-ld} -m elf32_sparc"
7513 ;;
7514 esac
7515 ;;
7516 *64-bit*)
7517 case $host in
7518 x86_64-*kfreebsd*-gnu)
7519 LD="${LD-ld} -m elf_x86_64_fbsd"
7520 ;;
7521 x86_64-*linux*)
7522 LD="${LD-ld} -m elf_x86_64"
7523 ;;
7524 ppc*-*linux*|powerpc*-*linux*)
7525 LD="${LD-ld} -m elf64ppc"
7526 ;;
7527 s390*-*linux*|s390*-*tpf*)
7528 LD="${LD-ld} -m elf64_s390"
7529 ;;
7530 sparc*-*linux*)
7531 LD="${LD-ld} -m elf64_sparc"
7532 ;;
7533 esac
7534 ;;
7535 esac
7536 fi
7537 rm -rf conftest*
7538 ;;
7540 *-*-sco3.2v5*)
7541 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7542 SAVE_CFLAGS="$CFLAGS"
7543 CFLAGS="$CFLAGS -belf"
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7545 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7546 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7547 $as_echo_n "(cached) " >&6
7548 else
7549 ac_ext=c
7550 ac_cpp='$CPP $CPPFLAGS'
7551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7558 int
7559 main ()
7560 {
7562 ;
7563 return 0;
7564 }
7565 _ACEOF
7566 if ac_fn_c_try_link "$LINENO"; then :
7567 lt_cv_cc_needs_belf=yes
7568 else
7569 lt_cv_cc_needs_belf=no
7570 fi
7571 rm -f core conftest.err conftest.$ac_objext \
7572 conftest$ac_exeext conftest.$ac_ext
7573 ac_ext=c
7574 ac_cpp='$CPP $CPPFLAGS'
7575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7579 fi
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7581 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7582 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7583 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7584 CFLAGS="$SAVE_CFLAGS"
7585 fi
7586 ;;
7587 sparc*-*solaris*)
7588 # Find out which ABI we are using.
7589 echo 'int i;' > conftest.$ac_ext
7590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7591 (eval $ac_compile) 2>&5
7592 ac_status=$?
7593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7594 test $ac_status = 0; }; then
7595 case `/usr/bin/file conftest.o` in
7596 *64-bit*)
7597 case $lt_cv_prog_gnu_ld in
7598 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7599 *)
7600 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7601 LD="${LD-ld} -64"
7602 fi
7603 ;;
7604 esac
7605 ;;
7606 esac
7607 fi
7608 rm -rf conftest*
7609 ;;
7610 esac
7612 need_locks="$enable_libtool_lock"
7615 case $host_os in
7616 rhapsody* | darwin*)
7617 if test -n "$ac_tool_prefix"; then
7618 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7619 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 if test -n "$DSYMUTIL"; then
7626 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7627 else
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 for as_dir in $PATH
7630 do
7631 IFS=$as_save_IFS
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7635 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 break 2
7638 fi
7639 done
7640 done
7641 IFS=$as_save_IFS
7643 fi
7644 fi
7645 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7646 if test -n "$DSYMUTIL"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7648 $as_echo "$DSYMUTIL" >&6; }
7649 else
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7652 fi
7655 fi
7656 if test -z "$ac_cv_prog_DSYMUTIL"; then
7657 ac_ct_DSYMUTIL=$DSYMUTIL
7658 # Extract the first word of "dsymutil", so it can be a program name with args.
7659 set dummy dsymutil; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 if test -n "$ac_ct_DSYMUTIL"; then
7666 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7678 fi
7679 done
7680 done
7681 IFS=$as_save_IFS
7683 fi
7684 fi
7685 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7686 if test -n "$ac_ct_DSYMUTIL"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7688 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7689 else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7694 if test "x$ac_ct_DSYMUTIL" = x; then
7695 DSYMUTIL=":"
7696 else
7697 case $cross_compiling:$ac_tool_warned in
7698 yes:)
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7701 ac_tool_warned=yes ;;
7702 esac
7703 DSYMUTIL=$ac_ct_DSYMUTIL
7704 fi
7705 else
7706 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7707 fi
7709 if test -n "$ac_tool_prefix"; then
7710 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7711 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 if test -n "$NMEDIT"; then
7718 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7719 else
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721 for as_dir in $PATH
7722 do
7723 IFS=$as_save_IFS
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731 done
7732 done
7733 IFS=$as_save_IFS
7735 fi
7736 fi
7737 NMEDIT=$ac_cv_prog_NMEDIT
7738 if test -n "$NMEDIT"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7740 $as_echo "$NMEDIT" >&6; }
7741 else
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7744 fi
7747 fi
7748 if test -z "$ac_cv_prog_NMEDIT"; then
7749 ac_ct_NMEDIT=$NMEDIT
7750 # Extract the first word of "nmedit", so it can be a program name with args.
7751 set dummy nmedit; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 if test -n "$ac_ct_NMEDIT"; then
7758 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7759 else
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 for as_dir in $PATH
7762 do
7763 IFS=$as_save_IFS
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 break 2
7770 fi
7771 done
7772 done
7773 IFS=$as_save_IFS
7775 fi
7776 fi
7777 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7778 if test -n "$ac_ct_NMEDIT"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7780 $as_echo "$ac_ct_NMEDIT" >&6; }
7781 else
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7784 fi
7786 if test "x$ac_ct_NMEDIT" = x; then
7787 NMEDIT=":"
7788 else
7789 case $cross_compiling:$ac_tool_warned in
7790 yes:)
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7793 ac_tool_warned=yes ;;
7794 esac
7795 NMEDIT=$ac_ct_NMEDIT
7796 fi
7797 else
7798 NMEDIT="$ac_cv_prog_NMEDIT"
7799 fi
7801 if test -n "$ac_tool_prefix"; then
7802 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7803 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_LIPO+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 if test -n "$LIPO"; then
7810 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7822 fi
7823 done
7824 done
7825 IFS=$as_save_IFS
7827 fi
7828 fi
7829 LIPO=$ac_cv_prog_LIPO
7830 if test -n "$LIPO"; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7832 $as_echo "$LIPO" >&6; }
7833 else
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7836 fi
7839 fi
7840 if test -z "$ac_cv_prog_LIPO"; then
7841 ac_ct_LIPO=$LIPO
7842 # Extract the first word of "lipo", so it can be a program name with args.
7843 set dummy lipo; ac_word=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 if test -n "$ac_ct_LIPO"; then
7850 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7851 else
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7854 do
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_prog_ac_ct_LIPO="lipo"
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 break 2
7862 fi
7863 done
7864 done
7865 IFS=$as_save_IFS
7867 fi
7868 fi
7869 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7870 if test -n "$ac_ct_LIPO"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7872 $as_echo "$ac_ct_LIPO" >&6; }
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 fi
7878 if test "x$ac_ct_LIPO" = x; then
7879 LIPO=":"
7880 else
7881 case $cross_compiling:$ac_tool_warned in
7882 yes:)
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7885 ac_tool_warned=yes ;;
7886 esac
7887 LIPO=$ac_ct_LIPO
7888 fi
7889 else
7890 LIPO="$ac_cv_prog_LIPO"
7891 fi
7893 if test -n "$ac_tool_prefix"; then
7894 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7895 set dummy ${ac_tool_prefix}otool; ac_word=$2
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7897 $as_echo_n "checking for $ac_word... " >&6; }
7898 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7900 else
7901 if test -n "$OTOOL"; then
7902 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7903 else
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 for as_dir in $PATH
7906 do
7907 IFS=$as_save_IFS
7908 test -z "$as_dir" && as_dir=.
7909 for ac_exec_ext in '' $ac_executable_extensions; do
7910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7911 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 break 2
7914 fi
7915 done
7916 done
7917 IFS=$as_save_IFS
7919 fi
7920 fi
7921 OTOOL=$ac_cv_prog_OTOOL
7922 if test -n "$OTOOL"; then
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7924 $as_echo "$OTOOL" >&6; }
7925 else
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7927 $as_echo "no" >&6; }
7928 fi
7931 fi
7932 if test -z "$ac_cv_prog_OTOOL"; then
7933 ac_ct_OTOOL=$OTOOL
7934 # Extract the first word of "otool", so it can be a program name with args.
7935 set dummy otool; ac_word=$2
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 $as_echo_n "checking for $ac_word... " >&6; }
7938 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 if test -n "$ac_ct_OTOOL"; then
7942 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7943 else
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7945 for as_dir in $PATH
7946 do
7947 IFS=$as_save_IFS
7948 test -z "$as_dir" && as_dir=.
7949 for ac_exec_ext in '' $ac_executable_extensions; do
7950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7951 ac_cv_prog_ac_ct_OTOOL="otool"
7952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 break 2
7954 fi
7955 done
7956 done
7957 IFS=$as_save_IFS
7959 fi
7960 fi
7961 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7962 if test -n "$ac_ct_OTOOL"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7964 $as_echo "$ac_ct_OTOOL" >&6; }
7965 else
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7968 fi
7970 if test "x$ac_ct_OTOOL" = x; then
7971 OTOOL=":"
7972 else
7973 case $cross_compiling:$ac_tool_warned in
7974 yes:)
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7977 ac_tool_warned=yes ;;
7978 esac
7979 OTOOL=$ac_ct_OTOOL
7980 fi
7981 else
7982 OTOOL="$ac_cv_prog_OTOOL"
7983 fi
7985 if test -n "$ac_tool_prefix"; then
7986 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7987 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989 $as_echo_n "checking for $ac_word... " >&6; }
7990 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 if test -n "$OTOOL64"; then
7994 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7995 else
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7998 do
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8003 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 break 2
8006 fi
8007 done
8008 done
8009 IFS=$as_save_IFS
8011 fi
8012 fi
8013 OTOOL64=$ac_cv_prog_OTOOL64
8014 if test -n "$OTOOL64"; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8016 $as_echo "$OTOOL64" >&6; }
8017 else
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8020 fi
8023 fi
8024 if test -z "$ac_cv_prog_OTOOL64"; then
8025 ac_ct_OTOOL64=$OTOOL64
8026 # Extract the first word of "otool64", so it can be a program name with args.
8027 set dummy otool64; ac_word=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 if test -n "$ac_ct_OTOOL64"; then
8034 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8035 else
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8038 do
8039 IFS=$as_save_IFS
8040 test -z "$as_dir" && as_dir=.
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8043 ac_cv_prog_ac_ct_OTOOL64="otool64"
8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 break 2
8046 fi
8047 done
8048 done
8049 IFS=$as_save_IFS
8051 fi
8052 fi
8053 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8054 if test -n "$ac_ct_OTOOL64"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8056 $as_echo "$ac_ct_OTOOL64" >&6; }
8057 else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8060 fi
8062 if test "x$ac_ct_OTOOL64" = x; then
8063 OTOOL64=":"
8064 else
8065 case $cross_compiling:$ac_tool_warned in
8066 yes:)
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8069 ac_tool_warned=yes ;;
8070 esac
8071 OTOOL64=$ac_ct_OTOOL64
8072 fi
8073 else
8074 OTOOL64="$ac_cv_prog_OTOOL64"
8075 fi
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8104 $as_echo_n "checking for -single_module linker flag... " >&6; }
8105 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 lt_cv_apple_cc_single_mod=no
8109 if test -z "${LT_MULTI_MODULE}"; then
8110 # By default we will add the -single_module flag. You can override
8111 # by either setting the environment variable LT_MULTI_MODULE
8112 # non-empty at configure time, or by adding -multi_module to the
8113 # link flags.
8114 rm -rf libconftest.dylib*
8115 echo "int foo(void){return 1;}" > conftest.c
8116 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8117 -dynamiclib -Wl,-single_module conftest.c" >&5
8118 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8119 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8120 _lt_result=$?
8121 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8122 lt_cv_apple_cc_single_mod=yes
8123 else
8124 cat conftest.err >&5
8125 fi
8126 rm -rf libconftest.dylib*
8127 rm -f conftest.*
8128 fi
8129 fi
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8131 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8133 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8134 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 lt_cv_ld_exported_symbols_list=no
8138 save_LDFLAGS=$LDFLAGS
8139 echo "_main" > conftest.sym
8140 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8144 int
8145 main ()
8146 {
8148 ;
8149 return 0;
8150 }
8151 _ACEOF
8152 if ac_fn_c_try_link "$LINENO"; then :
8153 lt_cv_ld_exported_symbols_list=yes
8154 else
8155 lt_cv_ld_exported_symbols_list=no
8156 fi
8157 rm -f core conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
8159 LDFLAGS="$save_LDFLAGS"
8161 fi
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8163 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8164 case $host_os in
8165 rhapsody* | darwin1.[012])
8166 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8167 darwin1.*)
8168 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8169 darwin*) # darwin 5.x on
8170 # if running on 10.5 or later, the deployment target defaults
8171 # to the OS version, if on x86, and 10.4, the deployment
8172 # target defaults to 10.4. Don't you love it?
8173 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8174 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8175 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8176 10.[012]*)
8177 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8178 10.*)
8179 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8180 esac
8181 ;;
8182 esac
8183 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8184 _lt_dar_single_mod='$single_module'
8185 fi
8186 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8187 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8188 else
8189 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8190 fi
8191 if test "$DSYMUTIL" != ":"; then
8192 _lt_dsymutil='~$DSYMUTIL $lib || :'
8193 else
8194 _lt_dsymutil=
8195 fi
8196 ;;
8197 esac
8199 for ac_header in dlfcn.h
8200 do :
8201 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8202 "
8203 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8204 cat >>confdefs.h <<_ACEOF
8205 #define HAVE_DLFCN_H 1
8206 _ACEOF
8208 fi
8210 done
8214 # Set options
8218 enable_dlopen=no
8221 enable_win32_dll=no
8224 # Check whether --enable-shared was given.
8225 if test "${enable_shared+set}" = set; then :
8226 enableval=$enable_shared; p=${PACKAGE-default}
8227 case $enableval in
8228 yes) enable_shared=yes ;;
8229 no) enable_shared=no ;;
8230 *)
8231 enable_shared=no
8232 # Look at the argument we got. We use all the common list separators.
8233 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8234 for pkg in $enableval; do
8235 IFS="$lt_save_ifs"
8236 if test "X$pkg" = "X$p"; then
8237 enable_shared=yes
8238 fi
8239 done
8240 IFS="$lt_save_ifs"
8241 ;;
8242 esac
8243 else
8244 enable_shared=yes
8245 fi
8255 # Check whether --enable-static was given.
8256 if test "${enable_static+set}" = set; then :
8257 enableval=$enable_static; p=${PACKAGE-default}
8258 case $enableval in
8259 yes) enable_static=yes ;;
8260 no) enable_static=no ;;
8261 *)
8262 enable_static=no
8263 # Look at the argument we got. We use all the common list separators.
8264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8265 for pkg in $enableval; do
8266 IFS="$lt_save_ifs"
8267 if test "X$pkg" = "X$p"; then
8268 enable_static=yes
8269 fi
8270 done
8271 IFS="$lt_save_ifs"
8272 ;;
8273 esac
8274 else
8275 enable_static=yes
8276 fi
8287 # Check whether --with-pic was given.
8288 if test "${with_pic+set}" = set; then :
8289 withval=$with_pic; pic_mode="$withval"
8290 else
8291 pic_mode=default
8292 fi
8295 test -z "$pic_mode" && pic_mode=default
8303 # Check whether --enable-fast-install was given.
8304 if test "${enable_fast_install+set}" = set; then :
8305 enableval=$enable_fast_install; p=${PACKAGE-default}
8306 case $enableval in
8307 yes) enable_fast_install=yes ;;
8308 no) enable_fast_install=no ;;
8309 *)
8310 enable_fast_install=no
8311 # Look at the argument we got. We use all the common list separators.
8312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8313 for pkg in $enableval; do
8314 IFS="$lt_save_ifs"
8315 if test "X$pkg" = "X$p"; then
8316 enable_fast_install=yes
8317 fi
8318 done
8319 IFS="$lt_save_ifs"
8320 ;;
8321 esac
8322 else
8323 enable_fast_install=yes
8324 fi
8336 # This can be used to rebuild libtool when needed
8337 LIBTOOL_DEPS="$ltmain"
8339 # Always use our own libtool.
8340 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8366 test -z "$LN_S" && LN_S="ln -s"
8381 if test -n "${ZSH_VERSION+set}" ; then
8382 setopt NO_GLOB_SUBST
8383 fi
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8386 $as_echo_n "checking for objdir... " >&6; }
8387 if test "${lt_cv_objdir+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 rm -f .libs 2>/dev/null
8391 mkdir .libs 2>/dev/null
8392 if test -d .libs; then
8393 lt_cv_objdir=.libs
8394 else
8395 # MS-DOS does not allow filenames that begin with a dot.
8396 lt_cv_objdir=_libs
8397 fi
8398 rmdir .libs 2>/dev/null
8399 fi
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8401 $as_echo "$lt_cv_objdir" >&6; }
8402 objdir=$lt_cv_objdir
8408 cat >>confdefs.h <<_ACEOF
8409 #define LT_OBJDIR "$lt_cv_objdir/"
8410 _ACEOF
8428 case $host_os in
8429 aix3*)
8430 # AIX sometimes has problems with the GCC collect2 program. For some
8431 # reason, if we set the COLLECT_NAMES environment variable, the problems
8432 # vanish in a puff of smoke.
8433 if test "X${COLLECT_NAMES+set}" != Xset; then
8434 COLLECT_NAMES=
8435 export COLLECT_NAMES
8436 fi
8437 ;;
8438 esac
8440 # Sed substitution that helps us do robust quoting. It backslashifies
8441 # metacharacters that are still active within double-quoted strings.
8442 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8444 # Same as above, but do not quote variable references.
8445 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8447 # Sed substitution to delay expansion of an escaped shell variable in a
8448 # double_quote_subst'ed string.
8449 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8451 # Sed substitution to delay expansion of an escaped single quote.
8452 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8454 # Sed substitution to avoid accidental globbing in evaled expressions
8455 no_glob_subst='s/\*/\\\*/g'
8457 # Global variables:
8458 ofile=libtool
8459 can_build_shared=yes
8461 # All known linkers require a `.a' archive for static linking (except MSVC,
8462 # which needs '.lib').
8463 libext=a
8465 with_gnu_ld="$lt_cv_prog_gnu_ld"
8467 old_CC="$CC"
8468 old_CFLAGS="$CFLAGS"
8470 # Set sane defaults for various variables
8471 test -z "$CC" && CC=cc
8472 test -z "$LTCC" && LTCC=$CC
8473 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8474 test -z "$LD" && LD=ld
8475 test -z "$ac_objext" && ac_objext=o
8477 for cc_temp in $compiler""; do
8478 case $cc_temp in
8479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8481 \-*) ;;
8482 *) break;;
8483 esac
8484 done
8485 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8488 # Only perform the check for file, if the check method requires it
8489 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8490 case $deplibs_check_method in
8491 file_magic*)
8492 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8494 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8495 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 case $MAGIC_CMD in
8499 [\\/*] | ?:[\\/]*)
8500 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8501 ;;
8502 *)
8503 lt_save_MAGIC_CMD="$MAGIC_CMD"
8504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8505 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8506 for ac_dir in $ac_dummy; do
8507 IFS="$lt_save_ifs"
8508 test -z "$ac_dir" && ac_dir=.
8509 if test -f $ac_dir/${ac_tool_prefix}file; then
8510 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8511 if test -n "$file_magic_test_file"; then
8512 case $deplibs_check_method in
8513 "file_magic "*)
8514 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8516 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8517 $EGREP "$file_magic_regex" > /dev/null; then
8518 :
8519 else
8520 cat <<_LT_EOF 1>&2
8522 *** Warning: the command libtool uses to detect shared libraries,
8523 *** $file_magic_cmd, produces output that libtool cannot recognize.
8524 *** The result is that libtool may fail to recognize shared libraries
8525 *** as such. This will affect the creation of libtool libraries that
8526 *** depend on shared libraries, but programs linked with such libtool
8527 *** libraries will work regardless of this problem. Nevertheless, you
8528 *** may want to report the problem to your system manager and/or to
8529 *** bug-libtool@gnu.org
8531 _LT_EOF
8532 fi ;;
8533 esac
8534 fi
8535 break
8536 fi
8537 done
8538 IFS="$lt_save_ifs"
8539 MAGIC_CMD="$lt_save_MAGIC_CMD"
8540 ;;
8541 esac
8542 fi
8544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8545 if test -n "$MAGIC_CMD"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8547 $as_echo "$MAGIC_CMD" >&6; }
8548 else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8551 fi
8557 if test -z "$lt_cv_path_MAGIC_CMD"; then
8558 if test -n "$ac_tool_prefix"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8560 $as_echo_n "checking for file... " >&6; }
8561 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 case $MAGIC_CMD in
8565 [\\/*] | ?:[\\/]*)
8566 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8567 ;;
8568 *)
8569 lt_save_MAGIC_CMD="$MAGIC_CMD"
8570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8571 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8572 for ac_dir in $ac_dummy; do
8573 IFS="$lt_save_ifs"
8574 test -z "$ac_dir" && ac_dir=.
8575 if test -f $ac_dir/file; then
8576 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8577 if test -n "$file_magic_test_file"; then
8578 case $deplibs_check_method in
8579 "file_magic "*)
8580 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8581 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8582 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8583 $EGREP "$file_magic_regex" > /dev/null; then
8584 :
8585 else
8586 cat <<_LT_EOF 1>&2
8588 *** Warning: the command libtool uses to detect shared libraries,
8589 *** $file_magic_cmd, produces output that libtool cannot recognize.
8590 *** The result is that libtool may fail to recognize shared libraries
8591 *** as such. This will affect the creation of libtool libraries that
8592 *** depend on shared libraries, but programs linked with such libtool
8593 *** libraries will work regardless of this problem. Nevertheless, you
8594 *** may want to report the problem to your system manager and/or to
8595 *** bug-libtool@gnu.org
8597 _LT_EOF
8598 fi ;;
8599 esac
8600 fi
8601 break
8602 fi
8603 done
8604 IFS="$lt_save_ifs"
8605 MAGIC_CMD="$lt_save_MAGIC_CMD"
8606 ;;
8607 esac
8608 fi
8610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8611 if test -n "$MAGIC_CMD"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8613 $as_echo "$MAGIC_CMD" >&6; }
8614 else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8617 fi
8620 else
8621 MAGIC_CMD=:
8622 fi
8623 fi
8625 fi
8626 ;;
8627 esac
8629 # Use C for the default configuration in the libtool script
8631 lt_save_CC="$CC"
8632 ac_ext=c
8633 ac_cpp='$CPP $CPPFLAGS'
8634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8639 # Source file extension for C test sources.
8640 ac_ext=c
8642 # Object file extension for compiled C test sources.
8643 objext=o
8644 objext=$objext
8646 # Code to be used in simple compile tests
8647 lt_simple_compile_test_code="int some_variable = 0;"
8649 # Code to be used in simple link tests
8650 lt_simple_link_test_code='int main(){return(0);}'
8658 # If no C compiler was specified, use CC.
8659 LTCC=${LTCC-"$CC"}
8661 # If no C compiler flags were specified, use CFLAGS.
8662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8664 # Allow CC to be a program name with arguments.
8665 compiler=$CC
8667 # Save the default compiler, since it gets overwritten when the other
8668 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8669 compiler_DEFAULT=$CC
8671 # save warnings/boilerplate of simple test code
8672 ac_outfile=conftest.$ac_objext
8673 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8674 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8675 _lt_compiler_boilerplate=`cat conftest.err`
8676 $RM conftest*
8678 ac_outfile=conftest.$ac_objext
8679 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8680 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8681 _lt_linker_boilerplate=`cat conftest.err`
8682 $RM -r conftest*
8685 ## CAVEAT EMPTOR:
8686 ## There is no encapsulation within the following macros, do not change
8687 ## the running order or otherwise move them around unless you know exactly
8688 ## what you are doing...
8689 if test -n "$compiler"; then
8691 lt_prog_compiler_no_builtin_flag=
8693 if test "$GCC" = yes; then
8694 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8697 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8698 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 lt_cv_prog_compiler_rtti_exceptions=no
8702 ac_outfile=conftest.$ac_objext
8703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8704 lt_compiler_flag="-fno-rtti -fno-exceptions"
8705 # Insert the option either (1) after the last *FLAGS variable, or
8706 # (2) before a word containing "conftest.", or (3) at the end.
8707 # Note that $ac_compile itself does not contain backslashes and begins
8708 # with a dollar sign (not a hyphen), so the echo should work correctly.
8709 # The option is referenced via a variable to avoid confusing sed.
8710 lt_compile=`echo "$ac_compile" | $SED \
8711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8713 -e 's:$: $lt_compiler_flag:'`
8714 (eval echo "\"\$as_me:8714: $lt_compile\"" >&5)
8715 (eval "$lt_compile" 2>conftest.err)
8716 ac_status=$?
8717 cat conftest.err >&5
8718 echo "$as_me:8718: \$? = $ac_status" >&5
8719 if (exit $ac_status) && test -s "$ac_outfile"; then
8720 # The compiler can only warn and ignore the option if not recognized
8721 # So say no if there are warnings other than the usual output.
8722 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8725 lt_cv_prog_compiler_rtti_exceptions=yes
8726 fi
8727 fi
8728 $RM conftest*
8730 fi
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8732 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8734 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8735 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8736 else
8737 :
8738 fi
8740 fi
8747 lt_prog_compiler_wl=
8748 lt_prog_compiler_pic=
8749 lt_prog_compiler_static=
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8752 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8754 if test "$GCC" = yes; then
8755 lt_prog_compiler_wl='-Wl,'
8756 lt_prog_compiler_static='-static'
8758 case $host_os in
8759 aix*)
8760 # All AIX code is PIC.
8761 if test "$host_cpu" = ia64; then
8762 # AIX 5 now supports IA64 processor
8763 lt_prog_compiler_static='-Bstatic'
8764 fi
8765 ;;
8767 amigaos*)
8768 case $host_cpu in
8769 powerpc)
8770 # see comment about AmigaOS4 .so support
8771 lt_prog_compiler_pic='-fPIC'
8772 ;;
8773 m68k)
8774 # FIXME: we need at least 68020 code to build shared libraries, but
8775 # adding the `-m68020' flag to GCC prevents building anything better,
8776 # like `-m68040'.
8777 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8778 ;;
8779 esac
8780 ;;
8782 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8783 # PIC is the default for these OSes.
8784 ;;
8786 mingw* | cygwin* | pw32* | os2* | cegcc*)
8787 # This hack is so that the source file can tell whether it is being
8788 # built for inclusion in a dll (and should export symbols for example).
8789 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8790 # (--disable-auto-import) libraries
8791 lt_prog_compiler_pic='-DDLL_EXPORT'
8792 ;;
8794 darwin* | rhapsody*)
8795 # PIC is the default on this platform
8796 # Common symbols not allowed in MH_DYLIB files
8797 lt_prog_compiler_pic='-fno-common'
8798 ;;
8800 hpux*)
8801 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8802 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8803 # sets the default TLS model and affects inlining.
8804 case $host_cpu in
8805 hppa*64*)
8806 # +Z the default
8807 ;;
8808 *)
8809 lt_prog_compiler_pic='-fPIC'
8810 ;;
8811 esac
8812 ;;
8814 interix[3-9]*)
8815 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8816 # Instead, we relocate shared libraries at runtime.
8817 ;;
8819 msdosdjgpp*)
8820 # Just because we use GCC doesn't mean we suddenly get shared libraries
8821 # on systems that don't support them.
8822 lt_prog_compiler_can_build_shared=no
8823 enable_shared=no
8824 ;;
8826 *nto* | *qnx*)
8827 # QNX uses GNU C++, but need to define -shared option too, otherwise
8828 # it will coredump.
8829 lt_prog_compiler_pic='-fPIC -shared'
8830 ;;
8832 sysv4*MP*)
8833 if test -d /usr/nec; then
8834 lt_prog_compiler_pic=-Kconform_pic
8835 fi
8836 ;;
8838 *)
8839 lt_prog_compiler_pic='-fPIC'
8840 ;;
8841 esac
8842 else
8843 # PORTME Check for flag to pass linker flags through the system compiler.
8844 case $host_os in
8845 aix*)
8846 lt_prog_compiler_wl='-Wl,'
8847 if test "$host_cpu" = ia64; then
8848 # AIX 5 now supports IA64 processor
8849 lt_prog_compiler_static='-Bstatic'
8850 else
8851 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8852 fi
8853 ;;
8855 mingw* | cygwin* | pw32* | os2* | cegcc*)
8856 # This hack is so that the source file can tell whether it is being
8857 # built for inclusion in a dll (and should export symbols for example).
8858 lt_prog_compiler_pic='-DDLL_EXPORT'
8859 ;;
8861 hpux9* | hpux10* | hpux11*)
8862 lt_prog_compiler_wl='-Wl,'
8863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8864 # not for PA HP-UX.
8865 case $host_cpu in
8866 hppa*64*|ia64*)
8867 # +Z the default
8868 ;;
8869 *)
8870 lt_prog_compiler_pic='+Z'
8871 ;;
8872 esac
8873 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8874 lt_prog_compiler_static='${wl}-a ${wl}archive'
8875 ;;
8877 irix5* | irix6* | nonstopux*)
8878 lt_prog_compiler_wl='-Wl,'
8879 # PIC (with -KPIC) is the default.
8880 lt_prog_compiler_static='-non_shared'
8881 ;;
8883 linux* | k*bsd*-gnu)
8884 case $cc_basename in
8885 # old Intel for x86_64 which still supported -KPIC.
8886 ecc*)
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_pic='-KPIC'
8889 lt_prog_compiler_static='-static'
8890 ;;
8891 # icc used to be incompatible with GCC.
8892 # ICC 10 doesn't accept -KPIC any more.
8893 icc* | ifort*)
8894 lt_prog_compiler_wl='-Wl,'
8895 lt_prog_compiler_pic='-fPIC'
8896 lt_prog_compiler_static='-static'
8897 ;;
8898 # Lahey Fortran 8.1.
8899 lf95*)
8900 lt_prog_compiler_wl='-Wl,'
8901 lt_prog_compiler_pic='--shared'
8902 lt_prog_compiler_static='--static'
8903 ;;
8904 pgcc* | pgf77* | pgf90* | pgf95*)
8905 # Portland Group compilers (*not* the Pentium gcc compiler,
8906 # which looks to be a dead project)
8907 lt_prog_compiler_wl='-Wl,'
8908 lt_prog_compiler_pic='-fpic'
8909 lt_prog_compiler_static='-Bstatic'
8910 ;;
8911 ccc*)
8912 lt_prog_compiler_wl='-Wl,'
8913 # All Alpha code is PIC.
8914 lt_prog_compiler_static='-non_shared'
8915 ;;
8916 xl*)
8917 # IBM XL C 8.0/Fortran 10.1 on PPC
8918 lt_prog_compiler_wl='-Wl,'
8919 lt_prog_compiler_pic='-qpic'
8920 lt_prog_compiler_static='-qstaticlink'
8921 ;;
8922 *)
8923 case `$CC -V 2>&1 | sed 5q` in
8924 *Sun\ C*)
8925 # Sun C 5.9
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-Bstatic'
8928 lt_prog_compiler_wl='-Wl,'
8929 ;;
8930 *Sun\ F*)
8931 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8932 lt_prog_compiler_pic='-KPIC'
8933 lt_prog_compiler_static='-Bstatic'
8934 lt_prog_compiler_wl=''
8935 ;;
8936 esac
8937 ;;
8938 esac
8939 ;;
8941 newsos6)
8942 lt_prog_compiler_pic='-KPIC'
8943 lt_prog_compiler_static='-Bstatic'
8944 ;;
8946 *nto* | *qnx*)
8947 # QNX uses GNU C++, but need to define -shared option too, otherwise
8948 # it will coredump.
8949 lt_prog_compiler_pic='-fPIC -shared'
8950 ;;
8952 osf3* | osf4* | osf5*)
8953 lt_prog_compiler_wl='-Wl,'
8954 # All OSF/1 code is PIC.
8955 lt_prog_compiler_static='-non_shared'
8956 ;;
8958 rdos*)
8959 lt_prog_compiler_static='-non_shared'
8960 ;;
8962 solaris*)
8963 lt_prog_compiler_pic='-KPIC'
8964 lt_prog_compiler_static='-Bstatic'
8965 case $cc_basename in
8966 f77* | f90* | f95*)
8967 lt_prog_compiler_wl='-Qoption ld ';;
8968 *)
8969 lt_prog_compiler_wl='-Wl,';;
8970 esac
8971 ;;
8973 sunos4*)
8974 lt_prog_compiler_wl='-Qoption ld '
8975 lt_prog_compiler_pic='-PIC'
8976 lt_prog_compiler_static='-Bstatic'
8977 ;;
8979 sysv4 | sysv4.2uw2* | sysv4.3*)
8980 lt_prog_compiler_wl='-Wl,'
8981 lt_prog_compiler_pic='-KPIC'
8982 lt_prog_compiler_static='-Bstatic'
8983 ;;
8985 sysv4*MP*)
8986 if test -d /usr/nec ;then
8987 lt_prog_compiler_pic='-Kconform_pic'
8988 lt_prog_compiler_static='-Bstatic'
8989 fi
8990 ;;
8992 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8993 lt_prog_compiler_wl='-Wl,'
8994 lt_prog_compiler_pic='-KPIC'
8995 lt_prog_compiler_static='-Bstatic'
8996 ;;
8998 unicos*)
8999 lt_prog_compiler_wl='-Wl,'
9000 lt_prog_compiler_can_build_shared=no
9001 ;;
9003 uts4*)
9004 lt_prog_compiler_pic='-pic'
9005 lt_prog_compiler_static='-Bstatic'
9006 ;;
9008 *)
9009 lt_prog_compiler_can_build_shared=no
9010 ;;
9011 esac
9012 fi
9014 case $host_os in
9015 # For platforms which do not support PIC, -DPIC is meaningless:
9016 *djgpp*)
9017 lt_prog_compiler_pic=
9018 ;;
9019 *)
9020 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9021 ;;
9022 esac
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9024 $as_echo "$lt_prog_compiler_pic" >&6; }
9031 #
9032 # Check to make sure the PIC flag actually works.
9033 #
9034 if test -n "$lt_prog_compiler_pic"; then
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9036 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9037 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9038 $as_echo_n "(cached) " >&6
9039 else
9040 lt_cv_prog_compiler_pic_works=no
9041 ac_outfile=conftest.$ac_objext
9042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9043 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9044 # Insert the option either (1) after the last *FLAGS variable, or
9045 # (2) before a word containing "conftest.", or (3) at the end.
9046 # Note that $ac_compile itself does not contain backslashes and begins
9047 # with a dollar sign (not a hyphen), so the echo should work correctly.
9048 # The option is referenced via a variable to avoid confusing sed.
9049 lt_compile=`echo "$ac_compile" | $SED \
9050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9052 -e 's:$: $lt_compiler_flag:'`
9053 (eval echo "\"\$as_me:9053: $lt_compile\"" >&5)
9054 (eval "$lt_compile" 2>conftest.err)
9055 ac_status=$?
9056 cat conftest.err >&5
9057 echo "$as_me:9057: \$? = $ac_status" >&5
9058 if (exit $ac_status) && test -s "$ac_outfile"; then
9059 # The compiler can only warn and ignore the option if not recognized
9060 # So say no if there are warnings other than the usual output.
9061 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9064 lt_cv_prog_compiler_pic_works=yes
9065 fi
9066 fi
9067 $RM conftest*
9069 fi
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9071 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9073 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9074 case $lt_prog_compiler_pic in
9075 "" | " "*) ;;
9076 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9077 esac
9078 else
9079 lt_prog_compiler_pic=
9080 lt_prog_compiler_can_build_shared=no
9081 fi
9083 fi
9090 #
9091 # Check to make sure the static flag actually works.
9092 #
9093 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9095 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9096 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 lt_cv_prog_compiler_static_works=no
9100 save_LDFLAGS="$LDFLAGS"
9101 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9102 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9104 # The linker can only warn and ignore the option if not recognized
9105 # So say no if there are warnings
9106 if test -s conftest.err; then
9107 # Append any errors to the config.log.
9108 cat conftest.err 1>&5
9109 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9111 if diff conftest.exp conftest.er2 >/dev/null; then
9112 lt_cv_prog_compiler_static_works=yes
9113 fi
9114 else
9115 lt_cv_prog_compiler_static_works=yes
9116 fi
9117 fi
9118 $RM -r conftest*
9119 LDFLAGS="$save_LDFLAGS"
9121 fi
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9123 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9125 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9126 :
9127 else
9128 lt_prog_compiler_static=
9129 fi
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9138 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9139 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 lt_cv_prog_compiler_c_o=no
9143 $RM -r conftest 2>/dev/null
9144 mkdir conftest
9145 cd conftest
9146 mkdir out
9147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9149 lt_compiler_flag="-o out/conftest2.$ac_objext"
9150 # Insert the option either (1) after the last *FLAGS variable, or
9151 # (2) before a word containing "conftest.", or (3) at the end.
9152 # Note that $ac_compile itself does not contain backslashes and begins
9153 # with a dollar sign (not a hyphen), so the echo should work correctly.
9154 lt_compile=`echo "$ac_compile" | $SED \
9155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9157 -e 's:$: $lt_compiler_flag:'`
9158 (eval echo "\"\$as_me:9158: $lt_compile\"" >&5)
9159 (eval "$lt_compile" 2>out/conftest.err)
9160 ac_status=$?
9161 cat out/conftest.err >&5
9162 echo "$as_me:9162: \$? = $ac_status" >&5
9163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9164 then
9165 # The compiler can only warn and ignore the option if not recognized
9166 # So say no if there are warnings
9167 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9170 lt_cv_prog_compiler_c_o=yes
9171 fi
9172 fi
9173 chmod u+w . 2>&5
9174 $RM conftest*
9175 # SGI C++ compiler will create directory out/ii_files/ for
9176 # template instantiation
9177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9178 $RM out/* && rmdir out
9179 cd ..
9180 $RM -r conftest
9181 $RM conftest*
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9185 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9193 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9194 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 lt_cv_prog_compiler_c_o=no
9198 $RM -r conftest 2>/dev/null
9199 mkdir conftest
9200 cd conftest
9201 mkdir out
9202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9204 lt_compiler_flag="-o out/conftest2.$ac_objext"
9205 # Insert the option either (1) after the last *FLAGS variable, or
9206 # (2) before a word containing "conftest.", or (3) at the end.
9207 # Note that $ac_compile itself does not contain backslashes and begins
9208 # with a dollar sign (not a hyphen), so the echo should work correctly.
9209 lt_compile=`echo "$ac_compile" | $SED \
9210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9212 -e 's:$: $lt_compiler_flag:'`
9213 (eval echo "\"\$as_me:9213: $lt_compile\"" >&5)
9214 (eval "$lt_compile" 2>out/conftest.err)
9215 ac_status=$?
9216 cat out/conftest.err >&5
9217 echo "$as_me:9217: \$? = $ac_status" >&5
9218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9219 then
9220 # The compiler can only warn and ignore the option if not recognized
9221 # So say no if there are warnings
9222 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9225 lt_cv_prog_compiler_c_o=yes
9226 fi
9227 fi
9228 chmod u+w . 2>&5
9229 $RM conftest*
9230 # SGI C++ compiler will create directory out/ii_files/ for
9231 # template instantiation
9232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9233 $RM out/* && rmdir out
9234 cd ..
9235 $RM -r conftest
9236 $RM conftest*
9238 fi
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9240 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9245 hard_links="nottested"
9246 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9247 # do not overwrite the value of need_locks provided by the user
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9249 $as_echo_n "checking if we can lock with hard links... " >&6; }
9250 hard_links=yes
9251 $RM conftest*
9252 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9253 touch conftest.a
9254 ln conftest.a conftest.b 2>&5 || hard_links=no
9255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9257 $as_echo "$hard_links" >&6; }
9258 if test "$hard_links" = no; then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9260 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9261 need_locks=warn
9262 fi
9263 else
9264 need_locks=no
9265 fi
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9273 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9275 runpath_var=
9276 allow_undefined_flag=
9277 always_export_symbols=no
9278 archive_cmds=
9279 archive_expsym_cmds=
9280 compiler_needs_object=no
9281 enable_shared_with_static_runtimes=no
9282 export_dynamic_flag_spec=
9283 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9284 hardcode_automatic=no
9285 hardcode_direct=no
9286 hardcode_direct_absolute=no
9287 hardcode_libdir_flag_spec=
9288 hardcode_libdir_flag_spec_ld=
9289 hardcode_libdir_separator=
9290 hardcode_minus_L=no
9291 hardcode_shlibpath_var=unsupported
9292 inherit_rpath=no
9293 link_all_deplibs=unknown
9294 module_cmds=
9295 module_expsym_cmds=
9296 old_archive_from_new_cmds=
9297 old_archive_from_expsyms_cmds=
9298 thread_safe_flag_spec=
9299 whole_archive_flag_spec=
9300 # include_expsyms should be a list of space-separated symbols to be *always*
9301 # included in the symbol list
9302 include_expsyms=
9303 # exclude_expsyms can be an extended regexp of symbols to exclude
9304 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9305 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9306 # as well as any symbol that contains `d'.
9307 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9308 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9309 # platforms (ab)use it in PIC code, but their linkers get confused if
9310 # the symbol is explicitly referenced. Since portable code cannot
9311 # rely on this symbol name, it's probably fine to never include it in
9312 # preloaded symbol tables.
9313 # Exclude shared library initialization/finalization symbols.
9314 extract_expsyms_cmds=
9316 case $host_os in
9317 cygwin* | mingw* | pw32* | cegcc*)
9318 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9319 # When not using gcc, we currently assume that we are using
9320 # Microsoft Visual C++.
9321 if test "$GCC" != yes; then
9322 with_gnu_ld=no
9323 fi
9324 ;;
9325 interix*)
9326 # we just hope/assume this is gcc and not c89 (= MSVC++)
9327 with_gnu_ld=yes
9328 ;;
9329 openbsd*)
9330 with_gnu_ld=no
9331 ;;
9332 linux* | k*bsd*-gnu)
9333 link_all_deplibs=no
9334 ;;
9335 esac
9337 ld_shlibs=yes
9338 if test "$with_gnu_ld" = yes; then
9339 # If archive_cmds runs LD, not CC, wlarc should be empty
9340 wlarc='${wl}'
9342 # Set some defaults for GNU ld with shared library support. These
9343 # are reset later if shared libraries are not supported. Putting them
9344 # here allows them to be overridden if necessary.
9345 runpath_var=LD_RUN_PATH
9346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9347 export_dynamic_flag_spec='${wl}--export-dynamic'
9348 # ancient GNU ld didn't support --whole-archive et. al.
9349 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9350 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9351 else
9352 whole_archive_flag_spec=
9353 fi
9354 supports_anon_versioning=no
9355 case `$LD -v 2>&1` in
9356 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9357 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9358 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9359 *\ 2.11.*) ;; # other 2.11 versions
9360 *) supports_anon_versioning=yes ;;
9361 esac
9363 # See if GNU ld supports shared libraries.
9364 case $host_os in
9365 aix[3-9]*)
9366 # On AIX/PPC, the GNU linker is very broken
9367 if test "$host_cpu" != ia64; then
9368 ld_shlibs=no
9369 cat <<_LT_EOF 1>&2
9371 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9372 *** to be unable to reliably create shared libraries on AIX.
9373 *** Therefore, libtool is disabling shared libraries support. If you
9374 *** really care for shared libraries, you may want to modify your PATH
9375 *** so that a non-GNU linker is found, and then restart.
9377 _LT_EOF
9378 fi
9379 ;;
9381 amigaos*)
9382 case $host_cpu in
9383 powerpc)
9384 # see comment about AmigaOS4 .so support
9385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386 archive_expsym_cmds=''
9387 ;;
9388 m68k)
9389 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)'
9390 hardcode_libdir_flag_spec='-L$libdir'
9391 hardcode_minus_L=yes
9392 ;;
9393 esac
9394 ;;
9396 beos*)
9397 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9398 allow_undefined_flag=unsupported
9399 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9400 # support --undefined. This deserves some investigation. FIXME
9401 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9402 else
9403 ld_shlibs=no
9404 fi
9405 ;;
9407 cygwin* | mingw* | pw32* | cegcc*)
9408 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9409 # as there is no search path for DLLs.
9410 hardcode_libdir_flag_spec='-L$libdir'
9411 allow_undefined_flag=unsupported
9412 always_export_symbols=no
9413 enable_shared_with_static_runtimes=yes
9414 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9416 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9418 # If the export-symbols file already is a .def file (1st line
9419 # is EXPORTS), use it as is; otherwise, prepend...
9420 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9421 cp $export_symbols $output_objdir/$soname.def;
9422 else
9423 echo EXPORTS > $output_objdir/$soname.def;
9424 cat $export_symbols >> $output_objdir/$soname.def;
9425 fi~
9426 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9427 else
9428 ld_shlibs=no
9429 fi
9430 ;;
9432 interix[3-9]*)
9433 hardcode_direct=no
9434 hardcode_shlibpath_var=no
9435 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9436 export_dynamic_flag_spec='${wl}-E'
9437 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9438 # Instead, shared libraries are loaded at an image base (0x10000000 by
9439 # default) and relocated if they conflict, which is a slow very memory
9440 # consuming and fragmenting process. To avoid this, we pick a random,
9441 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9442 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9443 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9444 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'
9445 ;;
9447 gnu* | linux* | tpf* | k*bsd*-gnu)
9448 tmp_diet=no
9449 if test "$host_os" = linux-dietlibc; then
9450 case $cc_basename in
9451 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9452 esac
9453 fi
9454 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9455 && test "$tmp_diet" = no
9456 then
9457 tmp_addflag=
9458 tmp_sharedflag='-shared'
9459 case $cc_basename,$host_cpu in
9460 pgcc*) # Portland Group C compiler
9461 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'
9462 tmp_addflag=' $pic_flag'
9463 ;;
9464 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9465 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'
9466 tmp_addflag=' $pic_flag -Mnomain' ;;
9467 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9468 tmp_addflag=' -i_dynamic' ;;
9469 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9470 tmp_addflag=' -i_dynamic -nofor_main' ;;
9471 ifc* | ifort*) # Intel Fortran compiler
9472 tmp_addflag=' -nofor_main' ;;
9473 lf95*) # Lahey Fortran 8.1
9474 whole_archive_flag_spec=
9475 tmp_sharedflag='--shared' ;;
9476 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9477 tmp_sharedflag='-qmkshrobj'
9478 tmp_addflag= ;;
9479 esac
9480 case `$CC -V 2>&1 | sed 5q` in
9481 *Sun\ C*) # Sun C 5.9
9482 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'
9483 compiler_needs_object=yes
9484 tmp_sharedflag='-G' ;;
9485 *Sun\ F*) # Sun Fortran 8.3
9486 tmp_sharedflag='-G' ;;
9487 esac
9488 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9490 if test "x$supports_anon_versioning" = xyes; then
9491 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9493 echo "local: *; };" >> $output_objdir/$libname.ver~
9494 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9495 fi
9497 case $cc_basename in
9498 xlf*)
9499 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9500 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9501 hardcode_libdir_flag_spec=
9502 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9503 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9504 if test "x$supports_anon_versioning" = xyes; then
9505 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9506 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9507 echo "local: *; };" >> $output_objdir/$libname.ver~
9508 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9509 fi
9510 ;;
9511 esac
9512 else
9513 ld_shlibs=no
9514 fi
9515 ;;
9517 netbsd* | netbsdelf*-gnu)
9518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9519 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9520 wlarc=
9521 else
9522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9524 fi
9525 ;;
9527 solaris*)
9528 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9529 ld_shlibs=no
9530 cat <<_LT_EOF 1>&2
9532 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9533 *** create shared libraries on Solaris systems. Therefore, libtool
9534 *** is disabling shared libraries support. We urge you to upgrade GNU
9535 *** binutils to release 2.9.1 or newer. Another option is to modify
9536 *** your PATH or compiler configuration so that the native linker is
9537 *** used, and then restart.
9539 _LT_EOF
9540 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9543 else
9544 ld_shlibs=no
9545 fi
9546 ;;
9548 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9549 case `$LD -v 2>&1` in
9550 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9551 ld_shlibs=no
9552 cat <<_LT_EOF 1>&2
9554 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9555 *** reliably create shared libraries on SCO systems. Therefore, libtool
9556 *** is disabling shared libraries support. We urge you to upgrade GNU
9557 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9558 *** your PATH or compiler configuration so that the native linker is
9559 *** used, and then restart.
9561 _LT_EOF
9562 ;;
9563 *)
9564 # For security reasons, it is highly recommended that you always
9565 # use absolute paths for naming shared libraries, and exclude the
9566 # DT_RUNPATH tag from executables and libraries. But doing so
9567 # requires that you compile everything twice, which is a pain.
9568 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9571 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9572 else
9573 ld_shlibs=no
9574 fi
9575 ;;
9576 esac
9577 ;;
9579 sunos4*)
9580 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9581 wlarc=
9582 hardcode_direct=yes
9583 hardcode_shlibpath_var=no
9584 ;;
9586 *)
9587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9590 else
9591 ld_shlibs=no
9592 fi
9593 ;;
9594 esac
9596 if test "$ld_shlibs" = no; then
9597 runpath_var=
9598 hardcode_libdir_flag_spec=
9599 export_dynamic_flag_spec=
9600 whole_archive_flag_spec=
9601 fi
9602 else
9603 # PORTME fill in a description of your system's linker (not GNU ld)
9604 case $host_os in
9605 aix3*)
9606 allow_undefined_flag=unsupported
9607 always_export_symbols=yes
9608 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'
9609 # Note: this linker hardcodes the directories in LIBPATH if there
9610 # are no directories specified by -L.
9611 hardcode_minus_L=yes
9612 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9613 # Neither direct hardcoding nor static linking is supported with a
9614 # broken collect2.
9615 hardcode_direct=unsupported
9616 fi
9617 ;;
9619 aix[4-9]*)
9620 if test "$host_cpu" = ia64; then
9621 # On IA64, the linker does run time linking by default, so we don't
9622 # have to do anything special.
9623 aix_use_runtimelinking=no
9624 exp_sym_flag='-Bexport'
9625 no_entry_flag=""
9626 else
9627 # If we're using GNU nm, then we don't want the "-C" option.
9628 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9629 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9630 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'
9631 else
9632 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'
9633 fi
9634 aix_use_runtimelinking=no
9636 # Test if we are trying to use run time linking or normal
9637 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9638 # need to do runtime linking.
9639 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9640 for ld_flag in $LDFLAGS; do
9641 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9642 aix_use_runtimelinking=yes
9643 break
9644 fi
9645 done
9646 ;;
9647 esac
9649 exp_sym_flag='-bexport'
9650 no_entry_flag='-bnoentry'
9651 fi
9653 # When large executables or shared objects are built, AIX ld can
9654 # have problems creating the table of contents. If linking a library
9655 # or program results in "error TOC overflow" add -mminimal-toc to
9656 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9657 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9659 archive_cmds=''
9660 hardcode_direct=yes
9661 hardcode_direct_absolute=yes
9662 hardcode_libdir_separator=':'
9663 link_all_deplibs=yes
9664 file_list_spec='${wl}-f,'
9666 if test "$GCC" = yes; then
9667 case $host_os in aix4.[012]|aix4.[012].*)
9668 # We only want to do this on AIX 4.2 and lower, the check
9669 # below for broken collect2 doesn't work under 4.3+
9670 collect2name=`${CC} -print-prog-name=collect2`
9671 if test -f "$collect2name" &&
9672 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9673 then
9674 # We have reworked collect2
9675 :
9676 else
9677 # We have old collect2
9678 hardcode_direct=unsupported
9679 # It fails to find uninstalled libraries when the uninstalled
9680 # path is not listed in the libpath. Setting hardcode_minus_L
9681 # to unsupported forces relinking
9682 hardcode_minus_L=yes
9683 hardcode_libdir_flag_spec='-L$libdir'
9684 hardcode_libdir_separator=
9685 fi
9686 ;;
9687 esac
9688 shared_flag='-shared'
9689 if test "$aix_use_runtimelinking" = yes; then
9690 shared_flag="$shared_flag "'${wl}-G'
9691 fi
9692 link_all_deplibs=no
9693 else
9694 # not using gcc
9695 if test "$host_cpu" = ia64; then
9696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9697 # chokes on -Wl,-G. The following line is correct:
9698 shared_flag='-G'
9699 else
9700 if test "$aix_use_runtimelinking" = yes; then
9701 shared_flag='${wl}-G'
9702 else
9703 shared_flag='${wl}-bM:SRE'
9704 fi
9705 fi
9706 fi
9708 export_dynamic_flag_spec='${wl}-bexpall'
9709 # It seems that -bexpall does not export symbols beginning with
9710 # underscore (_), so it is better to generate a list of symbols to export.
9711 always_export_symbols=yes
9712 if test "$aix_use_runtimelinking" = yes; then
9713 # Warning - without using the other runtime loading flags (-brtl),
9714 # -berok will link without error, but may produce a broken library.
9715 allow_undefined_flag='-berok'
9716 # Determine the default libpath from the value encoded in an
9717 # empty executable.
9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9721 int
9722 main ()
9723 {
9725 ;
9726 return 0;
9727 }
9728 _ACEOF
9729 if ac_fn_c_try_link "$LINENO"; then :
9731 lt_aix_libpath_sed='
9732 /Import File Strings/,/^$/ {
9733 /^0/ {
9734 s/^0 *\(.*\)$/\1/
9735 p
9736 }
9737 }'
9738 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9739 # Check for a 64-bit object if we didn't find anything.
9740 if test -z "$aix_libpath"; then
9741 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9742 fi
9743 fi
9744 rm -f core conftest.err conftest.$ac_objext \
9745 conftest$ac_exeext conftest.$ac_ext
9746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9748 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9749 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"
9750 else
9751 if test "$host_cpu" = ia64; then
9752 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9753 allow_undefined_flag="-z nodefs"
9754 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"
9755 else
9756 # Determine the default libpath from the value encoded in an
9757 # empty executable.
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9761 int
9762 main ()
9763 {
9765 ;
9766 return 0;
9767 }
9768 _ACEOF
9769 if ac_fn_c_try_link "$LINENO"; then :
9771 lt_aix_libpath_sed='
9772 /Import File Strings/,/^$/ {
9773 /^0/ {
9774 s/^0 *\(.*\)$/\1/
9775 p
9776 }
9777 }'
9778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9779 # Check for a 64-bit object if we didn't find anything.
9780 if test -z "$aix_libpath"; then
9781 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9782 fi
9783 fi
9784 rm -f core conftest.err conftest.$ac_objext \
9785 conftest$ac_exeext conftest.$ac_ext
9786 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9788 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9789 # Warning - without using the other run time loading flags,
9790 # -berok will link without error, but may produce a broken library.
9791 no_undefined_flag=' ${wl}-bernotok'
9792 allow_undefined_flag=' ${wl}-berok'
9793 # Exported symbols can be pulled into shared objects from archives
9794 whole_archive_flag_spec='$convenience'
9795 archive_cmds_need_lc=yes
9796 # This is similar to how AIX traditionally builds its shared libraries.
9797 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'
9798 fi
9799 fi
9800 ;;
9802 amigaos*)
9803 case $host_cpu in
9804 powerpc)
9805 # see comment about AmigaOS4 .so support
9806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9807 archive_expsym_cmds=''
9808 ;;
9809 m68k)
9810 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)'
9811 hardcode_libdir_flag_spec='-L$libdir'
9812 hardcode_minus_L=yes
9813 ;;
9814 esac
9815 ;;
9817 bsdi[45]*)
9818 export_dynamic_flag_spec=-rdynamic
9819 ;;
9821 cygwin* | mingw* | pw32* | cegcc*)
9822 # When not using gcc, we currently assume that we are using
9823 # Microsoft Visual C++.
9824 # hardcode_libdir_flag_spec is actually meaningless, as there is
9825 # no search path for DLLs.
9826 hardcode_libdir_flag_spec=' '
9827 allow_undefined_flag=unsupported
9828 # Tell ltmain to make .lib files, not .a files.
9829 libext=lib
9830 # Tell ltmain to make .dll files, not .so files.
9831 shrext_cmds=".dll"
9832 # FIXME: Setting linknames here is a bad hack.
9833 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9834 # The linker will automatically build a .lib file if we build a DLL.
9835 old_archive_from_new_cmds='true'
9836 # FIXME: Should let the user specify the lib program.
9837 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9838 fix_srcfile_path='`cygpath -w "$srcfile"`'
9839 enable_shared_with_static_runtimes=yes
9840 ;;
9842 darwin* | rhapsody*)
9845 archive_cmds_need_lc=no
9846 hardcode_direct=no
9847 hardcode_automatic=yes
9848 hardcode_shlibpath_var=unsupported
9849 whole_archive_flag_spec=''
9850 link_all_deplibs=yes
9851 allow_undefined_flag="$_lt_dar_allow_undefined"
9852 case $cc_basename in
9853 ifort*) _lt_dar_can_shared=yes ;;
9854 *) _lt_dar_can_shared=$GCC ;;
9855 esac
9856 if test "$_lt_dar_can_shared" = "yes"; then
9857 output_verbose_link_cmd=echo
9858 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9859 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9860 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}"
9861 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}"
9863 else
9864 ld_shlibs=no
9865 fi
9867 ;;
9869 dgux*)
9870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9871 hardcode_libdir_flag_spec='-L$libdir'
9872 hardcode_shlibpath_var=no
9873 ;;
9875 freebsd1*)
9876 ld_shlibs=no
9877 ;;
9879 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9880 # support. Future versions do this automatically, but an explicit c++rt0.o
9881 # does not break anything, and helps significantly (at the cost of a little
9882 # extra space).
9883 freebsd2.2*)
9884 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9885 hardcode_libdir_flag_spec='-R$libdir'
9886 hardcode_direct=yes
9887 hardcode_shlibpath_var=no
9888 ;;
9890 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9891 freebsd2*)
9892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9893 hardcode_direct=yes
9894 hardcode_minus_L=yes
9895 hardcode_shlibpath_var=no
9896 ;;
9898 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9899 freebsd* | dragonfly*)
9900 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9901 hardcode_libdir_flag_spec='-R$libdir'
9902 hardcode_direct=yes
9903 hardcode_shlibpath_var=no
9904 ;;
9906 hpux9*)
9907 if test "$GCC" = yes; then
9908 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'
9909 else
9910 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'
9911 fi
9912 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9913 hardcode_libdir_separator=:
9914 hardcode_direct=yes
9916 # hardcode_minus_L: Not really in the search PATH,
9917 # but as the default location of the library.
9918 hardcode_minus_L=yes
9919 export_dynamic_flag_spec='${wl}-E'
9920 ;;
9922 hpux10*)
9923 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9924 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9925 else
9926 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9927 fi
9928 if test "$with_gnu_ld" = no; then
9929 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9930 hardcode_libdir_flag_spec_ld='+b $libdir'
9931 hardcode_libdir_separator=:
9932 hardcode_direct=yes
9933 hardcode_direct_absolute=yes
9934 export_dynamic_flag_spec='${wl}-E'
9935 # hardcode_minus_L: Not really in the search PATH,
9936 # but as the default location of the library.
9937 hardcode_minus_L=yes
9938 fi
9939 ;;
9941 hpux11*)
9942 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9943 case $host_cpu in
9944 hppa*64*)
9945 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9946 ;;
9947 ia64*)
9948 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9949 ;;
9950 *)
9951 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9952 ;;
9953 esac
9954 else
9955 case $host_cpu in
9956 hppa*64*)
9957 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9958 ;;
9959 ia64*)
9960 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9961 ;;
9962 *)
9963 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9964 ;;
9965 esac
9966 fi
9967 if test "$with_gnu_ld" = no; then
9968 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9969 hardcode_libdir_separator=:
9971 case $host_cpu in
9972 hppa*64*|ia64*)
9973 hardcode_direct=no
9974 hardcode_shlibpath_var=no
9975 ;;
9976 *)
9977 hardcode_direct=yes
9978 hardcode_direct_absolute=yes
9979 export_dynamic_flag_spec='${wl}-E'
9981 # hardcode_minus_L: Not really in the search PATH,
9982 # but as the default location of the library.
9983 hardcode_minus_L=yes
9984 ;;
9985 esac
9986 fi
9987 ;;
9989 irix5* | irix6* | nonstopux*)
9990 if test "$GCC" = yes; then
9991 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'
9992 # Try to use the -exported_symbol ld option, if it does not
9993 # work, assume that -exports_file does not work either and
9994 # implicitly export all symbols.
9995 save_LDFLAGS="$LDFLAGS"
9996 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
9999 int foo(void) {}
10000 _ACEOF
10001 if ac_fn_c_try_link "$LINENO"; then :
10002 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'
10004 fi
10005 rm -f core conftest.err conftest.$ac_objext \
10006 conftest$ac_exeext conftest.$ac_ext
10007 LDFLAGS="$save_LDFLAGS"
10008 else
10009 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'
10010 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'
10011 fi
10012 archive_cmds_need_lc='no'
10013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10014 hardcode_libdir_separator=:
10015 inherit_rpath=yes
10016 link_all_deplibs=yes
10017 ;;
10019 netbsd* | netbsdelf*-gnu)
10020 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10022 else
10023 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10024 fi
10025 hardcode_libdir_flag_spec='-R$libdir'
10026 hardcode_direct=yes
10027 hardcode_shlibpath_var=no
10028 ;;
10030 newsos6)
10031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032 hardcode_direct=yes
10033 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034 hardcode_libdir_separator=:
10035 hardcode_shlibpath_var=no
10036 ;;
10038 *nto* | *qnx*)
10039 ;;
10041 openbsd*)
10042 if test -f /usr/libexec/ld.so; then
10043 hardcode_direct=yes
10044 hardcode_shlibpath_var=no
10045 hardcode_direct_absolute=yes
10046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10047 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10048 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10049 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10050 export_dynamic_flag_spec='${wl}-E'
10051 else
10052 case $host_os in
10053 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10054 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10055 hardcode_libdir_flag_spec='-R$libdir'
10056 ;;
10057 *)
10058 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10059 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10060 ;;
10061 esac
10062 fi
10063 else
10064 ld_shlibs=no
10065 fi
10066 ;;
10068 os2*)
10069 hardcode_libdir_flag_spec='-L$libdir'
10070 hardcode_minus_L=yes
10071 allow_undefined_flag=unsupported
10072 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'
10073 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10074 ;;
10076 osf3*)
10077 if test "$GCC" = yes; then
10078 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10079 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'
10080 else
10081 allow_undefined_flag=' -expect_unresolved \*'
10082 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'
10083 fi
10084 archive_cmds_need_lc='no'
10085 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10086 hardcode_libdir_separator=:
10087 ;;
10089 osf4* | osf5*) # as osf3* with the addition of -msym flag
10090 if test "$GCC" = yes; then
10091 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10092 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'
10093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10094 else
10095 allow_undefined_flag=' -expect_unresolved \*'
10096 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'
10097 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~
10098 $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'
10100 # Both c and cxx compiler support -rpath directly
10101 hardcode_libdir_flag_spec='-rpath $libdir'
10102 fi
10103 archive_cmds_need_lc='no'
10104 hardcode_libdir_separator=:
10105 ;;
10107 solaris*)
10108 no_undefined_flag=' -z defs'
10109 if test "$GCC" = yes; then
10110 wlarc='${wl}'
10111 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10112 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10113 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10114 else
10115 case `$CC -V 2>&1` in
10116 *"Compilers 5.0"*)
10117 wlarc=''
10118 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10119 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10120 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10121 ;;
10122 *)
10123 wlarc='${wl}'
10124 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10126 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10127 ;;
10128 esac
10129 fi
10130 hardcode_libdir_flag_spec='-R$libdir'
10131 hardcode_shlibpath_var=no
10132 case $host_os in
10133 solaris2.[0-5] | solaris2.[0-5].*) ;;
10134 *)
10135 # The compiler driver will combine and reorder linker options,
10136 # but understands `-z linker_flag'. GCC discards it without `$wl',
10137 # but is careful enough not to reorder.
10138 # Supported since Solaris 2.6 (maybe 2.5.1?)
10139 if test "$GCC" = yes; then
10140 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10141 else
10142 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10143 fi
10144 ;;
10145 esac
10146 link_all_deplibs=yes
10147 ;;
10149 sunos4*)
10150 if test "x$host_vendor" = xsequent; then
10151 # Use $CC to link under sequent, because it throws in some extra .o
10152 # files that make .init and .fini sections work.
10153 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10154 else
10155 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10156 fi
10157 hardcode_libdir_flag_spec='-L$libdir'
10158 hardcode_direct=yes
10159 hardcode_minus_L=yes
10160 hardcode_shlibpath_var=no
10161 ;;
10163 sysv4)
10164 case $host_vendor in
10165 sni)
10166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167 hardcode_direct=yes # is this really true???
10168 ;;
10169 siemens)
10170 ## LD is ld it makes a PLAMLIB
10171 ## CC just makes a GrossModule.
10172 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10173 reload_cmds='$CC -r -o $output$reload_objs'
10174 hardcode_direct=no
10175 ;;
10176 motorola)
10177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10178 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10179 ;;
10180 esac
10181 runpath_var='LD_RUN_PATH'
10182 hardcode_shlibpath_var=no
10183 ;;
10185 sysv4.3*)
10186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187 hardcode_shlibpath_var=no
10188 export_dynamic_flag_spec='-Bexport'
10189 ;;
10191 sysv4*MP*)
10192 if test -d /usr/nec; then
10193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10194 hardcode_shlibpath_var=no
10195 runpath_var=LD_RUN_PATH
10196 hardcode_runpath_var=yes
10197 ld_shlibs=yes
10198 fi
10199 ;;
10201 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10202 no_undefined_flag='${wl}-z,text'
10203 archive_cmds_need_lc=no
10204 hardcode_shlibpath_var=no
10205 runpath_var='LD_RUN_PATH'
10207 if test "$GCC" = yes; then
10208 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10210 else
10211 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10212 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10213 fi
10214 ;;
10216 sysv5* | sco3.2v5* | sco5v6*)
10217 # Note: We can NOT use -z defs as we might desire, because we do not
10218 # link with -lc, and that would cause any symbols used from libc to
10219 # always be unresolved, which means just about no library would
10220 # ever link correctly. If we're not using GNU ld we use -z text
10221 # though, which does catch some bad symbols but isn't as heavy-handed
10222 # as -z defs.
10223 no_undefined_flag='${wl}-z,text'
10224 allow_undefined_flag='${wl}-z,nodefs'
10225 archive_cmds_need_lc=no
10226 hardcode_shlibpath_var=no
10227 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10228 hardcode_libdir_separator=':'
10229 link_all_deplibs=yes
10230 export_dynamic_flag_spec='${wl}-Bexport'
10231 runpath_var='LD_RUN_PATH'
10233 if test "$GCC" = yes; then
10234 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236 else
10237 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 fi
10240 ;;
10242 uts4*)
10243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10244 hardcode_libdir_flag_spec='-L$libdir'
10245 hardcode_shlibpath_var=no
10246 ;;
10248 *)
10249 ld_shlibs=no
10250 ;;
10251 esac
10253 if test x$host_vendor = xsni; then
10254 case $host in
10255 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10256 export_dynamic_flag_spec='${wl}-Blargedynsym'
10257 ;;
10258 esac
10259 fi
10260 fi
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10263 $as_echo "$ld_shlibs" >&6; }
10264 test "$ld_shlibs" = no && can_build_shared=no
10266 with_gnu_ld=$with_gnu_ld
10282 #
10283 # Do we need to explicitly link libc?
10284 #
10285 case "x$archive_cmds_need_lc" in
10286 x|xyes)
10287 # Assume -lc should be added
10288 archive_cmds_need_lc=yes
10290 if test "$enable_shared" = yes && test "$GCC" = yes; then
10291 case $archive_cmds in
10292 *'~'*)
10293 # FIXME: we may have to deal with multi-command sequences.
10294 ;;
10295 '$CC '*)
10296 # Test whether the compiler implicitly links with -lc since on some
10297 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10298 # to ld, don't add -lc before -lgcc.
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10300 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10301 $RM conftest*
10302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10305 (eval $ac_compile) 2>&5
10306 ac_status=$?
10307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10308 test $ac_status = 0; } 2>conftest.err; then
10309 soname=conftest
10310 lib=conftest
10311 libobjs=conftest.$ac_objext
10312 deplibs=
10313 wl=$lt_prog_compiler_wl
10314 pic_flag=$lt_prog_compiler_pic
10315 compiler_flags=-v
10316 linker_flags=-v
10317 verstring=
10318 output_objdir=.
10319 libname=conftest
10320 lt_save_allow_undefined_flag=$allow_undefined_flag
10321 allow_undefined_flag=
10322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10323 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10324 ac_status=$?
10325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10326 test $ac_status = 0; }
10327 then
10328 archive_cmds_need_lc=no
10329 else
10330 archive_cmds_need_lc=yes
10331 fi
10332 allow_undefined_flag=$lt_save_allow_undefined_flag
10333 else
10334 cat conftest.err 1>&5
10335 fi
10336 $RM conftest*
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10338 $as_echo "$archive_cmds_need_lc" >&6; }
10339 ;;
10340 esac
10341 fi
10342 ;;
10343 esac
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10502 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10504 if test "$GCC" = yes; then
10505 case $host_os in
10506 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10507 *) lt_awk_arg="/^libraries:/" ;;
10508 esac
10509 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10510 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10511 # if the path contains ";" then we assume it to be the separator
10512 # otherwise default to the standard path separator (i.e. ":") - it is
10513 # assumed that no part of a normal pathname contains ";" but that should
10514 # okay in the real world where ";" in dirpaths is itself problematic.
10515 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10516 else
10517 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10518 fi
10519 # Ok, now we have the path, separated by spaces, we can step through it
10520 # and add multilib dir if necessary.
10521 lt_tmp_lt_search_path_spec=
10522 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10523 for lt_sys_path in $lt_search_path_spec; do
10524 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10525 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10526 else
10527 test -d "$lt_sys_path" && \
10528 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10529 fi
10530 done
10531 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10532 BEGIN {RS=" "; FS="/|\n";} {
10533 lt_foo="";
10534 lt_count=0;
10535 for (lt_i = NF; lt_i > 0; lt_i--) {
10536 if ($lt_i != "" && $lt_i != ".") {
10537 if ($lt_i == "..") {
10538 lt_count++;
10539 } else {
10540 if (lt_count == 0) {
10541 lt_foo="/" $lt_i lt_foo;
10542 } else {
10543 lt_count--;
10544 }
10545 }
10546 }
10547 }
10548 if (lt_foo != "") { lt_freq[lt_foo]++; }
10549 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10550 }'`
10551 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10552 else
10553 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10554 fi
10555 library_names_spec=
10556 libname_spec='lib$name'
10557 soname_spec=
10558 shrext_cmds=".so"
10559 postinstall_cmds=
10560 postuninstall_cmds=
10561 finish_cmds=
10562 finish_eval=
10563 shlibpath_var=
10564 shlibpath_overrides_runpath=unknown
10565 version_type=none
10566 dynamic_linker="$host_os ld.so"
10567 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10568 need_lib_prefix=unknown
10569 hardcode_into_libs=no
10571 # when you set need_version to no, make sure it does not cause -set_version
10572 # flags to be left without arguments
10573 need_version=unknown
10575 case $host_os in
10576 aix3*)
10577 version_type=linux
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10579 shlibpath_var=LIBPATH
10581 # AIX 3 has no versioning support, so we append a major version to the name.
10582 soname_spec='${libname}${release}${shared_ext}$major'
10583 ;;
10585 aix[4-9]*)
10586 version_type=linux
10587 need_lib_prefix=no
10588 need_version=no
10589 hardcode_into_libs=yes
10590 if test "$host_cpu" = ia64; then
10591 # AIX 5 supports IA64
10592 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10593 shlibpath_var=LD_LIBRARY_PATH
10594 else
10595 # With GCC up to 2.95.x, collect2 would create an import file
10596 # for dependence libraries. The import file would start with
10597 # the line `#! .'. This would cause the generated library to
10598 # depend on `.', always an invalid library. This was fixed in
10599 # development snapshots of GCC prior to 3.0.
10600 case $host_os in
10601 aix4 | aix4.[01] | aix4.[01].*)
10602 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10603 echo ' yes '
10604 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10605 :
10606 else
10607 can_build_shared=no
10608 fi
10609 ;;
10610 esac
10611 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10612 # soname into executable. Probably we can add versioning support to
10613 # collect2, so additional links can be useful in future.
10614 if test "$aix_use_runtimelinking" = yes; then
10615 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10616 # instead of lib<name>.a to let people know that these are not
10617 # typical AIX shared libraries.
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619 else
10620 # We preserve .a as extension for shared libraries through AIX4.2
10621 # and later when we are not doing run time linking.
10622 library_names_spec='${libname}${release}.a $libname.a'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 fi
10625 shlibpath_var=LIBPATH
10626 fi
10627 ;;
10629 amigaos*)
10630 case $host_cpu in
10631 powerpc)
10632 # Since July 2007 AmigaOS4 officially supports .so libraries.
10633 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635 ;;
10636 m68k)
10637 library_names_spec='$libname.ixlibrary $libname.a'
10638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10639 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'
10640 ;;
10641 esac
10642 ;;
10644 beos*)
10645 library_names_spec='${libname}${shared_ext}'
10646 dynamic_linker="$host_os ld.so"
10647 shlibpath_var=LIBRARY_PATH
10648 ;;
10650 bsdi[45]*)
10651 version_type=linux
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10658 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10659 # the default ld.so.conf also contains /usr/contrib/lib and
10660 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10661 # libtool to hard-code these into programs
10662 ;;
10664 cygwin* | mingw* | pw32* | cegcc*)
10665 version_type=windows
10666 shrext_cmds=".dll"
10667 need_version=no
10668 need_lib_prefix=no
10670 case $GCC,$host_os in
10671 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10672 library_names_spec='$libname.dll.a'
10673 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10674 postinstall_cmds='base_file=`basename \${file}`~
10675 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10676 dldir=$destdir/`dirname \$dlpath`~
10677 test -d \$dldir || mkdir -p \$dldir~
10678 $install_prog $dir/$dlname \$dldir/$dlname~
10679 chmod a+x \$dldir/$dlname~
10680 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10681 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10682 fi'
10683 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10684 dlpath=$dir/\$dldll~
10685 $RM \$dlpath'
10686 shlibpath_overrides_runpath=yes
10688 case $host_os in
10689 cygwin*)
10690 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10691 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10692 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10693 ;;
10694 mingw* | cegcc*)
10695 # MinGW DLLs use traditional 'lib' prefix
10696 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10697 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10698 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10699 # It is most probably a Windows format PATH printed by
10700 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10701 # path with ; separators, and with drive letters. We can handle the
10702 # drive letters (cygwin fileutils understands them), so leave them,
10703 # especially as we might pass files found there to a mingw objdump,
10704 # which wouldn't understand a cygwinified path. Ahh.
10705 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10706 else
10707 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10708 fi
10709 ;;
10710 pw32*)
10711 # pw32 DLLs use 'pw' prefix rather than 'lib'
10712 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10713 ;;
10714 esac
10715 ;;
10717 *)
10718 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10719 ;;
10720 esac
10721 dynamic_linker='Win32 ld.exe'
10722 # FIXME: first we should search . and the directory the executable is in
10723 shlibpath_var=PATH
10724 ;;
10726 darwin* | rhapsody*)
10727 dynamic_linker="$host_os dyld"
10728 version_type=darwin
10729 need_lib_prefix=no
10730 need_version=no
10731 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10732 soname_spec='${libname}${release}${major}$shared_ext'
10733 shlibpath_overrides_runpath=yes
10734 shlibpath_var=DYLD_LIBRARY_PATH
10735 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10737 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10738 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10739 ;;
10741 dgux*)
10742 version_type=linux
10743 need_lib_prefix=no
10744 need_version=no
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10746 soname_spec='${libname}${release}${shared_ext}$major'
10747 shlibpath_var=LD_LIBRARY_PATH
10748 ;;
10750 freebsd1*)
10751 dynamic_linker=no
10752 ;;
10754 freebsd* | dragonfly*)
10755 # DragonFly does not have aout. When/if they implement a new
10756 # versioning mechanism, adjust this.
10757 if test -x /usr/bin/objformat; then
10758 objformat=`/usr/bin/objformat`
10759 else
10760 case $host_os in
10761 freebsd[123]*) objformat=aout ;;
10762 *) objformat=elf ;;
10763 esac
10764 fi
10765 version_type=freebsd-$objformat
10766 case $version_type in
10767 freebsd-elf*)
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10769 need_version=no
10770 need_lib_prefix=no
10771 ;;
10772 freebsd-*)
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10774 need_version=yes
10775 ;;
10776 esac
10777 shlibpath_var=LD_LIBRARY_PATH
10778 case $host_os in
10779 freebsd2*)
10780 shlibpath_overrides_runpath=yes
10781 ;;
10782 freebsd3.[01]* | freebsdelf3.[01]*)
10783 shlibpath_overrides_runpath=yes
10784 hardcode_into_libs=yes
10785 ;;
10786 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10787 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10788 shlibpath_overrides_runpath=no
10789 hardcode_into_libs=yes
10790 ;;
10791 *) # from 4.6 on, and DragonFly
10792 shlibpath_overrides_runpath=yes
10793 hardcode_into_libs=yes
10794 ;;
10795 esac
10796 ;;
10798 gnu*)
10799 version_type=linux
10800 need_lib_prefix=no
10801 need_version=no
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10803 soname_spec='${libname}${release}${shared_ext}$major'
10804 shlibpath_var=LD_LIBRARY_PATH
10805 hardcode_into_libs=yes
10806 ;;
10808 hpux9* | hpux10* | hpux11*)
10809 # Give a soname corresponding to the major version so that dld.sl refuses to
10810 # link against other versions.
10811 version_type=sunos
10812 need_lib_prefix=no
10813 need_version=no
10814 case $host_cpu in
10815 ia64*)
10816 shrext_cmds='.so'
10817 hardcode_into_libs=yes
10818 dynamic_linker="$host_os dld.so"
10819 shlibpath_var=LD_LIBRARY_PATH
10820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 if test "X$HPUX_IA64_MODE" = X32; then
10824 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10825 else
10826 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10827 fi
10828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10829 ;;
10830 hppa*64*)
10831 shrext_cmds='.sl'
10832 hardcode_into_libs=yes
10833 dynamic_linker="$host_os dld.sl"
10834 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10839 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10840 ;;
10841 *)
10842 shrext_cmds='.sl'
10843 dynamic_linker="$host_os dld.sl"
10844 shlibpath_var=SHLIB_PATH
10845 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847 soname_spec='${libname}${release}${shared_ext}$major'
10848 ;;
10849 esac
10850 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10851 postinstall_cmds='chmod 555 $lib'
10852 ;;
10854 interix[3-9]*)
10855 version_type=linux
10856 need_lib_prefix=no
10857 need_version=no
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=no
10863 hardcode_into_libs=yes
10864 ;;
10866 irix5* | irix6* | nonstopux*)
10867 case $host_os in
10868 nonstopux*) version_type=nonstopux ;;
10869 *)
10870 if test "$lt_cv_prog_gnu_ld" = yes; then
10871 version_type=linux
10872 else
10873 version_type=irix
10874 fi ;;
10875 esac
10876 need_lib_prefix=no
10877 need_version=no
10878 soname_spec='${libname}${release}${shared_ext}$major'
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10880 case $host_os in
10881 irix5* | nonstopux*)
10882 libsuff= shlibsuff=
10883 ;;
10884 *)
10885 case $LD in # libtool.m4 will add one of these switches to LD
10886 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10887 libsuff= shlibsuff= libmagic=32-bit;;
10888 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10889 libsuff=32 shlibsuff=N32 libmagic=N32;;
10890 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10891 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10892 *) libsuff= shlibsuff= libmagic=never-match;;
10893 esac
10894 ;;
10895 esac
10896 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10897 shlibpath_overrides_runpath=no
10898 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10899 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10900 hardcode_into_libs=yes
10901 ;;
10903 # No shared lib support for Linux oldld, aout, or coff.
10904 linux*oldld* | linux*aout* | linux*coff*)
10905 dynamic_linker=no
10906 ;;
10908 # This must be Linux ELF.
10909 linux* | k*bsd*-gnu)
10910 version_type=linux
10911 need_lib_prefix=no
10912 need_version=no
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=no
10918 # Some binutils ld are patched to set DT_RUNPATH
10919 save_LDFLAGS=$LDFLAGS
10920 save_libdir=$libdir
10921 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10922 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924 /* end confdefs.h. */
10926 int
10927 main ()
10928 {
10930 ;
10931 return 0;
10932 }
10933 _ACEOF
10934 if ac_fn_c_try_link "$LINENO"; then :
10935 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10936 shlibpath_overrides_runpath=yes
10937 fi
10938 fi
10939 rm -f core conftest.err conftest.$ac_objext \
10940 conftest$ac_exeext conftest.$ac_ext
10941 LDFLAGS=$save_LDFLAGS
10942 libdir=$save_libdir
10944 # This implies no fast_install, which is unacceptable.
10945 # Some rework will be needed to allow for fast_install
10946 # before this can be enabled.
10947 hardcode_into_libs=yes
10949 # Append ld.so.conf contents to the search path
10950 if test -f /etc/ld.so.conf; then
10951 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' ' '`
10952 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10953 fi
10955 # We used to test for /lib/ld.so.1 and disable shared libraries on
10956 # powerpc, because MkLinux only supported shared libraries with the
10957 # GNU dynamic linker. Since this was broken with cross compilers,
10958 # most powerpc-linux boxes support dynamic linking these days and
10959 # people can always --disable-shared, the test was removed, and we
10960 # assume the GNU/Linux dynamic linker is in use.
10961 dynamic_linker='GNU/Linux ld.so'
10962 ;;
10964 netbsdelf*-gnu)
10965 version_type=linux
10966 need_lib_prefix=no
10967 need_version=no
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=no
10972 hardcode_into_libs=yes
10973 dynamic_linker='NetBSD ld.elf_so'
10974 ;;
10976 netbsd*)
10977 version_type=sunos
10978 need_lib_prefix=no
10979 need_version=no
10980 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10983 dynamic_linker='NetBSD (a.out) ld.so'
10984 else
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10986 soname_spec='${libname}${release}${shared_ext}$major'
10987 dynamic_linker='NetBSD ld.elf_so'
10988 fi
10989 shlibpath_var=LD_LIBRARY_PATH
10990 shlibpath_overrides_runpath=yes
10991 hardcode_into_libs=yes
10992 ;;
10994 newsos6)
10995 version_type=linux
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 shlibpath_overrides_runpath=yes
10999 ;;
11001 *nto* | *qnx*)
11002 version_type=qnx
11003 need_lib_prefix=no
11004 need_version=no
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 shlibpath_var=LD_LIBRARY_PATH
11008 shlibpath_overrides_runpath=no
11009 hardcode_into_libs=yes
11010 dynamic_linker='ldqnx.so'
11011 ;;
11013 openbsd*)
11014 version_type=sunos
11015 sys_lib_dlsearch_path_spec="/usr/lib"
11016 need_lib_prefix=no
11017 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11018 case $host_os in
11019 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11020 *) need_version=no ;;
11021 esac
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11026 case $host_os in
11027 openbsd2.[89] | openbsd2.[89].*)
11028 shlibpath_overrides_runpath=no
11029 ;;
11030 *)
11031 shlibpath_overrides_runpath=yes
11032 ;;
11033 esac
11034 else
11035 shlibpath_overrides_runpath=yes
11036 fi
11037 ;;
11039 os2*)
11040 libname_spec='$name'
11041 shrext_cmds=".dll"
11042 need_lib_prefix=no
11043 library_names_spec='$libname${shared_ext} $libname.a'
11044 dynamic_linker='OS/2 ld.exe'
11045 shlibpath_var=LIBPATH
11046 ;;
11048 osf3* | osf4* | osf5*)
11049 version_type=osf
11050 need_lib_prefix=no
11051 need_version=no
11052 soname_spec='${libname}${release}${shared_ext}$major'
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11056 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11057 ;;
11059 rdos*)
11060 dynamic_linker=no
11061 ;;
11063 solaris*)
11064 version_type=linux
11065 need_lib_prefix=no
11066 need_version=no
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068 soname_spec='${libname}${release}${shared_ext}$major'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=yes
11071 hardcode_into_libs=yes
11072 # ldd complains unless libraries are executable
11073 postinstall_cmds='chmod +x $lib'
11074 ;;
11076 sunos4*)
11077 version_type=sunos
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11079 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 shlibpath_overrides_runpath=yes
11082 if test "$with_gnu_ld" = yes; then
11083 need_lib_prefix=no
11084 fi
11085 need_version=yes
11086 ;;
11088 sysv4 | sysv4.3*)
11089 version_type=linux
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091 soname_spec='${libname}${release}${shared_ext}$major'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 case $host_vendor in
11094 sni)
11095 shlibpath_overrides_runpath=no
11096 need_lib_prefix=no
11097 runpath_var=LD_RUN_PATH
11098 ;;
11099 siemens)
11100 need_lib_prefix=no
11101 ;;
11102 motorola)
11103 need_lib_prefix=no
11104 need_version=no
11105 shlibpath_overrides_runpath=no
11106 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11107 ;;
11108 esac
11109 ;;
11111 sysv4*MP*)
11112 if test -d /usr/nec ;then
11113 version_type=linux
11114 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11115 soname_spec='$libname${shared_ext}.$major'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 fi
11118 ;;
11120 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11121 version_type=freebsd-elf
11122 need_lib_prefix=no
11123 need_version=no
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=yes
11128 hardcode_into_libs=yes
11129 if test "$with_gnu_ld" = yes; then
11130 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11131 else
11132 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11133 case $host_os in
11134 sco3.2v5*)
11135 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11136 ;;
11137 esac
11138 fi
11139 sys_lib_dlsearch_path_spec='/usr/lib'
11140 ;;
11142 tpf*)
11143 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11144 version_type=linux
11145 need_lib_prefix=no
11146 need_version=no
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 shlibpath_overrides_runpath=no
11150 hardcode_into_libs=yes
11151 ;;
11153 uts4*)
11154 version_type=linux
11155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11156 soname_spec='${libname}${release}${shared_ext}$major'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 ;;
11160 *)
11161 dynamic_linker=no
11162 ;;
11163 esac
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11165 $as_echo "$dynamic_linker" >&6; }
11166 test "$dynamic_linker" = no && can_build_shared=no
11168 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11169 if test "$GCC" = yes; then
11170 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11171 fi
11173 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11174 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11175 fi
11176 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11177 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11178 fi
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11267 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11268 hardcode_action=
11269 if test -n "$hardcode_libdir_flag_spec" ||
11270 test -n "$runpath_var" ||
11271 test "X$hardcode_automatic" = "Xyes" ; then
11273 # We can hardcode non-existent directories.
11274 if test "$hardcode_direct" != no &&
11275 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11276 # have to relink, otherwise we might link with an installed library
11277 # when we should be linking with a yet-to-be-installed one
11278 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11279 test "$hardcode_minus_L" != no; then
11280 # Linking always hardcodes the temporary library directory.
11281 hardcode_action=relink
11282 else
11283 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11284 hardcode_action=immediate
11285 fi
11286 else
11287 # We cannot hardcode anything, or else we can only hardcode existing
11288 # directories.
11289 hardcode_action=unsupported
11290 fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11292 $as_echo "$hardcode_action" >&6; }
11294 if test "$hardcode_action" = relink ||
11295 test "$inherit_rpath" = yes; then
11296 # Fast installation is not supported
11297 enable_fast_install=no
11298 elif test "$shlibpath_overrides_runpath" = yes ||
11299 test "$enable_shared" = no; then
11300 # Fast installation is not necessary
11301 enable_fast_install=needless
11302 fi
11309 if test "x$enable_dlopen" != xyes; then
11310 enable_dlopen=unknown
11311 enable_dlopen_self=unknown
11312 enable_dlopen_self_static=unknown
11313 else
11314 lt_cv_dlopen=no
11315 lt_cv_dlopen_libs=
11317 case $host_os in
11318 beos*)
11319 lt_cv_dlopen="load_add_on"
11320 lt_cv_dlopen_libs=
11321 lt_cv_dlopen_self=yes
11322 ;;
11324 mingw* | pw32* | cegcc*)
11325 lt_cv_dlopen="LoadLibrary"
11326 lt_cv_dlopen_libs=
11327 ;;
11329 cygwin*)
11330 lt_cv_dlopen="dlopen"
11331 lt_cv_dlopen_libs=
11332 ;;
11334 darwin*)
11335 # if libdl is installed we need to link against it
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11337 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11338 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 ac_check_lib_save_LIBS=$LIBS
11342 LIBS="-ldl $LIBS"
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 char dlopen ();
11353 int
11354 main ()
11355 {
11356 return dlopen ();
11357 ;
11358 return 0;
11359 }
11360 _ACEOF
11361 if ac_fn_c_try_link "$LINENO"; then :
11362 ac_cv_lib_dl_dlopen=yes
11363 else
11364 ac_cv_lib_dl_dlopen=no
11365 fi
11366 rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368 LIBS=$ac_check_lib_save_LIBS
11369 fi
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11371 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11372 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11374 else
11376 lt_cv_dlopen="dyld"
11377 lt_cv_dlopen_libs=
11378 lt_cv_dlopen_self=yes
11380 fi
11382 ;;
11384 *)
11385 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11386 if test "x$ac_cv_func_shl_load" = x""yes; then :
11387 lt_cv_dlopen="shl_load"
11388 else
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11390 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11391 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 ac_check_lib_save_LIBS=$LIBS
11395 LIBS="-ldld $LIBS"
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11399 /* Override any GCC internal prototype to avoid an error.
11400 Use char because int might match the return type of a GCC
11401 builtin and then its argument prototype would still apply. */
11402 #ifdef __cplusplus
11403 extern "C"
11404 #endif
11405 char shl_load ();
11406 int
11407 main ()
11408 {
11409 return shl_load ();
11410 ;
11411 return 0;
11412 }
11413 _ACEOF
11414 if ac_fn_c_try_link "$LINENO"; then :
11415 ac_cv_lib_dld_shl_load=yes
11416 else
11417 ac_cv_lib_dld_shl_load=no
11418 fi
11419 rm -f core conftest.err conftest.$ac_objext \
11420 conftest$ac_exeext conftest.$ac_ext
11421 LIBS=$ac_check_lib_save_LIBS
11422 fi
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11424 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11425 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11426 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11427 else
11428 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11429 if test "x$ac_cv_func_dlopen" = x""yes; then :
11430 lt_cv_dlopen="dlopen"
11431 else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11433 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11434 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-ldl $LIBS"
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 char dlopen ();
11449 int
11450 main ()
11451 {
11452 return dlopen ();
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_link "$LINENO"; then :
11458 ac_cv_lib_dl_dlopen=yes
11459 else
11460 ac_cv_lib_dl_dlopen=no
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_lib_save_LIBS
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11467 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11468 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11469 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11472 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11473 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11474 $as_echo_n "(cached) " >&6
11475 else
11476 ac_check_lib_save_LIBS=$LIBS
11477 LIBS="-lsvld $LIBS"
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char dlopen ();
11488 int
11489 main ()
11490 {
11491 return dlopen ();
11492 ;
11493 return 0;
11494 }
11495 _ACEOF
11496 if ac_fn_c_try_link "$LINENO"; then :
11497 ac_cv_lib_svld_dlopen=yes
11498 else
11499 ac_cv_lib_svld_dlopen=no
11500 fi
11501 rm -f core conftest.err conftest.$ac_objext \
11502 conftest$ac_exeext conftest.$ac_ext
11503 LIBS=$ac_check_lib_save_LIBS
11504 fi
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11506 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11507 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11508 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11509 else
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11511 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11512 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 ac_check_lib_save_LIBS=$LIBS
11516 LIBS="-ldld $LIBS"
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char dld_link ();
11527 int
11528 main ()
11529 {
11530 return dld_link ();
11531 ;
11532 return 0;
11533 }
11534 _ACEOF
11535 if ac_fn_c_try_link "$LINENO"; then :
11536 ac_cv_lib_dld_dld_link=yes
11537 else
11538 ac_cv_lib_dld_dld_link=no
11539 fi
11540 rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11543 fi
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11545 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11546 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11547 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11548 fi
11551 fi
11554 fi
11557 fi
11560 fi
11563 fi
11565 ;;
11566 esac
11568 if test "x$lt_cv_dlopen" != xno; then
11569 enable_dlopen=yes
11570 else
11571 enable_dlopen=no
11572 fi
11574 case $lt_cv_dlopen in
11575 dlopen)
11576 save_CPPFLAGS="$CPPFLAGS"
11577 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11579 save_LDFLAGS="$LDFLAGS"
11580 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11582 save_LIBS="$LIBS"
11583 LIBS="$lt_cv_dlopen_libs $LIBS"
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11586 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11587 if test "${lt_cv_dlopen_self+set}" = set; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 if test "$cross_compiling" = yes; then :
11591 lt_cv_dlopen_self=cross
11592 else
11593 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11594 lt_status=$lt_dlunknown
11595 cat > conftest.$ac_ext <<_LT_EOF
11596 #line 11596 "configure"
11597 #include "confdefs.h"
11599 #if HAVE_DLFCN_H
11600 #include <dlfcn.h>
11601 #endif
11603 #include <stdio.h>
11605 #ifdef RTLD_GLOBAL
11606 # define LT_DLGLOBAL RTLD_GLOBAL
11607 #else
11608 # ifdef DL_GLOBAL
11609 # define LT_DLGLOBAL DL_GLOBAL
11610 # else
11611 # define LT_DLGLOBAL 0
11612 # endif
11613 #endif
11615 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11616 find out it does not work in some platform. */
11617 #ifndef LT_DLLAZY_OR_NOW
11618 # ifdef RTLD_LAZY
11619 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11620 # else
11621 # ifdef DL_LAZY
11622 # define LT_DLLAZY_OR_NOW DL_LAZY
11623 # else
11624 # ifdef RTLD_NOW
11625 # define LT_DLLAZY_OR_NOW RTLD_NOW
11626 # else
11627 # ifdef DL_NOW
11628 # define LT_DLLAZY_OR_NOW DL_NOW
11629 # else
11630 # define LT_DLLAZY_OR_NOW 0
11631 # endif
11632 # endif
11633 # endif
11634 # endif
11635 #endif
11637 void fnord() { int i=42;}
11638 int main ()
11639 {
11640 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11641 int status = $lt_dlunknown;
11643 if (self)
11644 {
11645 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11646 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11647 /* dlclose (self); */
11648 }
11649 else
11650 puts (dlerror ());
11652 return status;
11653 }
11654 _LT_EOF
11655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11656 (eval $ac_link) 2>&5
11657 ac_status=$?
11658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11659 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11660 (./conftest; exit; ) >&5 2>/dev/null
11661 lt_status=$?
11662 case x$lt_status in
11663 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11664 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11665 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11666 esac
11667 else :
11668 # compilation failed
11669 lt_cv_dlopen_self=no
11670 fi
11671 fi
11672 rm -fr conftest*
11675 fi
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11677 $as_echo "$lt_cv_dlopen_self" >&6; }
11679 if test "x$lt_cv_dlopen_self" = xyes; then
11680 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11682 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11683 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 if test "$cross_compiling" = yes; then :
11687 lt_cv_dlopen_self_static=cross
11688 else
11689 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11690 lt_status=$lt_dlunknown
11691 cat > conftest.$ac_ext <<_LT_EOF
11692 #line 11692 "configure"
11693 #include "confdefs.h"
11695 #if HAVE_DLFCN_H
11696 #include <dlfcn.h>
11697 #endif
11699 #include <stdio.h>
11701 #ifdef RTLD_GLOBAL
11702 # define LT_DLGLOBAL RTLD_GLOBAL
11703 #else
11704 # ifdef DL_GLOBAL
11705 # define LT_DLGLOBAL DL_GLOBAL
11706 # else
11707 # define LT_DLGLOBAL 0
11708 # endif
11709 #endif
11711 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11712 find out it does not work in some platform. */
11713 #ifndef LT_DLLAZY_OR_NOW
11714 # ifdef RTLD_LAZY
11715 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11716 # else
11717 # ifdef DL_LAZY
11718 # define LT_DLLAZY_OR_NOW DL_LAZY
11719 # else
11720 # ifdef RTLD_NOW
11721 # define LT_DLLAZY_OR_NOW RTLD_NOW
11722 # else
11723 # ifdef DL_NOW
11724 # define LT_DLLAZY_OR_NOW DL_NOW
11725 # else
11726 # define LT_DLLAZY_OR_NOW 0
11727 # endif
11728 # endif
11729 # endif
11730 # endif
11731 #endif
11733 void fnord() { int i=42;}
11734 int main ()
11735 {
11736 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11737 int status = $lt_dlunknown;
11739 if (self)
11740 {
11741 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11742 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11743 /* dlclose (self); */
11744 }
11745 else
11746 puts (dlerror ());
11748 return status;
11749 }
11750 _LT_EOF
11751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11752 (eval $ac_link) 2>&5
11753 ac_status=$?
11754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11755 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11756 (./conftest; exit; ) >&5 2>/dev/null
11757 lt_status=$?
11758 case x$lt_status in
11759 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11760 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11761 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11762 esac
11763 else :
11764 # compilation failed
11765 lt_cv_dlopen_self_static=no
11766 fi
11767 fi
11768 rm -fr conftest*
11771 fi
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11773 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11774 fi
11776 CPPFLAGS="$save_CPPFLAGS"
11777 LDFLAGS="$save_LDFLAGS"
11778 LIBS="$save_LIBS"
11779 ;;
11780 esac
11782 case $lt_cv_dlopen_self in
11783 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11784 *) enable_dlopen_self=unknown ;;
11785 esac
11787 case $lt_cv_dlopen_self_static in
11788 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11789 *) enable_dlopen_self_static=unknown ;;
11790 esac
11791 fi
11809 striplib=
11810 old_striplib=
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11812 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11813 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11814 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11815 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11817 $as_echo "yes" >&6; }
11818 else
11819 # FIXME - insert some real tests, host_os isn't really good enough
11820 case $host_os in
11821 darwin*)
11822 if test -n "$STRIP" ; then
11823 striplib="$STRIP -x"
11824 old_striplib="$STRIP -S"
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11826 $as_echo "yes" >&6; }
11827 else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 $as_echo "no" >&6; }
11830 fi
11831 ;;
11832 *)
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11835 ;;
11836 esac
11837 fi
11850 # Report which library types will actually be built
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11852 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11854 $as_echo "$can_build_shared" >&6; }
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11857 $as_echo_n "checking whether to build shared libraries... " >&6; }
11858 test "$can_build_shared" = "no" && enable_shared=no
11860 # On AIX, shared libraries and static libraries use the same namespace, and
11861 # are all built from PIC.
11862 case $host_os in
11863 aix3*)
11864 test "$enable_shared" = yes && enable_static=no
11865 if test -n "$RANLIB"; then
11866 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11867 postinstall_cmds='$RANLIB $lib'
11868 fi
11869 ;;
11871 aix[4-9]*)
11872 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11873 test "$enable_shared" = yes && enable_static=no
11874 fi
11875 ;;
11876 esac
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11878 $as_echo "$enable_shared" >&6; }
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11881 $as_echo_n "checking whether to build static libraries... " >&6; }
11882 # Make sure either enable_shared or enable_static is yes.
11883 test "$enable_shared" = yes || enable_static=yes
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11885 $as_echo "$enable_static" >&6; }
11890 fi
11891 ac_ext=c
11892 ac_cpp='$CPP $CPPFLAGS'
11893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11897 CC="$lt_save_CC"
11911 ac_config_commands="$ac_config_commands libtool"
11916 # Only expand once:
11920 CFLAGS="$CFLAGS -D_GNU_SOURCE"
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc likes the -Werror flag" >&5
11923 $as_echo_n "checking if gcc likes the -Werror flag... " >&6; }
11924 if test "${rd_cv_gcc_flag__Werror+set}" = set; then :
11925 $as_echo_n "(cached) " >&6
11926 else
11927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h. */
11930 int
11931 main ()
11932 {
11933 return 0
11934 ;
11935 return 0;
11936 }
11937 _ACEOF
11938 if ac_fn_c_try_compile "$LINENO"; then :
11939 rd_cv_gcc_flag__Werror="yes"
11940 else
11941 rd_cv_gcc_flag__Werror="no"
11942 fi
11943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 fi
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rd_cv_gcc_flag__Werror" >&5
11946 $as_echo "$rd_cv_gcc_flag__Werror" >&6; }
11947 if test "x$rd_cv_gcc_flag__Werror" = "xyes"; then
11948 WERROR="-Werror"
11949 else
11950 WERROR=""
11951 fi
11954 if test "x$GCC" = "xyes"; then
11955 for flag in -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W; do
11956 oCFLAGS="$CFLAGS"
11957 CFLAGS="$CFLAGS $flag"
11958 cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc likes the $flag flag" >&5
11960 $as_echo_n "checking if gcc likes the $flag flag... " >&6; }
11961 if { as_var=$cachename; eval "test \"\${$as_var+set}\" = set"; }; then :
11962 $as_echo_n "(cached) " >&6
11963 else
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11967 int
11968 main ()
11969 {
11970 return 0
11971 ;
11972 return 0;
11973 }
11974 _ACEOF
11975 if ac_fn_c_try_compile "$LINENO"; then :
11976 eval $cachename=yes
11977 else
11978 eval $cachename=no
11979 fi
11980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11981 fi
11982 eval ac_res=\$$cachename
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11984 $as_echo "$ac_res" >&6; }
11985 if eval test \$$cachename = no; then
11986 CFLAGS="$oCFLAGS"
11987 fi
11988 done
11989 fi
11996 case $TERM in
11997 # for the most important terminal types we directly know the sequences
11998 xterm|xterm*|vt220|vt220*)
11999 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
12000 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
12001 ;;
12002 vt100|vt100*|cygwin)
12003 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
12004 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
12005 ;;
12006 *)
12007 T_MD=''
12008 T_ME=''
12009 ;;
12010 esac
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12012 $as_echo "" >&6; }
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Checking for Header Files${T_ME}" >&5
12014 $as_echo "${T_MD}Checking for Header Files${T_ME}" >&6; }
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12018 $as_echo_n "checking for ANSI C header files... " >&6; }
12019 if test "${ac_cv_header_stdc+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h. */
12024 #include <stdlib.h>
12025 #include <stdarg.h>
12026 #include <string.h>
12027 #include <float.h>
12029 int
12030 main ()
12031 {
12033 ;
12034 return 0;
12035 }
12036 _ACEOF
12037 if ac_fn_c_try_compile "$LINENO"; then :
12038 ac_cv_header_stdc=yes
12039 else
12040 ac_cv_header_stdc=no
12041 fi
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044 if test $ac_cv_header_stdc = yes; then
12045 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12048 #include <string.h>
12050 _ACEOF
12051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12052 $EGREP "memchr" >/dev/null 2>&1; then :
12054 else
12055 ac_cv_header_stdc=no
12056 fi
12057 rm -f conftest*
12059 fi
12061 if test $ac_cv_header_stdc = yes; then
12062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h. */
12065 #include <stdlib.h>
12067 _ACEOF
12068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12069 $EGREP "free" >/dev/null 2>&1; then :
12071 else
12072 ac_cv_header_stdc=no
12073 fi
12074 rm -f conftest*
12076 fi
12078 if test $ac_cv_header_stdc = yes; then
12079 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12080 if test "$cross_compiling" = yes; then :
12081 :
12082 else
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 #include <ctype.h>
12086 #include <stdlib.h>
12087 #if ((' ' & 0x0FF) == 0x020)
12088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12090 #else
12091 # define ISLOWER(c) \
12092 (('a' <= (c) && (c) <= 'i') \
12093 || ('j' <= (c) && (c) <= 'r') \
12094 || ('s' <= (c) && (c) <= 'z'))
12095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12096 #endif
12098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12099 int
12100 main ()
12101 {
12102 int i;
12103 for (i = 0; i < 256; i++)
12104 if (XOR (islower (i), ISLOWER (i))
12105 || toupper (i) != TOUPPER (i))
12106 return 2;
12107 return 0;
12108 }
12109 _ACEOF
12110 if ac_fn_c_try_run "$LINENO"; then :
12112 else
12113 ac_cv_header_stdc=no
12114 fi
12115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12116 conftest.$ac_objext conftest.beam conftest.$ac_ext
12117 fi
12119 fi
12120 fi
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12122 $as_echo "$ac_cv_header_stdc" >&6; }
12123 if test $ac_cv_header_stdc = yes; then
12125 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12127 fi
12129 ac_header_dirent=no
12130 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12131 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12133 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12139 #include <sys/types.h>
12140 #include <$ac_hdr>
12142 int
12143 main ()
12144 {
12145 if ((DIR *) 0)
12146 return 0;
12147 ;
12148 return 0;
12149 }
12150 _ACEOF
12151 if ac_fn_c_try_compile "$LINENO"; then :
12152 eval "$as_ac_Header=yes"
12153 else
12154 eval "$as_ac_Header=no"
12155 fi
12156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12157 fi
12158 eval ac_res=\$$as_ac_Header
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12160 $as_echo "$ac_res" >&6; }
12161 eval as_val=\$$as_ac_Header
12162 if test "x$as_val" = x""yes; then :
12163 cat >>confdefs.h <<_ACEOF
12164 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12165 _ACEOF
12167 ac_header_dirent=$ac_hdr; break
12168 fi
12170 done
12171 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12172 if test $ac_header_dirent = dirent.h; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12174 $as_echo_n "checking for library containing opendir... " >&6; }
12175 if test "${ac_cv_search_opendir+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 ac_func_search_save_LIBS=$LIBS
12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h. */
12182 /* Override any GCC internal prototype to avoid an error.
12183 Use char because int might match the return type of a GCC
12184 builtin and then its argument prototype would still apply. */
12185 #ifdef __cplusplus
12186 extern "C"
12187 #endif
12188 char opendir ();
12189 int
12190 main ()
12191 {
12192 return opendir ();
12193 ;
12194 return 0;
12195 }
12196 _ACEOF
12197 for ac_lib in '' dir; do
12198 if test -z "$ac_lib"; then
12199 ac_res="none required"
12200 else
12201 ac_res=-l$ac_lib
12202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12203 fi
12204 if ac_fn_c_try_link "$LINENO"; then :
12205 ac_cv_search_opendir=$ac_res
12206 fi
12207 rm -f core conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext
12209 if test "${ac_cv_search_opendir+set}" = set; then :
12210 break
12211 fi
12212 done
12213 if test "${ac_cv_search_opendir+set}" = set; then :
12215 else
12216 ac_cv_search_opendir=no
12217 fi
12218 rm conftest.$ac_ext
12219 LIBS=$ac_func_search_save_LIBS
12220 fi
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12222 $as_echo "$ac_cv_search_opendir" >&6; }
12223 ac_res=$ac_cv_search_opendir
12224 if test "$ac_res" != no; then :
12225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12227 fi
12229 else
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12231 $as_echo_n "checking for library containing opendir... " >&6; }
12232 if test "${ac_cv_search_opendir+set}" = set; then :
12233 $as_echo_n "(cached) " >&6
12234 else
12235 ac_func_search_save_LIBS=$LIBS
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12239 /* Override any GCC internal prototype to avoid an error.
12240 Use char because int might match the return type of a GCC
12241 builtin and then its argument prototype would still apply. */
12242 #ifdef __cplusplus
12243 extern "C"
12244 #endif
12245 char opendir ();
12246 int
12247 main ()
12248 {
12249 return opendir ();
12250 ;
12251 return 0;
12252 }
12253 _ACEOF
12254 for ac_lib in '' x; do
12255 if test -z "$ac_lib"; then
12256 ac_res="none required"
12257 else
12258 ac_res=-l$ac_lib
12259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12260 fi
12261 if ac_fn_c_try_link "$LINENO"; then :
12262 ac_cv_search_opendir=$ac_res
12263 fi
12264 rm -f core conftest.err conftest.$ac_objext \
12265 conftest$ac_exeext
12266 if test "${ac_cv_search_opendir+set}" = set; then :
12267 break
12268 fi
12269 done
12270 if test "${ac_cv_search_opendir+set}" = set; then :
12272 else
12273 ac_cv_search_opendir=no
12274 fi
12275 rm conftest.$ac_ext
12276 LIBS=$ac_func_search_save_LIBS
12277 fi
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12279 $as_echo "$ac_cv_search_opendir" >&6; }
12280 ac_res=$ac_cv_search_opendir
12281 if test "$ac_res" != no; then :
12282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12284 fi
12286 fi
12288 for ac_header in stdint.h inttypes.h libgen.h features.h sys/stat.h sys/types.h fcntl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h
12289 do :
12290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12291 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12292 eval as_val=\$$as_ac_Header
12293 if test "x$as_val" = x""yes; then :
12294 cat >>confdefs.h <<_ACEOF
12295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12296 _ACEOF
12298 fi
12300 done
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12304 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12305 if test "${ac_cv_c_const+set}" = set; then :
12306 $as_echo_n "(cached) " >&6
12307 else
12308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12311 int
12312 main ()
12313 {
12314 /* FIXME: Include the comments suggested by Paul. */
12315 #ifndef __cplusplus
12316 /* Ultrix mips cc rejects this. */
12317 typedef int charset[2];
12318 const charset cs;
12319 /* SunOS 4.1.1 cc rejects this. */
12320 char const *const *pcpcc;
12321 char **ppc;
12322 /* NEC SVR4.0.2 mips cc rejects this. */
12323 struct point {int x, y;};
12324 static struct point const zero = {0,0};
12325 /* AIX XL C 1.02.0.0 rejects this.
12326 It does not let you subtract one const X* pointer from another in
12327 an arm of an if-expression whose if-part is not a constant
12328 expression */
12329 const char *g = "string";
12330 pcpcc = &g + (g ? g-g : 0);
12331 /* HPUX 7.0 cc rejects these. */
12332 ++pcpcc;
12333 ppc = (char**) pcpcc;
12334 pcpcc = (char const *const *) ppc;
12335 { /* SCO 3.2v4 cc rejects this. */
12336 char *t;
12337 char const *s = 0 ? (char *) 0 : (char const *) 0;
12339 *t++ = 0;
12340 if (s) return 0;
12341 }
12342 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12343 int x[] = {25, 17};
12344 const int *foo = &x[0];
12345 ++foo;
12346 }
12347 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12348 typedef const int *iptr;
12349 iptr p = 0;
12350 ++p;
12351 }
12352 { /* AIX XL C 1.02.0.0 rejects this saying
12353 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12354 struct s { int j; const int *ap[3]; };
12355 struct s *b; b->j = 5;
12356 }
12357 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12358 const int foo = 10;
12359 if (!foo) return 0;
12360 }
12361 return !cs[0] && !zero.x;
12362 #endif
12364 ;
12365 return 0;
12366 }
12367 _ACEOF
12368 if ac_fn_c_try_compile "$LINENO"; then :
12369 ac_cv_c_const=yes
12370 else
12371 ac_cv_c_const=no
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 fi
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12376 $as_echo "$ac_cv_c_const" >&6; }
12377 if test $ac_cv_c_const = no; then
12379 $as_echo "#define const /**/" >>confdefs.h
12381 fi
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12384 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12385 if test "${ac_cv_header_time+set}" = set; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12390 #include <sys/types.h>
12391 #include <sys/time.h>
12392 #include <time.h>
12394 int
12395 main ()
12396 {
12397 if ((struct tm *) 0)
12398 return 0;
12399 ;
12400 return 0;
12401 }
12402 _ACEOF
12403 if ac_fn_c_try_compile "$LINENO"; then :
12404 ac_cv_header_time=yes
12405 else
12406 ac_cv_header_time=no
12407 fi
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12409 fi
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12411 $as_echo "$ac_cv_header_time" >&6; }
12412 if test $ac_cv_header_time = yes; then
12414 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12416 fi
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12419 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12420 if test "${ac_cv_struct_tm+set}" = set; then :
12421 $as_echo_n "(cached) " >&6
12422 else
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h. */
12425 #include <sys/types.h>
12426 #include <time.h>
12428 int
12429 main ()
12430 {
12431 struct tm tm;
12432 int *p = &tm.tm_sec;
12433 return !p;
12434 ;
12435 return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_compile "$LINENO"; then :
12439 ac_cv_struct_tm=time.h
12440 else
12441 ac_cv_struct_tm=sys/time.h
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 fi
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12446 $as_echo "$ac_cv_struct_tm" >&6; }
12447 if test $ac_cv_struct_tm = sys/time.h; then
12449 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12451 fi
12455 case $TERM in
12456 # for the most important terminal types we directly know the sequences
12457 xterm|xterm*|vt220|vt220*)
12458 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
12459 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
12460 ;;
12461 vt100|vt100*|cygwin)
12462 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
12463 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
12464 ;;
12465 *)
12466 T_MD=''
12467 T_ME=''
12468 ;;
12469 esac
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12471 $as_echo "" >&6; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Test Library Functions${T_ME}" >&5
12473 $as_echo "${T_MD}Test Library Functions${T_ME}" >&6; }
12476 ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
12477 if test "x$ac_cv_func_acos" = x""yes; then :
12479 else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos in -lm" >&5
12481 $as_echo_n "checking for acos in -lm... " >&6; }
12482 if test "${ac_cv_lib_m_acos+set}" = set; then :
12483 $as_echo_n "(cached) " >&6
12484 else
12485 ac_check_lib_save_LIBS=$LIBS
12486 LIBS="-lm $LIBS"
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12493 #ifdef __cplusplus
12494 extern "C"
12495 #endif
12496 char acos ();
12497 int
12498 main ()
12499 {
12500 return acos ();
12501 ;
12502 return 0;
12503 }
12504 _ACEOF
12505 if ac_fn_c_try_link "$LINENO"; then :
12506 ac_cv_lib_m_acos=yes
12507 else
12508 ac_cv_lib_m_acos=no
12509 fi
12510 rm -f core conftest.err conftest.$ac_objext \
12511 conftest$ac_exeext conftest.$ac_ext
12512 LIBS=$ac_check_lib_save_LIBS
12513 fi
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acos" >&5
12515 $as_echo "$ac_cv_lib_m_acos" >&6; }
12516 if test "x$ac_cv_lib_m_acos" = x""yes; then :
12517 cat >>confdefs.h <<_ACEOF
12518 #define HAVE_LIBM 1
12519 _ACEOF
12521 LIBS="-lm $LIBS"
12523 fi
12525 fi
12529 eval `./libtool --config | grep pic_flag`
12530 CFLAGS="$CFLAGS $pic_flag"
12533 for ac_func in strftime
12534 do :
12535 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12536 if test "x$ac_cv_func_strftime" = x""yes; then :
12537 cat >>confdefs.h <<_ACEOF
12538 #define HAVE_STRFTIME 1
12539 _ACEOF
12541 else
12542 # strftime is in -lintl on SCO UNIX.
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12544 $as_echo_n "checking for strftime in -lintl... " >&6; }
12545 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 ac_check_lib_save_LIBS=$LIBS
12549 LIBS="-lintl $LIBS"
12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12553 /* Override any GCC internal prototype to avoid an error.
12554 Use char because int might match the return type of a GCC
12555 builtin and then its argument prototype would still apply. */
12556 #ifdef __cplusplus
12557 extern "C"
12558 #endif
12559 char strftime ();
12560 int
12561 main ()
12562 {
12563 return strftime ();
12564 ;
12565 return 0;
12566 }
12567 _ACEOF
12568 if ac_fn_c_try_link "$LINENO"; then :
12569 ac_cv_lib_intl_strftime=yes
12570 else
12571 ac_cv_lib_intl_strftime=no
12572 fi
12573 rm -f core conftest.err conftest.$ac_objext \
12574 conftest$ac_exeext conftest.$ac_ext
12575 LIBS=$ac_check_lib_save_LIBS
12576 fi
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12578 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12579 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12580 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12582 LIBS="-lintl $LIBS"
12583 fi
12585 fi
12586 done
12588 for ac_func in vprintf
12589 do :
12590 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12591 if test "x$ac_cv_func_vprintf" = x""yes; then :
12592 cat >>confdefs.h <<_ACEOF
12593 #define HAVE_VPRINTF 1
12594 _ACEOF
12596 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12597 if test "x$ac_cv_func__doprnt" = x""yes; then :
12599 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12601 fi
12603 fi
12604 done
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12609 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12610 if test "${ac_cv_c_bigendian+set}" = set; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 ac_cv_c_bigendian=unknown
12614 # See if we're dealing with a universal compiler.
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 /* end confdefs.h. */
12617 #ifndef __APPLE_CC__
12618 not a universal capable compiler
12619 #endif
12620 typedef int dummy;
12622 _ACEOF
12623 if ac_fn_c_try_compile "$LINENO"; then :
12625 # Check for potential -arch flags. It is not universal unless
12626 # there are at least two -arch flags with different values.
12627 ac_arch=
12628 ac_prev=
12629 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12630 if test -n "$ac_prev"; then
12631 case $ac_word in
12632 i?86 | x86_64 | ppc | ppc64)
12633 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12634 ac_arch=$ac_word
12635 else
12636 ac_cv_c_bigendian=universal
12637 break
12638 fi
12639 ;;
12640 esac
12641 ac_prev=
12642 elif test "x$ac_word" = "x-arch"; then
12643 ac_prev=arch
12644 fi
12645 done
12646 fi
12647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648 if test $ac_cv_c_bigendian = unknown; then
12649 # See if sys/param.h defines the BYTE_ORDER macro.
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12652 #include <sys/types.h>
12653 #include <sys/param.h>
12655 int
12656 main ()
12657 {
12658 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12659 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12660 && LITTLE_ENDIAN)
12661 bogus endian macros
12662 #endif
12664 ;
12665 return 0;
12666 }
12667 _ACEOF
12668 if ac_fn_c_try_compile "$LINENO"; then :
12669 # It does; now see whether it defined to BIG_ENDIAN or not.
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12672 #include <sys/types.h>
12673 #include <sys/param.h>
12675 int
12676 main ()
12677 {
12678 #if BYTE_ORDER != BIG_ENDIAN
12679 not big endian
12680 #endif
12682 ;
12683 return 0;
12684 }
12685 _ACEOF
12686 if ac_fn_c_try_compile "$LINENO"; then :
12687 ac_cv_c_bigendian=yes
12688 else
12689 ac_cv_c_bigendian=no
12690 fi
12691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12692 fi
12693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12694 fi
12695 if test $ac_cv_c_bigendian = unknown; then
12696 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h. */
12699 #include <limits.h>
12701 int
12702 main ()
12703 {
12704 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12705 bogus endian macros
12706 #endif
12708 ;
12709 return 0;
12710 }
12711 _ACEOF
12712 if ac_fn_c_try_compile "$LINENO"; then :
12713 # It does; now see whether it defined to _BIG_ENDIAN or not.
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12716 #include <limits.h>
12718 int
12719 main ()
12720 {
12721 #ifndef _BIG_ENDIAN
12722 not big endian
12723 #endif
12725 ;
12726 return 0;
12727 }
12728 _ACEOF
12729 if ac_fn_c_try_compile "$LINENO"; then :
12730 ac_cv_c_bigendian=yes
12731 else
12732 ac_cv_c_bigendian=no
12733 fi
12734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12735 fi
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737 fi
12738 if test $ac_cv_c_bigendian = unknown; then
12739 # Compile a test program.
12740 if test "$cross_compiling" = yes; then :
12741 # Try to guess by grepping values from an object file.
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12744 short int ascii_mm[] =
12745 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12746 short int ascii_ii[] =
12747 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12748 int use_ascii (int i) {
12749 return ascii_mm[i] + ascii_ii[i];
12750 }
12751 short int ebcdic_ii[] =
12752 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12753 short int ebcdic_mm[] =
12754 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12755 int use_ebcdic (int i) {
12756 return ebcdic_mm[i] + ebcdic_ii[i];
12757 }
12758 extern int foo;
12760 int
12761 main ()
12762 {
12763 return use_ascii (foo) == use_ebcdic (foo);
12764 ;
12765 return 0;
12766 }
12767 _ACEOF
12768 if ac_fn_c_try_compile "$LINENO"; then :
12769 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12770 ac_cv_c_bigendian=yes
12771 fi
12772 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12773 if test "$ac_cv_c_bigendian" = unknown; then
12774 ac_cv_c_bigendian=no
12775 else
12776 # finding both strings is unlikely to happen, but who knows?
12777 ac_cv_c_bigendian=unknown
12778 fi
12779 fi
12780 fi
12781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12782 else
12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h. */
12785 $ac_includes_default
12786 int
12787 main ()
12788 {
12790 /* Are we little or big endian? From Harbison&Steele. */
12791 union
12792 {
12793 long int l;
12794 char c[sizeof (long int)];
12795 } u;
12796 u.l = 1;
12797 return u.c[sizeof (long int) - 1] == 1;
12799 ;
12800 return 0;
12801 }
12802 _ACEOF
12803 if ac_fn_c_try_run "$LINENO"; then :
12804 ac_cv_c_bigendian=no
12805 else
12806 ac_cv_c_bigendian=yes
12807 fi
12808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12809 conftest.$ac_objext conftest.beam conftest.$ac_ext
12810 fi
12812 fi
12813 fi
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12815 $as_echo "$ac_cv_c_bigendian" >&6; }
12816 case $ac_cv_c_bigendian in #(
12817 yes)
12818 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12819 ;; #(
12820 no)
12821 ;; #(
12822 universal)
12824 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12826 ;; #(
12827 *)
12828 as_fn_error "unknown endianness
12829 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12830 esac
12834 for ac_func in tzset fsync mbstowcs opendir readdir chdir chroot getuid setlocale strerror snprintf vsnprintf vasprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
12835 do :
12836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12837 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12838 eval as_val=\$$as_ac_var
12839 if test "x$as_val" = x""yes; then :
12840 cat >>confdefs.h <<_ACEOF
12841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12842 _ACEOF
12844 fi
12845 done
12848 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12849 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
12850 ac_have_decl=1
12851 else
12852 ac_have_decl=0
12853 fi
12855 cat >>confdefs.h <<_ACEOF
12856 #define HAVE_DECL_STRERROR_R $ac_have_decl
12857 _ACEOF
12859 for ac_func in strerror_r
12860 do :
12861 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12862 if test "x$ac_cv_func_strerror_r" = x""yes; then :
12863 cat >>confdefs.h <<_ACEOF
12864 #define HAVE_STRERROR_R 1
12865 _ACEOF
12867 fi
12868 done
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12871 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
12872 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12876 ac_cv_func_strerror_r_char_p=no
12877 if test $ac_cv_have_decl_strerror_r = yes; then
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 $ac_includes_default
12881 int
12882 main ()
12883 {
12885 char buf[100];
12886 char x = *strerror_r (0, buf, sizeof buf);
12887 char *p = strerror_r (0, buf, sizeof buf);
12888 return !p || x;
12890 ;
12891 return 0;
12892 }
12893 _ACEOF
12894 if ac_fn_c_try_compile "$LINENO"; then :
12895 ac_cv_func_strerror_r_char_p=yes
12896 fi
12897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12898 else
12899 # strerror_r is not declared. Choose between
12900 # systems that have relatively inaccessible declarations for the
12901 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12902 # former has a strerror_r that returns char*, while the latter
12903 # has a strerror_r that returns `int'.
12904 # This test should segfault on the DEC system.
12905 if test "$cross_compiling" = yes; then :
12906 :
12907 else
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12910 $ac_includes_default
12911 extern char *strerror_r ();
12912 int
12913 main ()
12914 {
12915 char buf[100];
12916 char x = *strerror_r (0, buf, sizeof buf);
12917 return ! isalpha (x);
12918 ;
12919 return 0;
12920 }
12921 _ACEOF
12922 if ac_fn_c_try_run "$LINENO"; then :
12923 ac_cv_func_strerror_r_char_p=yes
12924 fi
12925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12926 conftest.$ac_objext conftest.beam conftest.$ac_ext
12927 fi
12929 fi
12931 fi
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
12933 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
12934 if test $ac_cv_func_strerror_r_char_p = yes; then
12936 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
12938 fi
12942 case $TERM in
12943 # for the most important terminal types we directly know the sequences
12944 xterm|xterm*|vt220|vt220*)
12945 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
12946 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
12947 ;;
12948 vt100|vt100*|cygwin)
12949 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
12950 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
12951 ;;
12952 *)
12953 T_MD=''
12954 T_ME=''
12955 ;;
12956 esac
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12958 $as_echo "" >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&5
12960 $as_echo "${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&6; }
12965 for ac_func in fdatasync
12966 do :
12967 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
12968 if test "x$ac_cv_func_fdatasync" = x""yes; then :
12969 cat >>confdefs.h <<_ACEOF
12970 #define HAVE_FDATASYNC 1
12971 _ACEOF
12973 else
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync in -lrt" >&5
12975 $as_echo_n "checking for fdatasync in -lrt... " >&6; }
12976 if test "${ac_cv_lib_rt_fdatasync+set}" = set; then :
12977 $as_echo_n "(cached) " >&6
12978 else
12979 ac_check_lib_save_LIBS=$LIBS
12980 LIBS="-lrt $LIBS"
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12984 /* Override any GCC internal prototype to avoid an error.
12985 Use char because int might match the return type of a GCC
12986 builtin and then its argument prototype would still apply. */
12987 #ifdef __cplusplus
12988 extern "C"
12989 #endif
12990 char fdatasync ();
12991 int
12992 main ()
12993 {
12994 return fdatasync ();
12995 ;
12996 return 0;
12997 }
12998 _ACEOF
12999 if ac_fn_c_try_link "$LINENO"; then :
13000 ac_cv_lib_rt_fdatasync=yes
13001 else
13002 ac_cv_lib_rt_fdatasync=no
13003 fi
13004 rm -f core conftest.err conftest.$ac_objext \
13005 conftest$ac_exeext conftest.$ac_ext
13006 LIBS=$ac_check_lib_save_LIBS
13007 fi
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_fdatasync" >&5
13009 $as_echo "$ac_cv_lib_rt_fdatasync" >&6; }
13010 if test "x$ac_cv_lib_rt_fdatasync" = x""yes; then :
13011 LIBS="${LIBS} -lrt"; $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h
13013 fi
13015 fi
13016 done
13018 for ac_func in fsync
13019 do :
13020 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13021 if test "x$ac_cv_func_fsync" = x""yes; then :
13022 cat >>confdefs.h <<_ACEOF
13023 #define HAVE_FSYNC 1
13024 _ACEOF
13026 fi
13027 done
13031 if test "x$enable_mmap" = "xyes"; then
13032 case "$host" in
13033 *cygwin*)
13034 # the normal mmap test does not work in cygwin
13035 for ac_func in mmap
13036 do :
13037 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13038 if test "x$ac_cv_func_mmap" = x""yes; then :
13039 cat >>confdefs.h <<_ACEOF
13040 #define HAVE_MMAP 1
13041 _ACEOF
13043 fi
13044 done
13046 if test "x$ac_cv_func_mmap" = "xyes"; then
13047 ac_cv_func_mmap_fixed_mapped=yes
13048 fi
13049 ;;
13050 *)
13051 for ac_header in sys/mman.h
13052 do :
13053 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13054 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
13055 cat >>confdefs.h <<_ACEOF
13056 #define HAVE_SYS_MMAN_H 1
13057 _ACEOF
13059 fi
13061 done
13063 for ac_header in stdlib.h unistd.h
13064 do :
13065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13066 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13067 eval as_val=\$$as_ac_Header
13068 if test "x$as_val" = x""yes; then :
13069 cat >>confdefs.h <<_ACEOF
13070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13071 _ACEOF
13073 fi
13075 done
13077 for ac_func in getpagesize
13078 do :
13079 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13080 if test "x$ac_cv_func_getpagesize" = x""yes; then :
13081 cat >>confdefs.h <<_ACEOF
13082 #define HAVE_GETPAGESIZE 1
13083 _ACEOF
13085 fi
13086 done
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13089 $as_echo_n "checking for working mmap... " >&6; }
13090 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
13091 $as_echo_n "(cached) " >&6
13092 else
13093 if test "$cross_compiling" = yes; then :
13094 ac_cv_func_mmap_fixed_mapped=no
13095 else
13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13098 $ac_includes_default
13099 /* malloc might have been renamed as rpl_malloc. */
13100 #undef malloc
13102 /* Thanks to Mike Haertel and Jim Avera for this test.
13103 Here is a matrix of mmap possibilities:
13104 mmap private not fixed
13105 mmap private fixed at somewhere currently unmapped
13106 mmap private fixed at somewhere already mapped
13107 mmap shared not fixed
13108 mmap shared fixed at somewhere currently unmapped
13109 mmap shared fixed at somewhere already mapped
13110 For private mappings, we should verify that changes cannot be read()
13111 back from the file, nor mmap's back from the file at a different
13112 address. (There have been systems where private was not correctly
13113 implemented like the infamous i386 svr4.0, and systems where the
13114 VM page cache was not coherent with the file system buffer cache
13115 like early versions of FreeBSD and possibly contemporary NetBSD.)
13116 For shared mappings, we should conversely verify that changes get
13117 propagated back to all the places they're supposed to be.
13119 Grep wants private fixed already mapped.
13120 The main things grep needs to know about mmap are:
13121 * does it exist and is it safe to write into the mmap'd area
13122 * how to use it (BSD variants) */
13124 #include <fcntl.h>
13125 #include <sys/mman.h>
13127 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13128 char *malloc ();
13129 #endif
13131 /* This mess was copied from the GNU getpagesize.h. */
13132 #ifndef HAVE_GETPAGESIZE
13133 /* Assume that all systems that can run configure have sys/param.h. */
13134 # ifndef HAVE_SYS_PARAM_H
13135 # define HAVE_SYS_PARAM_H 1
13136 # endif
13138 # ifdef _SC_PAGESIZE
13139 # define getpagesize() sysconf(_SC_PAGESIZE)
13140 # else /* no _SC_PAGESIZE */
13141 # ifdef HAVE_SYS_PARAM_H
13142 # include <sys/param.h>
13143 # ifdef EXEC_PAGESIZE
13144 # define getpagesize() EXEC_PAGESIZE
13145 # else /* no EXEC_PAGESIZE */
13146 # ifdef NBPG
13147 # define getpagesize() NBPG * CLSIZE
13148 # ifndef CLSIZE
13149 # define CLSIZE 1
13150 # endif /* no CLSIZE */
13151 # else /* no NBPG */
13152 # ifdef NBPC
13153 # define getpagesize() NBPC
13154 # else /* no NBPC */
13155 # ifdef PAGESIZE
13156 # define getpagesize() PAGESIZE
13157 # endif /* PAGESIZE */
13158 # endif /* no NBPC */
13159 # endif /* no NBPG */
13160 # endif /* no EXEC_PAGESIZE */
13161 # else /* no HAVE_SYS_PARAM_H */
13162 # define getpagesize() 8192 /* punt totally */
13163 # endif /* no HAVE_SYS_PARAM_H */
13164 # endif /* no _SC_PAGESIZE */
13166 #endif /* no HAVE_GETPAGESIZE */
13168 int
13169 main ()
13170 {
13171 char *data, *data2, *data3;
13172 int i, pagesize;
13173 int fd;
13175 pagesize = getpagesize ();
13177 /* First, make a file with some known garbage in it. */
13178 data = (char *) malloc (pagesize);
13179 if (!data)
13180 return 1;
13181 for (i = 0; i < pagesize; ++i)
13182 *(data + i) = rand ();
13183 umask (0);
13184 fd = creat ("conftest.mmap", 0600);
13185 if (fd < 0)
13186 return 1;
13187 if (write (fd, data, pagesize) != pagesize)
13188 return 1;
13189 close (fd);
13191 /* Next, try to mmap the file at a fixed address which already has
13192 something else allocated at it. If we can, also make sure that
13193 we see the same garbage. */
13194 fd = open ("conftest.mmap", O_RDWR);
13195 if (fd < 0)
13196 return 1;
13197 data2 = (char *) malloc (2 * pagesize);
13198 if (!data2)
13199 return 1;
13200 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
13201 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13202 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13203 return 1;
13204 for (i = 0; i < pagesize; ++i)
13205 if (*(data + i) != *(data2 + i))
13206 return 1;
13208 /* Finally, make sure that changes to the mapped area do not
13209 percolate back to the file as seen by read(). (This is a bug on
13210 some variants of i386 svr4.0.) */
13211 for (i = 0; i < pagesize; ++i)
13212 *(data2 + i) = *(data2 + i) + 1;
13213 data3 = (char *) malloc (pagesize);
13214 if (!data3)
13215 return 1;
13216 if (read (fd, data3, pagesize) != pagesize)
13217 return 1;
13218 for (i = 0; i < pagesize; ++i)
13219 if (*(data + i) != *(data3 + i))
13220 return 1;
13221 close (fd);
13222 return 0;
13223 }
13224 _ACEOF
13225 if ac_fn_c_try_run "$LINENO"; then :
13226 ac_cv_func_mmap_fixed_mapped=yes
13227 else
13228 ac_cv_func_mmap_fixed_mapped=no
13229 fi
13230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13231 conftest.$ac_objext conftest.beam conftest.$ac_ext
13232 fi
13234 fi
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13236 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13237 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13239 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13241 fi
13242 rm -f conftest.mmap
13244 for ac_func in mmap munmap msync
13245 do :
13246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13247 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13248 eval as_val=\$$as_ac_var
13249 if test "x$as_val" = x""yes; then :
13250 cat >>confdefs.h <<_ACEOF
13251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13252 _ACEOF
13254 fi
13255 done
13257 ac_fn_c_check_decl "$LINENO" "madvise" "ac_cv_have_decl_madvise" "#ifdef HAVE_SYS_MMAN_H
13258 # include <sys/mman.h>
13259 #endif
13260 "
13261 if test "x$ac_cv_have_decl_madvise" = x""yes; then :
13262 ac_have_decl=1
13263 else
13264 ac_have_decl=0
13265 fi
13267 cat >>confdefs.h <<_ACEOF
13268 #define HAVE_DECL_MADVISE $ac_have_decl
13269 _ACEOF
13271 if test "x$ac_cv_have_decl_madvise" = "xyes";
13272 then
13273 for ac_func in madvise
13274 do :
13275 ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise"
13276 if test "x$ac_cv_func_madvise" = x""yes; then :
13277 cat >>confdefs.h <<_ACEOF
13278 #define HAVE_MADVISE 1
13279 _ACEOF
13281 fi
13282 done
13284 else
13285 for ac_func in posix_madvise
13286 do :
13287 ac_fn_c_check_func "$LINENO" "posix_madvise" "ac_cv_func_posix_madvise"
13288 if test "x$ac_cv_func_posix_madvise" = x""yes; then :
13289 cat >>confdefs.h <<_ACEOF
13290 #define HAVE_POSIX_MADVISE 1
13291 _ACEOF
13293 fi
13294 done
13296 if test "x$ac_cv_func_posix_madvise" != "xyes"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: madvise() nor posix_madvise() found." >&5
13298 $as_echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
13299 fi
13300 fi
13301 ;;
13302 esac
13303 if test "x$ac_cv_func_mmap" != "xyes";
13304 then
13305 as_fn_error "--enable-mmap requested but mmap() was not detected" "$LINENO" 5
13306 fi
13307 fi
13309 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#define _XOPEN_SOURCE 600
13310 #include <fcntl.h>
13311 "
13312 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then :
13313 ac_have_decl=1
13314 else
13315 ac_have_decl=0
13316 fi
13318 cat >>confdefs.h <<_ACEOF
13319 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
13320 _ACEOF
13322 for ac_func in posix_fadvise
13323 do :
13324 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13325 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
13326 cat >>confdefs.h <<_ACEOF
13327 #define HAVE_POSIX_FADVISE 1
13328 _ACEOF
13330 fi
13331 done
13335 case $TERM in
13336 # for the most important terminal types we directly know the sequences
13337 xterm|xterm*|vt220|vt220*)
13338 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
13339 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
13340 ;;
13341 vt100|vt100*|cygwin)
13342 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
13343 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
13344 ;;
13345 *)
13346 T_MD=''
13347 T_ME=''
13348 ;;
13349 esac
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13351 $as_echo "" >&6; }
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Libintl Processing${T_ME}" >&5
13353 $as_echo "${T_MD}Libintl Processing${T_ME}" >&6; }
13359 MKINSTALLDIRS=
13360 if test -n "$ac_aux_dir"; then
13361 case "$ac_aux_dir" in
13362 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13363 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13364 esac
13365 fi
13366 if test -z "$MKINSTALLDIRS"; then
13367 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13368 fi
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13373 $as_echo_n "checking whether NLS is requested... " >&6; }
13374 # Check whether --enable-nls was given.
13375 if test "${enable_nls+set}" = set; then :
13376 enableval=$enable_nls; USE_NLS=$enableval
13377 else
13378 USE_NLS=yes
13379 fi
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13382 $as_echo "$USE_NLS" >&6; }
13389 # Prepare PATH_SEPARATOR.
13390 # The user is always right.
13391 if test "${PATH_SEPARATOR+set}" != set; then
13392 echo "#! /bin/sh" >conf$$.sh
13393 echo "exit 0" >>conf$$.sh
13394 chmod +x conf$$.sh
13395 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13396 PATH_SEPARATOR=';'
13397 else
13398 PATH_SEPARATOR=:
13399 fi
13400 rm -f conf$$.sh
13401 fi
13403 # Find out how to test for executable files. Don't use a zero-byte file,
13404 # as systems may use methods other than mode bits to determine executability.
13405 cat >conf$$.file <<_ASEOF
13406 #! /bin/sh
13407 exit 0
13408 _ASEOF
13409 chmod +x conf$$.file
13410 if test -x conf$$.file >/dev/null 2>&1; then
13411 ac_executable_p="test -x"
13412 else
13413 ac_executable_p="test -f"
13414 fi
13415 rm -f conf$$.file
13417 # Extract the first word of "msgfmt", so it can be a program name with args.
13418 set dummy msgfmt; ac_word=$2
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13420 $as_echo_n "checking for $ac_word... " >&6; }
13421 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424 case "$MSGFMT" in
13425 [\\/]* | ?:[\\/]*)
13426 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13427 ;;
13428 *)
13429 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13430 for ac_dir in $PATH; do
13431 IFS="$ac_save_IFS"
13432 test -z "$ac_dir" && ac_dir=.
13433 for ac_exec_ext in '' $ac_executable_extensions; do
13434 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13435 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13436 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13437 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13438 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13439 break 2
13440 fi
13441 fi
13442 done
13443 done
13444 IFS="$ac_save_IFS"
13445 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13446 ;;
13447 esac
13448 fi
13449 MSGFMT="$ac_cv_path_MSGFMT"
13450 if test "$MSGFMT" != ":"; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13452 $as_echo "$MSGFMT" >&6; }
13453 else
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 $as_echo "no" >&6; }
13456 fi
13458 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13459 set dummy gmsgfmt; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461 $as_echo_n "checking for $ac_word... " >&6; }
13462 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13463 $as_echo_n "(cached) " >&6
13464 else
13465 case $GMSGFMT in
13466 [\\/]* | ?:[\\/]*)
13467 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13468 ;;
13469 *)
13470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13471 for as_dir in $PATH
13472 do
13473 IFS=$as_save_IFS
13474 test -z "$as_dir" && as_dir=.
13475 for ac_exec_ext in '' $ac_executable_extensions; do
13476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13477 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13479 break 2
13480 fi
13481 done
13482 done
13483 IFS=$as_save_IFS
13485 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13486 ;;
13487 esac
13488 fi
13489 GMSGFMT=$ac_cv_path_GMSGFMT
13490 if test -n "$GMSGFMT"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13492 $as_echo "$GMSGFMT" >&6; }
13493 else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13496 fi
13501 # Prepare PATH_SEPARATOR.
13502 # The user is always right.
13503 if test "${PATH_SEPARATOR+set}" != set; then
13504 echo "#! /bin/sh" >conf$$.sh
13505 echo "exit 0" >>conf$$.sh
13506 chmod +x conf$$.sh
13507 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13508 PATH_SEPARATOR=';'
13509 else
13510 PATH_SEPARATOR=:
13511 fi
13512 rm -f conf$$.sh
13513 fi
13515 # Find out how to test for executable files. Don't use a zero-byte file,
13516 # as systems may use methods other than mode bits to determine executability.
13517 cat >conf$$.file <<_ASEOF
13518 #! /bin/sh
13519 exit 0
13520 _ASEOF
13521 chmod +x conf$$.file
13522 if test -x conf$$.file >/dev/null 2>&1; then
13523 ac_executable_p="test -x"
13524 else
13525 ac_executable_p="test -f"
13526 fi
13527 rm -f conf$$.file
13529 # Extract the first word of "xgettext", so it can be a program name with args.
13530 set dummy xgettext; ac_word=$2
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13532 $as_echo_n "checking for $ac_word... " >&6; }
13533 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 case "$XGETTEXT" in
13537 [\\/]* | ?:[\\/]*)
13538 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13539 ;;
13540 *)
13541 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13542 for ac_dir in $PATH; do
13543 IFS="$ac_save_IFS"
13544 test -z "$ac_dir" && ac_dir=.
13545 for ac_exec_ext in '' $ac_executable_extensions; do
13546 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13547 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13548 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13549 (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
13550 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13551 break 2
13552 fi
13553 fi
13554 done
13555 done
13556 IFS="$ac_save_IFS"
13557 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13558 ;;
13559 esac
13560 fi
13561 XGETTEXT="$ac_cv_path_XGETTEXT"
13562 if test "$XGETTEXT" != ":"; then
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13564 $as_echo "$XGETTEXT" >&6; }
13565 else
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567 $as_echo "no" >&6; }
13568 fi
13570 rm -f messages.po
13573 # Prepare PATH_SEPARATOR.
13574 # The user is always right.
13575 if test "${PATH_SEPARATOR+set}" != set; then
13576 echo "#! /bin/sh" >conf$$.sh
13577 echo "exit 0" >>conf$$.sh
13578 chmod +x conf$$.sh
13579 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13580 PATH_SEPARATOR=';'
13581 else
13582 PATH_SEPARATOR=:
13583 fi
13584 rm -f conf$$.sh
13585 fi
13587 # Find out how to test for executable files. Don't use a zero-byte file,
13588 # as systems may use methods other than mode bits to determine executability.
13589 cat >conf$$.file <<_ASEOF
13590 #! /bin/sh
13591 exit 0
13592 _ASEOF
13593 chmod +x conf$$.file
13594 if test -x conf$$.file >/dev/null 2>&1; then
13595 ac_executable_p="test -x"
13596 else
13597 ac_executable_p="test -f"
13598 fi
13599 rm -f conf$$.file
13601 # Extract the first word of "msgmerge", so it can be a program name with args.
13602 set dummy msgmerge; ac_word=$2
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604 $as_echo_n "checking for $ac_word... " >&6; }
13605 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13606 $as_echo_n "(cached) " >&6
13607 else
13608 case "$MSGMERGE" in
13609 [\\/]* | ?:[\\/]*)
13610 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13611 ;;
13612 *)
13613 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13614 for ac_dir in $PATH; do
13615 IFS="$ac_save_IFS"
13616 test -z "$ac_dir" && ac_dir=.
13617 for ac_exec_ext in '' $ac_executable_extensions; do
13618 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13619 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13620 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13621 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13622 break 2
13623 fi
13624 fi
13625 done
13626 done
13627 IFS="$ac_save_IFS"
13628 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13629 ;;
13630 esac
13631 fi
13632 MSGMERGE="$ac_cv_path_MSGMERGE"
13633 if test "$MSGMERGE" != ":"; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13635 $as_echo "$MSGMERGE" >&6; }
13636 else
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638 $as_echo "no" >&6; }
13639 fi
13642 if test "$GMSGFMT" != ":"; then
13643 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13644 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13645 : ;
13646 else
13647 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13649 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13650 GMSGFMT=":"
13651 fi
13652 fi
13654 if test "$XGETTEXT" != ":"; then
13655 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13656 (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
13657 : ;
13658 else
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13660 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13661 XGETTEXT=":"
13662 fi
13663 rm -f messages.po
13664 fi
13666 ac_config_commands="$ac_config_commands default-1"
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
13671 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
13672 if test "${ac_cv_gnu_library_2+set}" = set; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13678 #include <features.h>
13679 #ifdef __GNU_LIBRARY__
13680 #if (__GLIBC__ >= 2)
13681 Lucky GNU user
13682 #endif
13683 #endif
13685 _ACEOF
13686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13687 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
13688 ac_cv_gnu_library_2=yes
13689 else
13690 ac_cv_gnu_library_2=no
13691 fi
13692 rm -f conftest*
13696 fi
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
13698 $as_echo "$ac_cv_gnu_library_2" >&6; }
13700 GLIBC2="$ac_cv_gnu_library_2"
13703 if test -n "$ac_tool_prefix"; then
13704 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13705 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13707 $as_echo_n "checking for $ac_word... " >&6; }
13708 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13709 $as_echo_n "(cached) " >&6
13710 else
13711 if test -n "$RANLIB"; then
13712 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13713 else
13714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715 for as_dir in $PATH
13716 do
13717 IFS=$as_save_IFS
13718 test -z "$as_dir" && as_dir=.
13719 for ac_exec_ext in '' $ac_executable_extensions; do
13720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13721 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13723 break 2
13724 fi
13725 done
13726 done
13727 IFS=$as_save_IFS
13729 fi
13730 fi
13731 RANLIB=$ac_cv_prog_RANLIB
13732 if test -n "$RANLIB"; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13734 $as_echo "$RANLIB" >&6; }
13735 else
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 $as_echo "no" >&6; }
13738 fi
13741 fi
13742 if test -z "$ac_cv_prog_RANLIB"; then
13743 ac_ct_RANLIB=$RANLIB
13744 # Extract the first word of "ranlib", so it can be a program name with args.
13745 set dummy ranlib; ac_word=$2
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13747 $as_echo_n "checking for $ac_word... " >&6; }
13748 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13749 $as_echo_n "(cached) " >&6
13750 else
13751 if test -n "$ac_ct_RANLIB"; then
13752 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13753 else
13754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13755 for as_dir in $PATH
13756 do
13757 IFS=$as_save_IFS
13758 test -z "$as_dir" && as_dir=.
13759 for ac_exec_ext in '' $ac_executable_extensions; do
13760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13761 ac_cv_prog_ac_ct_RANLIB="ranlib"
13762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13763 break 2
13764 fi
13765 done
13766 done
13767 IFS=$as_save_IFS
13769 fi
13770 fi
13771 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13772 if test -n "$ac_ct_RANLIB"; then
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13774 $as_echo "$ac_ct_RANLIB" >&6; }
13775 else
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13778 fi
13780 if test "x$ac_ct_RANLIB" = x; then
13781 RANLIB=":"
13782 else
13783 case $cross_compiling:$ac_tool_warned in
13784 yes:)
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13787 ac_tool_warned=yes ;;
13788 esac
13789 RANLIB=$ac_ct_RANLIB
13790 fi
13791 else
13792 RANLIB="$ac_cv_prog_RANLIB"
13793 fi
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
13797 $as_echo_n "checking for strerror in -lcposix... " >&6; }
13798 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
13799 $as_echo_n "(cached) " >&6
13800 else
13801 ac_check_lib_save_LIBS=$LIBS
13802 LIBS="-lcposix $LIBS"
13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13806 /* Override any GCC internal prototype to avoid an error.
13807 Use char because int might match the return type of a GCC
13808 builtin and then its argument prototype would still apply. */
13809 #ifdef __cplusplus
13810 extern "C"
13811 #endif
13812 char strerror ();
13813 int
13814 main ()
13815 {
13816 return strerror ();
13817 ;
13818 return 0;
13819 }
13820 _ACEOF
13821 if ac_fn_c_try_link "$LINENO"; then :
13822 ac_cv_lib_cposix_strerror=yes
13823 else
13824 ac_cv_lib_cposix_strerror=no
13825 fi
13826 rm -f core conftest.err conftest.$ac_objext \
13827 conftest$ac_exeext conftest.$ac_ext
13828 LIBS=$ac_check_lib_save_LIBS
13829 fi
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
13831 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
13832 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
13833 LIBS="$LIBS -lcposix"
13834 fi
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
13840 $as_echo_n "checking for signed... " >&6; }
13841 if test "${bh_cv_c_signed+set}" = set; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13847 int
13848 main ()
13849 {
13850 signed char x;
13851 ;
13852 return 0;
13853 }
13854 _ACEOF
13855 if ac_fn_c_try_compile "$LINENO"; then :
13856 bh_cv_c_signed=yes
13857 else
13858 bh_cv_c_signed=no
13859 fi
13860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861 fi
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
13863 $as_echo "$bh_cv_c_signed" >&6; }
13864 if test $bh_cv_c_signed = no; then
13866 $as_echo "#define signed /**/" >>confdefs.h
13868 fi
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13871 $as_echo_n "checking for inline... " >&6; }
13872 if test "${ac_cv_c_inline+set}" = set; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 ac_cv_c_inline=no
13876 for ac_kw in inline __inline__ __inline; do
13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13879 #ifndef __cplusplus
13880 typedef int foo_t;
13881 static $ac_kw foo_t static_foo () {return 0; }
13882 $ac_kw foo_t foo () {return 0; }
13883 #endif
13885 _ACEOF
13886 if ac_fn_c_try_compile "$LINENO"; then :
13887 ac_cv_c_inline=$ac_kw
13888 fi
13889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13890 test "$ac_cv_c_inline" != no && break
13891 done
13893 fi
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13895 $as_echo "$ac_cv_c_inline" >&6; }
13897 case $ac_cv_c_inline in
13898 inline | yes) ;;
13899 *)
13900 case $ac_cv_c_inline in
13901 no) ac_val=;;
13902 *) ac_val=$ac_cv_c_inline;;
13903 esac
13904 cat >>confdefs.h <<_ACEOF
13905 #ifndef __cplusplus
13906 #define inline $ac_val
13907 #endif
13908 _ACEOF
13909 ;;
13910 esac
13912 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13913 if test "x$ac_cv_type_off_t" = x""yes; then :
13915 else
13917 cat >>confdefs.h <<_ACEOF
13918 #define off_t long int
13919 _ACEOF
13921 fi
13923 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13924 if test "x$ac_cv_type_size_t" = x""yes; then :
13926 else
13928 cat >>confdefs.h <<_ACEOF
13929 #define size_t unsigned int
13930 _ACEOF
13932 fi
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
13936 $as_echo_n "checking for long long... " >&6; }
13937 if test "${ac_cv_type_long_long+set}" = set; then :
13938 $as_echo_n "(cached) " >&6
13939 else
13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h. */
13942 long long ll = 1LL; int i = 63;
13943 int
13944 main ()
13945 {
13946 long long llmax = (long long) -1;
13947 return ll << i | ll >> i | llmax / ll | llmax % ll;
13948 ;
13949 return 0;
13950 }
13951 _ACEOF
13952 if ac_fn_c_try_link "$LINENO"; then :
13953 ac_cv_type_long_long=yes
13954 else
13955 ac_cv_type_long_long=no
13956 fi
13957 rm -f core conftest.err conftest.$ac_objext \
13958 conftest$ac_exeext conftest.$ac_ext
13959 fi
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
13961 $as_echo "$ac_cv_type_long_long" >&6; }
13962 if test $ac_cv_type_long_long = yes; then
13964 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
13966 fi
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
13970 $as_echo_n "checking for long double... " >&6; }
13971 if test "${gt_cv_c_long_double+set}" = set; then :
13972 $as_echo_n "(cached) " >&6
13973 else
13974 if test "$GCC" = yes; then
13975 gt_cv_c_long_double=yes
13976 else
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13980 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
13981 long double foo = 0.0;
13982 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
13983 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
13985 int
13986 main ()
13987 {
13989 ;
13990 return 0;
13991 }
13992 _ACEOF
13993 if ac_fn_c_try_compile "$LINENO"; then :
13994 gt_cv_c_long_double=yes
13995 else
13996 gt_cv_c_long_double=no
13997 fi
13998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999 fi
14000 fi
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
14002 $as_echo "$gt_cv_c_long_double" >&6; }
14003 if test $gt_cv_c_long_double = yes; then
14005 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14007 fi
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14011 $as_echo_n "checking for wchar_t... " >&6; }
14012 if test "${gt_cv_c_wchar_t+set}" = set; then :
14013 $as_echo_n "(cached) " >&6
14014 else
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14017 #include <stddef.h>
14018 wchar_t foo = (wchar_t)'\0';
14019 int
14020 main ()
14021 {
14023 ;
14024 return 0;
14025 }
14026 _ACEOF
14027 if ac_fn_c_try_compile "$LINENO"; then :
14028 gt_cv_c_wchar_t=yes
14029 else
14030 gt_cv_c_wchar_t=no
14031 fi
14032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14033 fi
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14035 $as_echo "$gt_cv_c_wchar_t" >&6; }
14036 if test $gt_cv_c_wchar_t = yes; then
14038 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14040 fi
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
14044 $as_echo_n "checking for wint_t... " >&6; }
14045 if test "${gt_cv_c_wint_t+set}" = set; then :
14046 $as_echo_n "(cached) " >&6
14047 else
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14050 #include <wchar.h>
14051 wint_t foo = (wchar_t)'\0';
14052 int
14053 main ()
14054 {
14056 ;
14057 return 0;
14058 }
14059 _ACEOF
14060 if ac_fn_c_try_compile "$LINENO"; then :
14061 gt_cv_c_wint_t=yes
14062 else
14063 gt_cv_c_wint_t=no
14064 fi
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 fi
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
14068 $as_echo "$gt_cv_c_wint_t" >&6; }
14069 if test $gt_cv_c_wint_t = yes; then
14071 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
14073 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
14077 $as_echo_n "checking for inttypes.h... " >&6; }
14078 if test "${gl_cv_header_inttypes_h+set}" = set; then :
14079 $as_echo_n "(cached) " >&6
14080 else
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14083 #include <sys/types.h>
14084 #include <inttypes.h>
14085 int
14086 main ()
14087 {
14088 uintmax_t i = (uintmax_t) -1;
14089 ;
14090 return 0;
14091 }
14092 _ACEOF
14093 if ac_fn_c_try_compile "$LINENO"; then :
14094 gl_cv_header_inttypes_h=yes
14095 else
14096 gl_cv_header_inttypes_h=no
14097 fi
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 fi
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
14101 $as_echo "$gl_cv_header_inttypes_h" >&6; }
14102 if test $gl_cv_header_inttypes_h = yes; then
14104 cat >>confdefs.h <<_ACEOF
14105 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
14106 _ACEOF
14108 fi
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
14112 $as_echo_n "checking for stdint.h... " >&6; }
14113 if test "${gl_cv_header_stdint_h+set}" = set; then :
14114 $as_echo_n "(cached) " >&6
14115 else
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14118 #include <sys/types.h>
14119 #include <stdint.h>
14120 int
14121 main ()
14122 {
14123 uintmax_t i = (uintmax_t) -1;
14124 ;
14125 return 0;
14126 }
14127 _ACEOF
14128 if ac_fn_c_try_compile "$LINENO"; then :
14129 gl_cv_header_stdint_h=yes
14130 else
14131 gl_cv_header_stdint_h=no
14132 fi
14133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14134 fi
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
14136 $as_echo "$gl_cv_header_stdint_h" >&6; }
14137 if test $gl_cv_header_stdint_h = yes; then
14139 cat >>confdefs.h <<_ACEOF
14140 #define HAVE_STDINT_H_WITH_UINTMAX 1
14141 _ACEOF
14143 fi
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
14149 $as_echo_n "checking for intmax_t... " >&6; }
14150 if test "${gt_cv_c_intmax_t+set}" = set; then :
14151 $as_echo_n "(cached) " >&6
14152 else
14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h. */
14156 #include <stddef.h>
14157 #include <stdlib.h>
14158 #if HAVE_STDINT_H_WITH_UINTMAX
14159 #include <stdint.h>
14160 #endif
14161 #if HAVE_INTTYPES_H_WITH_UINTMAX
14162 #include <inttypes.h>
14163 #endif
14165 int
14166 main ()
14167 {
14168 intmax_t x = -1;
14169 ;
14170 return 0;
14171 }
14172 _ACEOF
14173 if ac_fn_c_try_compile "$LINENO"; then :
14174 gt_cv_c_intmax_t=yes
14175 else
14176 gt_cv_c_intmax_t=no
14177 fi
14178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14179 fi
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
14181 $as_echo "$gt_cv_c_intmax_t" >&6; }
14182 if test $gt_cv_c_intmax_t = yes; then
14184 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
14186 fi
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
14191 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
14192 if test "${gt_cv_func_printf_posix+set}" = set; then :
14193 $as_echo_n "(cached) " >&6
14194 else
14196 if test "$cross_compiling" = yes; then :
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14201 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
14202 notposix
14203 #endif
14205 _ACEOF
14206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14207 $EGREP "notposix" >/dev/null 2>&1; then :
14208 gt_cv_func_printf_posix="guessing no"
14209 else
14210 gt_cv_func_printf_posix="guessing yes"
14211 fi
14212 rm -f conftest*
14215 else
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14219 #include <stdio.h>
14220 #include <string.h>
14221 /* The string "%2$d %1$d", with dollar characters protected from the shell's
14222 dollar expansion (possibly an autoconf bug). */
14223 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
14224 static char buf[100];
14225 int main ()
14226 {
14227 sprintf (buf, format, 33, 55);
14228 return (strcmp (buf, "55 33") != 0);
14229 }
14230 _ACEOF
14231 if ac_fn_c_try_run "$LINENO"; then :
14232 gt_cv_func_printf_posix=yes
14233 else
14234 gt_cv_func_printf_posix=no
14235 fi
14236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14237 conftest.$ac_objext conftest.beam conftest.$ac_ext
14238 fi
14241 fi
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
14243 $as_echo "$gt_cv_func_printf_posix" >&6; }
14244 case $gt_cv_func_printf_posix in
14245 *yes)
14247 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
14249 ;;
14250 esac
14252 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14253 # for constant arguments. Useless!
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14255 $as_echo_n "checking for working alloca.h... " >&6; }
14256 if test "${ac_cv_working_alloca_h+set}" = set; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261 #include <alloca.h>
14262 int
14263 main ()
14264 {
14265 char *p = (char *) alloca (2 * sizeof (int));
14266 if (p) return 0;
14267 ;
14268 return 0;
14269 }
14270 _ACEOF
14271 if ac_fn_c_try_link "$LINENO"; then :
14272 ac_cv_working_alloca_h=yes
14273 else
14274 ac_cv_working_alloca_h=no
14275 fi
14276 rm -f core conftest.err conftest.$ac_objext \
14277 conftest$ac_exeext conftest.$ac_ext
14278 fi
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14280 $as_echo "$ac_cv_working_alloca_h" >&6; }
14281 if test $ac_cv_working_alloca_h = yes; then
14283 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14285 fi
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14288 $as_echo_n "checking for alloca... " >&6; }
14289 if test "${ac_cv_func_alloca_works+set}" = set; then :
14290 $as_echo_n "(cached) " >&6
14291 else
14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14294 #ifdef __GNUC__
14295 # define alloca __builtin_alloca
14296 #else
14297 # ifdef _MSC_VER
14298 # include <malloc.h>
14299 # define alloca _alloca
14300 # else
14301 # ifdef HAVE_ALLOCA_H
14302 # include <alloca.h>
14303 # else
14304 # ifdef _AIX
14305 #pragma alloca
14306 # else
14307 # ifndef alloca /* predefined by HP cc +Olibcalls */
14308 char *alloca ();
14309 # endif
14310 # endif
14311 # endif
14312 # endif
14313 #endif
14315 int
14316 main ()
14317 {
14318 char *p = (char *) alloca (1);
14319 if (p) return 0;
14320 ;
14321 return 0;
14322 }
14323 _ACEOF
14324 if ac_fn_c_try_link "$LINENO"; then :
14325 ac_cv_func_alloca_works=yes
14326 else
14327 ac_cv_func_alloca_works=no
14328 fi
14329 rm -f core conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext conftest.$ac_ext
14331 fi
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14333 $as_echo "$ac_cv_func_alloca_works" >&6; }
14335 if test $ac_cv_func_alloca_works = yes; then
14337 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14339 else
14340 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14341 # that cause trouble. Some versions do not even contain alloca or
14342 # contain a buggy version. If you still want to use their alloca,
14343 # use ar to extract alloca.o from them instead of compiling alloca.c.
14345 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14347 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14351 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14352 if test "${ac_cv_os_cray+set}" = set; then :
14353 $as_echo_n "(cached) " >&6
14354 else
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14357 #if defined CRAY && ! defined CRAY2
14358 webecray
14359 #else
14360 wenotbecray
14361 #endif
14363 _ACEOF
14364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14365 $EGREP "webecray" >/dev/null 2>&1; then :
14366 ac_cv_os_cray=yes
14367 else
14368 ac_cv_os_cray=no
14369 fi
14370 rm -f conftest*
14372 fi
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14374 $as_echo "$ac_cv_os_cray" >&6; }
14375 if test $ac_cv_os_cray = yes; then
14376 for ac_func in _getb67 GETB67 getb67; do
14377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14378 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14379 eval as_val=\$$as_ac_var
14380 if test "x$as_val" = x""yes; then :
14382 cat >>confdefs.h <<_ACEOF
14383 #define CRAY_STACKSEG_END $ac_func
14384 _ACEOF
14386 break
14387 fi
14389 done
14390 fi
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14393 $as_echo_n "checking stack direction for C alloca... " >&6; }
14394 if test "${ac_cv_c_stack_direction+set}" = set; then :
14395 $as_echo_n "(cached) " >&6
14396 else
14397 if test "$cross_compiling" = yes; then :
14398 ac_cv_c_stack_direction=0
14399 else
14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401 /* end confdefs.h. */
14402 $ac_includes_default
14403 int
14404 find_stack_direction ()
14405 {
14406 static char *addr = 0;
14407 auto char dummy;
14408 if (addr == 0)
14409 {
14410 addr = &dummy;
14411 return find_stack_direction ();
14412 }
14413 else
14414 return (&dummy > addr) ? 1 : -1;
14415 }
14417 int
14418 main ()
14419 {
14420 return find_stack_direction () < 0;
14421 }
14422 _ACEOF
14423 if ac_fn_c_try_run "$LINENO"; then :
14424 ac_cv_c_stack_direction=1
14425 else
14426 ac_cv_c_stack_direction=-1
14427 fi
14428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14429 conftest.$ac_objext conftest.beam conftest.$ac_ext
14430 fi
14432 fi
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14434 $as_echo "$ac_cv_c_stack_direction" >&6; }
14435 cat >>confdefs.h <<_ACEOF
14436 #define STACK_DIRECTION $ac_cv_c_stack_direction
14437 _ACEOF
14440 fi
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
14444 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
14445 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14447 else
14448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14451 #include <features.h>
14452 #ifdef __GNU_LIBRARY__
14453 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
14454 Lucky GNU user
14455 #endif
14456 #endif
14458 _ACEOF
14459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14460 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
14461 ac_cv_gnu_library_2_1=yes
14462 else
14463 ac_cv_gnu_library_2_1=no
14464 fi
14465 rm -f conftest*
14469 fi
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
14471 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
14473 GLIBC21="$ac_cv_gnu_library_2_1"
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
14479 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
14480 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14484 if test "$cross_compiling" = yes; then :
14486 # Guess based on the CPU.
14487 case "$host_cpu" in
14488 alpha* | i3456786 | m68k | s390*)
14489 gt_cv_int_divbyzero_sigfpe="guessing yes";;
14490 *)
14491 gt_cv_int_divbyzero_sigfpe="guessing no";;
14492 esac
14494 else
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14498 #include <stdlib.h>
14499 #include <signal.h>
14501 static void
14502 #ifdef __cplusplus
14503 sigfpe_handler (int sig)
14504 #else
14505 sigfpe_handler (sig) int sig;
14506 #endif
14507 {
14508 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
14509 exit (sig != SIGFPE);
14510 }
14512 int x = 1;
14513 int y = 0;
14514 int z;
14515 int nan;
14517 int main ()
14518 {
14519 signal (SIGFPE, sigfpe_handler);
14520 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
14521 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
14522 signal (SIGTRAP, sigfpe_handler);
14523 #endif
14524 /* Linux/SPARC yields signal SIGILL. */
14525 #if defined (__sparc__) && defined (__linux__)
14526 signal (SIGILL, sigfpe_handler);
14527 #endif
14529 z = x / y;
14530 nan = y / y;
14531 exit (1);
14532 }
14534 _ACEOF
14535 if ac_fn_c_try_run "$LINENO"; then :
14536 gt_cv_int_divbyzero_sigfpe=yes
14537 else
14538 gt_cv_int_divbyzero_sigfpe=no
14539 fi
14540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14541 conftest.$ac_objext conftest.beam conftest.$ac_ext
14542 fi
14545 fi
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
14547 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
14548 case "$gt_cv_int_divbyzero_sigfpe" in
14549 *yes) value=1;;
14550 *) value=0;;
14551 esac
14553 cat >>confdefs.h <<_ACEOF
14554 #define INTDIV0_RAISES_SIGFPE $value
14555 _ACEOF
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
14560 $as_echo_n "checking for unsigned long long... " >&6; }
14561 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
14562 $as_echo_n "(cached) " >&6
14563 else
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14566 unsigned long long ull = 1ULL; int i = 63;
14567 int
14568 main ()
14569 {
14570 unsigned long long ullmax = (unsigned long long) -1;
14571 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
14572 ;
14573 return 0;
14574 }
14575 _ACEOF
14576 if ac_fn_c_try_link "$LINENO"; then :
14577 ac_cv_type_unsigned_long_long=yes
14578 else
14579 ac_cv_type_unsigned_long_long=no
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 fi
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
14585 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
14586 if test $ac_cv_type_unsigned_long_long = yes; then
14588 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
14590 fi
14595 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
14597 test $ac_cv_type_unsigned_long_long = yes \
14598 && ac_type='unsigned long long' \
14599 || ac_type='unsigned long'
14601 cat >>confdefs.h <<_ACEOF
14602 #define uintmax_t $ac_type
14603 _ACEOF
14605 else
14607 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
14609 fi
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
14613 $as_echo_n "checking for inttypes.h... " >&6; }
14614 if test "${gt_cv_header_inttypes_h+set}" = set; then :
14615 $as_echo_n "(cached) " >&6
14616 else
14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14620 #include <sys/types.h>
14621 #include <inttypes.h>
14622 int
14623 main ()
14624 {
14626 ;
14627 return 0;
14628 }
14629 _ACEOF
14630 if ac_fn_c_try_compile "$LINENO"; then :
14631 gt_cv_header_inttypes_h=yes
14632 else
14633 gt_cv_header_inttypes_h=no
14634 fi
14635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 fi
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
14639 $as_echo "$gt_cv_header_inttypes_h" >&6; }
14640 if test $gt_cv_header_inttypes_h = yes; then
14642 cat >>confdefs.h <<_ACEOF
14643 #define HAVE_INTTYPES_H 1
14644 _ACEOF
14646 fi
14650 if test $gt_cv_header_inttypes_h = yes; then
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
14652 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
14653 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
14654 $as_echo_n "(cached) " >&6
14655 else
14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h. */
14659 #include <inttypes.h>
14660 #ifdef PRId32
14661 char *p = PRId32;
14662 #endif
14664 int
14665 main ()
14666 {
14668 ;
14669 return 0;
14670 }
14671 _ACEOF
14672 if ac_fn_c_try_compile "$LINENO"; then :
14673 gt_cv_inttypes_pri_broken=no
14674 else
14675 gt_cv_inttypes_pri_broken=yes
14676 fi
14677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14679 fi
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
14681 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
14682 fi
14683 if test "$gt_cv_inttypes_pri_broken" = yes; then
14685 cat >>confdefs.h <<_ACEOF
14686 #define PRI_MACROS_BROKEN 1
14687 _ACEOF
14689 fi
14692 for ac_header in stdint.h
14693 do :
14694 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14695 if test "x$ac_cv_header_stdint_h" = x""yes; then :
14696 cat >>confdefs.h <<_ACEOF
14697 #define HAVE_STDINT_H 1
14698 _ACEOF
14700 fi
14702 done
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
14705 $as_echo_n "checking for SIZE_MAX... " >&6; }
14706 result=
14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h. */
14710 #include <limits.h>
14711 #if HAVE_STDINT_H
14712 #include <stdint.h>
14713 #endif
14714 #ifdef SIZE_MAX
14715 Found it
14716 #endif
14718 _ACEOF
14719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14720 $EGREP "Found it" >/dev/null 2>&1; then :
14721 result=yes
14722 fi
14723 rm -f conftest*
14725 if test -z "$result"; then
14726 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
14728 else
14729 result=?
14730 fi
14733 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
14735 else
14736 result=?
14737 fi
14740 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
14742 else
14743 result=?
14744 fi
14747 if test "$fits_in_uint" = 1; then
14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h. */
14750 #include <stddef.h>
14751 extern size_t foo;
14752 extern unsigned long foo;
14754 int
14755 main ()
14756 {
14758 ;
14759 return 0;
14760 }
14761 _ACEOF
14762 if ac_fn_c_try_compile "$LINENO"; then :
14763 fits_in_uint=0
14764 fi
14765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14766 fi
14767 if test -z "$result"; then
14768 if test "$fits_in_uint" = 1; then
14769 result="$res_hi$res_lo"U
14770 else
14771 result="$res_hi$res_lo"UL
14772 fi
14773 else
14774 result='~(size_t)0'
14775 fi
14776 fi
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
14778 $as_echo "$result" >&6; }
14779 if test "$result" != yes; then
14781 cat >>confdefs.h <<_ACEOF
14782 #define SIZE_MAX $result
14783 _ACEOF
14785 fi
14790 for ac_header in stdint.h
14791 do :
14792 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14793 if test "x$ac_cv_header_stdint_h" = x""yes; then :
14794 cat >>confdefs.h <<_ACEOF
14795 #define HAVE_STDINT_H 1
14796 _ACEOF
14798 fi
14800 done
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14805 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14806 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
14807 $as_echo_n "(cached) " >&6
14808 else
14809 gt_save_CPPFLAGS="$CPPFLAGS"
14810 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
14811 gt_save_LIBS="$LIBS"
14812 LIBS="$LIBS -framework CoreFoundation"
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14815 #include <CFPreferences.h>
14816 int
14817 main ()
14818 {
14819 CFPreferencesCopyAppValue(NULL, NULL)
14820 ;
14821 return 0;
14822 }
14823 _ACEOF
14824 if ac_fn_c_try_link "$LINENO"; then :
14825 gt_cv_func_CFPreferencesCopyAppValue=yes
14826 else
14827 gt_cv_func_CFPreferencesCopyAppValue=no
14828 fi
14829 rm -f core conftest.err conftest.$ac_objext \
14830 conftest$ac_exeext conftest.$ac_ext
14831 CPPFLAGS="$gt_save_CPPFLAGS"
14832 LIBS="$gt_save_LIBS"
14833 fi
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14835 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14836 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14838 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14840 fi
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14842 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14843 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
14844 $as_echo_n "(cached) " >&6
14845 else
14846 gt_save_CPPFLAGS="$CPPFLAGS"
14847 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
14848 gt_save_LIBS="$LIBS"
14849 LIBS="$LIBS -framework CoreFoundation"
14850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851 /* end confdefs.h. */
14852 #include <CFLocale.h>
14853 int
14854 main ()
14855 {
14856 CFLocaleCopyCurrent();
14857 ;
14858 return 0;
14859 }
14860 _ACEOF
14861 if ac_fn_c_try_link "$LINENO"; then :
14862 gt_cv_func_CFLocaleCopyCurrent=yes
14863 else
14864 gt_cv_func_CFLocaleCopyCurrent=no
14865 fi
14866 rm -f core conftest.err conftest.$ac_objext \
14867 conftest$ac_exeext conftest.$ac_ext
14868 CPPFLAGS="$gt_save_CPPFLAGS"
14869 LIBS="$gt_save_LIBS"
14870 fi
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14872 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14873 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14875 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14877 fi
14878 INTL_MACOSX_LIBS=
14879 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14880 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14881 fi
14885 if test "X$prefix" = "XNONE"; then
14886 acl_final_prefix="$ac_default_prefix"
14887 else
14888 acl_final_prefix="$prefix"
14889 fi
14890 if test "X$exec_prefix" = "XNONE"; then
14891 acl_final_exec_prefix='${prefix}'
14892 else
14893 acl_final_exec_prefix="$exec_prefix"
14894 fi
14895 acl_save_prefix="$prefix"
14896 prefix="$acl_final_prefix"
14897 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14898 prefix="$acl_save_prefix"
14901 # Check whether --with-gnu-ld was given.
14902 if test "${with_gnu_ld+set}" = set; then :
14903 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14904 else
14905 with_gnu_ld=no
14906 fi
14908 # Prepare PATH_SEPARATOR.
14909 # The user is always right.
14910 if test "${PATH_SEPARATOR+set}" != set; then
14911 echo "#! /bin/sh" >conf$$.sh
14912 echo "exit 0" >>conf$$.sh
14913 chmod +x conf$$.sh
14914 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14915 PATH_SEPARATOR=';'
14916 else
14917 PATH_SEPARATOR=:
14918 fi
14919 rm -f conf$$.sh
14920 fi
14921 ac_prog=ld
14922 if test "$GCC" = yes; then
14923 # Check if gcc -print-prog-name=ld gives a path.
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14925 $as_echo_n "checking for ld used by GCC... " >&6; }
14926 case $host in
14927 *-*-mingw*)
14928 # gcc leaves a trailing carriage return which upsets mingw
14929 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14930 *)
14931 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14932 esac
14933 case $ac_prog in
14934 # Accept absolute paths.
14935 [\\/]* | [A-Za-z]:[\\/]*)
14936 re_direlt='/[^/][^/]*/\.\./'
14937 # Canonicalize the path of ld
14938 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14939 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14940 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14941 done
14942 test -z "$LD" && LD="$ac_prog"
14943 ;;
14944 "")
14945 # If it fails, then pretend we aren't using GCC.
14946 ac_prog=ld
14947 ;;
14948 *)
14949 # If it is relative, then search for the first ld in PATH.
14950 with_gnu_ld=unknown
14951 ;;
14952 esac
14953 elif test "$with_gnu_ld" = yes; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14955 $as_echo_n "checking for GNU ld... " >&6; }
14956 else
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14958 $as_echo_n "checking for non-GNU ld... " >&6; }
14959 fi
14960 if test "${acl_cv_path_LD+set}" = set; then :
14961 $as_echo_n "(cached) " >&6
14962 else
14963 if test -z "$LD"; then
14964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14965 for ac_dir in $PATH; do
14966 test -z "$ac_dir" && ac_dir=.
14967 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14968 acl_cv_path_LD="$ac_dir/$ac_prog"
14969 # Check to see if the program is GNU ld. I'd rather use --version,
14970 # but apparently some GNU ld's only accept -v.
14971 # Break only if it was the GNU/non-GNU ld that we prefer.
14972 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14973 *GNU* | *'with BFD'*)
14974 test "$with_gnu_ld" != no && break ;;
14975 *)
14976 test "$with_gnu_ld" != yes && break ;;
14977 esac
14978 fi
14979 done
14980 IFS="$ac_save_ifs"
14981 else
14982 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14983 fi
14984 fi
14986 LD="$acl_cv_path_LD"
14987 if test -n "$LD"; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14989 $as_echo "$LD" >&6; }
14990 else
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14992 $as_echo "no" >&6; }
14993 fi
14994 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14996 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14997 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
14998 $as_echo_n "(cached) " >&6
14999 else
15000 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15001 case `$LD -v 2>&1 </dev/null` in
15002 *GNU* | *'with BFD'*)
15003 acl_cv_prog_gnu_ld=yes ;;
15004 *)
15005 acl_cv_prog_gnu_ld=no ;;
15006 esac
15007 fi
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15009 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15010 with_gnu_ld=$acl_cv_prog_gnu_ld
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15016 $as_echo_n "checking for shared library run path origin... " >&6; }
15017 if test "${acl_cv_rpath+set}" = set; then :
15018 $as_echo_n "(cached) " >&6
15019 else
15021 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15022 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15023 . ./conftest.sh
15024 rm -f ./conftest.sh
15025 acl_cv_rpath=done
15027 fi
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15029 $as_echo "$acl_cv_rpath" >&6; }
15030 wl="$acl_cv_wl"
15031 libext="$acl_cv_libext"
15032 shlibext="$acl_cv_shlibext"
15033 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15034 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15035 hardcode_direct="$acl_cv_hardcode_direct"
15036 hardcode_minus_L="$acl_cv_hardcode_minus_L"
15037 # Check whether --enable-rpath was given.
15038 if test "${enable_rpath+set}" = set; then :
15039 enableval=$enable_rpath; :
15040 else
15041 enable_rpath=yes
15042 fi
15051 use_additional=yes
15053 acl_save_prefix="$prefix"
15054 prefix="$acl_final_prefix"
15055 acl_save_exec_prefix="$exec_prefix"
15056 exec_prefix="$acl_final_exec_prefix"
15058 eval additional_includedir=\"$includedir\"
15059 eval additional_libdir=\"$libdir\"
15061 exec_prefix="$acl_save_exec_prefix"
15062 prefix="$acl_save_prefix"
15065 # Check whether --with-libiconv-prefix was given.
15066 if test "${with_libiconv_prefix+set}" = set; then :
15067 withval=$with_libiconv_prefix;
15068 if test "X$withval" = "Xno"; then
15069 use_additional=no
15070 else
15071 if test "X$withval" = "X"; then
15073 acl_save_prefix="$prefix"
15074 prefix="$acl_final_prefix"
15075 acl_save_exec_prefix="$exec_prefix"
15076 exec_prefix="$acl_final_exec_prefix"
15078 eval additional_includedir=\"$includedir\"
15079 eval additional_libdir=\"$libdir\"
15081 exec_prefix="$acl_save_exec_prefix"
15082 prefix="$acl_save_prefix"
15084 else
15085 additional_includedir="$withval/include"
15086 additional_libdir="$withval/lib"
15087 fi
15088 fi
15090 fi
15092 LIBICONV=
15093 LTLIBICONV=
15094 INCICONV=
15095 rpathdirs=
15096 ltrpathdirs=
15097 names_already_handled=
15098 names_next_round='iconv '
15099 while test -n "$names_next_round"; do
15100 names_this_round="$names_next_round"
15101 names_next_round=
15102 for name in $names_this_round; do
15103 already_handled=
15104 for n in $names_already_handled; do
15105 if test "$n" = "$name"; then
15106 already_handled=yes
15107 break
15108 fi
15109 done
15110 if test -z "$already_handled"; then
15111 names_already_handled="$names_already_handled $name"
15112 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15113 eval value=\"\$HAVE_LIB$uppername\"
15114 if test -n "$value"; then
15115 if test "$value" = yes; then
15116 eval value=\"\$LIB$uppername\"
15117 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15118 eval value=\"\$LTLIB$uppername\"
15119 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15120 else
15121 :
15122 fi
15123 else
15124 found_dir=
15125 found_la=
15126 found_so=
15127 found_a=
15128 if test $use_additional = yes; then
15129 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15130 found_dir="$additional_libdir"
15131 found_so="$additional_libdir/lib$name.$shlibext"
15132 if test -f "$additional_libdir/lib$name.la"; then
15133 found_la="$additional_libdir/lib$name.la"
15134 fi
15135 else
15136 if test -f "$additional_libdir/lib$name.$libext"; then
15137 found_dir="$additional_libdir"
15138 found_a="$additional_libdir/lib$name.$libext"
15139 if test -f "$additional_libdir/lib$name.la"; then
15140 found_la="$additional_libdir/lib$name.la"
15141 fi
15142 fi
15143 fi
15144 fi
15145 if test "X$found_dir" = "X"; then
15146 for x in $LDFLAGS $LTLIBICONV; do
15148 acl_save_prefix="$prefix"
15149 prefix="$acl_final_prefix"
15150 acl_save_exec_prefix="$exec_prefix"
15151 exec_prefix="$acl_final_exec_prefix"
15152 eval x=\"$x\"
15153 exec_prefix="$acl_save_exec_prefix"
15154 prefix="$acl_save_prefix"
15156 case "$x" in
15157 -L*)
15158 dir=`echo "X$x" | sed -e 's/^X-L//'`
15159 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15160 found_dir="$dir"
15161 found_so="$dir/lib$name.$shlibext"
15162 if test -f "$dir/lib$name.la"; then
15163 found_la="$dir/lib$name.la"
15164 fi
15165 else
15166 if test -f "$dir/lib$name.$libext"; then
15167 found_dir="$dir"
15168 found_a="$dir/lib$name.$libext"
15169 if test -f "$dir/lib$name.la"; then
15170 found_la="$dir/lib$name.la"
15171 fi
15172 fi
15173 fi
15174 ;;
15175 esac
15176 if test "X$found_dir" != "X"; then
15177 break
15178 fi
15179 done
15180 fi
15181 if test "X$found_dir" != "X"; then
15182 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15183 if test "X$found_so" != "X"; then
15184 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15185 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15186 else
15187 haveit=
15188 for x in $ltrpathdirs; do
15189 if test "X$x" = "X$found_dir"; then
15190 haveit=yes
15191 break
15192 fi
15193 done
15194 if test -z "$haveit"; then
15195 ltrpathdirs="$ltrpathdirs $found_dir"
15196 fi
15197 if test "$hardcode_direct" = yes; then
15198 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15199 else
15200 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15201 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15202 haveit=
15203 for x in $rpathdirs; do
15204 if test "X$x" = "X$found_dir"; then
15205 haveit=yes
15206 break
15207 fi
15208 done
15209 if test -z "$haveit"; then
15210 rpathdirs="$rpathdirs $found_dir"
15211 fi
15212 else
15213 haveit=
15214 for x in $LDFLAGS $LIBICONV; do
15216 acl_save_prefix="$prefix"
15217 prefix="$acl_final_prefix"
15218 acl_save_exec_prefix="$exec_prefix"
15219 exec_prefix="$acl_final_exec_prefix"
15220 eval x=\"$x\"
15221 exec_prefix="$acl_save_exec_prefix"
15222 prefix="$acl_save_prefix"
15224 if test "X$x" = "X-L$found_dir"; then
15225 haveit=yes
15226 break
15227 fi
15228 done
15229 if test -z "$haveit"; then
15230 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15231 fi
15232 if test "$hardcode_minus_L" != no; then
15233 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15234 else
15235 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15236 fi
15237 fi
15238 fi
15239 fi
15240 else
15241 if test "X$found_a" != "X"; then
15242 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15243 else
15244 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15245 fi
15246 fi
15247 additional_includedir=
15248 case "$found_dir" in
15249 */lib | */lib/)
15250 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15251 additional_includedir="$basedir/include"
15252 ;;
15253 esac
15254 if test "X$additional_includedir" != "X"; then
15255 if test "X$additional_includedir" != "X/usr/include"; then
15256 haveit=
15257 if test "X$additional_includedir" = "X/usr/local/include"; then
15258 if test -n "$GCC"; then
15259 case $host_os in
15260 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15261 esac
15262 fi
15263 fi
15264 if test -z "$haveit"; then
15265 for x in $CPPFLAGS $INCICONV; do
15267 acl_save_prefix="$prefix"
15268 prefix="$acl_final_prefix"
15269 acl_save_exec_prefix="$exec_prefix"
15270 exec_prefix="$acl_final_exec_prefix"
15271 eval x=\"$x\"
15272 exec_prefix="$acl_save_exec_prefix"
15273 prefix="$acl_save_prefix"
15275 if test "X$x" = "X-I$additional_includedir"; then
15276 haveit=yes
15277 break
15278 fi
15279 done
15280 if test -z "$haveit"; then
15281 if test -d "$additional_includedir"; then
15282 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15283 fi
15284 fi
15285 fi
15286 fi
15287 fi
15288 if test -n "$found_la"; then
15289 save_libdir="$libdir"
15290 case "$found_la" in
15291 */* | *\\*) . "$found_la" ;;
15292 *) . "./$found_la" ;;
15293 esac
15294 libdir="$save_libdir"
15295 for dep in $dependency_libs; do
15296 case "$dep" in
15297 -L*)
15298 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15299 if test "X$additional_libdir" != "X/usr/lib"; then
15300 haveit=
15301 if test "X$additional_libdir" = "X/usr/local/lib"; then
15302 if test -n "$GCC"; then
15303 case $host_os in
15304 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15305 esac
15306 fi
15307 fi
15308 if test -z "$haveit"; then
15309 haveit=
15310 for x in $LDFLAGS $LIBICONV; do
15312 acl_save_prefix="$prefix"
15313 prefix="$acl_final_prefix"
15314 acl_save_exec_prefix="$exec_prefix"
15315 exec_prefix="$acl_final_exec_prefix"
15316 eval x=\"$x\"
15317 exec_prefix="$acl_save_exec_prefix"
15318 prefix="$acl_save_prefix"
15320 if test "X$x" = "X-L$additional_libdir"; then
15321 haveit=yes
15322 break
15323 fi
15324 done
15325 if test -z "$haveit"; then
15326 if test -d "$additional_libdir"; then
15327 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15328 fi
15329 fi
15330 haveit=
15331 for x in $LDFLAGS $LTLIBICONV; do
15333 acl_save_prefix="$prefix"
15334 prefix="$acl_final_prefix"
15335 acl_save_exec_prefix="$exec_prefix"
15336 exec_prefix="$acl_final_exec_prefix"
15337 eval x=\"$x\"
15338 exec_prefix="$acl_save_exec_prefix"
15339 prefix="$acl_save_prefix"
15341 if test "X$x" = "X-L$additional_libdir"; then
15342 haveit=yes
15343 break
15344 fi
15345 done
15346 if test -z "$haveit"; then
15347 if test -d "$additional_libdir"; then
15348 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15349 fi
15350 fi
15351 fi
15352 fi
15353 ;;
15354 -R*)
15355 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15356 if test "$enable_rpath" != no; then
15357 haveit=
15358 for x in $rpathdirs; do
15359 if test "X$x" = "X$dir"; then
15360 haveit=yes
15361 break
15362 fi
15363 done
15364 if test -z "$haveit"; then
15365 rpathdirs="$rpathdirs $dir"
15366 fi
15367 haveit=
15368 for x in $ltrpathdirs; do
15369 if test "X$x" = "X$dir"; then
15370 haveit=yes
15371 break
15372 fi
15373 done
15374 if test -z "$haveit"; then
15375 ltrpathdirs="$ltrpathdirs $dir"
15376 fi
15377 fi
15378 ;;
15379 -l*)
15380 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15381 ;;
15382 *.la)
15383 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15384 ;;
15385 *)
15386 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15388 ;;
15389 esac
15390 done
15391 fi
15392 else
15393 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15394 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15395 fi
15396 fi
15397 fi
15398 done
15399 done
15400 if test "X$rpathdirs" != "X"; then
15401 if test -n "$hardcode_libdir_separator"; then
15402 alldirs=
15403 for found_dir in $rpathdirs; do
15404 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15405 done
15406 acl_save_libdir="$libdir"
15407 libdir="$alldirs"
15408 eval flag=\"$hardcode_libdir_flag_spec\"
15409 libdir="$acl_save_libdir"
15410 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15411 else
15412 for found_dir in $rpathdirs; do
15413 acl_save_libdir="$libdir"
15414 libdir="$found_dir"
15415 eval flag=\"$hardcode_libdir_flag_spec\"
15416 libdir="$acl_save_libdir"
15417 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15418 done
15419 fi
15420 fi
15421 if test "X$ltrpathdirs" != "X"; then
15422 for found_dir in $ltrpathdirs; do
15423 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15424 done
15425 fi
15434 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15435 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15437 else
15439 $as_echo "#define ptrdiff_t long" >>confdefs.h
15442 fi
15444 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
15445 stdlib.h string.h unistd.h sys/param.h
15446 do :
15447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15448 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15449 eval as_val=\$$as_ac_Header
15450 if test "x$as_val" = x""yes; then :
15451 cat >>confdefs.h <<_ACEOF
15452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15453 _ACEOF
15455 fi
15457 done
15459 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
15460 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
15461 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
15462 __fsetlocking
15463 do :
15464 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15465 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15466 eval as_val=\$$as_ac_var
15467 if test "x$as_val" = x""yes; then :
15468 cat >>confdefs.h <<_ACEOF
15469 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15470 _ACEOF
15472 fi
15473 done
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
15478 $as_echo_n "checking whether _snprintf is declared... " >&6; }
15479 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
15480 $as_echo_n "(cached) " >&6
15481 else
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15484 #include <stdio.h>
15485 int
15486 main ()
15487 {
15489 #ifndef _snprintf
15490 char *p = (char *) _snprintf;
15491 #endif
15493 ;
15494 return 0;
15495 }
15496 _ACEOF
15497 if ac_fn_c_try_compile "$LINENO"; then :
15498 ac_cv_have_decl__snprintf=yes
15499 else
15500 ac_cv_have_decl__snprintf=no
15501 fi
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503 fi
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
15505 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
15506 if test $ac_cv_have_decl__snprintf = yes; then
15507 gt_value=1
15508 else
15509 gt_value=0
15510 fi
15512 cat >>confdefs.h <<_ACEOF
15513 #define HAVE_DECL__SNPRINTF $gt_value
15514 _ACEOF
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
15519 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
15520 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
15521 $as_echo_n "(cached) " >&6
15522 else
15523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15524 /* end confdefs.h. */
15525 #include <stdio.h>
15526 int
15527 main ()
15528 {
15530 #ifndef _snwprintf
15531 char *p = (char *) _snwprintf;
15532 #endif
15534 ;
15535 return 0;
15536 }
15537 _ACEOF
15538 if ac_fn_c_try_compile "$LINENO"; then :
15539 ac_cv_have_decl__snwprintf=yes
15540 else
15541 ac_cv_have_decl__snwprintf=no
15542 fi
15543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15544 fi
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
15546 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
15547 if test $ac_cv_have_decl__snwprintf = yes; then
15548 gt_value=1
15549 else
15550 gt_value=0
15551 fi
15553 cat >>confdefs.h <<_ACEOF
15554 #define HAVE_DECL__SNWPRINTF $gt_value
15555 _ACEOF
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
15561 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
15562 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
15563 $as_echo_n "(cached) " >&6
15564 else
15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h. */
15567 #include <stdio.h>
15568 int
15569 main ()
15570 {
15572 #ifndef feof_unlocked
15573 char *p = (char *) feof_unlocked;
15574 #endif
15576 ;
15577 return 0;
15578 }
15579 _ACEOF
15580 if ac_fn_c_try_compile "$LINENO"; then :
15581 ac_cv_have_decl_feof_unlocked=yes
15582 else
15583 ac_cv_have_decl_feof_unlocked=no
15584 fi
15585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 fi
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
15588 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
15589 if test $ac_cv_have_decl_feof_unlocked = yes; then
15590 gt_value=1
15591 else
15592 gt_value=0
15593 fi
15595 cat >>confdefs.h <<_ACEOF
15596 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
15597 _ACEOF
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
15602 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
15603 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
15604 $as_echo_n "(cached) " >&6
15605 else
15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607 /* end confdefs.h. */
15608 #include <stdio.h>
15609 int
15610 main ()
15611 {
15613 #ifndef fgets_unlocked
15614 char *p = (char *) fgets_unlocked;
15615 #endif
15617 ;
15618 return 0;
15619 }
15620 _ACEOF
15621 if ac_fn_c_try_compile "$LINENO"; then :
15622 ac_cv_have_decl_fgets_unlocked=yes
15623 else
15624 ac_cv_have_decl_fgets_unlocked=no
15625 fi
15626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15627 fi
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
15629 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
15630 if test $ac_cv_have_decl_fgets_unlocked = yes; then
15631 gt_value=1
15632 else
15633 gt_value=0
15634 fi
15636 cat >>confdefs.h <<_ACEOF
15637 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
15638 _ACEOF
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
15643 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
15644 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
15645 $as_echo_n "(cached) " >&6
15646 else
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15649 #include <stdio.h>
15650 int
15651 main ()
15652 {
15654 #ifndef getc_unlocked
15655 char *p = (char *) getc_unlocked;
15656 #endif
15658 ;
15659 return 0;
15660 }
15661 _ACEOF
15662 if ac_fn_c_try_compile "$LINENO"; then :
15663 ac_cv_have_decl_getc_unlocked=yes
15664 else
15665 ac_cv_have_decl_getc_unlocked=no
15666 fi
15667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15668 fi
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
15670 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
15671 if test $ac_cv_have_decl_getc_unlocked = yes; then
15672 gt_value=1
15673 else
15674 gt_value=0
15675 fi
15677 cat >>confdefs.h <<_ACEOF
15678 #define HAVE_DECL_GETC_UNLOCKED $gt_value
15679 _ACEOF
15683 case $gt_cv_func_printf_posix in
15684 *yes) HAVE_POSIX_PRINTF=1 ;;
15685 *) HAVE_POSIX_PRINTF=0 ;;
15686 esac
15688 if test "$ac_cv_func_asprintf" = yes; then
15689 HAVE_ASPRINTF=1
15690 else
15691 HAVE_ASPRINTF=0
15692 fi
15694 if test "$ac_cv_func_snprintf" = yes; then
15695 HAVE_SNPRINTF=1
15696 else
15697 HAVE_SNPRINTF=0
15698 fi
15700 if test "$ac_cv_func_wprintf" = yes; then
15701 HAVE_WPRINTF=1
15702 else
15703 HAVE_WPRINTF=0
15704 fi
15712 am_save_CPPFLAGS="$CPPFLAGS"
15714 for element in $INCICONV; do
15715 haveit=
15716 for x in $CPPFLAGS; do
15718 acl_save_prefix="$prefix"
15719 prefix="$acl_final_prefix"
15720 acl_save_exec_prefix="$exec_prefix"
15721 exec_prefix="$acl_final_exec_prefix"
15722 eval x=\"$x\"
15723 exec_prefix="$acl_save_exec_prefix"
15724 prefix="$acl_save_prefix"
15726 if test "X$x" = "X$element"; then
15727 haveit=yes
15728 break
15729 fi
15730 done
15731 if test -z "$haveit"; then
15732 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15733 fi
15734 done
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15738 $as_echo_n "checking for iconv... " >&6; }
15739 if test "${am_cv_func_iconv+set}" = set; then :
15740 $as_echo_n "(cached) " >&6
15741 else
15743 am_cv_func_iconv="no, consider installing GNU libiconv"
15744 am_cv_lib_iconv=no
15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15747 #include <stdlib.h>
15748 #include <iconv.h>
15749 int
15750 main ()
15751 {
15752 iconv_t cd = iconv_open("","");
15753 iconv(cd,NULL,NULL,NULL,NULL);
15754 iconv_close(cd);
15755 ;
15756 return 0;
15757 }
15758 _ACEOF
15759 if ac_fn_c_try_link "$LINENO"; then :
15760 am_cv_func_iconv=yes
15761 fi
15762 rm -f core conftest.err conftest.$ac_objext \
15763 conftest$ac_exeext conftest.$ac_ext
15764 if test "$am_cv_func_iconv" != yes; then
15765 am_save_LIBS="$LIBS"
15766 LIBS="$LIBS $LIBICONV"
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h. */
15769 #include <stdlib.h>
15770 #include <iconv.h>
15771 int
15772 main ()
15773 {
15774 iconv_t cd = iconv_open("","");
15775 iconv(cd,NULL,NULL,NULL,NULL);
15776 iconv_close(cd);
15777 ;
15778 return 0;
15779 }
15780 _ACEOF
15781 if ac_fn_c_try_link "$LINENO"; then :
15782 am_cv_lib_iconv=yes
15783 am_cv_func_iconv=yes
15784 fi
15785 rm -f core conftest.err conftest.$ac_objext \
15786 conftest$ac_exeext conftest.$ac_ext
15787 LIBS="$am_save_LIBS"
15788 fi
15790 fi
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15792 $as_echo "$am_cv_func_iconv" >&6; }
15793 if test "$am_cv_func_iconv" = yes; then
15795 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15797 fi
15798 if test "$am_cv_lib_iconv" = yes; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15800 $as_echo_n "checking how to link with libiconv... " >&6; }
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15802 $as_echo "$LIBICONV" >&6; }
15803 else
15804 CPPFLAGS="$am_save_CPPFLAGS"
15805 LIBICONV=
15806 LTLIBICONV=
15807 fi
15811 if test "$am_cv_func_iconv" = yes; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15813 $as_echo_n "checking for iconv declaration... " >&6; }
15814 if test "${am_cv_proto_iconv+set}" = set; then :
15815 $as_echo_n "(cached) " >&6
15816 else
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15821 #include <stdlib.h>
15822 #include <iconv.h>
15823 extern
15824 #ifdef __cplusplus
15825 "C"
15826 #endif
15827 #if defined(__STDC__) || defined(__cplusplus)
15828 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15829 #else
15830 size_t iconv();
15831 #endif
15833 int
15834 main ()
15835 {
15837 ;
15838 return 0;
15839 }
15840 _ACEOF
15841 if ac_fn_c_try_compile "$LINENO"; then :
15842 am_cv_proto_iconv_arg1=""
15843 else
15844 am_cv_proto_iconv_arg1="const"
15845 fi
15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847 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);"
15848 fi
15850 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
15852 }$am_cv_proto_iconv" >&5
15853 $as_echo "${ac_t:-
15854 }$am_cv_proto_iconv" >&6; }
15856 cat >>confdefs.h <<_ACEOF
15857 #define ICONV_CONST $am_cv_proto_iconv_arg1
15858 _ACEOF
15860 fi
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15864 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
15865 if test "${am_cv_langinfo_codeset+set}" = set; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15870 #include <langinfo.h>
15871 int
15872 main ()
15873 {
15874 char* cs = nl_langinfo(CODESET);
15875 ;
15876 return 0;
15877 }
15878 _ACEOF
15879 if ac_fn_c_try_link "$LINENO"; then :
15880 am_cv_langinfo_codeset=yes
15881 else
15882 am_cv_langinfo_codeset=no
15883 fi
15884 rm -f core conftest.err conftest.$ac_objext \
15885 conftest$ac_exeext conftest.$ac_ext
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
15889 $as_echo "$am_cv_langinfo_codeset" >&6; }
15890 if test $am_cv_langinfo_codeset = yes; then
15892 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15894 fi
15896 if test $ac_cv_header_locale_h = yes; then
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15899 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15900 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
15901 $as_echo_n "(cached) " >&6
15902 else
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15905 #include <locale.h>
15906 int
15907 main ()
15908 {
15909 return LC_MESSAGES
15910 ;
15911 return 0;
15912 }
15913 _ACEOF
15914 if ac_fn_c_try_link "$LINENO"; then :
15915 gt_cv_val_LC_MESSAGES=yes
15916 else
15917 gt_cv_val_LC_MESSAGES=no
15918 fi
15919 rm -f core conftest.err conftest.$ac_objext \
15920 conftest$ac_exeext conftest.$ac_ext
15921 fi
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
15923 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
15924 if test $gt_cv_val_LC_MESSAGES = yes; then
15926 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15928 fi
15930 fi
15932 if test -n "$INTL_MACOSX_LIBS"; then
15933 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
15934 fi
15936 for ac_prog in bison
15937 do
15938 # Extract the first word of "$ac_prog", so it can be a program name with args.
15939 set dummy $ac_prog; ac_word=$2
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15941 $as_echo_n "checking for $ac_word... " >&6; }
15942 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
15943 $as_echo_n "(cached) " >&6
15944 else
15945 if test -n "$INTLBISON"; then
15946 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
15947 else
15948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15949 for as_dir in $PATH
15950 do
15951 IFS=$as_save_IFS
15952 test -z "$as_dir" && as_dir=.
15953 for ac_exec_ext in '' $ac_executable_extensions; do
15954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15955 ac_cv_prog_INTLBISON="$ac_prog"
15956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15957 break 2
15958 fi
15959 done
15960 done
15961 IFS=$as_save_IFS
15963 fi
15964 fi
15965 INTLBISON=$ac_cv_prog_INTLBISON
15966 if test -n "$INTLBISON"; then
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
15968 $as_echo "$INTLBISON" >&6; }
15969 else
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15971 $as_echo "no" >&6; }
15972 fi
15975 test -n "$INTLBISON" && break
15976 done
15978 if test -z "$INTLBISON"; then
15979 ac_verc_fail=yes
15980 else
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
15982 $as_echo_n "checking version of bison... " >&6; }
15983 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
15984 case $ac_prog_version in
15985 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
15986 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
15987 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
15988 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
15989 esac
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
15991 $as_echo "$ac_prog_version" >&6; }
15992 fi
15993 if test $ac_verc_fail = yes; then
15994 INTLBISON=:
15995 fi
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16013 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16014 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
16015 $as_echo_n "(cached) " >&6
16016 else
16017 gt_save_CPPFLAGS="$CPPFLAGS"
16018 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16019 gt_save_LIBS="$LIBS"
16020 LIBS="$LIBS -framework CoreFoundation"
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16023 #include <CFPreferences.h>
16024 int
16025 main ()
16026 {
16027 CFPreferencesCopyAppValue(NULL, NULL)
16028 ;
16029 return 0;
16030 }
16031 _ACEOF
16032 if ac_fn_c_try_link "$LINENO"; then :
16033 gt_cv_func_CFPreferencesCopyAppValue=yes
16034 else
16035 gt_cv_func_CFPreferencesCopyAppValue=no
16036 fi
16037 rm -f core conftest.err conftest.$ac_objext \
16038 conftest$ac_exeext conftest.$ac_ext
16039 CPPFLAGS="$gt_save_CPPFLAGS"
16040 LIBS="$gt_save_LIBS"
16041 fi
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16043 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16044 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16046 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16048 fi
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16050 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16051 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16052 $as_echo_n "(cached) " >&6
16053 else
16054 gt_save_CPPFLAGS="$CPPFLAGS"
16055 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16056 gt_save_LIBS="$LIBS"
16057 LIBS="$LIBS -framework CoreFoundation"
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060 #include <CFLocale.h>
16061 int
16062 main ()
16063 {
16064 CFLocaleCopyCurrent();
16065 ;
16066 return 0;
16067 }
16068 _ACEOF
16069 if ac_fn_c_try_link "$LINENO"; then :
16070 gt_cv_func_CFLocaleCopyCurrent=yes
16071 else
16072 gt_cv_func_CFLocaleCopyCurrent=no
16073 fi
16074 rm -f core conftest.err conftest.$ac_objext \
16075 conftest$ac_exeext conftest.$ac_ext
16076 CPPFLAGS="$gt_save_CPPFLAGS"
16077 LIBS="$gt_save_LIBS"
16078 fi
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16080 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16081 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16083 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16085 fi
16086 INTL_MACOSX_LIBS=
16087 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16088 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16089 fi
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16095 $as_echo_n "checking whether NLS is requested... " >&6; }
16096 # Check whether --enable-nls was given.
16097 if test "${enable_nls+set}" = set; then :
16098 enableval=$enable_nls; USE_NLS=$enableval
16099 else
16100 USE_NLS=yes
16101 fi
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16104 $as_echo "$USE_NLS" >&6; }
16109 BUILD_INCLUDED_LIBINTL=no
16110 USE_INCLUDED_LIBINTL=no
16112 LIBINTL=
16113 LTLIBINTL=
16114 POSUB=
16116 if test "$USE_NLS" = "yes"; then
16117 gt_use_preinstalled_gnugettext=no
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
16120 $as_echo_n "checking whether included gettext is requested... " >&6; }
16122 # Check whether --with-included-gettext was given.
16123 if test "${with_included_gettext+set}" = set; then :
16124 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
16125 else
16126 nls_cv_force_use_gnu_gettext=no
16127 fi
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
16130 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
16132 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
16133 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16141 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16142 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
16143 $as_echo_n "(cached) " >&6
16144 else
16145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16146 /* end confdefs.h. */
16147 #include <libintl.h>
16148 extern int _nl_msg_cat_cntr;
16149 extern int *_nl_domain_bindings;
16150 int
16151 main ()
16152 {
16153 bindtextdomain ("", "");
16154 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
16155 ;
16156 return 0;
16157 }
16158 _ACEOF
16159 if ac_fn_c_try_link "$LINENO"; then :
16160 gt_cv_func_gnugettext1_libc=yes
16161 else
16162 gt_cv_func_gnugettext1_libc=no
16163 fi
16164 rm -f core conftest.err conftest.$ac_objext \
16165 conftest$ac_exeext conftest.$ac_ext
16166 fi
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
16168 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
16170 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
16174 use_additional=yes
16176 acl_save_prefix="$prefix"
16177 prefix="$acl_final_prefix"
16178 acl_save_exec_prefix="$exec_prefix"
16179 exec_prefix="$acl_final_exec_prefix"
16181 eval additional_includedir=\"$includedir\"
16182 eval additional_libdir=\"$libdir\"
16184 exec_prefix="$acl_save_exec_prefix"
16185 prefix="$acl_save_prefix"
16188 # Check whether --with-libintl-prefix was given.
16189 if test "${with_libintl_prefix+set}" = set; then :
16190 withval=$with_libintl_prefix;
16191 if test "X$withval" = "Xno"; then
16192 use_additional=no
16193 else
16194 if test "X$withval" = "X"; then
16196 acl_save_prefix="$prefix"
16197 prefix="$acl_final_prefix"
16198 acl_save_exec_prefix="$exec_prefix"
16199 exec_prefix="$acl_final_exec_prefix"
16201 eval additional_includedir=\"$includedir\"
16202 eval additional_libdir=\"$libdir\"
16204 exec_prefix="$acl_save_exec_prefix"
16205 prefix="$acl_save_prefix"
16207 else
16208 additional_includedir="$withval/include"
16209 additional_libdir="$withval/lib"
16210 fi
16211 fi
16213 fi
16215 LIBINTL=
16216 LTLIBINTL=
16217 INCINTL=
16218 rpathdirs=
16219 ltrpathdirs=
16220 names_already_handled=
16221 names_next_round='intl '
16222 while test -n "$names_next_round"; do
16223 names_this_round="$names_next_round"
16224 names_next_round=
16225 for name in $names_this_round; do
16226 already_handled=
16227 for n in $names_already_handled; do
16228 if test "$n" = "$name"; then
16229 already_handled=yes
16230 break
16231 fi
16232 done
16233 if test -z "$already_handled"; then
16234 names_already_handled="$names_already_handled $name"
16235 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16236 eval value=\"\$HAVE_LIB$uppername\"
16237 if test -n "$value"; then
16238 if test "$value" = yes; then
16239 eval value=\"\$LIB$uppername\"
16240 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16241 eval value=\"\$LTLIB$uppername\"
16242 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16243 else
16244 :
16245 fi
16246 else
16247 found_dir=
16248 found_la=
16249 found_so=
16250 found_a=
16251 if test $use_additional = yes; then
16252 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16253 found_dir="$additional_libdir"
16254 found_so="$additional_libdir/lib$name.$shlibext"
16255 if test -f "$additional_libdir/lib$name.la"; then
16256 found_la="$additional_libdir/lib$name.la"
16257 fi
16258 else
16259 if test -f "$additional_libdir/lib$name.$libext"; then
16260 found_dir="$additional_libdir"
16261 found_a="$additional_libdir/lib$name.$libext"
16262 if test -f "$additional_libdir/lib$name.la"; then
16263 found_la="$additional_libdir/lib$name.la"
16264 fi
16265 fi
16266 fi
16267 fi
16268 if test "X$found_dir" = "X"; then
16269 for x in $LDFLAGS $LTLIBINTL; do
16271 acl_save_prefix="$prefix"
16272 prefix="$acl_final_prefix"
16273 acl_save_exec_prefix="$exec_prefix"
16274 exec_prefix="$acl_final_exec_prefix"
16275 eval x=\"$x\"
16276 exec_prefix="$acl_save_exec_prefix"
16277 prefix="$acl_save_prefix"
16279 case "$x" in
16280 -L*)
16281 dir=`echo "X$x" | sed -e 's/^X-L//'`
16282 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16283 found_dir="$dir"
16284 found_so="$dir/lib$name.$shlibext"
16285 if test -f "$dir/lib$name.la"; then
16286 found_la="$dir/lib$name.la"
16287 fi
16288 else
16289 if test -f "$dir/lib$name.$libext"; then
16290 found_dir="$dir"
16291 found_a="$dir/lib$name.$libext"
16292 if test -f "$dir/lib$name.la"; then
16293 found_la="$dir/lib$name.la"
16294 fi
16295 fi
16296 fi
16297 ;;
16298 esac
16299 if test "X$found_dir" != "X"; then
16300 break
16301 fi
16302 done
16303 fi
16304 if test "X$found_dir" != "X"; then
16305 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16306 if test "X$found_so" != "X"; then
16307 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16308 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16309 else
16310 haveit=
16311 for x in $ltrpathdirs; do
16312 if test "X$x" = "X$found_dir"; then
16313 haveit=yes
16314 break
16315 fi
16316 done
16317 if test -z "$haveit"; then
16318 ltrpathdirs="$ltrpathdirs $found_dir"
16319 fi
16320 if test "$hardcode_direct" = yes; then
16321 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16322 else
16323 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16324 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16325 haveit=
16326 for x in $rpathdirs; do
16327 if test "X$x" = "X$found_dir"; then
16328 haveit=yes
16329 break
16330 fi
16331 done
16332 if test -z "$haveit"; then
16333 rpathdirs="$rpathdirs $found_dir"
16334 fi
16335 else
16336 haveit=
16337 for x in $LDFLAGS $LIBINTL; do
16339 acl_save_prefix="$prefix"
16340 prefix="$acl_final_prefix"
16341 acl_save_exec_prefix="$exec_prefix"
16342 exec_prefix="$acl_final_exec_prefix"
16343 eval x=\"$x\"
16344 exec_prefix="$acl_save_exec_prefix"
16345 prefix="$acl_save_prefix"
16347 if test "X$x" = "X-L$found_dir"; then
16348 haveit=yes
16349 break
16350 fi
16351 done
16352 if test -z "$haveit"; then
16353 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16354 fi
16355 if test "$hardcode_minus_L" != no; then
16356 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16357 else
16358 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16359 fi
16360 fi
16361 fi
16362 fi
16363 else
16364 if test "X$found_a" != "X"; then
16365 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16366 else
16367 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16368 fi
16369 fi
16370 additional_includedir=
16371 case "$found_dir" in
16372 */lib | */lib/)
16373 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16374 additional_includedir="$basedir/include"
16375 ;;
16376 esac
16377 if test "X$additional_includedir" != "X"; then
16378 if test "X$additional_includedir" != "X/usr/include"; then
16379 haveit=
16380 if test "X$additional_includedir" = "X/usr/local/include"; then
16381 if test -n "$GCC"; then
16382 case $host_os in
16383 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16384 esac
16385 fi
16386 fi
16387 if test -z "$haveit"; then
16388 for x in $CPPFLAGS $INCINTL; do
16390 acl_save_prefix="$prefix"
16391 prefix="$acl_final_prefix"
16392 acl_save_exec_prefix="$exec_prefix"
16393 exec_prefix="$acl_final_exec_prefix"
16394 eval x=\"$x\"
16395 exec_prefix="$acl_save_exec_prefix"
16396 prefix="$acl_save_prefix"
16398 if test "X$x" = "X-I$additional_includedir"; then
16399 haveit=yes
16400 break
16401 fi
16402 done
16403 if test -z "$haveit"; then
16404 if test -d "$additional_includedir"; then
16405 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16406 fi
16407 fi
16408 fi
16409 fi
16410 fi
16411 if test -n "$found_la"; then
16412 save_libdir="$libdir"
16413 case "$found_la" in
16414 */* | *\\*) . "$found_la" ;;
16415 *) . "./$found_la" ;;
16416 esac
16417 libdir="$save_libdir"
16418 for dep in $dependency_libs; do
16419 case "$dep" in
16420 -L*)
16421 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16422 if test "X$additional_libdir" != "X/usr/lib"; then
16423 haveit=
16424 if test "X$additional_libdir" = "X/usr/local/lib"; then
16425 if test -n "$GCC"; then
16426 case $host_os in
16427 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16428 esac
16429 fi
16430 fi
16431 if test -z "$haveit"; then
16432 haveit=
16433 for x in $LDFLAGS $LIBINTL; do
16435 acl_save_prefix="$prefix"
16436 prefix="$acl_final_prefix"
16437 acl_save_exec_prefix="$exec_prefix"
16438 exec_prefix="$acl_final_exec_prefix"
16439 eval x=\"$x\"
16440 exec_prefix="$acl_save_exec_prefix"
16441 prefix="$acl_save_prefix"
16443 if test "X$x" = "X-L$additional_libdir"; then
16444 haveit=yes
16445 break
16446 fi
16447 done
16448 if test -z "$haveit"; then
16449 if test -d "$additional_libdir"; then
16450 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16451 fi
16452 fi
16453 haveit=
16454 for x in $LDFLAGS $LTLIBINTL; do
16456 acl_save_prefix="$prefix"
16457 prefix="$acl_final_prefix"
16458 acl_save_exec_prefix="$exec_prefix"
16459 exec_prefix="$acl_final_exec_prefix"
16460 eval x=\"$x\"
16461 exec_prefix="$acl_save_exec_prefix"
16462 prefix="$acl_save_prefix"
16464 if test "X$x" = "X-L$additional_libdir"; then
16465 haveit=yes
16466 break
16467 fi
16468 done
16469 if test -z "$haveit"; then
16470 if test -d "$additional_libdir"; then
16471 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16472 fi
16473 fi
16474 fi
16475 fi
16476 ;;
16477 -R*)
16478 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16479 if test "$enable_rpath" != no; then
16480 haveit=
16481 for x in $rpathdirs; do
16482 if test "X$x" = "X$dir"; then
16483 haveit=yes
16484 break
16485 fi
16486 done
16487 if test -z "$haveit"; then
16488 rpathdirs="$rpathdirs $dir"
16489 fi
16490 haveit=
16491 for x in $ltrpathdirs; do
16492 if test "X$x" = "X$dir"; then
16493 haveit=yes
16494 break
16495 fi
16496 done
16497 if test -z "$haveit"; then
16498 ltrpathdirs="$ltrpathdirs $dir"
16499 fi
16500 fi
16501 ;;
16502 -l*)
16503 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16504 ;;
16505 *.la)
16506 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16507 ;;
16508 *)
16509 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16510 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16511 ;;
16512 esac
16513 done
16514 fi
16515 else
16516 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16517 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16518 fi
16519 fi
16520 fi
16521 done
16522 done
16523 if test "X$rpathdirs" != "X"; then
16524 if test -n "$hardcode_libdir_separator"; then
16525 alldirs=
16526 for found_dir in $rpathdirs; do
16527 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16528 done
16529 acl_save_libdir="$libdir"
16530 libdir="$alldirs"
16531 eval flag=\"$hardcode_libdir_flag_spec\"
16532 libdir="$acl_save_libdir"
16533 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16534 else
16535 for found_dir in $rpathdirs; do
16536 acl_save_libdir="$libdir"
16537 libdir="$found_dir"
16538 eval flag=\"$hardcode_libdir_flag_spec\"
16539 libdir="$acl_save_libdir"
16540 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16541 done
16542 fi
16543 fi
16544 if test "X$ltrpathdirs" != "X"; then
16545 for found_dir in $ltrpathdirs; do
16546 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16547 done
16548 fi
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16551 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16552 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16555 gt_save_CPPFLAGS="$CPPFLAGS"
16556 CPPFLAGS="$CPPFLAGS $INCINTL"
16557 gt_save_LIBS="$LIBS"
16558 LIBS="$LIBS $LIBINTL"
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h. */
16561 #include <libintl.h>
16562 extern int _nl_msg_cat_cntr;
16563 extern
16564 #ifdef __cplusplus
16565 "C"
16566 #endif
16567 const char *_nl_expand_alias (const char *);
16568 int
16569 main ()
16570 {
16571 bindtextdomain ("", "");
16572 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16573 ;
16574 return 0;
16575 }
16576 _ACEOF
16577 if ac_fn_c_try_link "$LINENO"; then :
16578 gt_cv_func_gnugettext1_libintl=yes
16579 else
16580 gt_cv_func_gnugettext1_libintl=no
16581 fi
16582 rm -f core conftest.err conftest.$ac_objext \
16583 conftest$ac_exeext conftest.$ac_ext
16584 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
16585 LIBS="$LIBS $LIBICONV"
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588 #include <libintl.h>
16589 extern int _nl_msg_cat_cntr;
16590 extern
16591 #ifdef __cplusplus
16592 "C"
16593 #endif
16594 const char *_nl_expand_alias (const char *);
16595 int
16596 main ()
16597 {
16598 bindtextdomain ("", "");
16599 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16600 ;
16601 return 0;
16602 }
16603 _ACEOF
16604 if ac_fn_c_try_link "$LINENO"; then :
16605 LIBINTL="$LIBINTL $LIBICONV"
16606 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16607 gt_cv_func_gnugettext1_libintl=yes
16609 fi
16610 rm -f core conftest.err conftest.$ac_objext \
16611 conftest$ac_exeext conftest.$ac_ext
16612 fi
16613 CPPFLAGS="$gt_save_CPPFLAGS"
16614 LIBS="$gt_save_LIBS"
16615 fi
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
16617 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
16618 fi
16620 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
16621 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
16622 && test "$PACKAGE" != gettext-runtime \
16623 && test "$PACKAGE" != gettext-tools; }; then
16624 gt_use_preinstalled_gnugettext=yes
16625 else
16626 LIBINTL=
16627 LTLIBINTL=
16628 INCINTL=
16629 fi
16632 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
16633 nls_cv_use_gnu_gettext=yes
16634 fi
16635 fi
16637 if test "$nls_cv_use_gnu_gettext" = "yes"; then
16638 BUILD_INCLUDED_LIBINTL=yes
16639 USE_INCLUDED_LIBINTL=yes
16640 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
16641 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
16642 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
16643 fi
16645 CATOBJEXT=
16646 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16647 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16648 CATOBJEXT=.gmo
16649 fi
16652 if test -n "$INTL_MACOSX_LIBS"; then
16653 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16654 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16655 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16656 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16657 fi
16658 fi
16660 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16661 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16663 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16665 else
16666 USE_NLS=no
16667 fi
16668 fi
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16671 $as_echo_n "checking whether to use NLS... " >&6; }
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16673 $as_echo "$USE_NLS" >&6; }
16674 if test "$USE_NLS" = "yes"; then
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16676 $as_echo_n "checking where the gettext function comes from... " >&6; }
16677 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16678 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
16679 gt_source="external libintl"
16680 else
16681 gt_source="libc"
16682 fi
16683 else
16684 gt_source="included intl directory"
16685 fi
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16687 $as_echo "$gt_source" >&6; }
16688 fi
16690 if test "$USE_NLS" = "yes"; then
16692 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16693 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16695 $as_echo_n "checking how to link with libintl... " >&6; }
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16697 $as_echo "$LIBINTL" >&6; }
16699 for element in $INCINTL; do
16700 haveit=
16701 for x in $CPPFLAGS; do
16703 acl_save_prefix="$prefix"
16704 prefix="$acl_final_prefix"
16705 acl_save_exec_prefix="$exec_prefix"
16706 exec_prefix="$acl_final_exec_prefix"
16707 eval x=\"$x\"
16708 exec_prefix="$acl_save_exec_prefix"
16709 prefix="$acl_save_prefix"
16711 if test "X$x" = "X$element"; then
16712 haveit=yes
16713 break
16714 fi
16715 done
16716 if test -z "$haveit"; then
16717 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16718 fi
16719 done
16721 fi
16724 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16727 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16729 fi
16731 POSUB=po
16732 fi
16735 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
16736 BUILD_INCLUDED_LIBINTL=yes
16737 fi
16743 nls_cv_header_intl=
16744 nls_cv_header_libgt=
16746 DATADIRNAME=share
16749 INSTOBJEXT=.mo
16752 GENCAT=gencat
16755 INTLOBJS=
16756 if test "$USE_INCLUDED_LIBINTL" = yes; then
16757 INTLOBJS="\$(GETTOBJS)"
16758 fi
16761 INTL_LIBTOOL_SUFFIX_PREFIX=
16765 INTLLIBS="$LIBINTL"
16774 case $TERM in
16775 # for the most important terminal types we directly know the sequences
16776 xterm|xterm*|vt220|vt220*)
16777 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
16778 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
16779 ;;
16780 vt100|vt100*|cygwin)
16781 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
16782 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
16783 ;;
16784 *)
16785 T_MD=''
16786 T_ME=''
16787 ;;
16788 esac
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16790 $as_echo "" >&6; }
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
16792 $as_echo "${T_MD}IEEE Math Checks${T_ME}" >&6; }
16796 for ac_func in fpclassify
16797 do :
16798 ac_fn_c_check_func "$LINENO" "fpclassify" "ac_cv_func_fpclassify"
16799 if test "x$ac_cv_func_fpclassify" = x""yes; then :
16800 cat >>confdefs.h <<_ACEOF
16801 #define HAVE_FPCLASSIFY 1
16802 _ACEOF
16804 else
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify with <math.h>" >&5
16806 $as_echo_n "checking for fpclassify with <math.h>... " >&6; }
16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808 /* end confdefs.h. */
16809 #include <math.h>
16810 volatile int x;volatile float f;
16811 int
16812 main ()
16813 {
16814 x = fpclassify(f)
16815 ;
16816 return 0;
16817 }
16818 _ACEOF
16819 if ac_fn_c_try_link "$LINENO"; then :
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16821 $as_echo "yes" >&6; }
16822 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
16824 else
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16826 $as_echo "no" >&6; }
16827 fi
16828 rm -f core conftest.err conftest.$ac_objext \
16829 conftest$ac_exeext conftest.$ac_ext
16830 fi
16831 done
16834 for ac_func in isinf
16835 do :
16836 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
16837 if test "x$ac_cv_func_isinf" = x""yes; then :
16838 cat >>confdefs.h <<_ACEOF
16839 #define HAVE_ISINF 1
16840 _ACEOF
16842 else
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf with <math.h>" >&5
16844 $as_echo_n "checking for isinf with <math.h>... " >&6; }
16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h. */
16847 #include <math.h>
16848 volatile int x;volatile float f;
16849 int
16850 main ()
16851 {
16852 x = isinf(f)
16853 ;
16854 return 0;
16855 }
16856 _ACEOF
16857 if ac_fn_c_try_link "$LINENO"; then :
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16859 $as_echo "yes" >&6; }
16860 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16862 else
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16864 $as_echo "no" >&6; }
16865 fi
16866 rm -f core conftest.err conftest.$ac_objext \
16867 conftest$ac_exeext conftest.$ac_ext
16868 fi
16869 done
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isfinite is broken" >&5
16873 $as_echo_n "checking whether isfinite is broken... " >&6; }
16874 if test "${ac_cv_have_broken_isfinite+set}" = set; then :
16875 $as_echo_n "(cached) " >&6
16876 else
16878 if test "$cross_compiling" = yes; then :
16880 case "${target}" in
16881 hppa*-*-hpux*) ac_cv_have_broken_isfinite=yes ;;
16882 *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
16883 *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
16884 *) ac_cv_have_broken_isfinite=no ;;
16885 esac
16886 else
16887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16888 /* end confdefs.h. */
16890 #ifdef HAVE_MATH_H
16891 #include <math.h>
16892 #endif
16893 #ifdef HAVE_FLOAT_H
16894 #include <float.h>
16895 #endif
16896 int main ()
16897 {
16898 #ifdef isfinite
16899 #ifdef LDBL_MAX
16900 if (!isfinite(LDBL_MAX)) return 1;
16901 #endif
16902 #ifdef DBL_MAX
16903 if (!isfinite(DBL_MAX)) return 1;
16904 #endif
16905 #endif
16906 return 0;
16907 }
16908 _ACEOF
16909 if ac_fn_c_try_run "$LINENO"; then :
16910 ac_cv_have_broken_isfinite=no
16911 else
16912 ac_cv_have_broken_isfinite=yes
16913 fi
16914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16915 conftest.$ac_objext conftest.beam conftest.$ac_ext
16916 fi
16919 fi
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_isfinite" >&5
16921 $as_echo "$ac_cv_have_broken_isfinite" >&6; }
16923 case "${target}" in
16924 *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
16925 *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
16926 esac
16928 if test "x$ac_cv_have_broken_isfinite" = "xno"; then
16929 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16931 else
16932 for ac_func in finite
16933 do :
16934 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
16935 if test "x$ac_cv_func_finite" = x""yes; then :
16936 cat >>confdefs.h <<_ACEOF
16937 #define HAVE_FINITE 1
16938 _ACEOF
16940 else
16941 for ac_func in isfinite
16942 do :
16943 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
16944 if test "x$ac_cv_func_isfinite" = x""yes; then :
16945 cat >>confdefs.h <<_ACEOF
16946 #define HAVE_ISFINITE 1
16947 _ACEOF
16949 else
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
16951 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
16952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953 /* end confdefs.h. */
16954 #include <math.h>
16955 volatile int x;volatile float f;
16956 int
16957 main ()
16958 {
16959 x = isfinite(f)
16960 ;
16961 return 0;
16962 }
16963 _ACEOF
16964 if ac_fn_c_try_link "$LINENO"; then :
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16966 $as_echo "yes" >&6; }
16967 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16969 else
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16971 $as_echo "no" >&6; }
16972 fi
16973 rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975 fi
16976 done
16978 fi
16979 done
16981 fi
16984 ac_ext=c
16985 ac_cpp='$CPP $CPPFLAGS'
16986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16990 _cflags=${CFLAGS}
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works out of the box" >&5
16993 $as_echo_n "checking if IEEE math works out of the box... " >&6; }
16994 if test "${rd_cv_ieee_works+set}" = set; then :
16995 $as_echo_n "(cached) " >&6
16996 else
16997 if test "$cross_compiling" = yes; then :
16998 :
16999 else
17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001 /* end confdefs.h. */
17004 #if HAVE_MATH_H
17005 # include <math.h>
17006 #endif
17008 #if HAVE_FLOAT_H
17009 # include <float.h>
17010 #endif
17012 #if HAVE_IEEEFP_H
17013 # include <ieeefp.h>
17014 #endif
17016 #if HAVE_FP_CLASS_H
17017 # include <fp_class.h>
17018 #endif
17020 /* Solaris */
17021 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
17022 # define HAVE_ISINF 1
17023 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
17024 #endif
17026 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
17027 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
17028 # undef isnan
17029 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
17030 #endif
17032 /* Digital UNIX */
17033 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
17034 # define HAVE_ISINF 1
17035 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
17036 #endif
17038 /* AIX */
17039 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
17040 # define HAVE_ISINF 1
17041 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
17042 #endif
17044 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
17045 # define HAVE_ISINF 1
17046 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
17047 #endif
17049 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
17050 # define HAVE_ISINF 1
17051 # define isinf(a) (fpclassify(a) == FP_INFINITE)
17052 #endif
17054 #if HAVE_MATH_H
17055 #include <math.h>
17056 #endif
17058 #include <stdio.h>
17059 int main(void){
17060 double rrdnan,rrdinf,rrdc,rrdzero;
17061 ;
17062 /* some math to see if we get a floating point exception */
17063 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
17064 rrdnan=0.0/rrdzero; /* especially here */
17065 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
17066 /* at run time without sig fpe */
17067 rrdc = rrdinf + rrdnan;
17068 rrdc = rrdinf / rrdnan;
17069 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
17070 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
17071 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
17072 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
17073 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
17074 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
17075 return 0;
17076 }
17077 _ACEOF
17078 if ac_fn_c_try_run "$LINENO"; then :
17079 rd_cv_ieee_works=yes
17080 else
17081 rd_cv_ieee_works=no
17082 fi
17083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17084 conftest.$ac_objext conftest.beam conftest.$ac_ext
17085 fi
17087 fi
17089 if test x${rd_cv_ieee_works} = "xyes"; then
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17091 $as_echo "yes" >&6; }
17093 else
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095 $as_echo "no" >&6; }
17096 CFLAGS="$_cflags -ieee"
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -ieee switch" >&5
17099 $as_echo_n "checking if IEEE math works with the -ieee switch... " >&6; }
17100 if test "${rd_cv_ieee_switch+set}" = set; then :
17101 $as_echo_n "(cached) " >&6
17102 else
17103 if test "$cross_compiling" = yes; then :
17104 :
17105 else
17106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107 /* end confdefs.h. */
17110 #if HAVE_MATH_H
17111 # include <math.h>
17112 #endif
17114 #if HAVE_FLOAT_H
17115 # include <float.h>
17116 #endif
17118 #if HAVE_IEEEFP_H
17119 # include <ieeefp.h>
17120 #endif
17122 #if HAVE_FP_CLASS_H
17123 # include <fp_class.h>
17124 #endif
17126 /* Solaris */
17127 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
17128 # define HAVE_ISINF 1
17129 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
17130 #endif
17132 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
17133 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
17134 # undef isnan
17135 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
17136 #endif
17138 /* Digital UNIX */
17139 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
17140 # define HAVE_ISINF 1
17141 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
17142 #endif
17144 /* AIX */
17145 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
17146 # define HAVE_ISINF 1
17147 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
17148 #endif
17150 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
17151 # define HAVE_ISINF 1
17152 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
17153 #endif
17155 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
17156 # define HAVE_ISINF 1
17157 # define isinf(a) (fpclassify(a) == FP_INFINITE)
17158 #endif
17160 #if HAVE_MATH_H
17161 #include <math.h>
17162 #endif
17164 #include <stdio.h>
17165 int main(void){
17166 double rrdnan,rrdinf,rrdc,rrdzero;
17167 ;
17168 /* some math to see if we get a floating point exception */
17169 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
17170 rrdnan=0.0/rrdzero; /* especially here */
17171 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
17172 /* at run time without sig fpe */
17173 rrdc = rrdinf + rrdnan;
17174 rrdc = rrdinf / rrdnan;
17175 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
17176 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
17177 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
17178 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
17179 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
17180 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
17181 return 0;
17182 }
17183 _ACEOF
17184 if ac_fn_c_try_run "$LINENO"; then :
17185 rd_cv_ieee_switch=yes
17186 else
17187 rd_cv_ieee_switch=no
17188 fi
17189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17190 conftest.$ac_objext conftest.beam conftest.$ac_ext
17191 fi
17193 fi
17195 if test x${rd_cv_ieee_switch} = "xyes"; then
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17197 $as_echo "yes" >&6; }
17199 else
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17201 $as_echo "no" >&6; }
17202 CFLAGS="$_cflags -qfloat=nofold"
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -qfloat=nofold switch" >&5
17205 $as_echo_n "checking if IEEE math works with the -qfloat=nofold switch... " >&6; }
17206 if test "${rd_cv_ieee_nofold+set}" = set; then :
17207 $as_echo_n "(cached) " >&6
17208 else
17209 if test "$cross_compiling" = yes; then :
17210 :
17211 else
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h. */
17216 #if HAVE_MATH_H
17217 # include <math.h>
17218 #endif
17220 #if HAVE_FLOAT_H
17221 # include <float.h>
17222 #endif
17224 #if HAVE_IEEEFP_H
17225 # include <ieeefp.h>
17226 #endif
17228 #if HAVE_FP_CLASS_H
17229 # include <fp_class.h>
17230 #endif
17232 /* Solaris */
17233 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
17234 # define HAVE_ISINF 1
17235 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
17236 #endif
17238 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
17239 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
17240 # undef isnan
17241 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
17242 #endif
17244 /* Digital UNIX */
17245 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
17246 # define HAVE_ISINF 1
17247 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
17248 #endif
17250 /* AIX */
17251 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
17252 # define HAVE_ISINF 1
17253 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
17254 #endif
17256 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
17257 # define HAVE_ISINF 1
17258 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
17259 #endif
17261 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
17262 # define HAVE_ISINF 1
17263 # define isinf(a) (fpclassify(a) == FP_INFINITE)
17264 #endif
17266 #if HAVE_MATH_H
17267 #include <math.h>
17268 #endif
17270 #include <stdio.h>
17271 int main(void){
17272 double rrdnan,rrdinf,rrdc,rrdzero;
17273 ;
17274 /* some math to see if we get a floating point exception */
17275 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
17276 rrdnan=0.0/rrdzero; /* especially here */
17277 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
17278 /* at run time without sig fpe */
17279 rrdc = rrdinf + rrdnan;
17280 rrdc = rrdinf / rrdnan;
17281 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
17282 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
17283 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
17284 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
17285 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
17286 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
17287 return 0;
17288 }
17289 _ACEOF
17290 if ac_fn_c_try_run "$LINENO"; then :
17291 rd_cv_ieee_nofold=yes
17292 else
17293 rd_cv_ieee_nofold=no
17294 fi
17295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17296 conftest.$ac_objext conftest.beam conftest.$ac_ext
17297 fi
17299 fi
17301 if test x${rd_cv_ieee_nofold} = "xyes"; then
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17303 $as_echo "yes" >&6; }
17305 else
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17307 $as_echo "no" >&6; }
17308 CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
17311 $as_echo_n "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... " >&6; }
17312 if test "${rd_cv_ieee_flttrap+set}" = set; then :
17313 $as_echo_n "(cached) " >&6
17314 else
17315 if test "$cross_compiling" = yes; then :
17316 :
17317 else
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17322 #if HAVE_MATH_H
17323 # include <math.h>
17324 #endif
17326 #if HAVE_FLOAT_H
17327 # include <float.h>
17328 #endif
17330 #if HAVE_IEEEFP_H
17331 # include <ieeefp.h>
17332 #endif
17334 #if HAVE_FP_CLASS_H
17335 # include <fp_class.h>
17336 #endif
17338 /* Solaris */
17339 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
17340 # define HAVE_ISINF 1
17341 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
17342 #endif
17344 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
17345 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
17346 # undef isnan
17347 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
17348 #endif
17350 /* Digital UNIX */
17351 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
17352 # define HAVE_ISINF 1
17353 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
17354 #endif
17356 /* AIX */
17357 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
17358 # define HAVE_ISINF 1
17359 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
17360 #endif
17362 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
17363 # define HAVE_ISINF 1
17364 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
17365 #endif
17367 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
17368 # define HAVE_ISINF 1
17369 # define isinf(a) (fpclassify(a) == FP_INFINITE)
17370 #endif
17372 #if HAVE_MATH_H
17373 #include <math.h>
17374 #endif
17376 #include <stdio.h>
17377 int main(void){
17378 double rrdnan,rrdinf,rrdc,rrdzero;
17379 ;
17380 /* some math to see if we get a floating point exception */
17381 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
17382 rrdnan=0.0/rrdzero; /* especially here */
17383 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
17384 /* at run time without sig fpe */
17385 rrdc = rrdinf + rrdnan;
17386 rrdc = rrdinf / rrdnan;
17387 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
17388 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
17389 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
17390 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
17391 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
17392 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
17393 return 0;
17394 }
17395 _ACEOF
17396 if ac_fn_c_try_run "$LINENO"; then :
17397 rd_cv_ieee_flttrap=yes
17398 else
17399 rd_cv_ieee_flttrap=no
17400 fi
17401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17402 conftest.$ac_objext conftest.beam conftest.$ac_ext
17403 fi
17405 fi
17407 if test x${rd_cv_ieee_flttrap} = "xyes"; then
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17409 $as_echo "yes" >&6; }
17411 else
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17413 $as_echo "no" >&6; }
17414 CFLAGS="$_cflags -mieee"
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -mieee switch" >&5
17417 $as_echo_n "checking if IEEE math works with the -mieee switch... " >&6; }
17418 if test "${rd_cv_ieee_mswitch+set}" = set; then :
17419 $as_echo_n "(cached) " >&6
17420 else
17421 if test "$cross_compiling" = yes; then :
17422 :
17423 else
17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17425 /* end confdefs.h. */
17428 #if HAVE_MATH_H
17429 # include <math.h>
17430 #endif
17432 #if HAVE_FLOAT_H
17433 # include <float.h>
17434 #endif
17436 #if HAVE_IEEEFP_H
17437 # include <ieeefp.h>
17438 #endif
17440 #if HAVE_FP_CLASS_H
17441 # include <fp_class.h>
17442 #endif
17444 /* Solaris */
17445 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
17446 # define HAVE_ISINF 1
17447 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
17448 #endif
17450 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
17451 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
17452 # undef isnan
17453 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
17454 #endif
17456 /* Digital UNIX */
17457 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
17458 # define HAVE_ISINF 1
17459 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
17460 #endif
17462 /* AIX */
17463 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
17464 # define HAVE_ISINF 1
17465 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
17466 #endif
17468 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
17469 # define HAVE_ISINF 1
17470 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
17471 #endif
17473 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
17474 # define HAVE_ISINF 1
17475 # define isinf(a) (fpclassify(a) == FP_INFINITE)
17476 #endif
17478 #if HAVE_MATH_H
17479 #include <math.h>
17480 #endif
17482 #include <stdio.h>
17483 int main(void){
17484 double rrdnan,rrdinf,rrdc,rrdzero;
17485 ;
17486 /* some math to see if we get a floating point exception */
17487 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
17488 rrdnan=0.0/rrdzero; /* especially here */
17489 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
17490 /* at run time without sig fpe */
17491 rrdc = rrdinf + rrdnan;
17492 rrdc = rrdinf / rrdnan;
17493 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
17494 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
17495 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
17496 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
17497 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
17498 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
17499 return 0;
17500 }
17501 _ACEOF
17502 if ac_fn_c_try_run "$LINENO"; then :
17503 rd_cv_ieee_mswitch=yes
17504 else
17505 rd_cv_ieee_mswitch=no
17506 fi
17507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17508 conftest.$ac_objext conftest.beam conftest.$ac_ext
17509 fi
17511 fi
17513 if test x${rd_cv_ieee_mswitch} = "xyes"; then
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17515 $as_echo "yes" >&6; }
17517 else
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17519 $as_echo "no" >&6; }
17520 CFLAGS="$_cflags -q float=rndsngl"
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -q float=rndsngl switch" >&5
17523 $as_echo_n "checking if IEEE math works with the -q float=rndsngl switch... " >&6; }
17524 if test "${rd_cv_ieee_qswitch+set}" = set; then :
17525 $as_echo_n "(cached) " >&6
17526 else
17527 if test "$cross_compiling" = yes; then :
17528 :
17529 else
17530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531 /* end confdefs.h. */
17534 #if HAVE_MATH_H
17535 # include <math.h>
17536 #endif
17538 #if HAVE_FLOAT_H
17539 # include <float.h>
17540 #endif
17542 #if HAVE_IEEEFP_H
17543 # include <ieeefp.h>
17544 #endif
17546 #if HAVE_FP_CLASS_H
17547 # include <fp_class.h>
17548 #endif
17550 /* Solaris */
17551 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
17552 # define HAVE_ISINF 1
17553 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
17554 #endif
17556 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
17557 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
17558 # undef isnan
17559 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
17560 #endif
17562 /* Digital UNIX */
17563 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
17564 # define HAVE_ISINF 1
17565 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
17566 #endif
17568 /* AIX */
17569 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
17570 # define HAVE_ISINF 1
17571 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
17572 #endif
17574 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
17575 # define HAVE_ISINF 1
17576 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
17577 #endif
17579 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
17580 # define HAVE_ISINF 1
17581 # define isinf(a) (fpclassify(a) == FP_INFINITE)
17582 #endif
17584 #if HAVE_MATH_H
17585 #include <math.h>
17586 #endif
17588 #include <stdio.h>
17589 int main(void){
17590 double rrdnan,rrdinf,rrdc,rrdzero;
17591 ;
17592 /* some math to see if we get a floating point exception */
17593 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
17594 rrdnan=0.0/rrdzero; /* especially here */
17595 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
17596 /* at run time without sig fpe */
17597 rrdc = rrdinf + rrdnan;
17598 rrdc = rrdinf / rrdnan;
17599 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
17600 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
17601 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
17602 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
17603 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
17604 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
17605 return 0;
17606 }
17607 _ACEOF
17608 if ac_fn_c_try_run "$LINENO"; then :
17609 rd_cv_ieee_qswitch=yes
17610 else
17611 rd_cv_ieee_qswitch=no
17612 fi
17613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17614 conftest.$ac_objext conftest.beam conftest.$ac_ext
17615 fi
17617 fi
17619 if test x${rd_cv_ieee_qswitch} = "xyes"; then
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17621 $as_echo "yes" >&6; }
17623 else
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17625 $as_echo "no" >&6; }
17626 CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
17629 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... " >&6; }
17630 if test "${rd_cv_ieee_ieeenaninfswitch+set}" = set; then :
17631 $as_echo_n "(cached) " >&6
17632 else
17633 if test "$cross_compiling" = yes; then :
17634 :
17635 else
17636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17640 #if HAVE_MATH_H
17641 # include <math.h>
17642 #endif
17644 #if HAVE_FLOAT_H
17645 # include <float.h>
17646 #endif
17648 #if HAVE_IEEEFP_H
17649 # include <ieeefp.h>
17650 #endif
17652 #if HAVE_FP_CLASS_H
17653 # include <fp_class.h>
17654 #endif
17656 /* Solaris */
17657 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
17658 # define HAVE_ISINF 1
17659 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
17660 #endif
17662 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
17663 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
17664 # undef isnan
17665 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
17666 #endif
17668 /* Digital UNIX */
17669 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
17670 # define HAVE_ISINF 1
17671 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
17672 #endif
17674 /* AIX */
17675 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
17676 # define HAVE_ISINF 1
17677 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
17678 #endif
17680 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
17681 # define HAVE_ISINF 1
17682 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
17683 #endif
17685 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
17686 # define HAVE_ISINF 1
17687 # define isinf(a) (fpclassify(a) == FP_INFINITE)
17688 #endif
17690 #if HAVE_MATH_H
17691 #include <math.h>
17692 #endif
17694 #include <stdio.h>
17695 int main(void){
17696 double rrdnan,rrdinf,rrdc,rrdzero;
17697 ;
17698 /* some math to see if we get a floating point exception */
17699 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
17700 rrdnan=0.0/rrdzero; /* especially here */
17701 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
17702 /* at run time without sig fpe */
17703 rrdc = rrdinf + rrdnan;
17704 rrdc = rrdinf / rrdnan;
17705 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
17706 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
17707 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
17708 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
17709 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
17710 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
17711 return 0;
17712 }
17713 _ACEOF
17714 if ac_fn_c_try_run "$LINENO"; then :
17715 rd_cv_ieee_ieeenaninfswitch=yes
17716 else
17717 rd_cv_ieee_ieeenaninfswitch=no
17718 fi
17719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17720 conftest.$ac_objext conftest.beam conftest.$ac_ext
17721 fi
17723 fi
17725 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17727 $as_echo "yes" >&6; }
17729 else
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17731 $as_echo "no" >&6; }
17732 CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
17735 $as_echo_n "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... " >&6; }
17736 if test "${rd_cv_ieee_ieeecmpswitch+set}" = set; then :
17737 $as_echo_n "(cached) " >&6
17738 else
17739 if test "$cross_compiling" = yes; then :
17740 :
17741 else
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h. */
17746 #if HAVE_MATH_H
17747 # include <math.h>
17748 #endif
17750 #if HAVE_FLOAT_H
17751 # include <float.h>
17752 #endif
17754 #if HAVE_IEEEFP_H
17755 # include <ieeefp.h>
17756 #endif
17758 #if HAVE_FP_CLASS_H
17759 # include <fp_class.h>
17760 #endif
17762 /* Solaris */
17763 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
17764 # define HAVE_ISINF 1
17765 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
17766 #endif
17768 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
17769 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
17770 # undef isnan
17771 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
17772 #endif
17774 /* Digital UNIX */
17775 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
17776 # define HAVE_ISINF 1
17777 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
17778 #endif
17780 /* AIX */
17781 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
17782 # define HAVE_ISINF 1
17783 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
17784 #endif
17786 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
17787 # define HAVE_ISINF 1
17788 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
17789 #endif
17791 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
17792 # define HAVE_ISINF 1
17793 # define isinf(a) (fpclassify(a) == FP_INFINITE)
17794 #endif
17796 #if HAVE_MATH_H
17797 #include <math.h>
17798 #endif
17800 #include <stdio.h>
17801 int main(void){
17802 double rrdnan,rrdinf,rrdc,rrdzero;
17803 ;
17804 /* some math to see if we get a floating point exception */
17805 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
17806 rrdnan=0.0/rrdzero; /* especially here */
17807 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
17808 /* at run time without sig fpe */
17809 rrdc = rrdinf + rrdnan;
17810 rrdc = rrdinf / rrdnan;
17811 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
17812 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
17813 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
17814 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
17815 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
17816 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
17817 return 0;
17818 }
17819 _ACEOF
17820 if ac_fn_c_try_run "$LINENO"; then :
17821 rd_cv_ieee_ieeecmpswitch=yes
17822 else
17823 rd_cv_ieee_ieeecmpswitch=no
17824 fi
17825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17826 conftest.$ac_objext conftest.beam conftest.$ac_ext
17827 fi
17829 fi
17831 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17833 $as_echo "yes" >&6; }
17835 else
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17837 $as_echo "no" >&6; }
17838 CFLAGS=$_cflags
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with fpsetmask(0)" >&5
17841 $as_echo_n "checking if IEEE math works with fpsetmask(0)... " >&6; }
17842 if test "${rd_cv_ieee_mask+set}" = set; then :
17843 $as_echo_n "(cached) " >&6
17844 else
17845 if test "$cross_compiling" = yes; then :
17846 :
17847 else
17848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849 /* end confdefs.h. */
17850 #include <floatingpoint.h>
17852 #if HAVE_MATH_H
17853 # include <math.h>
17854 #endif
17856 #if HAVE_FLOAT_H
17857 # include <float.h>
17858 #endif
17860 #if HAVE_IEEEFP_H
17861 # include <ieeefp.h>
17862 #endif
17864 #if HAVE_FP_CLASS_H
17865 # include <fp_class.h>
17866 #endif
17868 /* Solaris */
17869 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
17870 # define HAVE_ISINF 1
17871 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
17872 #endif
17874 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
17875 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
17876 # undef isnan
17877 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
17878 #endif
17880 /* Digital UNIX */
17881 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
17882 # define HAVE_ISINF 1
17883 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
17884 #endif
17886 /* AIX */
17887 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
17888 # define HAVE_ISINF 1
17889 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
17890 #endif
17892 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
17893 # define HAVE_ISINF 1
17894 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
17895 #endif
17897 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
17898 # define HAVE_ISINF 1
17899 # define isinf(a) (fpclassify(a) == FP_INFINITE)
17900 #endif
17902 #if HAVE_MATH_H
17903 #include <math.h>
17904 #endif
17906 #include <stdio.h>
17907 int main(void){
17908 double rrdnan,rrdinf,rrdc,rrdzero;
17909 fpsetmask(0);
17910 /* some math to see if we get a floating point exception */
17911 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
17912 rrdnan=0.0/rrdzero; /* especially here */
17913 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
17914 /* at run time without sig fpe */
17915 rrdc = rrdinf + rrdnan;
17916 rrdc = rrdinf / rrdnan;
17917 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
17918 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
17919 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
17920 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
17921 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
17922 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
17923 return 0;
17924 }
17925 _ACEOF
17926 if ac_fn_c_try_run "$LINENO"; then :
17927 rd_cv_ieee_mask=yes
17928 else
17929 rd_cv_ieee_mask=no
17930 fi
17931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17932 conftest.$ac_objext conftest.beam conftest.$ac_ext
17933 fi
17935 fi
17937 if test x${rd_cv_ieee_mask} = "xyes"; then
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17939 $as_echo "yes" >&6; }
17940 $as_echo "#define MUST_DISABLE_FPMASK 1" >>confdefs.h
17942 PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
17943 else
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17945 $as_echo "no" >&6; }
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
17948 $as_echo_n "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... " >&6; }
17949 if test "${rd_cv_ieee_sigfpe+set}" = set; then :
17950 $as_echo_n "(cached) " >&6
17951 else
17952 if test "$cross_compiling" = yes; then :
17953 :
17954 else
17955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17956 /* end confdefs.h. */
17957 #include <signal.h>
17959 #if HAVE_MATH_H
17960 # include <math.h>
17961 #endif
17963 #if HAVE_FLOAT_H
17964 # include <float.h>
17965 #endif
17967 #if HAVE_IEEEFP_H
17968 # include <ieeefp.h>
17969 #endif
17971 #if HAVE_FP_CLASS_H
17972 # include <fp_class.h>
17973 #endif
17975 /* Solaris */
17976 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
17977 # define HAVE_ISINF 1
17978 # define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
17979 #endif
17981 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad */
17982 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS) && defined(FP_SNAN) && defined(FP_QNAN))
17983 # undef isnan
17984 # define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
17985 #endif
17987 /* Digital UNIX */
17988 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H) && defined(FP_NEG_INF) && defined( FP_POS_INF) )
17989 # define HAVE_ISINF 1
17990 # define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
17991 #endif
17993 /* AIX */
17994 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
17995 # define HAVE_ISINF 1
17996 # define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
17997 #endif
17999 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
18000 # define HAVE_ISINF 1
18001 # define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
18002 #endif
18004 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
18005 # define HAVE_ISINF 1
18006 # define isinf(a) (fpclassify(a) == FP_INFINITE)
18007 #endif
18009 #if HAVE_MATH_H
18010 #include <math.h>
18011 #endif
18013 #include <stdio.h>
18014 int main(void){
18015 double rrdnan,rrdinf,rrdc,rrdzero;
18016 signal(SIGFPE,SIG_IGN);
18017 /* some math to see if we get a floating point exception */
18018 rrdzero=sin(0.0); /* don't let the compiler optimize us away */
18019 rrdnan=0.0/rrdzero; /* especially here */
18020 rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
18021 /* at run time without sig fpe */
18022 rrdc = rrdinf + rrdnan;
18023 rrdc = rrdinf / rrdnan;
18024 if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
18025 if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
18026 if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
18027 if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
18028 if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
18029 if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
18030 return 0;
18031 }
18032 _ACEOF
18033 if ac_fn_c_try_run "$LINENO"; then :
18034 rd_cv_ieee_sigfpe=yes
18035 else
18036 rd_cv_ieee_sigfpe=no
18037 fi
18038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18039 conftest.$ac_objext conftest.beam conftest.$ac_ext
18040 fi
18042 fi
18044 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18046 $as_echo "yes" >&6; }
18047 $as_echo "#define MUST_DISABLE_SIGFPE 1" >>confdefs.h
18049 PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
18050 else
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18052 $as_echo "no" >&6; }
18053 as_fn_error "
18054 Your Compiler does not do propper IEEE math ... Please find out how to
18055 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
18056 Check config.log to see what went wrong ...
18057 " "$LINENO" 5
18058 fi
18061 fi
18064 fi
18067 fi
18070 fi
18073 fi
18076 fi
18079 fi
18082 fi
18085 fi
18089 ac_ext=c
18090 ac_cpp='$CPP $CPPFLAGS'
18091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18099 case $TERM in
18100 # for the most important terminal types we directly know the sequences
18101 xterm|xterm*|vt220|vt220*)
18102 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
18103 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
18104 ;;
18105 vt100|vt100*|cygwin)
18106 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
18107 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
18108 ;;
18109 *)
18110 T_MD=''
18111 T_ME=''
18112 ;;
18113 esac
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18115 $as_echo "" >&6; }
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
18117 $as_echo "${T_MD}Resolve Portability Issues${T_ME}" >&6; }
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msync with MS_ASYNC updates the files mtime" >&5
18122 $as_echo_n "checking if msync with MS_ASYNC updates the files mtime... " >&6; }
18123 if test "${rd_cv_ms_async+set}" = set; then :
18124 $as_echo_n "(cached) " >&6
18125 else
18126 if test "$cross_compiling" = yes; then :
18127 :
18128 else
18129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h. */
18132 #include <fcntl.h>
18133 #include <sys/types.h>
18134 #include <sys/stat.h>
18135 #include <unistd.h>
18136 #include <stdio.h>
18137 #include <sys/mman.h>
18138 #include <stdlib.h>
18139 #include <utime.h>
18140 int main(void){
18141 int fd;
18142 struct stat stbuf;
18143 char *addr;
18144 int res;
18145 char temp[] = "mmaptestXXXXXX";
18146 struct utimbuf newtime;
18148 time_t create_ts;
18149 fd = mkstemp(temp);
18150 if (fd == -1){
18151 perror(temp);
18152 return 1;
18153 }
18154 write(fd,"12345\n", 6);
18155 stat(temp, &stbuf);
18156 create_ts = stbuf.st_mtime;
18157 newtime.actime = 0;
18158 newtime.modtime = 0;
18159 utime(temp,&newtime);
18160 addr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
18161 if (addr == MAP_FAILED) {
18162 perror("mmap");
18163 goto bad_exit;
18164 }
18165 addr[0]='x';
18166 res = msync(addr, 4, MS_ASYNC);
18167 if (res == -1) {
18168 perror("msync");
18169 goto bad_exit;
18170 }
18171 res = close(fd);
18172 if (res == -1) {
18173 perror("close");
18174 goto bad_exit;
18175 }
18176 /* The ASYNC means that we schedule the msync and return immediately.
18177 Since we want to see if the modification time is updated upon
18178 msync(), we have to make sure that our asynchronous request
18179 completes before we stat below. In a real application, the
18180 request would be completed at a random time in the future
18181 but for this test we do not want to wait an arbitrary amount of
18182 time, so force a commit now. */
18183 sync();
18184 stat(temp, &stbuf);
18185 if (create_ts > stbuf.st_mtime){
18186 goto bad_exit;
18187 }
18188 unlink(temp);
18189 return 0;
18190 bad_exit:
18191 unlink(temp);
18192 return 1;
18193 }
18195 _ACEOF
18196 if ac_fn_c_try_run "$LINENO"; then :
18197 rd_cv_ms_async=ok
18198 else
18199 rd_cv_ms_async=broken
18200 fi
18201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18202 conftest.$ac_objext conftest.beam conftest.$ac_ext
18203 fi
18205 fi
18209 if test "${rd_cv_ms_async}" = "ok"; then
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18211 $as_echo "yes" >&6; }
18212 else
18214 cat >>confdefs.h <<_ACEOF
18215 #define HAVE_BROKEN_MS_ASYNC 1
18216 _ACEOF
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18219 $as_echo "no" >&6; }
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: With mmap access, your platform fails to update the files" >&5
18221 $as_echo "$as_me: WARNING: With mmap access, your platform fails to update the files" >&2;}
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&5
18223 $as_echo "$as_me: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&2;}
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: file it opens for rw access." >&5
18225 $as_echo "$as_me: WARNING: file it opens for rw access." >&2;}
18226 sleep 2
18227 fi
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
18234 $as_echo_n "checking for opterr... " >&6; }
18235 if test "${rd_cv_var_int_opterr+set}" = set; then :
18236 $as_echo_n "(cached) " >&6
18237 else
18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239 /* end confdefs.h. */
18240 #include <unistd.h>
18241 int
18242 main ()
18243 {
18244 extern int opterr; opterr = 1;
18245 ;
18246 return 0;
18247 }
18248 _ACEOF
18249 if ac_fn_c_try_link "$LINENO"; then :
18250 rd_cv_var_int_opterr=yes
18251 else
18252 rd_cv_var_int_opterr=no
18253 fi
18254 rm -f core conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18256 fi
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rd_cv_var_int_opterr" >&5
18258 $as_echo "$rd_cv_var_int_opterr" >&6; }
18259 if test x"$rd_cv_var_int_opterr" = x"yes"; then
18261 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
18263 fi
18265 build_getopt=no
18266 RRD_GETOPT_LONG="LIBC_HAS_GETOPT_LONG"
18267 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
18268 if test "x$ac_cv_func_getopt_long" = x""yes; then :
18270 else
18272 RRD_GETOPT_LONG="getopt_long"
18273 build_getopt=yes
18275 fi
18278 if test $build_getopt = yes; then
18279 BUILD_GETOPT_TRUE=
18280 BUILD_GETOPT_FALSE='#'
18281 else
18282 BUILD_GETOPT_TRUE='#'
18283 BUILD_GETOPT_FALSE=
18284 fi
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if realloc can deal with NULL" >&5
18289 $as_echo_n "checking if realloc can deal with NULL... " >&6; }
18290 if test "${rd_cv_null_realloc+set}" = set; then :
18291 $as_echo_n "(cached) " >&6
18292 else
18293 if test "$cross_compiling" = yes; then :
18294 :
18295 else
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h. */
18298 #include <stdlib.h>
18299 int main(void){
18300 char *x = NULL;
18301 x = realloc (x,10);
18302 if (x==NULL) return 1;
18303 return 0;
18304 }
18305 _ACEOF
18306 if ac_fn_c_try_run "$LINENO"; then :
18307 rd_cv_null_realloc=yes
18308 else
18309 rd_cv_null_realloc=nope
18310 fi
18311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18312 conftest.$ac_objext conftest.beam conftest.$ac_ext
18313 fi
18315 fi
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rd_cv_null_realloc" >&5
18317 $as_echo "$rd_cv_null_realloc" >&6; }
18319 if test x"$rd_cv_null_realloc" = xnope; then
18320 $as_echo "#define NO_NULL_REALLOC 1" >>confdefs.h
18322 fi
18324 ac_ext=c
18325 ac_cpp='$CPP $CPPFLAGS'
18326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ctime_r need special care to act posixly correct" >&5
18331 $as_echo_n "checking if ctime_r need special care to act posixly correct... " >&6; }
18332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h. */
18334 #include <time.h>
18335 int
18336 main ()
18337 {
18338 ctime_r(NULL,NULL,0)
18340 ;
18341 return 0;
18342 }
18343 _ACEOF
18344 if ac_fn_c_try_link "$LINENO"; then :
18345 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18348 #include <time.h>
18349 int
18350 main ()
18351 {
18352 ctime_r(NULL,NULL)
18354 ;
18355 return 0;
18356 }
18357 _ACEOF
18358 if ac_fn_c_try_link "$LINENO"; then :
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, this seems to be solaris style" >&5
18360 $as_echo "yes, this seems to be solaris style" >&6; }
18361 else
18362 as_fn_error "Can't figure how to compile ctime_r" "$LINENO" 5
18364 fi
18365 rm -f core conftest.err conftest.$ac_objext \
18366 conftest$ac_exeext conftest.$ac_ext
18368 else
18369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18370 /* end confdefs.h. */
18371 #include <time.h>
18372 int
18373 main ()
18374 {
18375 ctime_r(NULL,NULL)
18377 ;
18378 return 0;
18379 }
18380 _ACEOF
18381 if ac_fn_c_try_link "$LINENO"; then :
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18383 $as_echo "no" >&6; }
18384 else
18385 as_fn_error "Can't figure how to compile ctime_r" "$LINENO" 5
18387 fi
18388 rm -f core conftest.err conftest.$ac_objext \
18389 conftest$ac_exeext conftest.$ac_ext
18392 fi
18393 rm -f core conftest.err conftest.$ac_objext \
18394 conftest$ac_exeext conftest.$ac_ext
18395 ac_ext=c
18396 ac_cpp='$CPP $CPPFLAGS'
18397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18406 if test $enable_pthread != no; then
18409 ac_ext=c
18410 ac_cpp='$CPP $CPPFLAGS'
18411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18415 acx_pthread_ok=no
18417 # We used to check for pthread.h first, but this fails if pthread.h
18418 # requires special compiler flags (e.g. on True64 or Sequent).
18419 # It gets checked for in the link test anyway.
18421 # First of all, check if the user has set any of the PTHREAD_LIBS,
18422 # etcetera environment variables, and if threads linking works using
18423 # them:
18424 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18425 save_CFLAGS="$CFLAGS"
18426 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18427 save_LIBS="$LIBS"
18428 LIBS="$PTHREAD_LIBS $LIBS"
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18430 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h. */
18434 /* Override any GCC internal prototype to avoid an error.
18435 Use char because int might match the return type of a GCC
18436 builtin and then its argument prototype would still apply. */
18437 #ifdef __cplusplus
18438 extern "C"
18439 #endif
18440 char pthread_join ();
18441 int
18442 main ()
18443 {
18444 return pthread_join ();
18445 ;
18446 return 0;
18447 }
18448 _ACEOF
18449 if ac_fn_c_try_link "$LINENO"; then :
18450 acx_pthread_ok=yes
18451 fi
18452 rm -f core conftest.err conftest.$ac_objext \
18453 conftest$ac_exeext conftest.$ac_ext
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18455 $as_echo "$acx_pthread_ok" >&6; }
18456 if test x"$acx_pthread_ok" = xno; then
18457 PTHREAD_LIBS=""
18458 PTHREAD_CFLAGS=""
18459 fi
18460 LIBS="$save_LIBS"
18461 CFLAGS="$save_CFLAGS"
18462 fi
18464 # We must check for the threads library under a number of different
18465 # names; the ordering is very important because some systems
18466 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18467 # libraries is broken (non-POSIX).
18469 # Create a list of thread flags to try. Items starting with a "-" are
18470 # C compiler flags, and other items are library names, except for "none"
18471 # which indicates that we try without any flags at all, and "pthread-config"
18472 # which is a program returning the flags for the Pth emulation library.
18474 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18476 # The ordering *is* (sometimes) important. Some notes on the
18477 # individual items follow:
18479 # pthreads: AIX (must check this before -lpthread)
18480 # none: in case threads are in libc; should be tried before -Kthread and
18481 # other compiler flags to prevent continual compiler warnings
18482 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18483 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18484 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18485 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18486 # -pthreads: Solaris/gcc
18487 # -mthreads: Mingw32/gcc, Lynx/gcc
18488 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18489 # doesn't hurt to check since this sometimes defines pthreads too;
18490 # also defines -D_REENTRANT)
18491 # pthread: Linux, etcetera
18492 # --thread-safe: KAI C++
18493 # pthread-config: use pthread-config program (for GNU Pth library)
18495 case "${host_cpu}-${host_os}" in
18496 *solaris*)
18498 # On Solaris (at least, for some versions), libc contains stubbed
18499 # (non-functional) versions of the pthreads routines, so link-based
18500 # tests will erroneously succeed. (We need to link with -pthread or
18501 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18502 # a function called by this macro, so we could check for that, but
18503 # who knows whether they'll stub that too in a future libc.) So,
18504 # we'll just look for -pthreads and -lpthread first:
18506 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18507 ;;
18508 esac
18510 if test x"$acx_pthread_ok" = xno; then
18511 for flag in $acx_pthread_flags; do
18513 case $flag in
18514 none)
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18516 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
18517 ;;
18519 -*)
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18521 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
18522 PTHREAD_CFLAGS="$flag"
18523 ;;
18525 pthread-config)
18526 # Extract the first word of "pthread-config", so it can be a program name with args.
18527 set dummy pthread-config; ac_word=$2
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18529 $as_echo_n "checking for $ac_word... " >&6; }
18530 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
18531 $as_echo_n "(cached) " >&6
18532 else
18533 if test -n "$acx_pthread_config"; then
18534 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18535 else
18536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18537 for as_dir in $PATH
18538 do
18539 IFS=$as_save_IFS
18540 test -z "$as_dir" && as_dir=.
18541 for ac_exec_ext in '' $ac_executable_extensions; do
18542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18543 ac_cv_prog_acx_pthread_config="yes"
18544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18545 break 2
18546 fi
18547 done
18548 done
18549 IFS=$as_save_IFS
18551 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18552 fi
18553 fi
18554 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18555 if test -n "$acx_pthread_config"; then
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
18557 $as_echo "$acx_pthread_config" >&6; }
18558 else
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18560 $as_echo "no" >&6; }
18561 fi
18564 if test x"$acx_pthread_config" = xno; then continue; fi
18565 PTHREAD_CFLAGS="`pthread-config --cflags`"
18566 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18567 ;;
18569 *)
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18571 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
18572 PTHREAD_LIBS="-l$flag"
18573 ;;
18574 esac
18576 save_LIBS="$LIBS"
18577 save_CFLAGS="$CFLAGS"
18578 LIBS="$PTHREAD_LIBS $LIBS"
18579 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18581 # Check for various functions. We must include pthread.h,
18582 # since some functions may be macros. (On the Sequent, we
18583 # need a special flag -Kthread to make this header compile.)
18584 # We check for pthread_join because it is in -lpthread on IRIX
18585 # while pthread_create is in libc. We check for pthread_attr_init
18586 # due to DEC craziness with -lpthreads. We check for
18587 # pthread_cleanup_push because it is one of the few pthread
18588 # functions on Solaris that doesn't have a non-functional libc stub.
18589 # We try pthread_create on general principles.
18590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18591 /* end confdefs.h. */
18592 #include <pthread.h>
18593 int
18594 main ()
18595 {
18596 pthread_t th; pthread_join(th, 0);
18597 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18598 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18599 ;
18600 return 0;
18601 }
18602 _ACEOF
18603 if ac_fn_c_try_link "$LINENO"; then :
18604 acx_pthread_ok=yes
18605 fi
18606 rm -f core conftest.err conftest.$ac_objext \
18607 conftest$ac_exeext conftest.$ac_ext
18609 LIBS="$save_LIBS"
18610 CFLAGS="$save_CFLAGS"
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18613 $as_echo "$acx_pthread_ok" >&6; }
18614 if test "x$acx_pthread_ok" = xyes; then
18615 break;
18616 fi
18618 PTHREAD_LIBS=""
18619 PTHREAD_CFLAGS=""
18620 done
18621 fi
18623 # Various other checks:
18624 if test "x$acx_pthread_ok" = xyes; then
18625 save_LIBS="$LIBS"
18626 LIBS="$PTHREAD_LIBS $LIBS"
18627 save_CFLAGS="$CFLAGS"
18628 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18630 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18632 $as_echo_n "checking for joinable pthread attribute... " >&6; }
18633 attr_name=unknown
18634 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636 /* end confdefs.h. */
18637 #include <pthread.h>
18638 int
18639 main ()
18640 {
18641 int attr=$attr;
18642 ;
18643 return 0;
18644 }
18645 _ACEOF
18646 if ac_fn_c_try_link "$LINENO"; then :
18647 attr_name=$attr; break
18648 fi
18649 rm -f core conftest.err conftest.$ac_objext \
18650 conftest$ac_exeext conftest.$ac_ext
18651 done
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18653 $as_echo "$attr_name" >&6; }
18654 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18656 cat >>confdefs.h <<_ACEOF
18657 #define PTHREAD_CREATE_JOINABLE $attr_name
18658 _ACEOF
18660 fi
18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18663 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
18664 x_rflag=no
18665 case "${host_cpu}-${host_os}" in
18666 *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
18667 *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
18668 *-linux* | *-k*bsd*-gnu*)
18669 if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
18670 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
18671 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
18672 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
18673 fi;;
18674 esac
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${x_rflag}" >&5
18676 $as_echo "${x_rflag}" >&6; }
18677 if test "x$x_rflag" != xno; then
18678 PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
18679 fi
18681 LIBS="$save_LIBS"
18682 CFLAGS="$save_CFLAGS"
18684 # More AIX lossage: must compile with cc_r
18685 # Extract the first word of "cc_r", so it can be a program name with args.
18686 set dummy cc_r; ac_word=$2
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18688 $as_echo_n "checking for $ac_word... " >&6; }
18689 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
18690 $as_echo_n "(cached) " >&6
18691 else
18692 if test -n "$PTHREAD_CC"; then
18693 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18694 else
18695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18696 for as_dir in $PATH
18697 do
18698 IFS=$as_save_IFS
18699 test -z "$as_dir" && as_dir=.
18700 for ac_exec_ext in '' $ac_executable_extensions; do
18701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18702 ac_cv_prog_PTHREAD_CC="cc_r"
18703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18704 break 2
18705 fi
18706 done
18707 done
18708 IFS=$as_save_IFS
18710 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
18711 fi
18712 fi
18713 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18714 if test -n "$PTHREAD_CC"; then
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18716 $as_echo "$PTHREAD_CC" >&6; }
18717 else
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18719 $as_echo "no" >&6; }
18720 fi
18723 else
18724 PTHREAD_CC="$CC"
18725 fi
18731 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18732 if test x"$acx_pthread_ok" = xyes; then
18734 MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
18735 MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
18737 :
18738 else
18739 acx_pthread_ok=no
18741 fi
18742 ac_ext=c
18743 ac_cpp='$CPP $CPPFLAGS'
18744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18749 fi
18752 if test "x$x_rflag" != "xno"; then
18753 CPPFLAGS="$CPPFLAGS $x_rflag"
18754 fi
18756 if test $enable_pthread != no; then
18757 BUILD_MULTITHREAD_TRUE=
18758 BUILD_MULTITHREAD_FALSE='#'
18759 else
18760 BUILD_MULTITHREAD_TRUE='#'
18761 BUILD_MULTITHREAD_FALSE=
18762 fi
18765 ac_ext=c
18766 ac_cpp='$CPP $CPPFLAGS'
18767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking do we need malloc/malloc.h" >&5
18772 $as_echo_n "checking do we need malloc/malloc.h... " >&6; }
18773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774 /* end confdefs.h. */
18775 #include <stdlib.h>
18776 int
18777 main ()
18778 {
18779 malloc(1)
18781 ;
18782 return 0;
18783 }
18784 _ACEOF
18785 if ac_fn_c_try_link "$LINENO"; then :
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nope, works out of the box" >&5
18787 $as_echo "nope, works out of the box" >&6; }
18788 else
18789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18790 /* end confdefs.h. */
18791 #include <stdlib.h>
18792 #include <malloc/malloc.h>
18793 int
18794 main ()
18795 {
18796 malloc(1)
18798 ;
18799 return 0;
18800 }
18801 _ACEOF
18802 if ac_fn_c_try_link "$LINENO"; then :
18804 $as_echo "#define MUST_HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes we do" >&5
18807 $as_echo "yes we do" >&6; }
18808 else
18809 as_fn_error "Can not figure how to compile malloc" "$LINENO" 5
18811 fi
18812 rm -f core conftest.err conftest.$ac_objext \
18813 conftest$ac_exeext conftest.$ac_ext
18816 fi
18817 rm -f core conftest.err conftest.$ac_objext \
18818 conftest$ac_exeext conftest.$ac_ext
18821 $as_echo "#define TIME_T_IS_LONG /**/" >>confdefs.h
18824 $as_echo "#define TIME_T_IS_LONG_LONG /**/" >>confdefs.h
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the type of time_t" >&5
18827 $as_echo_n "checking the type of time_t... " >&6; }
18828 if test "$cross_compiling" = yes; then :
18829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18831 as_fn_error "cannot run test program while cross compiling
18832 See \`config.log' for more details." "$LINENO" 5; }
18833 else
18834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18835 /* end confdefs.h. */
18836 #include <time.h>
18837 int
18838 main ()
18839 {
18840 if (sizeof(long) != sizeof(time_t)) return 1;
18842 ;
18843 return 0;
18844 }
18845 _ACEOF
18846 if ac_fn_c_try_run "$LINENO"; then :
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: time_t is long" >&5
18848 $as_echo "time_t is long" >&6; }
18849 $as_echo "#define TIME_T_IS_LONG 1" >>confdefs.h
18852 else
18853 if test "$cross_compiling" = yes; then :
18854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18856 as_fn_error "cannot run test program while cross compiling
18857 See \`config.log' for more details." "$LINENO" 5; }
18858 else
18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18861 #include <time.h>
18862 int
18863 main ()
18864 {
18865 if (sizeof(long long) != sizeof(time_t)) return 1;
18867 ;
18868 return 0;
18869 }
18870 _ACEOF
18871 if ac_fn_c_try_run "$LINENO"; then :
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: time_t is long long" >&5
18874 $as_echo "time_t is long long" >&6; }
18875 $as_echo "#define TIME_T_IS_LONG_LONG 1" >>confdefs.h
18878 else
18879 as_fn_error "can not figure type of time_t" "$LINENO" 5
18881 fi
18882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18883 conftest.$ac_objext conftest.beam conftest.$ac_ext
18884 fi
18888 fi
18889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18890 conftest.$ac_objext conftest.beam conftest.$ac_ext
18891 fi
18894 ac_ext=c
18895 ac_cpp='$CPP $CPPFLAGS'
18896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18902 case $TERM in
18903 # for the most important terminal types we directly know the sequences
18904 xterm|xterm*|vt220|vt220*)
18905 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
18906 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
18907 ;;
18908 vt100|vt100*|cygwin)
18909 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
18910 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
18911 ;;
18912 *)
18913 T_MD=''
18914 T_ME=''
18915 ;;
18916 esac
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
18918 $as_echo "" >&6; }
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
18920 $as_echo "${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
18923 # Check whether --enable-libdbi was given.
18924 if test "${enable_libdbi+set}" = set; then :
18925 enableval=$enable_libdbi; have_libdbi=no
18926 else
18928 XXX=$LIBS
18929 LIBS="$LIBS -ldbi -ldl"
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdbi" >&5
18931 $as_echo_n "checking for libdbi... " >&6; }
18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933 /* end confdefs.h. */
18934 #include <dbi/dbi.h>
18935 int
18936 main ()
18937 {
18938 dbi_initialize(NULL)
18940 ;
18941 return 0;
18942 }
18944 _ACEOF
18945 if ac_fn_c_try_link "$LINENO"; then :
18947 $as_echo "#define HAVE_LIBDBI 1" >>confdefs.h
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18950 $as_echo "yes" >&6; }
18951 have_libdbi=yes
18953 else
18954 LIBS=$XXX
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18956 $as_echo "no" >&6; }
18957 have_libdbi=no
18960 fi
18961 rm -f core conftest.err conftest.$ac_objext \
18962 conftest$ac_exeext conftest.$ac_ext
18964 fi
18966 if test $have_libdbi != no; then
18967 BUILD_LIBDBI_TRUE=
18968 BUILD_LIBDBI_FALSE='#'
18969 else
18970 BUILD_LIBDBI_TRUE='#'
18971 BUILD_LIBDBI_FALSE=
18972 fi
18975 if test $enable_rrdcgi != no; then
18976 BUILD_RRDCGI_TRUE=
18977 BUILD_RRDCGI_FALSE='#'
18978 else
18979 BUILD_RRDCGI_TRUE='#'
18980 BUILD_RRDCGI_FALSE=
18981 fi
18985 CORE_LIBS="$LIBS"
18988 ac_ext=c
18989 ac_cpp='$CPP $CPPFLAGS'
18990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18994 EX_CHECK_STATE=NO
18995 ex_check_save_LIBS=${LIBS}
18996 ex_check_save_CPPFLAGS=${CPPFLAGS}
18997 ex_check_save_LDFLAGS=${LDFLAGS}
18998 if test "x""" != "x"; then
18999 CPPFLAGS="$CPPFLAGS -I"""
19000 fi
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_font_options_create in -lcairo" >&5
19002 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
19003 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then :
19004 $as_echo_n "(cached) " >&6
19005 else
19006 ac_check_lib_save_LIBS=$LIBS
19007 LIBS="-lcairo $LIBS"
19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h. */
19011 /* Override any GCC internal prototype to avoid an error.
19012 Use char because int might match the return type of a GCC
19013 builtin and then its argument prototype would still apply. */
19014 #ifdef __cplusplus
19015 extern "C"
19016 #endif
19017 char cairo_font_options_create ();
19018 int
19019 main ()
19020 {
19021 return cairo_font_options_create ();
19022 ;
19023 return 0;
19024 }
19025 _ACEOF
19026 if ac_fn_c_try_link "$LINENO"; then :
19027 ac_cv_lib_cairo_cairo_font_options_create=yes
19028 else
19029 ac_cv_lib_cairo_cairo_font_options_create=no
19030 fi
19031 rm -f core conftest.err conftest.$ac_objext \
19032 conftest$ac_exeext conftest.$ac_ext
19033 LIBS=$ac_check_lib_save_LIBS
19034 fi
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
19036 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
19037 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = x""yes; then :
19039 ac_fn_c_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
19040 if test "x$ac_cv_header_cairo_h" = x""yes; then :
19041 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
19042 fi
19045 fi
19047 if test $EX_CHECK_STATE = NO; then
19048 for ac_prog in pkg-config
19049 do
19050 # Extract the first word of "$ac_prog", so it can be a program name with args.
19051 set dummy $ac_prog; ac_word=$2
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19053 $as_echo_n "checking for $ac_word... " >&6; }
19054 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then :
19055 $as_echo_n "(cached) " >&6
19056 else
19057 if test -n "$PKGCONFIG"; then
19058 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
19059 else
19060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19061 for as_dir in $PATH
19062 do
19063 IFS=$as_save_IFS
19064 test -z "$as_dir" && as_dir=.
19065 for ac_exec_ext in '' $ac_executable_extensions; do
19066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19067 ac_cv_prog_PKGCONFIG="$ac_prog"
19068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19069 break 2
19070 fi
19071 done
19072 done
19073 IFS=$as_save_IFS
19075 fi
19076 fi
19077 PKGCONFIG=$ac_cv_prog_PKGCONFIG
19078 if test -n "$PKGCONFIG"; then
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
19080 $as_echo "$PKGCONFIG" >&6; }
19081 else
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19083 $as_echo "no" >&6; }
19084 fi
19087 test -n "$PKGCONFIG" && break
19088 done
19089 test -n "$PKGCONFIG" || PKGCONFIG="no"
19091 if test "$PKGCONFIG" != "no"; then
19092 if $PKGCONFIG --exists cairo-png; then
19093 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-png`
19094 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-png`
19095 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-png`
19096 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-png`
19097 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_font_options_create
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_font_options_create in -lcairo" >&5
19099 $as_echo_n "checking for cairo_font_options_create in -lcairo... " >&6; }
19100 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then :
19101 $as_echo_n "(cached) " >&6
19102 else
19103 ac_check_lib_save_LIBS=$LIBS
19104 LIBS="-lcairo $LIBS"
19105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19106 /* end confdefs.h. */
19108 /* Override any GCC internal prototype to avoid an error.
19109 Use char because int might match the return type of a GCC
19110 builtin and then its argument prototype would still apply. */
19111 #ifdef __cplusplus
19112 extern "C"
19113 #endif
19114 char cairo_font_options_create ();
19115 int
19116 main ()
19117 {
19118 return cairo_font_options_create ();
19119 ;
19120 return 0;
19121 }
19122 _ACEOF
19123 if ac_fn_c_try_link "$LINENO"; then :
19124 ac_cv_lib_cairo_cairo_font_options_create=yes
19125 else
19126 ac_cv_lib_cairo_cairo_font_options_create=no
19127 fi
19128 rm -f core conftest.err conftest.$ac_objext \
19129 conftest$ac_exeext conftest.$ac_ext
19130 LIBS=$ac_check_lib_save_LIBS
19131 fi
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
19133 $as_echo "$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
19134 if test "x$ac_cv_lib_cairo_cairo_font_options_create" = x""yes; then :
19136 unset ac_cv_header_`echo cairo.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
19137 ac_fn_c_check_header_mongrel "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
19138 if test "x$ac_cv_header_cairo_h" = x""yes; then :
19139 EX_CHECK_STATE=YES
19140 fi
19144 fi
19146 else
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19148 ----------------------------------------------------------------------------
19149 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
19150 You may want to set the PKG_CONFIG_PATH variable to point to its
19151 location.
19152 ----------------------------------------------------------------------------
19153 " >&5
19154 $as_echo "$as_me: WARNING:
19155 ----------------------------------------------------------------------------
19156 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
19157 You may want to set the PKG_CONFIG_PATH variable to point to its
19158 location.
19159 ----------------------------------------------------------------------------
19160 " >&2;}
19161 fi
19162 fi
19163 fi
19165 if test ${EX_CHECK_STATE} = NO; then
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19167 ----------------------------------------------------------------------------
19168 * I could not find a working copy of cairo-png. Check config.log for hints on why
19169 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19170 so that compiler and the linker can find libcairo and its header files. If
19171 you have not installed cairo-png, you can get it either from its original home on
19173 http://cairographics.org/releases/
19175 You can find also find an archive copy on
19177 http://oss.oetiker.ch/rrdtool/pub/libs
19179 The last tested version of cairo-png is 1.4.6.
19181 LIBS=$LIBS
19182 LDFLAGS=$LDFLAGS
19183 CPPFLAGS=$CPPFLAGS
19185 ----------------------------------------------------------------------------
19186 " >&5
19187 $as_echo "$as_me: WARNING:
19188 ----------------------------------------------------------------------------
19189 * I could not find a working copy of cairo-png. Check config.log for hints on why
19190 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19191 so that compiler and the linker can find libcairo and its header files. If
19192 you have not installed cairo-png, you can get it either from its original home on
19194 http://cairographics.org/releases/
19196 You can find also find an archive copy on
19198 http://oss.oetiker.ch/rrdtool/pub/libs
19200 The last tested version of cairo-png is 1.4.6.
19202 LIBS=$LIBS
19203 LDFLAGS=$LDFLAGS
19204 CPPFLAGS=$CPPFLAGS
19206 ----------------------------------------------------------------------------
19207 " >&2;}
19208 EX_CHECK_ALL_ERR=YES
19209 LIBS="${ex_check_save_LIBS}"
19210 CPPFLAGS="${ex_check_save_CPPFLAGS}"
19211 LDFLAGS="${ex_check_save_LDFLAGS}"
19212 fi
19213 ac_ext=c
19214 ac_cpp='$CPP $CPPFLAGS'
19215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19222 ac_ext=c
19223 ac_cpp='$CPP $CPPFLAGS'
19224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19228 EX_CHECK_STATE=NO
19229 ex_check_save_LIBS=${LIBS}
19230 ex_check_save_CPPFLAGS=${CPPFLAGS}
19231 ex_check_save_LDFLAGS=${LDFLAGS}
19232 if test "x""" != "x"; then
19233 CPPFLAGS="$CPPFLAGS -I"""
19234 fi
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_svg_surface_create in -lcairo" >&5
19236 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
19237 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then :
19238 $as_echo_n "(cached) " >&6
19239 else
19240 ac_check_lib_save_LIBS=$LIBS
19241 LIBS="-lcairo $LIBS"
19242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19243 /* end confdefs.h. */
19245 /* Override any GCC internal prototype to avoid an error.
19246 Use char because int might match the return type of a GCC
19247 builtin and then its argument prototype would still apply. */
19248 #ifdef __cplusplus
19249 extern "C"
19250 #endif
19251 char cairo_svg_surface_create ();
19252 int
19253 main ()
19254 {
19255 return cairo_svg_surface_create ();
19256 ;
19257 return 0;
19258 }
19259 _ACEOF
19260 if ac_fn_c_try_link "$LINENO"; then :
19261 ac_cv_lib_cairo_cairo_svg_surface_create=yes
19262 else
19263 ac_cv_lib_cairo_cairo_svg_surface_create=no
19264 fi
19265 rm -f core conftest.err conftest.$ac_objext \
19266 conftest$ac_exeext conftest.$ac_ext
19267 LIBS=$ac_check_lib_save_LIBS
19268 fi
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
19270 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
19271 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = x""yes; then :
19273 ac_fn_c_check_header_mongrel "$LINENO" "cairo-svg.h" "ac_cv_header_cairo_svg_h" "$ac_includes_default"
19274 if test "x$ac_cv_header_cairo_svg_h" = x""yes; then :
19275 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
19276 fi
19279 fi
19281 if test $EX_CHECK_STATE = NO; then
19282 for ac_prog in pkg-config
19283 do
19284 # Extract the first word of "$ac_prog", so it can be a program name with args.
19285 set dummy $ac_prog; ac_word=$2
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19287 $as_echo_n "checking for $ac_word... " >&6; }
19288 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then :
19289 $as_echo_n "(cached) " >&6
19290 else
19291 if test -n "$PKGCONFIG"; then
19292 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
19293 else
19294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19295 for as_dir in $PATH
19296 do
19297 IFS=$as_save_IFS
19298 test -z "$as_dir" && as_dir=.
19299 for ac_exec_ext in '' $ac_executable_extensions; do
19300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19301 ac_cv_prog_PKGCONFIG="$ac_prog"
19302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19303 break 2
19304 fi
19305 done
19306 done
19307 IFS=$as_save_IFS
19309 fi
19310 fi
19311 PKGCONFIG=$ac_cv_prog_PKGCONFIG
19312 if test -n "$PKGCONFIG"; then
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
19314 $as_echo "$PKGCONFIG" >&6; }
19315 else
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19317 $as_echo "no" >&6; }
19318 fi
19321 test -n "$PKGCONFIG" && break
19322 done
19323 test -n "$PKGCONFIG" || PKGCONFIG="no"
19325 if test "$PKGCONFIG" != "no"; then
19326 if $PKGCONFIG --exists cairo-svg; then
19327 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-svg`
19328 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-svg`
19329 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-svg`
19330 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-svg`
19331 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_svg_surface_create
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_svg_surface_create in -lcairo" >&5
19333 $as_echo_n "checking for cairo_svg_surface_create in -lcairo... " >&6; }
19334 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then :
19335 $as_echo_n "(cached) " >&6
19336 else
19337 ac_check_lib_save_LIBS=$LIBS
19338 LIBS="-lcairo $LIBS"
19339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19340 /* end confdefs.h. */
19342 /* Override any GCC internal prototype to avoid an error.
19343 Use char because int might match the return type of a GCC
19344 builtin and then its argument prototype would still apply. */
19345 #ifdef __cplusplus
19346 extern "C"
19347 #endif
19348 char cairo_svg_surface_create ();
19349 int
19350 main ()
19351 {
19352 return cairo_svg_surface_create ();
19353 ;
19354 return 0;
19355 }
19356 _ACEOF
19357 if ac_fn_c_try_link "$LINENO"; then :
19358 ac_cv_lib_cairo_cairo_svg_surface_create=yes
19359 else
19360 ac_cv_lib_cairo_cairo_svg_surface_create=no
19361 fi
19362 rm -f core conftest.err conftest.$ac_objext \
19363 conftest$ac_exeext conftest.$ac_ext
19364 LIBS=$ac_check_lib_save_LIBS
19365 fi
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
19367 $as_echo "$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
19368 if test "x$ac_cv_lib_cairo_cairo_svg_surface_create" = x""yes; then :
19370 unset ac_cv_header_`echo cairo-svg.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
19371 ac_fn_c_check_header_mongrel "$LINENO" "cairo-svg.h" "ac_cv_header_cairo_svg_h" "$ac_includes_default"
19372 if test "x$ac_cv_header_cairo_svg_h" = x""yes; then :
19373 EX_CHECK_STATE=YES
19374 fi
19378 fi
19380 else
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19382 ----------------------------------------------------------------------------
19383 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
19384 You may want to set the PKG_CONFIG_PATH variable to point to its
19385 location.
19386 ----------------------------------------------------------------------------
19387 " >&5
19388 $as_echo "$as_me: WARNING:
19389 ----------------------------------------------------------------------------
19390 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
19391 You may want to set the PKG_CONFIG_PATH variable to point to its
19392 location.
19393 ----------------------------------------------------------------------------
19394 " >&2;}
19395 fi
19396 fi
19397 fi
19399 if test ${EX_CHECK_STATE} = NO; then
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19401 ----------------------------------------------------------------------------
19402 * I could not find a working copy of cairo-svg. Check config.log for hints on why
19403 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19404 so that compiler and the linker can find libcairo and its header files. If
19405 you have not installed cairo-svg, you can get it either from its original home on
19407 http://cairographics.org/releases/
19409 You can find also find an archive copy on
19411 http://oss.oetiker.ch/rrdtool/pub/libs
19413 The last tested version of cairo-svg is 1.4.6.
19415 LIBS=$LIBS
19416 LDFLAGS=$LDFLAGS
19417 CPPFLAGS=$CPPFLAGS
19419 ----------------------------------------------------------------------------
19420 " >&5
19421 $as_echo "$as_me: WARNING:
19422 ----------------------------------------------------------------------------
19423 * I could not find a working copy of cairo-svg. Check config.log for hints on why
19424 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19425 so that compiler and the linker can find libcairo and its header files. If
19426 you have not installed cairo-svg, you can get it either from its original home on
19428 http://cairographics.org/releases/
19430 You can find also find an archive copy on
19432 http://oss.oetiker.ch/rrdtool/pub/libs
19434 The last tested version of cairo-svg is 1.4.6.
19436 LIBS=$LIBS
19437 LDFLAGS=$LDFLAGS
19438 CPPFLAGS=$CPPFLAGS
19440 ----------------------------------------------------------------------------
19441 " >&2;}
19442 EX_CHECK_ALL_ERR=YES
19443 LIBS="${ex_check_save_LIBS}"
19444 CPPFLAGS="${ex_check_save_CPPFLAGS}"
19445 LDFLAGS="${ex_check_save_LDFLAGS}"
19446 fi
19447 ac_ext=c
19448 ac_cpp='$CPP $CPPFLAGS'
19449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19456 ac_ext=c
19457 ac_cpp='$CPP $CPPFLAGS'
19458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19462 EX_CHECK_STATE=NO
19463 ex_check_save_LIBS=${LIBS}
19464 ex_check_save_CPPFLAGS=${CPPFLAGS}
19465 ex_check_save_LDFLAGS=${LDFLAGS}
19466 if test "x""" != "x"; then
19467 CPPFLAGS="$CPPFLAGS -I"""
19468 fi
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_pdf_surface_create in -lcairo" >&5
19470 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
19471 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then :
19472 $as_echo_n "(cached) " >&6
19473 else
19474 ac_check_lib_save_LIBS=$LIBS
19475 LIBS="-lcairo $LIBS"
19476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19477 /* end confdefs.h. */
19479 /* Override any GCC internal prototype to avoid an error.
19480 Use char because int might match the return type of a GCC
19481 builtin and then its argument prototype would still apply. */
19482 #ifdef __cplusplus
19483 extern "C"
19484 #endif
19485 char cairo_pdf_surface_create ();
19486 int
19487 main ()
19488 {
19489 return cairo_pdf_surface_create ();
19490 ;
19491 return 0;
19492 }
19493 _ACEOF
19494 if ac_fn_c_try_link "$LINENO"; then :
19495 ac_cv_lib_cairo_cairo_pdf_surface_create=yes
19496 else
19497 ac_cv_lib_cairo_cairo_pdf_surface_create=no
19498 fi
19499 rm -f core conftest.err conftest.$ac_objext \
19500 conftest$ac_exeext conftest.$ac_ext
19501 LIBS=$ac_check_lib_save_LIBS
19502 fi
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
19504 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
19505 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = x""yes; then :
19507 ac_fn_c_check_header_mongrel "$LINENO" "cairo-pdf.h" "ac_cv_header_cairo_pdf_h" "$ac_includes_default"
19508 if test "x$ac_cv_header_cairo_pdf_h" = x""yes; then :
19509 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
19510 fi
19513 fi
19515 if test $EX_CHECK_STATE = NO; then
19516 for ac_prog in pkg-config
19517 do
19518 # Extract the first word of "$ac_prog", so it can be a program name with args.
19519 set dummy $ac_prog; ac_word=$2
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19521 $as_echo_n "checking for $ac_word... " >&6; }
19522 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then :
19523 $as_echo_n "(cached) " >&6
19524 else
19525 if test -n "$PKGCONFIG"; then
19526 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
19527 else
19528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19529 for as_dir in $PATH
19530 do
19531 IFS=$as_save_IFS
19532 test -z "$as_dir" && as_dir=.
19533 for ac_exec_ext in '' $ac_executable_extensions; do
19534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19535 ac_cv_prog_PKGCONFIG="$ac_prog"
19536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19537 break 2
19538 fi
19539 done
19540 done
19541 IFS=$as_save_IFS
19543 fi
19544 fi
19545 PKGCONFIG=$ac_cv_prog_PKGCONFIG
19546 if test -n "$PKGCONFIG"; then
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
19548 $as_echo "$PKGCONFIG" >&6; }
19549 else
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19551 $as_echo "no" >&6; }
19552 fi
19555 test -n "$PKGCONFIG" && break
19556 done
19557 test -n "$PKGCONFIG" || PKGCONFIG="no"
19559 if test "$PKGCONFIG" != "no"; then
19560 if $PKGCONFIG --exists cairo-pdf; then
19561 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-pdf`
19562 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-pdf`
19563 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-pdf`
19564 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-pdf`
19565 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_pdf_surface_create
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_pdf_surface_create in -lcairo" >&5
19567 $as_echo_n "checking for cairo_pdf_surface_create in -lcairo... " >&6; }
19568 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then :
19569 $as_echo_n "(cached) " >&6
19570 else
19571 ac_check_lib_save_LIBS=$LIBS
19572 LIBS="-lcairo $LIBS"
19573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h. */
19576 /* Override any GCC internal prototype to avoid an error.
19577 Use char because int might match the return type of a GCC
19578 builtin and then its argument prototype would still apply. */
19579 #ifdef __cplusplus
19580 extern "C"
19581 #endif
19582 char cairo_pdf_surface_create ();
19583 int
19584 main ()
19585 {
19586 return cairo_pdf_surface_create ();
19587 ;
19588 return 0;
19589 }
19590 _ACEOF
19591 if ac_fn_c_try_link "$LINENO"; then :
19592 ac_cv_lib_cairo_cairo_pdf_surface_create=yes
19593 else
19594 ac_cv_lib_cairo_cairo_pdf_surface_create=no
19595 fi
19596 rm -f core conftest.err conftest.$ac_objext \
19597 conftest$ac_exeext conftest.$ac_ext
19598 LIBS=$ac_check_lib_save_LIBS
19599 fi
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
19601 $as_echo "$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
19602 if test "x$ac_cv_lib_cairo_cairo_pdf_surface_create" = x""yes; then :
19604 unset ac_cv_header_`echo cairo-pdf.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
19605 ac_fn_c_check_header_mongrel "$LINENO" "cairo-pdf.h" "ac_cv_header_cairo_pdf_h" "$ac_includes_default"
19606 if test "x$ac_cv_header_cairo_pdf_h" = x""yes; then :
19607 EX_CHECK_STATE=YES
19608 fi
19612 fi
19614 else
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19616 ----------------------------------------------------------------------------
19617 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
19618 You may want to set the PKG_CONFIG_PATH variable to point to its
19619 location.
19620 ----------------------------------------------------------------------------
19621 " >&5
19622 $as_echo "$as_me: WARNING:
19623 ----------------------------------------------------------------------------
19624 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
19625 You may want to set the PKG_CONFIG_PATH variable to point to its
19626 location.
19627 ----------------------------------------------------------------------------
19628 " >&2;}
19629 fi
19630 fi
19631 fi
19633 if test ${EX_CHECK_STATE} = NO; then
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19635 ----------------------------------------------------------------------------
19636 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
19637 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19638 so that compiler and the linker can find libcairo and its header files. If
19639 you have not installed cairo-pdf, you can get it either from its original home on
19641 http://cairographics.org/releases/
19643 You can find also find an archive copy on
19645 http://oss.oetiker.ch/rrdtool/pub/libs
19647 The last tested version of cairo-pdf is 1.4.6.
19649 LIBS=$LIBS
19650 LDFLAGS=$LDFLAGS
19651 CPPFLAGS=$CPPFLAGS
19653 ----------------------------------------------------------------------------
19654 " >&5
19655 $as_echo "$as_me: WARNING:
19656 ----------------------------------------------------------------------------
19657 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
19658 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19659 so that compiler and the linker can find libcairo and its header files. If
19660 you have not installed cairo-pdf, you can get it either from its original home on
19662 http://cairographics.org/releases/
19664 You can find also find an archive copy on
19666 http://oss.oetiker.ch/rrdtool/pub/libs
19668 The last tested version of cairo-pdf is 1.4.6.
19670 LIBS=$LIBS
19671 LDFLAGS=$LDFLAGS
19672 CPPFLAGS=$CPPFLAGS
19674 ----------------------------------------------------------------------------
19675 " >&2;}
19676 EX_CHECK_ALL_ERR=YES
19677 LIBS="${ex_check_save_LIBS}"
19678 CPPFLAGS="${ex_check_save_CPPFLAGS}"
19679 LDFLAGS="${ex_check_save_LDFLAGS}"
19680 fi
19681 ac_ext=c
19682 ac_cpp='$CPP $CPPFLAGS'
19683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19690 ac_ext=c
19691 ac_cpp='$CPP $CPPFLAGS'
19692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19696 EX_CHECK_STATE=NO
19697 ex_check_save_LIBS=${LIBS}
19698 ex_check_save_CPPFLAGS=${CPPFLAGS}
19699 ex_check_save_LDFLAGS=${LDFLAGS}
19700 if test "x""" != "x"; then
19701 CPPFLAGS="$CPPFLAGS -I"""
19702 fi
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_ps_surface_create in -lcairo" >&5
19704 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
19705 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then :
19706 $as_echo_n "(cached) " >&6
19707 else
19708 ac_check_lib_save_LIBS=$LIBS
19709 LIBS="-lcairo $LIBS"
19710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h. */
19713 /* Override any GCC internal prototype to avoid an error.
19714 Use char because int might match the return type of a GCC
19715 builtin and then its argument prototype would still apply. */
19716 #ifdef __cplusplus
19717 extern "C"
19718 #endif
19719 char cairo_ps_surface_create ();
19720 int
19721 main ()
19722 {
19723 return cairo_ps_surface_create ();
19724 ;
19725 return 0;
19726 }
19727 _ACEOF
19728 if ac_fn_c_try_link "$LINENO"; then :
19729 ac_cv_lib_cairo_cairo_ps_surface_create=yes
19730 else
19731 ac_cv_lib_cairo_cairo_ps_surface_create=no
19732 fi
19733 rm -f core conftest.err conftest.$ac_objext \
19734 conftest$ac_exeext conftest.$ac_ext
19735 LIBS=$ac_check_lib_save_LIBS
19736 fi
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
19738 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
19739 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = x""yes; then :
19741 ac_fn_c_check_header_mongrel "$LINENO" "cairo-ps.h" "ac_cv_header_cairo_ps_h" "$ac_includes_default"
19742 if test "x$ac_cv_header_cairo_ps_h" = x""yes; then :
19743 LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
19744 fi
19747 fi
19749 if test $EX_CHECK_STATE = NO; then
19750 for ac_prog in pkg-config
19751 do
19752 # Extract the first word of "$ac_prog", so it can be a program name with args.
19753 set dummy $ac_prog; ac_word=$2
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19755 $as_echo_n "checking for $ac_word... " >&6; }
19756 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then :
19757 $as_echo_n "(cached) " >&6
19758 else
19759 if test -n "$PKGCONFIG"; then
19760 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
19761 else
19762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19763 for as_dir in $PATH
19764 do
19765 IFS=$as_save_IFS
19766 test -z "$as_dir" && as_dir=.
19767 for ac_exec_ext in '' $ac_executable_extensions; do
19768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19769 ac_cv_prog_PKGCONFIG="$ac_prog"
19770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19771 break 2
19772 fi
19773 done
19774 done
19775 IFS=$as_save_IFS
19777 fi
19778 fi
19779 PKGCONFIG=$ac_cv_prog_PKGCONFIG
19780 if test -n "$PKGCONFIG"; then
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
19782 $as_echo "$PKGCONFIG" >&6; }
19783 else
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19785 $as_echo "no" >&6; }
19786 fi
19789 test -n "$PKGCONFIG" && break
19790 done
19791 test -n "$PKGCONFIG" || PKGCONFIG="no"
19793 if test "$PKGCONFIG" != "no"; then
19794 if $PKGCONFIG --exists cairo-ps; then
19795 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-ps`
19796 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-ps`
19797 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-ps`
19798 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-ps`
19799 unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_ps_surface_create
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo_ps_surface_create in -lcairo" >&5
19801 $as_echo_n "checking for cairo_ps_surface_create in -lcairo... " >&6; }
19802 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then :
19803 $as_echo_n "(cached) " >&6
19804 else
19805 ac_check_lib_save_LIBS=$LIBS
19806 LIBS="-lcairo $LIBS"
19807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19808 /* end confdefs.h. */
19810 /* Override any GCC internal prototype to avoid an error.
19811 Use char because int might match the return type of a GCC
19812 builtin and then its argument prototype would still apply. */
19813 #ifdef __cplusplus
19814 extern "C"
19815 #endif
19816 char cairo_ps_surface_create ();
19817 int
19818 main ()
19819 {
19820 return cairo_ps_surface_create ();
19821 ;
19822 return 0;
19823 }
19824 _ACEOF
19825 if ac_fn_c_try_link "$LINENO"; then :
19826 ac_cv_lib_cairo_cairo_ps_surface_create=yes
19827 else
19828 ac_cv_lib_cairo_cairo_ps_surface_create=no
19829 fi
19830 rm -f core conftest.err conftest.$ac_objext \
19831 conftest$ac_exeext conftest.$ac_ext
19832 LIBS=$ac_check_lib_save_LIBS
19833 fi
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
19835 $as_echo "$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
19836 if test "x$ac_cv_lib_cairo_cairo_ps_surface_create" = x""yes; then :
19838 unset ac_cv_header_`echo cairo-ps.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
19839 ac_fn_c_check_header_mongrel "$LINENO" "cairo-ps.h" "ac_cv_header_cairo_ps_h" "$ac_includes_default"
19840 if test "x$ac_cv_header_cairo_ps_h" = x""yes; then :
19841 EX_CHECK_STATE=YES
19842 fi
19846 fi
19848 else
19849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19850 ----------------------------------------------------------------------------
19851 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
19852 You may want to set the PKG_CONFIG_PATH variable to point to its
19853 location.
19854 ----------------------------------------------------------------------------
19855 " >&5
19856 $as_echo "$as_me: WARNING:
19857 ----------------------------------------------------------------------------
19858 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
19859 You may want to set the PKG_CONFIG_PATH variable to point to its
19860 location.
19861 ----------------------------------------------------------------------------
19862 " >&2;}
19863 fi
19864 fi
19865 fi
19867 if test ${EX_CHECK_STATE} = NO; then
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19869 ----------------------------------------------------------------------------
19870 * I could not find a working copy of cairo-ps. Check config.log for hints on why
19871 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19872 so that compiler and the linker can find libcairo and its header files. If
19873 you have not installed cairo-ps, you can get it either from its original home on
19875 http://cairographics.org/releases/
19877 You can find also find an archive copy on
19879 http://oss.oetiker.ch/rrdtool/pub/libs
19881 The last tested version of cairo-ps is 1.4.6.
19883 LIBS=$LIBS
19884 LDFLAGS=$LDFLAGS
19885 CPPFLAGS=$CPPFLAGS
19887 ----------------------------------------------------------------------------
19888 " >&5
19889 $as_echo "$as_me: WARNING:
19890 ----------------------------------------------------------------------------
19891 * I could not find a working copy of cairo-ps. Check config.log for hints on why
19892 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
19893 so that compiler and the linker can find libcairo and its header files. If
19894 you have not installed cairo-ps, you can get it either from its original home on
19896 http://cairographics.org/releases/
19898 You can find also find an archive copy on
19900 http://oss.oetiker.ch/rrdtool/pub/libs
19902 The last tested version of cairo-ps is 1.4.6.
19904 LIBS=$LIBS
19905 LDFLAGS=$LDFLAGS
19906 CPPFLAGS=$CPPFLAGS
19908 ----------------------------------------------------------------------------
19909 " >&2;}
19910 EX_CHECK_ALL_ERR=YES
19911 LIBS="${ex_check_save_LIBS}"
19912 CPPFLAGS="${ex_check_save_CPPFLAGS}"
19913 LDFLAGS="${ex_check_save_LDFLAGS}"
19914 fi
19915 ac_ext=c
19916 ac_cpp='$CPP $CPPFLAGS'
19917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19924 ac_ext=c
19925 ac_cpp='$CPP $CPPFLAGS'
19926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19930 EX_CHECK_STATE=NO
19931 ex_check_save_LIBS=${LIBS}
19932 ex_check_save_CPPFLAGS=${CPPFLAGS}
19933 ex_check_save_LDFLAGS=${LDFLAGS}
19934 if test "x""" != "x"; then
19935 CPPFLAGS="$CPPFLAGS -I"""
19936 fi
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib_check_version in -lglib-2.0" >&5
19938 $as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
19939 if test "${ac_cv_lib_glib_2_0_glib_check_version+set}" = set; then :
19940 $as_echo_n "(cached) " >&6
19941 else
19942 ac_check_lib_save_LIBS=$LIBS
19943 LIBS="-lglib-2.0 $LIBS"
19944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h. */
19947 /* Override any GCC internal prototype to avoid an error.
19948 Use char because int might match the return type of a GCC
19949 builtin and then its argument prototype would still apply. */
19950 #ifdef __cplusplus
19951 extern "C"
19952 #endif
19953 char glib_check_version ();
19954 int
19955 main ()
19956 {
19957 return glib_check_version ();
19958 ;
19959 return 0;
19960 }
19961 _ACEOF
19962 if ac_fn_c_try_link "$LINENO"; then :
19963 ac_cv_lib_glib_2_0_glib_check_version=yes
19964 else
19965 ac_cv_lib_glib_2_0_glib_check_version=no
19966 fi
19967 rm -f core conftest.err conftest.$ac_objext \
19968 conftest$ac_exeext conftest.$ac_ext
19969 LIBS=$ac_check_lib_save_LIBS
19970 fi
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
19972 $as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
19973 if test "x$ac_cv_lib_glib_2_0_glib_check_version" = x""yes; then :
19975 ac_fn_c_check_header_mongrel "$LINENO" "glib.h" "ac_cv_header_glib_h" "$ac_includes_default"
19976 if test "x$ac_cv_header_glib_h" = x""yes; then :
19977 LIBS="-lglib-2.0 ${LIBS}";EX_CHECK_STATE=YES
19978 fi
19981 fi
19983 if test $EX_CHECK_STATE = NO; then
19984 for ac_prog in pkg-config
19985 do
19986 # Extract the first word of "$ac_prog", so it can be a program name with args.
19987 set dummy $ac_prog; ac_word=$2
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19989 $as_echo_n "checking for $ac_word... " >&6; }
19990 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then :
19991 $as_echo_n "(cached) " >&6
19992 else
19993 if test -n "$PKGCONFIG"; then
19994 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
19995 else
19996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19997 for as_dir in $PATH
19998 do
19999 IFS=$as_save_IFS
20000 test -z "$as_dir" && as_dir=.
20001 for ac_exec_ext in '' $ac_executable_extensions; do
20002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20003 ac_cv_prog_PKGCONFIG="$ac_prog"
20004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20005 break 2
20006 fi
20007 done
20008 done
20009 IFS=$as_save_IFS
20011 fi
20012 fi
20013 PKGCONFIG=$ac_cv_prog_PKGCONFIG
20014 if test -n "$PKGCONFIG"; then
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20016 $as_echo "$PKGCONFIG" >&6; }
20017 else
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20019 $as_echo "no" >&6; }
20020 fi
20023 test -n "$PKGCONFIG" && break
20024 done
20025 test -n "$PKGCONFIG" || PKGCONFIG="no"
20027 if test "$PKGCONFIG" != "no"; then
20028 if $PKGCONFIG --exists glib-2.0; then
20029 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags glib-2.0`
20030 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L glib-2.0`
20031 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other glib-2.0`
20032 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l glib-2.0`
20033 unset ac_cv_lib_`echo glib-2.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_glib_check_version
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib_check_version in -lglib-2.0" >&5
20035 $as_echo_n "checking for glib_check_version in -lglib-2.0... " >&6; }
20036 if test "${ac_cv_lib_glib_2_0_glib_check_version+set}" = set; then :
20037 $as_echo_n "(cached) " >&6
20038 else
20039 ac_check_lib_save_LIBS=$LIBS
20040 LIBS="-lglib-2.0 $LIBS"
20041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20042 /* end confdefs.h. */
20044 /* Override any GCC internal prototype to avoid an error.
20045 Use char because int might match the return type of a GCC
20046 builtin and then its argument prototype would still apply. */
20047 #ifdef __cplusplus
20048 extern "C"
20049 #endif
20050 char glib_check_version ();
20051 int
20052 main ()
20053 {
20054 return glib_check_version ();
20055 ;
20056 return 0;
20057 }
20058 _ACEOF
20059 if ac_fn_c_try_link "$LINENO"; then :
20060 ac_cv_lib_glib_2_0_glib_check_version=yes
20061 else
20062 ac_cv_lib_glib_2_0_glib_check_version=no
20063 fi
20064 rm -f core conftest.err conftest.$ac_objext \
20065 conftest$ac_exeext conftest.$ac_ext
20066 LIBS=$ac_check_lib_save_LIBS
20067 fi
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glib_2_0_glib_check_version" >&5
20069 $as_echo "$ac_cv_lib_glib_2_0_glib_check_version" >&6; }
20070 if test "x$ac_cv_lib_glib_2_0_glib_check_version" = x""yes; then :
20072 unset ac_cv_header_`echo glib.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
20073 ac_fn_c_check_header_mongrel "$LINENO" "glib.h" "ac_cv_header_glib_h" "$ac_includes_default"
20074 if test "x$ac_cv_header_glib_h" = x""yes; then :
20075 EX_CHECK_STATE=YES
20076 fi
20080 fi
20082 else
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20084 ----------------------------------------------------------------------------
20085 * I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
20086 You may want to set the PKG_CONFIG_PATH variable to point to its
20087 location.
20088 ----------------------------------------------------------------------------
20089 " >&5
20090 $as_echo "$as_me: WARNING:
20091 ----------------------------------------------------------------------------
20092 * I found a copy of pkgconfig, but there is no glib-2.0.pc file around.
20093 You may want to set the PKG_CONFIG_PATH variable to point to its
20094 location.
20095 ----------------------------------------------------------------------------
20096 " >&2;}
20097 fi
20098 fi
20099 fi
20101 if test ${EX_CHECK_STATE} = NO; then
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20103 ----------------------------------------------------------------------------
20104 * I could not find a working copy of glib-2.0. Check config.log for hints on why
20105 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
20106 so that compiler and the linker can find libglib-2.0 and its header files. If
20107 you have not installed glib-2.0, you can get it either from its original home on
20109 ftp://ftp.gtk.org/pub/glib/2.12/
20111 You can find also find an archive copy on
20113 http://oss.oetiker.ch/rrdtool/pub/libs
20115 The last tested version of glib-2.0 is 2.12.12.
20117 LIBS=$LIBS
20118 LDFLAGS=$LDFLAGS
20119 CPPFLAGS=$CPPFLAGS
20121 ----------------------------------------------------------------------------
20122 " >&5
20123 $as_echo "$as_me: WARNING:
20124 ----------------------------------------------------------------------------
20125 * I could not find a working copy of glib-2.0. Check config.log for hints on why
20126 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
20127 so that compiler and the linker can find libglib-2.0 and its header files. If
20128 you have not installed glib-2.0, you can get it either from its original home on
20130 ftp://ftp.gtk.org/pub/glib/2.12/
20132 You can find also find an archive copy on
20134 http://oss.oetiker.ch/rrdtool/pub/libs
20136 The last tested version of glib-2.0 is 2.12.12.
20138 LIBS=$LIBS
20139 LDFLAGS=$LDFLAGS
20140 CPPFLAGS=$CPPFLAGS
20142 ----------------------------------------------------------------------------
20143 " >&2;}
20144 EX_CHECK_ALL_ERR=YES
20145 LIBS="${ex_check_save_LIBS}"
20146 CPPFLAGS="${ex_check_save_CPPFLAGS}"
20147 LDFLAGS="${ex_check_save_LDFLAGS}"
20148 fi
20149 ac_ext=c
20150 ac_cpp='$CPP $CPPFLAGS'
20151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20158 ac_ext=c
20159 ac_cpp='$CPP $CPPFLAGS'
20160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20164 EX_CHECK_STATE=NO
20165 ex_check_save_LIBS=${LIBS}
20166 ex_check_save_CPPFLAGS=${CPPFLAGS}
20167 ex_check_save_LDFLAGS=${LDFLAGS}
20168 if test "x""" != "x"; then
20169 CPPFLAGS="$CPPFLAGS -I"""
20170 fi
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
20172 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpango-1.0... " >&6; }
20173 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then :
20174 $as_echo_n "(cached) " >&6
20175 else
20176 ac_check_lib_save_LIBS=$LIBS
20177 LIBS="-lpango-1.0 $LIBS"
20178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20179 /* end confdefs.h. */
20181 /* Override any GCC internal prototype to avoid an error.
20182 Use char because int might match the return type of a GCC
20183 builtin and then its argument prototype would still apply. */
20184 #ifdef __cplusplus
20185 extern "C"
20186 #endif
20187 char pango_cairo_context_set_font_options ();
20188 int
20189 main ()
20190 {
20191 return pango_cairo_context_set_font_options ();
20192 ;
20193 return 0;
20194 }
20195 _ACEOF
20196 if ac_fn_c_try_link "$LINENO"; then :
20197 ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
20198 else
20199 ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
20200 fi
20201 rm -f core conftest.err conftest.$ac_objext \
20202 conftest$ac_exeext conftest.$ac_ext
20203 LIBS=$ac_check_lib_save_LIBS
20204 fi
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
20206 $as_echo "$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
20207 if test "x$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" = x""yes; then :
20209 ac_fn_c_check_header_mongrel "$LINENO" "pango/pango.h" "ac_cv_header_pango_pango_h" "$ac_includes_default"
20210 if test "x$ac_cv_header_pango_pango_h" = x""yes; then :
20211 LIBS="-lpango-1.0 ${LIBS}";EX_CHECK_STATE=YES
20212 fi
20215 fi
20217 if test $EX_CHECK_STATE = NO; then
20218 for ac_prog in pkg-config
20219 do
20220 # Extract the first word of "$ac_prog", so it can be a program name with args.
20221 set dummy $ac_prog; ac_word=$2
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20223 $as_echo_n "checking for $ac_word... " >&6; }
20224 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then :
20225 $as_echo_n "(cached) " >&6
20226 else
20227 if test -n "$PKGCONFIG"; then
20228 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
20229 else
20230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20231 for as_dir in $PATH
20232 do
20233 IFS=$as_save_IFS
20234 test -z "$as_dir" && as_dir=.
20235 for ac_exec_ext in '' $ac_executable_extensions; do
20236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20237 ac_cv_prog_PKGCONFIG="$ac_prog"
20238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20239 break 2
20240 fi
20241 done
20242 done
20243 IFS=$as_save_IFS
20245 fi
20246 fi
20247 PKGCONFIG=$ac_cv_prog_PKGCONFIG
20248 if test -n "$PKGCONFIG"; then
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20250 $as_echo "$PKGCONFIG" >&6; }
20251 else
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20253 $as_echo "no" >&6; }
20254 fi
20257 test -n "$PKGCONFIG" && break
20258 done
20259 test -n "$PKGCONFIG" || PKGCONFIG="no"
20261 if test "$PKGCONFIG" != "no"; then
20262 if $PKGCONFIG --exists pangocairo; then
20263 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags pangocairo`
20264 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pangocairo`
20265 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pangocairo`
20266 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pangocairo`
20267 unset ac_cv_lib_`echo pango-1.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
20269 $as_echo_n "checking for pango_cairo_context_set_font_options in -lpango-1.0... " >&6; }
20270 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then :
20271 $as_echo_n "(cached) " >&6
20272 else
20273 ac_check_lib_save_LIBS=$LIBS
20274 LIBS="-lpango-1.0 $LIBS"
20275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20276 /* end confdefs.h. */
20278 /* Override any GCC internal prototype to avoid an error.
20279 Use char because int might match the return type of a GCC
20280 builtin and then its argument prototype would still apply. */
20281 #ifdef __cplusplus
20282 extern "C"
20283 #endif
20284 char pango_cairo_context_set_font_options ();
20285 int
20286 main ()
20287 {
20288 return pango_cairo_context_set_font_options ();
20289 ;
20290 return 0;
20291 }
20292 _ACEOF
20293 if ac_fn_c_try_link "$LINENO"; then :
20294 ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
20295 else
20296 ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
20297 fi
20298 rm -f core conftest.err conftest.$ac_objext \
20299 conftest$ac_exeext conftest.$ac_ext
20300 LIBS=$ac_check_lib_save_LIBS
20301 fi
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
20303 $as_echo "$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
20304 if test "x$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" = x""yes; then :
20306 unset ac_cv_header_`echo pango/pango.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
20307 ac_fn_c_check_header_mongrel "$LINENO" "pango/pango.h" "ac_cv_header_pango_pango_h" "$ac_includes_default"
20308 if test "x$ac_cv_header_pango_pango_h" = x""yes; then :
20309 EX_CHECK_STATE=YES
20310 fi
20314 fi
20316 else
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20318 ----------------------------------------------------------------------------
20319 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
20320 You may want to set the PKG_CONFIG_PATH variable to point to its
20321 location.
20322 ----------------------------------------------------------------------------
20323 " >&5
20324 $as_echo "$as_me: WARNING:
20325 ----------------------------------------------------------------------------
20326 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
20327 You may want to set the PKG_CONFIG_PATH variable to point to its
20328 location.
20329 ----------------------------------------------------------------------------
20330 " >&2;}
20331 fi
20332 fi
20333 fi
20335 if test ${EX_CHECK_STATE} = NO; then
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20337 ----------------------------------------------------------------------------
20338 * I could not find a working copy of pangocairo. Check config.log for hints on why
20339 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
20340 so that compiler and the linker can find libpango-1.0 and its header files. If
20341 you have not installed pangocairo, you can get it either from its original home on
20343 http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
20345 You can find also find an archive copy on
20347 http://oss.oetiker.ch/rrdtool/pub/libs
20349 The last tested version of pangocairo is 1.17.
20351 LIBS=$LIBS
20352 LDFLAGS=$LDFLAGS
20353 CPPFLAGS=$CPPFLAGS
20355 ----------------------------------------------------------------------------
20356 " >&5
20357 $as_echo "$as_me: WARNING:
20358 ----------------------------------------------------------------------------
20359 * I could not find a working copy of pangocairo. Check config.log for hints on why
20360 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
20361 so that compiler and the linker can find libpango-1.0 and its header files. If
20362 you have not installed pangocairo, you can get it either from its original home on
20364 http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
20366 You can find also find an archive copy on
20368 http://oss.oetiker.ch/rrdtool/pub/libs
20370 The last tested version of pangocairo is 1.17.
20372 LIBS=$LIBS
20373 LDFLAGS=$LDFLAGS
20374 CPPFLAGS=$CPPFLAGS
20376 ----------------------------------------------------------------------------
20377 " >&2;}
20378 EX_CHECK_ALL_ERR=YES
20379 LIBS="${ex_check_save_LIBS}"
20380 CPPFLAGS="${ex_check_save_CPPFLAGS}"
20381 LDFLAGS="${ex_check_save_LDFLAGS}"
20382 fi
20383 ac_ext=c
20384 ac_cpp='$CPP $CPPFLAGS'
20385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20392 ac_ext=c
20393 ac_cpp='$CPP $CPPFLAGS'
20394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20398 EX_CHECK_STATE=NO
20399 ex_check_save_LIBS=${LIBS}
20400 ex_check_save_CPPFLAGS=${CPPFLAGS}
20401 ex_check_save_LDFLAGS=${LDFLAGS}
20402 if test "x/usr/include/libxml2" != "x"; then
20403 CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
20404 fi
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
20406 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
20407 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then :
20408 $as_echo_n "(cached) " >&6
20409 else
20410 ac_check_lib_save_LIBS=$LIBS
20411 LIBS="-lxml2 $LIBS"
20412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20413 /* end confdefs.h. */
20415 /* Override any GCC internal prototype to avoid an error.
20416 Use char because int might match the return type of a GCC
20417 builtin and then its argument prototype would still apply. */
20418 #ifdef __cplusplus
20419 extern "C"
20420 #endif
20421 char xmlParseFile ();
20422 int
20423 main ()
20424 {
20425 return xmlParseFile ();
20426 ;
20427 return 0;
20428 }
20429 _ACEOF
20430 if ac_fn_c_try_link "$LINENO"; then :
20431 ac_cv_lib_xml2_xmlParseFile=yes
20432 else
20433 ac_cv_lib_xml2_xmlParseFile=no
20434 fi
20435 rm -f core conftest.err conftest.$ac_objext \
20436 conftest$ac_exeext conftest.$ac_ext
20437 LIBS=$ac_check_lib_save_LIBS
20438 fi
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
20440 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
20441 if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then :
20443 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
20444 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
20445 LIBS="-lxml2 ${LIBS}";EX_CHECK_STATE=YES
20446 fi
20449 fi
20451 if test $EX_CHECK_STATE = NO; then
20452 for ac_prog in pkg-config
20453 do
20454 # Extract the first word of "$ac_prog", so it can be a program name with args.
20455 set dummy $ac_prog; ac_word=$2
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20457 $as_echo_n "checking for $ac_word... " >&6; }
20458 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then :
20459 $as_echo_n "(cached) " >&6
20460 else
20461 if test -n "$PKGCONFIG"; then
20462 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
20463 else
20464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20465 for as_dir in $PATH
20466 do
20467 IFS=$as_save_IFS
20468 test -z "$as_dir" && as_dir=.
20469 for ac_exec_ext in '' $ac_executable_extensions; do
20470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20471 ac_cv_prog_PKGCONFIG="$ac_prog"
20472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20473 break 2
20474 fi
20475 done
20476 done
20477 IFS=$as_save_IFS
20479 fi
20480 fi
20481 PKGCONFIG=$ac_cv_prog_PKGCONFIG
20482 if test -n "$PKGCONFIG"; then
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20484 $as_echo "$PKGCONFIG" >&6; }
20485 else
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20487 $as_echo "no" >&6; }
20488 fi
20491 test -n "$PKGCONFIG" && break
20492 done
20493 test -n "$PKGCONFIG" || PKGCONFIG="no"
20495 if test "$PKGCONFIG" != "no"; then
20496 if $PKGCONFIG --exists libxml-2.0; then
20497 CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libxml-2.0`
20498 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libxml-2.0`
20499 LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libxml-2.0`
20500 LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libxml-2.0`
20501 unset ac_cv_lib_`echo xml2 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_xmlParseFile
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
20503 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
20504 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then :
20505 $as_echo_n "(cached) " >&6
20506 else
20507 ac_check_lib_save_LIBS=$LIBS
20508 LIBS="-lxml2 $LIBS"
20509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20510 /* end confdefs.h. */
20512 /* Override any GCC internal prototype to avoid an error.
20513 Use char because int might match the return type of a GCC
20514 builtin and then its argument prototype would still apply. */
20515 #ifdef __cplusplus
20516 extern "C"
20517 #endif
20518 char xmlParseFile ();
20519 int
20520 main ()
20521 {
20522 return xmlParseFile ();
20523 ;
20524 return 0;
20525 }
20526 _ACEOF
20527 if ac_fn_c_try_link "$LINENO"; then :
20528 ac_cv_lib_xml2_xmlParseFile=yes
20529 else
20530 ac_cv_lib_xml2_xmlParseFile=no
20531 fi
20532 rm -f core conftest.err conftest.$ac_objext \
20533 conftest$ac_exeext conftest.$ac_ext
20534 LIBS=$ac_check_lib_save_LIBS
20535 fi
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
20537 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
20538 if test "x$ac_cv_lib_xml2_xmlParseFile" = x""yes; then :
20540 unset ac_cv_header_`echo libxml/parser.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
20541 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
20542 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
20543 EX_CHECK_STATE=YES
20544 fi
20548 fi
20550 else
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20552 ----------------------------------------------------------------------------
20553 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
20554 You may want to set the PKG_CONFIG_PATH variable to point to its
20555 location.
20556 ----------------------------------------------------------------------------
20557 " >&5
20558 $as_echo "$as_me: WARNING:
20559 ----------------------------------------------------------------------------
20560 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
20561 You may want to set the PKG_CONFIG_PATH variable to point to its
20562 location.
20563 ----------------------------------------------------------------------------
20564 " >&2;}
20565 fi
20566 fi
20567 fi
20569 if test ${EX_CHECK_STATE} = NO; then
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20571 ----------------------------------------------------------------------------
20572 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
20573 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
20574 so that compiler and the linker can find libxml2 and its header files. If
20575 you have not installed libxml-2.0, you can get it either from its original home on
20577 http://xmlsoft.org/downloads.html
20579 You can find also find an archive copy on
20581 http://oss.oetiker.ch/rrdtool/pub/libs
20583 The last tested version of libxml-2.0 is 2.6.31.
20585 LIBS=$LIBS
20586 LDFLAGS=$LDFLAGS
20587 CPPFLAGS=$CPPFLAGS
20589 ----------------------------------------------------------------------------
20590 " >&5
20591 $as_echo "$as_me: WARNING:
20592 ----------------------------------------------------------------------------
20593 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
20594 this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
20595 so that compiler and the linker can find libxml2 and its header files. If
20596 you have not installed libxml-2.0, you can get it either from its original home on
20598 http://xmlsoft.org/downloads.html
20600 You can find also find an archive copy on
20602 http://oss.oetiker.ch/rrdtool/pub/libs
20604 The last tested version of libxml-2.0 is 2.6.31.
20606 LIBS=$LIBS
20607 LDFLAGS=$LDFLAGS
20608 CPPFLAGS=$CPPFLAGS
20610 ----------------------------------------------------------------------------
20611 " >&2;}
20612 EX_CHECK_ALL_ERR=YES
20613 LIBS="${ex_check_save_LIBS}"
20614 CPPFLAGS="${ex_check_save_CPPFLAGS}"
20615 LDFLAGS="${ex_check_save_LDFLAGS}"
20616 fi
20617 ac_ext=c
20618 ac_cpp='$CPP $CPPFLAGS'
20619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20626 if test "$EX_CHECK_ALL_ERR" = "YES"; then
20627 as_fn_error "Please fix the library issues listed above and try again." "$LINENO" 5
20628 fi
20630 ALL_LIBS="$LIBS"
20631 LIBS=
20637 case $TERM in
20638 # for the most important terminal types we directly know the sequences
20639 xterm|xterm*|vt220|vt220*)
20640 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
20641 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
20642 ;;
20643 vt100|vt100*|cygwin)
20644 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
20645 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
20646 ;;
20647 *)
20648 T_MD=''
20649 T_ME=''
20650 ;;
20651 esac
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
20653 $as_echo "" >&6; }
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
20655 $as_echo "${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
20658 PATH=$PATH:/usr/perl5/bin
20659 export PATH
20660 # Extract the first word of "perl", so it can be a program name with args.
20661 set dummy perl; ac_word=$2
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20663 $as_echo_n "checking for $ac_word... " >&6; }
20664 if test "${ac_cv_path_PERL+set}" = set; then :
20665 $as_echo_n "(cached) " >&6
20666 else
20667 case $PERL in
20668 [\\/]* | ?:[\\/]*)
20669 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20670 ;;
20671 *)
20672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20673 for as_dir in $PATH
20674 do
20675 IFS=$as_save_IFS
20676 test -z "$as_dir" && as_dir=.
20677 for ac_exec_ext in '' $ac_executable_extensions; do
20678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20679 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20681 break 2
20682 fi
20683 done
20684 done
20685 IFS=$as_save_IFS
20687 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
20688 ;;
20689 esac
20690 fi
20691 PERL=$ac_cv_path_PERL
20692 if test -n "$PERL"; then
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20694 $as_echo "$PERL" >&6; }
20695 else
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20697 $as_echo "no" >&6; }
20698 fi
20701 # Extract the first word of "pod2man", so it can be a program name with args.
20702 set dummy pod2man; ac_word=$2
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20704 $as_echo_n "checking for $ac_word... " >&6; }
20705 if test "${ac_cv_path_POD2MAN+set}" = set; then :
20706 $as_echo_n "(cached) " >&6
20707 else
20708 case $POD2MAN in
20709 [\\/]* | ?:[\\/]*)
20710 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
20711 ;;
20712 *)
20713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20714 for as_dir in $PATH
20715 do
20716 IFS=$as_save_IFS
20717 test -z "$as_dir" && as_dir=.
20718 for ac_exec_ext in '' $ac_executable_extensions; do
20719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20720 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
20721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20722 break 2
20723 fi
20724 done
20725 done
20726 IFS=$as_save_IFS
20728 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
20729 ;;
20730 esac
20731 fi
20732 POD2MAN=$ac_cv_path_POD2MAN
20733 if test -n "$POD2MAN"; then
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
20735 $as_echo "$POD2MAN" >&6; }
20736 else
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20738 $as_echo "no" >&6; }
20739 fi
20742 # Extract the first word of "pod2html", so it can be a program name with args.
20743 set dummy pod2html; ac_word=$2
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20745 $as_echo_n "checking for $ac_word... " >&6; }
20746 if test "${ac_cv_path_POD2HTML+set}" = set; then :
20747 $as_echo_n "(cached) " >&6
20748 else
20749 case $POD2HTML in
20750 [\\/]* | ?:[\\/]*)
20751 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
20752 ;;
20753 *)
20754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20755 for as_dir in $PATH
20756 do
20757 IFS=$as_save_IFS
20758 test -z "$as_dir" && as_dir=.
20759 for ac_exec_ext in '' $ac_executable_extensions; do
20760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20761 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
20762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20763 break 2
20764 fi
20765 done
20766 done
20767 IFS=$as_save_IFS
20769 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
20770 ;;
20771 esac
20772 fi
20773 POD2HTML=$ac_cv_path_POD2HTML
20774 if test -n "$POD2HTML"; then
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5
20776 $as_echo "$POD2HTML" >&6; }
20777 else
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20779 $as_echo "no" >&6; }
20780 fi
20785 # Check whether --enable-perl was given.
20786 if test "${enable_perl+set}" = set; then :
20787 enableval=$enable_perl;
20788 else
20789 enable_perl=yes
20790 fi
20799 if test "x$PERL" = "xno" -o x$enable_perl = xno; then
20800 COMP_PERL=
20801 else
20802 COMP_PERL="perl_piped perl_shared"
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the perl version you are running" >&5
20804 $as_echo_n "checking for the perl version you are running... " >&6; }
20805 PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5
20807 $as_echo "$PERL_VERSION" >&6; }
20808 if test -z "$PERLCC"; then
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C compiler perl wants to use to build its modules" >&5
20810 $as_echo_n "checking for the C compiler perl wants to use to build its modules... " >&6; }
20811 perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perlcc" >&5
20813 $as_echo "$perlcc" >&6; }
20814 if test ! -x "$perlcc"; then
20815 # Extract the first word of "${perlcc}", so it can be a program name with args.
20816 set dummy ${perlcc}; ac_word=$2
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20818 $as_echo_n "checking for $ac_word... " >&6; }
20819 if test "${ac_cv_path_PERL_CC+set}" = set; then :
20820 $as_echo_n "(cached) " >&6
20821 else
20822 case $PERL_CC in
20823 [\\/]* | ?:[\\/]*)
20824 ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
20825 ;;
20826 *)
20827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20828 for as_dir in $PATH
20829 do
20830 IFS=$as_save_IFS
20831 test -z "$as_dir" && as_dir=.
20832 for ac_exec_ext in '' $ac_executable_extensions; do
20833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20834 ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
20835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20836 break 2
20837 fi
20838 done
20839 done
20840 IFS=$as_save_IFS
20842 test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
20843 ;;
20844 esac
20845 fi
20846 PERL_CC=$ac_cv_path_PERL_CC
20847 if test -n "$PERL_CC"; then
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_CC" >&5
20849 $as_echo "$PERL_CC" >&6; }
20850 else
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20852 $as_echo "no" >&6; }
20853 fi
20856 if test "$PERL_CC" = "no"; then
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20858 I would not find the Compiler ($perlcc) that was originally used to compile
20859 your perl binary. You should either make sure that this compiler is
20860 available on your system, pick an other compiler and set PERLCC
20861 appropriately, or use a different perl setup that was compiled locally.
20863 I will disable the compilation of the RRDs perl module for now.
20864 " >&5
20865 $as_echo "$as_me: WARNING:
20866 I would not find the Compiler ($perlcc) that was originally used to compile
20867 your perl binary. You should either make sure that this compiler is
20868 available on your system, pick an other compiler and set PERLCC
20869 appropriately, or use a different perl setup that was compiled locally.
20871 I will disable the compilation of the RRDs perl module for now.
20872 " >&2;}
20873 COMP_PERL="perl_piped"
20874 fi
20875 fi
20876 fi
20877 fi
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl Modules to build" >&5
20880 $as_echo_n "checking Perl Modules to build... " >&6; }
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
20882 $as_echo "${COMP_PERL:-No Perl Modules will be built}" >&6; }
20884 # Options to pass when configuring perl module
20885 langpref=$prefix
20886 test "$langpref" = '$(DESTDIR)NONE' && langpref='$(DESTDIR)'$ac_default_prefix
20887 test "$langpref" = "NONE" && langpref=$ac_default_prefix
20889 PERL_MAKE_OPTIONS="PREFIX=$langpref LIB=$langpref/lib/perl/$PERL_VERSION"
20891 # Check whether --enable-perl-site-install was given.
20892 if test "${enable_perl_site_install+set}" = set; then :
20893 enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
20894 fi
20897 if test ! -z "$PERLCC"; then
20898 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
20900 if test ! -z "$PERLCCFLAGS"; then
20901 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
20902 fi
20904 if test -z "$PERLLD"; then
20905 PERLLD=$PERLCC
20906 fi
20907 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
20909 if test ! -z "$PERLLDFLAGS"; then
20910 PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
20911 fi
20912 fi
20915 # Check whether --with-perl-options was given.
20916 if test "${with_perl_options+set}" = set; then :
20917 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
20918 fi
20926 # Extract the first word of "ruby", so it can be a program name with args.
20927 set dummy ruby; ac_word=$2
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20929 $as_echo_n "checking for $ac_word... " >&6; }
20930 if test "${ac_cv_path_RUBY+set}" = set; then :
20931 $as_echo_n "(cached) " >&6
20932 else
20933 case $RUBY in
20934 [\\/]* | ?:[\\/]*)
20935 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
20936 ;;
20937 *)
20938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20939 for as_dir in $PATH
20940 do
20941 IFS=$as_save_IFS
20942 test -z "$as_dir" && as_dir=.
20943 for ac_exec_ext in '' $ac_executable_extensions; do
20944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20945 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
20946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20947 break 2
20948 fi
20949 done
20950 done
20951 IFS=$as_save_IFS
20953 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
20954 ;;
20955 esac
20956 fi
20957 RUBY=$ac_cv_path_RUBY
20958 if test -n "$RUBY"; then
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
20960 $as_echo "$RUBY" >&6; }
20961 else
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20963 $as_echo "no" >&6; }
20964 fi
20968 # Check whether --enable-ruby was given.
20969 if test "${enable_ruby+set}" = set; then :
20970 enableval=$enable_ruby;
20971 else
20972 enable_ruby=yes
20973 fi
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ruby modules can be built" >&5
20977 $as_echo_n "checking if ruby modules can be built... " >&6; }
20979 if test "x$RUBY" = "xno" -o x$enable_ruby = xno; then
20980 COMP_RUBY=
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: No .. Ruby not found or disabled" >&5
20982 $as_echo "No .. Ruby not found or disabled" >&6; }
20983 else
20984 if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
20985 COMP_RUBY="ruby"
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: YES" >&5
20987 $as_echo "YES" >&6; }
20988 else
20989 COMP_RUBY=
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Ruby found but mkmf is missing! Install the -dev package" >&5
20991 $as_echo "Ruby found but mkmf is missing! Install the -dev package" >&6; }
20992 fi
20993 fi
20995 # Check whether --enable-ruby-site-install was given.
20996 if test "${enable_ruby_site_install+set}" = set; then :
20997 enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
20998 else
20999 RUBY_MAKE_OPTIONS="sitedir=$langpref/lib/ruby"
21000 fi
21005 # Check whether --with-ruby-options was given.
21006 if test "${with_ruby_options+set}" = set; then :
21007 withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
21008 fi
21015 # Extract the first word of "lua", so it can be a program name with args.
21016 set dummy lua; ac_word=$2
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21018 $as_echo_n "checking for $ac_word... " >&6; }
21019 if test "${ac_cv_path_LUA+set}" = set; then :
21020 $as_echo_n "(cached) " >&6
21021 else
21022 case $LUA in
21023 [\\/]* | ?:[\\/]*)
21024 ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
21025 ;;
21026 *)
21027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21028 for as_dir in $PATH
21029 do
21030 IFS=$as_save_IFS
21031 test -z "$as_dir" && as_dir=.
21032 for ac_exec_ext in '' $ac_executable_extensions; do
21033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21034 ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext"
21035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21036 break 2
21037 fi
21038 done
21039 done
21040 IFS=$as_save_IFS
21042 test -z "$ac_cv_path_LUA" && ac_cv_path_LUA="no"
21043 ;;
21044 esac
21045 fi
21046 LUA=$ac_cv_path_LUA
21047 if test -n "$LUA"; then
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA" >&5
21049 $as_echo "$LUA" >&6; }
21050 else
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21052 $as_echo "no" >&6; }
21053 fi
21057 # Check whether --enable-lua was given.
21058 if test "${enable_lua+set}" = set; then :
21059 enableval=$enable_lua;
21060 else
21061 enable_lua=yes
21062 fi
21065 COMP_LUA=
21066 if test "$LUA" = "no" -o "$enable_lua" = "no"; then
21067 enable_lua=no
21068 else
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua >= 5.0" >&5
21070 $as_echo_n "checking for lua >= 5.0... " >&6; }
21071 read LUA_MAJOR LUA_MINOR LUA_POINT <<LUA_EOF
21072 $($LUA -v 2>&1 | cut -f2 -d' ' | sed -e 's/\./ /g')
21073 LUA_EOF
21074 if test 0$LUA_MAJOR -lt 5; then
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, version found is $LUA_MAJOR.$LUA_MINOR" >&5
21076 $as_echo "no, version found is $LUA_MAJOR.$LUA_MINOR" >&6; }
21077 else
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUA_MAJOR.$LUA_MINOR found" >&5
21079 $as_echo "$LUA_MAJOR.$LUA_MINOR found" >&6; }
21080 lua_vdot=$LUA_MAJOR.$LUA_MINOR
21081 lua_vndot=$LUA_MAJOR$LUA_MINOR
21082 lua_version=$LUA_MAJOR.$LUA_MINOR.$LUA_POINT
21083 for ac_header in lua$lua_vndot/lua.h
21084 do :
21085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21086 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21087 eval as_val=\$$as_ac_Header
21088 if test "x$as_val" = x""yes; then :
21089 cat >>confdefs.h <<_ACEOF
21090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21091 _ACEOF
21092 for ac_header in lua$lua_vndot/lualib.h
21093 do :
21094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21095 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21096 eval as_val=\$$as_ac_Header
21097 if test "x$as_val" = x""yes; then :
21098 cat >>confdefs.h <<_ACEOF
21099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21100 _ACEOF
21101 as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vndot/lauxlib.h" | $as_tr_sh`
21102 ac_fn_c_check_header_mongrel "$LINENO" "lua$lua_vndot/lauxlib.h" "$as_ac_Header" "$ac_includes_default"
21103 eval as_val=\$$as_ac_Header
21104 if test "x$as_val" = x""yes; then :
21105 lua_headerdir=lua$lua_vndot
21106 fi
21109 fi
21111 done
21113 else
21114 for ac_header in lua$lua_vdot/lua.h
21115 do :
21116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21117 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21118 eval as_val=\$$as_ac_Header
21119 if test "x$as_val" = x""yes; then :
21120 cat >>confdefs.h <<_ACEOF
21121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21122 _ACEOF
21123 for ac_header in lua$lua_vdot/lualib.h
21124 do :
21125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21126 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21127 eval as_val=\$$as_ac_Header
21128 if test "x$as_val" = x""yes; then :
21129 cat >>confdefs.h <<_ACEOF
21130 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21131 _ACEOF
21132 as_ac_Header=`$as_echo "ac_cv_header_lua$lua_vdot/lauxlib.h" | $as_tr_sh`
21133 ac_fn_c_check_header_mongrel "$LINENO" "lua$lua_vdot/lauxlib.h" "$as_ac_Header" "$ac_includes_default"
21134 eval as_val=\$$as_ac_Header
21135 if test "x$as_val" = x""yes; then :
21136 lua_headerdir=lua$lua_vdot
21137 fi
21140 fi
21142 done
21144 else
21145 for ac_header in lua.h
21146 do :
21147 ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
21148 if test "x$ac_cv_header_lua_h" = x""yes; then :
21149 cat >>confdefs.h <<_ACEOF
21150 #define HAVE_LUA_H 1
21151 _ACEOF
21152 for ac_header in lualib.h
21153 do :
21154 ac_fn_c_check_header_mongrel "$LINENO" "lualib.h" "ac_cv_header_lualib_h" "$ac_includes_default"
21155 if test "x$ac_cv_header_lualib_h" = x""yes; then :
21156 cat >>confdefs.h <<_ACEOF
21157 #define HAVE_LUALIB_H 1
21158 _ACEOF
21159 ac_fn_c_check_header_mongrel "$LINENO" "lauxlib.h" "ac_cv_header_lauxlib_h" "$ac_includes_default"
21160 if test "x$ac_cv_header_lauxlib_h" = x""yes; then :
21161 lua_headerdir=""
21162 else
21163 lua_headerdir="no"
21164 fi
21167 fi
21169 done
21171 fi
21173 done
21175 fi
21177 done
21179 fi
21181 done
21184 if test "$lua_headerdir" = "no"; then
21185 enable_lua=no
21186 else
21187 COMP_LUA=lua
21188 fi
21190 if test "$COMP_LUA" != "lua"; then
21191 enable_lua=no
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&5
21193 $as_echo "$as_me: WARNING: Lua $lua_vdot found but not lua.h, lualib.h and lauxlib.h! Please install the -dev packages for Lua $lua_vdot" >&2;}
21194 else
21195 # OK, headers found, let's check the libraries (LIBS is not used)
21196 LIBS=
21197 lua_havelib=no
21198 LUA_HAVE_COMPAT51=DONT_HAVE_COMPAT51
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lua_call" >&5
21200 $as_echo_n "checking for library containing lua_call... " >&6; }
21201 if test "${ac_cv_search_lua_call+set}" = set; then :
21202 $as_echo_n "(cached) " >&6
21203 else
21204 ac_func_search_save_LIBS=$LIBS
21205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21206 /* end confdefs.h. */
21208 /* Override any GCC internal prototype to avoid an error.
21209 Use char because int might match the return type of a GCC
21210 builtin and then its argument prototype would still apply. */
21211 #ifdef __cplusplus
21212 extern "C"
21213 #endif
21214 char lua_call ();
21215 int
21216 main ()
21217 {
21218 return lua_call ();
21219 ;
21220 return 0;
21221 }
21222 _ACEOF
21223 for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
21224 if test -z "$ac_lib"; then
21225 ac_res="none required"
21226 else
21227 ac_res=-l$ac_lib
21228 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
21229 fi
21230 if ac_fn_c_try_link "$LINENO"; then :
21231 ac_cv_search_lua_call=$ac_res
21232 fi
21233 rm -f core conftest.err conftest.$ac_objext \
21234 conftest$ac_exeext
21235 if test "${ac_cv_search_lua_call+set}" = set; then :
21236 break
21237 fi
21238 done
21239 if test "${ac_cv_search_lua_call+set}" = set; then :
21241 else
21242 ac_cv_search_lua_call=no
21243 fi
21244 rm conftest.$ac_ext
21245 LIBS=$ac_func_search_save_LIBS
21246 fi
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lua_call" >&5
21248 $as_echo "$ac_cv_search_lua_call" >&6; }
21249 ac_res=$ac_cv_search_lua_call
21250 if test "$ac_res" != no; then :
21251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing luaL_register" >&5
21253 $as_echo_n "checking for library containing luaL_register... " >&6; }
21254 if test "${ac_cv_search_luaL_register+set}" = set; then :
21255 $as_echo_n "(cached) " >&6
21256 else
21257 ac_func_search_save_LIBS=$LIBS
21258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21259 /* end confdefs.h. */
21261 /* Override any GCC internal prototype to avoid an error.
21262 Use char because int might match the return type of a GCC
21263 builtin and then its argument prototype would still apply. */
21264 #ifdef __cplusplus
21265 extern "C"
21266 #endif
21267 char luaL_register ();
21268 int
21269 main ()
21270 {
21271 return luaL_register ();
21272 ;
21273 return 0;
21274 }
21275 _ACEOF
21276 for ac_lib in '' lua$lua_vdot lua$lua_vndot lua; do
21277 if test -z "$ac_lib"; then
21278 ac_res="none required"
21279 else
21280 ac_res=-l$ac_lib
21281 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
21282 fi
21283 if ac_fn_c_try_link "$LINENO"; then :
21284 ac_cv_search_luaL_register=$ac_res
21285 fi
21286 rm -f core conftest.err conftest.$ac_objext \
21287 conftest$ac_exeext
21288 if test "${ac_cv_search_luaL_register+set}" = set; then :
21289 break
21290 fi
21291 done
21292 if test "${ac_cv_search_luaL_register+set}" = set; then :
21294 else
21295 ac_cv_search_luaL_register=no
21296 fi
21297 rm conftest.$ac_ext
21298 LIBS=$ac_func_search_save_LIBS
21299 fi
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_luaL_register" >&5
21301 $as_echo "$ac_cv_search_luaL_register" >&6; }
21302 ac_res=$ac_cv_search_luaL_register
21303 if test "$ac_res" != no; then :
21304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21305 lua_havelib=LUA$lua_vndot
21306 else
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing luaL_module" >&5
21308 $as_echo_n "checking for library containing luaL_module... " >&6; }
21309 if test "${ac_cv_search_luaL_module+set}" = set; then :
21310 $as_echo_n "(cached) " >&6
21311 else
21312 ac_func_search_save_LIBS=$LIBS
21313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21314 /* end confdefs.h. */
21316 /* Override any GCC internal prototype to avoid an error.
21317 Use char because int might match the return type of a GCC
21318 builtin and then its argument prototype would still apply. */
21319 #ifdef __cplusplus
21320 extern "C"
21321 #endif
21322 char luaL_module ();
21323 int
21324 main ()
21325 {
21326 return luaL_module ();
21327 ;
21328 return 0;
21329 }
21330 _ACEOF
21331 for ac_lib in '' lualib$lua_vndot lualib$lua_vdot lualib; do
21332 if test -z "$ac_lib"; then
21333 ac_res="none required"
21334 else
21335 ac_res=-l$ac_lib
21336 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
21337 fi
21338 if ac_fn_c_try_link "$LINENO"; then :
21339 ac_cv_search_luaL_module=$ac_res
21340 fi
21341 rm -f core conftest.err conftest.$ac_objext \
21342 conftest$ac_exeext
21343 if test "${ac_cv_search_luaL_module+set}" = set; then :
21344 break
21345 fi
21346 done
21347 if test "${ac_cv_search_luaL_module+set}" = set; then :
21349 else
21350 ac_cv_search_luaL_module=no
21351 fi
21352 rm conftest.$ac_ext
21353 LIBS=$ac_func_search_save_LIBS
21354 fi
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_luaL_module" >&5
21356 $as_echo "$ac_cv_search_luaL_module" >&6; }
21357 ac_res=$ac_cv_search_luaL_module
21358 if test "$ac_res" != no; then :
21359 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21360 lua_havelib=$lua_vndot; $LUA -l compat-5.1 2>/dev/null;
21361 test "$?" = "0" && LUA_HAVE_COMPAT51=HAVE_COMPAT51
21362 else
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing luaL_openlib" >&5
21364 $as_echo_n "checking for library containing luaL_openlib... " >&6; }
21365 if test "${ac_cv_search_luaL_openlib+set}" = set; then :
21366 $as_echo_n "(cached) " >&6
21367 else
21368 ac_func_search_save_LIBS=$LIBS
21369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21370 /* end confdefs.h. */
21372 /* Override any GCC internal prototype to avoid an error.
21373 Use char because int might match the return type of a GCC
21374 builtin and then its argument prototype would still apply. */
21375 #ifdef __cplusplus
21376 extern "C"
21377 #endif
21378 char luaL_openlib ();
21379 int
21380 main ()
21381 {
21382 return luaL_openlib ();
21383 ;
21384 return 0;
21385 }
21386 _ACEOF
21387 for ac_lib in '' lualib$lua_vdot lualib$lua_vndot lualib; do
21388 if test -z "$ac_lib"; then
21389 ac_res="none required"
21390 else
21391 ac_res=-l$ac_lib
21392 LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
21393 fi
21394 if ac_fn_c_try_link "$LINENO"; then :
21395 ac_cv_search_luaL_openlib=$ac_res
21396 fi
21397 rm -f core conftest.err conftest.$ac_objext \
21398 conftest$ac_exeext
21399 if test "${ac_cv_search_luaL_openlib+set}" = set; then :
21400 break
21401 fi
21402 done
21403 if test "${ac_cv_search_luaL_openlib+set}" = set; then :
21405 else
21406 ac_cv_search_luaL_openlib=no
21407 fi
21408 rm conftest.$ac_ext
21409 LIBS=$ac_func_search_save_LIBS
21410 fi
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_luaL_openlib" >&5
21412 $as_echo "$ac_cv_search_luaL_openlib" >&6; }
21413 ac_res=$ac_cv_search_luaL_openlib
21414 if test "$ac_res" != no; then :
21415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21416 lua_havelib=$lua_vndot
21417 else
21418 COMP_LUA=
21419 fi
21421 fi
21423 fi
21425 else
21426 COMP_LUA=
21427 fi
21429 lua_libs=$LIBS
21430 LIBS=
21432 # Options to pass when configuring Lua module
21433 if test "$lua_havelib" != "no"; then
21434 # OK, headers and libs found. Try to set lua flags
21435 # and modules installation dirs with pkg-config
21436 if test "$PKGCONFIG" != "no"; then
21437 if test "$lua_vndot" = "50"; then
21438 lua_pkg_prefix=lualib
21439 else
21440 lua_pkg_prefix=lua
21441 fi
21442 # try with dot, without dot and finally without version
21443 for f in $lua_pkg_prefix$lua_vdot $lua_pkg_prefix$lua_vndot $lua_pkg_prefix; do
21444 lua_exec_prefix=`$PKGCONFIG --variable=prefix $f 2>/dev/null`
21445 # same binaries?
21446 if test "$lua_exec_prefix/bin/lua" = "$LUA"; then
21447 # OK, found CFLAGS. Get Lua LFLAGS and modules install dir
21448 LUA_CFLAGS=`$PKGCONFIG --cflags $f 2>/dev/null`
21449 LUA_LFLAGS=`$PKGCONFIG --libs $f 2>/dev/null`
21450 LUA_INSTALL_CMOD=`$PKGCONFIG --variable=INSTALL_CMOD $f 2>/dev/null`
21451 LUA_INSTALL_LMOD=`$PKGCONFIG --variable=INSTALL_LMOD $f 2>/dev/null`
21452 break
21453 fi
21454 done
21455 fi
21457 LUA_RRD_LIBDIR="$langpref/lib/lua/$lua_vdot"
21458 # if lua 5.0 can't find compat-5.1, force installation of
21459 # compat-5.1.lua together with RRDtool.
21460 if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
21461 lua_need_compat51=1
21462 LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
21463 fi
21465 # if not set with pkg-config, use default values in src packages compat-5.1, lua 5.1
21466 if test "$LUA_CFLAGS" = ""; then
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&5
21468 $as_echo "$as_me: WARNING: Setting Lua include and lib flags to defaults in compat-5.1 and lua 5.1 sources" >&2;}
21469 LUA_CFLAGS="-I/usr/local/include -I/usr/local/include/lua -I/usr/local/include/lua/$lua_vdot"
21470 LUA_LFLAGS="-L/usr/local/lib -L/usr/local/lib/lua -L/usr/local/lib/lua/$lua_vdot $lua_libs"
21471 LUA_INSTALL_CMOD="/usr/local/lib/lua/$lua_vdot"
21472 fi
21474 # Check whether --enable-lua-site-install was given.
21475 if test "${enable_lua_site_install+set}" = set; then :
21476 enableval=$enable_lua_site_install;
21477 else
21478 LUA_INSTALL_CMOD="$LUA_RRD_LIBDIR"; LUA_INSTALL_LMOD="$LUA_RRD_LIBDIR"
21479 fi
21482 LUA_DEFINES="-DLUA$lua_vndot -D$LUA_HAVE_COMPAT51"
21490 else
21491 enable_lua=no
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&5
21493 $as_echo "Lua headers found but not the libraries! Please reinstall the dev packages for Lua $LUA_MAJOR.$LUA_MINOR" >&6; }
21494 fi
21495 fi
21496 fi
21497 fi
21498 if test "$lua_vdot" = "5.0" -a "$LUA_HAVE_COMPAT51" != "HAVE_COMPAT51"; then
21499 LUA_NEED_OUR_COMPAT51_TRUE=
21500 LUA_NEED_OUR_COMPAT51_FALSE='#'
21501 else
21502 LUA_NEED_OUR_COMPAT51_TRUE='#'
21503 LUA_NEED_OUR_COMPAT51_FALSE=
21504 fi
21506 if test "$LUA_INSTALL_CMOD" != "$LUA_RRD_LIBDIR"; then
21507 LUA_SITE_CINSTALL_TRUE=
21508 LUA_SITE_CINSTALL_FALSE='#'
21509 else
21510 LUA_SITE_CINSTALL_TRUE='#'
21511 LUA_SITE_CINSTALL_FALSE=
21512 fi
21514 if test "$LUA_INSTALL_LMOD" != "$LUA_RRD_LIBDIR"; then
21515 LUA_SITE_LINSTALL_TRUE=
21516 LUA_SITE_LINSTALL_FALSE='#'
21517 else
21518 LUA_SITE_LINSTALL_TRUE='#'
21519 LUA_SITE_LINSTALL_FALSE=
21520 fi
21522 if test "$lua_vndot" = "50"; then
21523 LUA50_TRUE=
21524 LUA50_FALSE='#'
21525 else
21526 LUA50_TRUE='#'
21527 LUA50_FALSE=
21528 fi
21530 if test "$enable_lua" = "yes"; then
21531 BUILD_LUA_TRUE=
21532 BUILD_LUA_FALSE='#'
21533 else
21534 BUILD_LUA_TRUE='#'
21535 BUILD_LUA_FALSE=
21536 fi
21539 enable_tcl_site=no
21541 # Check whether --enable-tcl was given.
21542 if test "${enable_tcl+set}" = set; then :
21543 enableval=$enable_tcl;
21544 else
21545 enable_tcl=yes
21546 fi
21549 if test "$enable_tcl" = "yes"; then
21550 withval=""
21552 # Check whether --with-tcllib was given.
21553 if test "${with_tcllib+set}" = set; then :
21554 withval=$with_tcllib;
21555 fi
21557 enable_tcl=no
21558 for dir in $withval /usr/lib /usr/local/lib /usr/lib/tcl8.4 /usr/lib/tcl8.3 ; do
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh in $dir" >&5
21560 $as_echo_n "checking for tclConfig.sh in $dir... " >&6; }
21561 if test -f "$dir/tclConfig.sh" ; then
21562 tcl_config=$dir/tclConfig.sh
21563 enable_tcl=yes
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21565 $as_echo "yes" >&6; }
21566 break
21567 else
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21569 $as_echo "no" >&6; }
21570 fi
21571 done
21573 if test "$enable_tcl" = "no"; then
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&5
21575 $as_echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&2;}
21576 else
21577 . $tcl_config
21578 TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
21579 if test -n "$TCL_INC_DIR"; then
21580 TCL_INCLUDE_SPEC="$TCL_INCLUDE_SPEC -I$TCL_INC_DIR"
21581 fi
21582 fi
21583 # Check whether --enable-tcl was given.
21584 if test "${enable_tcl+set}" = set; then :
21585 enableval=$enable_tcl;
21586 else
21587 enable_tcl_site=yes
21588 fi
21591 fi
21593 if test "$enable_tcl" = "yes" ; then
21594 BUILD_TCL_TRUE=
21595 BUILD_TCL_FALSE='#'
21596 else
21597 BUILD_TCL_TRUE='#'
21598 BUILD_TCL_FALSE=
21599 fi
21601 if test "$enable_tcl_site" = "yes" ; then
21602 BUILD_TCL_SITE_TRUE=
21603 BUILD_TCL_SITE_FALSE='#'
21604 else
21605 BUILD_TCL_SITE_TRUE='#'
21606 BUILD_TCL_SITE_FALSE=
21607 fi
21622 # Check whether --enable-python was given.
21623 if test "${enable_python+set}" = set; then :
21624 enableval=$enable_python;
21625 else
21626 enable_python=yes
21627 fi
21630 if test "$enable_python" = "yes"; then
21635 if test -n "$PYTHON"; then
21636 # If the user set $PYTHON, use it and don't search something else.
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.3" >&5
21638 $as_echo_n "checking whether $PYTHON version >= 2.3... " >&6; }
21639 prog="import sys
21640 # split strings by '.' and convert to numeric. Append some zeros
21641 # because we need at least 4 digits for the hex conversion.
21642 # map returns an iterator in Python 3.0 and a list in 2.x
21643 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
21644 minverhex = 0
21645 # xrange is not present in Python 3.0 and range returns an iterator
21646 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21647 sys.exit(sys.hexversion < minverhex)"
21648 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
21649 ($PYTHON -c "$prog") >&5 2>&5
21650 ac_status=$?
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; then :
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21654 $as_echo "yes" >&6; }
21655 else
21656 as_fn_error "too old" "$LINENO" 5
21657 fi
21658 am_display_PYTHON=$PYTHON
21659 else
21660 # Otherwise, try each interpreter until we find one that satisfies
21661 # VERSION.
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.3" >&5
21663 $as_echo_n "checking for a Python interpreter with version >= 2.3... " >&6; }
21664 if test "${am_cv_pathless_PYTHON+set}" = set; then :
21665 $as_echo_n "(cached) " >&6
21666 else
21668 for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
21669 test "$am_cv_pathless_PYTHON" = none && break
21670 prog="import sys
21671 # split strings by '.' and convert to numeric. Append some zeros
21672 # because we need at least 4 digits for the hex conversion.
21673 # map returns an iterator in Python 3.0 and a list in 2.x
21674 minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
21675 minverhex = 0
21676 # xrange is not present in Python 3.0 and range returns an iterator
21677 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21678 sys.exit(sys.hexversion < minverhex)"
21679 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
21680 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
21681 ac_status=$?
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; then :
21684 break
21685 fi
21686 done
21687 fi
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
21689 $as_echo "$am_cv_pathless_PYTHON" >&6; }
21690 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
21691 if test "$am_cv_pathless_PYTHON" = none; then
21692 PYTHON=:
21693 else
21694 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
21695 set dummy $am_cv_pathless_PYTHON; ac_word=$2
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21697 $as_echo_n "checking for $ac_word... " >&6; }
21698 if test "${ac_cv_path_PYTHON+set}" = set; then :
21699 $as_echo_n "(cached) " >&6
21700 else
21701 case $PYTHON in
21702 [\\/]* | ?:[\\/]*)
21703 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21704 ;;
21705 *)
21706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21707 for as_dir in $PATH
21708 do
21709 IFS=$as_save_IFS
21710 test -z "$as_dir" && as_dir=.
21711 for ac_exec_ext in '' $ac_executable_extensions; do
21712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21713 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21715 break 2
21716 fi
21717 done
21718 done
21719 IFS=$as_save_IFS
21721 ;;
21722 esac
21723 fi
21724 PYTHON=$ac_cv_path_PYTHON
21725 if test -n "$PYTHON"; then
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21727 $as_echo "$PYTHON" >&6; }
21728 else
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21730 $as_echo "no" >&6; }
21731 fi
21734 fi
21735 am_display_PYTHON=$am_cv_pathless_PYTHON
21736 fi
21739 if test "$PYTHON" = :; then
21740 enable_python=no
21741 else
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
21745 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
21746 if test "${am_cv_python_version+set}" = set; then :
21747 $as_echo_n "(cached) " >&6
21748 else
21749 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
21750 fi
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
21752 $as_echo "$am_cv_python_version" >&6; }
21753 PYTHON_VERSION=$am_cv_python_version
21757 PYTHON_PREFIX='${prefix}'
21759 PYTHON_EXEC_PREFIX='${exec_prefix}'
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
21764 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
21765 if test "${am_cv_python_platform+set}" = set; then :
21766 $as_echo_n "(cached) " >&6
21767 else
21768 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
21769 fi
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
21771 $as_echo "$am_cv_python_platform" >&6; }
21772 PYTHON_PLATFORM=$am_cv_python_platform
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
21778 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
21779 if test "${am_cv_python_pythondir+set}" = set; then :
21780 $as_echo_n "(cached) " >&6
21781 else
21782 if test "x$prefix" = xNONE
21783 then
21784 am_py_prefix=$ac_default_prefix
21785 else
21786 am_py_prefix=$prefix
21787 fi
21788 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
21789 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
21790 case $am_cv_python_pythondir in
21791 $am_py_prefix*)
21792 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
21793 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
21794 ;;
21795 esac
21797 fi
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
21799 $as_echo "$am_cv_python_pythondir" >&6; }
21800 pythondir=$am_cv_python_pythondir
21804 pkgpythondir=\${pythondir}/$PACKAGE
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
21808 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
21809 if test "${am_cv_python_pyexecdir+set}" = set; then :
21810 $as_echo_n "(cached) " >&6
21811 else
21812 if test "x$exec_prefix" = xNONE
21813 then
21814 am_py_exec_prefix=$am_py_prefix
21815 else
21816 am_py_exec_prefix=$exec_prefix
21817 fi
21818 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
21819 echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
21820 case $am_cv_python_pyexecdir in
21821 $am_py_exec_prefix*)
21822 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21823 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21824 ;;
21825 esac
21827 fi
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21829 $as_echo "$am_cv_python_pyexecdir" >&6; }
21830 pyexecdir=$am_cv_python_pyexecdir
21834 pkgpyexecdir=\${pyexecdir}/$PACKAGE
21838 fi
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
21843 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
21844 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
21845 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
21846 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
21847 if test "$py_prefix" != "$py_exec_prefix"; then
21848 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
21849 fi
21851 save_CPPFLAGS="$CPPFLAGS"
21852 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
21853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21854 /* end confdefs.h. */
21855 #include <Python.h>
21856 _ACEOF
21857 if ac_fn_c_try_cpp "$LINENO"; then :
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21859 $as_echo "found" >&6; }
21861 else
21862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21863 $as_echo "not found" >&6; }
21864 enable_python=no;{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find Python headers" >&5
21865 $as_echo "$as_me: WARNING: could not find Python headers" >&2;}
21866 fi
21867 rm -f conftest.err conftest.$ac_ext
21868 CPPFLAGS="$save_CPPFLAGS"
21870 fi
21872 if test x$enable_python = xno; then
21873 COMP_PYTHON=
21874 else
21875 COMP_PYTHON="python"
21876 fi
21880 for ac_prog in gnroff nroff
21881 do
21882 # Extract the first word of "$ac_prog", so it can be a program name with args.
21883 set dummy $ac_prog; ac_word=$2
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21885 $as_echo_n "checking for $ac_word... " >&6; }
21886 if test "${ac_cv_path_NROFF+set}" = set; then :
21887 $as_echo_n "(cached) " >&6
21888 else
21889 case $NROFF in
21890 [\\/]* | ?:[\\/]*)
21891 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
21892 ;;
21893 *)
21894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21895 for as_dir in $PATH
21896 do
21897 IFS=$as_save_IFS
21898 test -z "$as_dir" && as_dir=.
21899 for ac_exec_ext in '' $ac_executable_extensions; do
21900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21901 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
21902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21903 break 2
21904 fi
21905 done
21906 done
21907 IFS=$as_save_IFS
21909 ;;
21910 esac
21911 fi
21912 NROFF=$ac_cv_path_NROFF
21913 if test -n "$NROFF"; then
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
21915 $as_echo "$NROFF" >&6; }
21916 else
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21918 $as_echo "no" >&6; }
21919 fi
21922 test -n "$NROFF" && break
21923 done
21925 for ac_prog in groff troff
21926 do
21927 # Extract the first word of "$ac_prog", so it can be a program name with args.
21928 set dummy $ac_prog; ac_word=$2
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21930 $as_echo_n "checking for $ac_word... " >&6; }
21931 if test "${ac_cv_path_TROFF+set}" = set; then :
21932 $as_echo_n "(cached) " >&6
21933 else
21934 case $TROFF in
21935 [\\/]* | ?:[\\/]*)
21936 ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
21937 ;;
21938 *)
21939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21940 for as_dir in $PATH
21941 do
21942 IFS=$as_save_IFS
21943 test -z "$as_dir" && as_dir=.
21944 for ac_exec_ext in '' $ac_executable_extensions; do
21945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21946 ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
21947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21948 break 2
21949 fi
21950 done
21951 done
21952 IFS=$as_save_IFS
21954 ;;
21955 esac
21956 fi
21957 TROFF=$ac_cv_path_TROFF
21958 if test -n "$TROFF"; then
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TROFF" >&5
21960 $as_echo "$TROFF" >&6; }
21961 else
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21963 $as_echo "no" >&6; }
21964 fi
21967 test -n "$TROFF" && break
21968 done
21972 if test -z "$RRDDOCDIR"; then
21973 RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
21977 case $TERM in
21978 # for the most important terminal types we directly know the sequences
21979 xterm|xterm*|vt220|vt220*)
21980 T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
21981 T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
21982 ;;
21983 vt100|vt100*|cygwin)
21984 T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
21985 T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
21986 ;;
21987 *)
21988 T_MD=''
21989 T_ME=''
21990 ;;
21991 esac
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21993 $as_echo "" >&6; }
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
21995 $as_echo "${T_MD}Apply Configuration Information${T_ME}" >&6; }
21998 ac_config_files="$ac_config_files examples/shared-demo.pl"
22000 ac_config_files="$ac_config_files examples/piped-demo.pl"
22002 ac_config_files="$ac_config_files examples/stripes.pl"
22004 ac_config_files="$ac_config_files examples/bigtops.pl"
22006 ac_config_files="$ac_config_files examples/minmax.pl"
22008 ac_config_files="$ac_config_files examples/4charts.pl"
22010 ac_config_files="$ac_config_files examples/perftest.pl"
22012 ac_config_files="$ac_config_files examples/Makefile"
22014 ac_config_files="$ac_config_files examples/rrdcached/Makefile"
22016 ac_config_files="$ac_config_files doc/Makefile"
22018 ac_config_files="$ac_config_files po/Makefile.in"
22020 ac_config_files="$ac_config_files intl/Makefile"
22022 ac_config_files="$ac_config_files src/Makefile"
22024 ac_config_files="$ac_config_files src/librrd.sym.in"
22026 ac_config_files="$ac_config_files src/librrd.pc"
22028 ac_config_files="$ac_config_files bindings/Makefile"
22030 ac_config_files="$ac_config_files bindings/tcl/Makefile"
22032 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
22034 ac_config_files="$ac_config_files Makefile"
22036 ac_config_files="$ac_config_files bindings/lua/Makefile"
22039 ac_config_commands="$ac_config_commands default"
22044 cat >confcache <<\_ACEOF
22045 # This file is a shell script that caches the results of configure
22046 # tests run on this system so they can be shared between configure
22047 # scripts and configure runs, see configure's option --config-cache.
22048 # It is not useful on other systems. If it contains results you don't
22049 # want to keep, you may remove or edit it.
22050 #
22051 # config.status only pays attention to the cache file if you give it
22052 # the --recheck option to rerun configure.
22053 #
22054 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22055 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22056 # following values.
22058 _ACEOF
22060 # The following way of writing the cache mishandles newlines in values,
22061 # but we know of no workaround that is simple, portable, and efficient.
22062 # So, we kill variables containing newlines.
22063 # Ultrix sh set writes to stderr and can't be redirected directly,
22064 # and sets the high bit in the cache file unless we assign to the vars.
22065 (
22066 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22067 eval ac_val=\$$ac_var
22068 case $ac_val in #(
22069 *${as_nl}*)
22070 case $ac_var in #(
22071 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22072 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22073 esac
22074 case $ac_var in #(
22075 _ | IFS | as_nl) ;; #(
22076 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22077 *) { eval $ac_var=; unset $ac_var;} ;;
22078 esac ;;
22079 esac
22080 done
22082 (set) 2>&1 |
22083 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22084 *${as_nl}ac_space=\ *)
22085 # `set' does not quote correctly, so add quotes: double-quote
22086 # substitution turns \\\\ into \\, and sed turns \\ into \.
22087 sed -n \
22088 "s/'/'\\\\''/g;
22089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22090 ;; #(
22091 *)
22092 # `set' quotes correctly as required by POSIX, so do not add quotes.
22093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22094 ;;
22095 esac |
22096 sort
22097 ) |
22098 sed '
22099 /^ac_cv_env_/b end
22100 t clear
22101 :clear
22102 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22103 t end
22104 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22105 :end' >>confcache
22106 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22107 if test -w "$cache_file"; then
22108 test "x$cache_file" != "x/dev/null" &&
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22110 $as_echo "$as_me: updating cache $cache_file" >&6;}
22111 cat confcache >$cache_file
22112 else
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22114 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22115 fi
22116 fi
22117 rm -f confcache
22119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22120 # Let make expand exec_prefix.
22121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22123 DEFS=-DHAVE_CONFIG_H
22125 ac_libobjs=
22126 ac_ltlibobjs=
22127 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22128 # 1. Remove the extension, and $U if already installed.
22129 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22130 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22131 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22132 # will be set to the directory where LIBOBJS objects are built.
22133 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22134 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22135 done
22136 LIBOBJS=$ac_libobjs
22138 LTLIBOBJS=$ac_ltlibobjs
22141 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22142 as_fn_error "conditional \"AMDEP\" was never defined.
22143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22144 fi
22145 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22146 as_fn_error "conditional \"am__fastdepCC\" was never defined.
22147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22148 fi
22149 if test -n "$EXEEXT"; then
22150 am__EXEEXT_TRUE=
22151 am__EXEEXT_FALSE='#'
22152 else
22153 am__EXEEXT_TRUE='#'
22154 am__EXEEXT_FALSE=
22155 fi
22157 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22158 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
22159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22160 fi
22161 if test -z "${STATIC_PROGRAMS_TRUE}" && test -z "${STATIC_PROGRAMS_FALSE}"; then
22162 as_fn_error "conditional \"STATIC_PROGRAMS\" was never defined.
22163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22164 fi
22166 if test -z "${BUILD_GETOPT_TRUE}" && test -z "${BUILD_GETOPT_FALSE}"; then
22167 as_fn_error "conditional \"BUILD_GETOPT\" was never defined.
22168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22169 fi
22170 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
22171 as_fn_error "conditional \"BUILD_MULTITHREAD\" was never defined.
22172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22173 fi
22174 if test -z "${BUILD_LIBDBI_TRUE}" && test -z "${BUILD_LIBDBI_FALSE}"; then
22175 as_fn_error "conditional \"BUILD_LIBDBI\" was never defined.
22176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22177 fi
22178 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
22179 as_fn_error "conditional \"BUILD_RRDCGI\" was never defined.
22180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22181 fi
22182 if test -z "${LUA_NEED_OUR_COMPAT51_TRUE}" && test -z "${LUA_NEED_OUR_COMPAT51_FALSE}"; then
22183 as_fn_error "conditional \"LUA_NEED_OUR_COMPAT51\" was never defined.
22184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22185 fi
22186 if test -z "${LUA_SITE_CINSTALL_TRUE}" && test -z "${LUA_SITE_CINSTALL_FALSE}"; then
22187 as_fn_error "conditional \"LUA_SITE_CINSTALL\" was never defined.
22188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22189 fi
22190 if test -z "${LUA_SITE_LINSTALL_TRUE}" && test -z "${LUA_SITE_LINSTALL_FALSE}"; then
22191 as_fn_error "conditional \"LUA_SITE_LINSTALL\" was never defined.
22192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22193 fi
22194 if test -z "${LUA50_TRUE}" && test -z "${LUA50_FALSE}"; then
22195 as_fn_error "conditional \"LUA50\" was never defined.
22196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22197 fi
22198 if test -z "${BUILD_LUA_TRUE}" && test -z "${BUILD_LUA_FALSE}"; then
22199 as_fn_error "conditional \"BUILD_LUA\" was never defined.
22200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22201 fi
22202 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
22203 as_fn_error "conditional \"BUILD_TCL\" was never defined.
22204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22205 fi
22206 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
22207 as_fn_error "conditional \"BUILD_TCL_SITE\" was never defined.
22208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22209 fi
22211 : ${CONFIG_STATUS=./config.status}
22212 ac_write_fail=0
22213 ac_clean_files_save=$ac_clean_files
22214 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22216 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22217 as_write_fail=0
22218 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22219 #! $SHELL
22220 # Generated by $as_me.
22221 # Run this file to recreate the current configuration.
22222 # Compiler output produced by configure, useful for debugging
22223 # configure, is in config.log if it exists.
22225 debug=false
22226 ac_cs_recheck=false
22227 ac_cs_silent=false
22229 SHELL=\${CONFIG_SHELL-$SHELL}
22230 export SHELL
22231 _ASEOF
22232 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22233 ## -------------------- ##
22234 ## M4sh Initialization. ##
22235 ## -------------------- ##
22237 # Be more Bourne compatible
22238 DUALCASE=1; export DUALCASE # for MKS sh
22239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22240 emulate sh
22241 NULLCMD=:
22242 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22243 # is contrary to our usage. Disable this feature.
22244 alias -g '${1+"$@"}'='"$@"'
22245 setopt NO_GLOB_SUBST
22246 else
22247 case `(set -o) 2>/dev/null` in #(
22248 *posix*) :
22249 set -o posix ;; #(
22250 *) :
22251 ;;
22252 esac
22253 fi
22256 as_nl='
22257 '
22258 export as_nl
22259 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22260 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22261 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22262 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22263 # Prefer a ksh shell builtin over an external printf program on Solaris,
22264 # but without wasting forks for bash or zsh.
22265 if test -z "$BASH_VERSION$ZSH_VERSION" \
22266 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22267 as_echo='print -r --'
22268 as_echo_n='print -rn --'
22269 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22270 as_echo='printf %s\n'
22271 as_echo_n='printf %s'
22272 else
22273 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22274 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22275 as_echo_n='/usr/ucb/echo -n'
22276 else
22277 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22278 as_echo_n_body='eval
22279 arg=$1;
22280 case $arg in #(
22281 *"$as_nl"*)
22282 expr "X$arg" : "X\\(.*\\)$as_nl";
22283 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22284 esac;
22285 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22286 '
22287 export as_echo_n_body
22288 as_echo_n='sh -c $as_echo_n_body as_echo'
22289 fi
22290 export as_echo_body
22291 as_echo='sh -c $as_echo_body as_echo'
22292 fi
22294 # The user is always right.
22295 if test "${PATH_SEPARATOR+set}" != set; then
22296 PATH_SEPARATOR=:
22297 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22298 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22299 PATH_SEPARATOR=';'
22300 }
22301 fi
22304 # IFS
22305 # We need space, tab and new line, in precisely that order. Quoting is
22306 # there to prevent editors from complaining about space-tab.
22307 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22308 # splitting by setting IFS to empty value.)
22309 IFS=" "" $as_nl"
22311 # Find who we are. Look in the path if we contain no directory separator.
22312 case $0 in #((
22313 *[\\/]* ) as_myself=$0 ;;
22314 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22315 for as_dir in $PATH
22316 do
22317 IFS=$as_save_IFS
22318 test -z "$as_dir" && as_dir=.
22319 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22320 done
22321 IFS=$as_save_IFS
22323 ;;
22324 esac
22325 # We did not find ourselves, most probably we were run as `sh COMMAND'
22326 # in which case we are not to be found in the path.
22327 if test "x$as_myself" = x; then
22328 as_myself=$0
22329 fi
22330 if test ! -f "$as_myself"; then
22331 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22332 exit 1
22333 fi
22335 # Unset variables that we do not need and which cause bugs (e.g. in
22336 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22337 # suppresses any "Segmentation fault" message there. '((' could
22338 # trigger a bug in pdksh 5.2.14.
22339 for as_var in BASH_ENV ENV MAIL MAILPATH
22340 do eval test x\${$as_var+set} = xset \
22341 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22342 done
22343 PS1='$ '
22344 PS2='> '
22345 PS4='+ '
22347 # NLS nuisances.
22348 LC_ALL=C
22349 export LC_ALL
22350 LANGUAGE=C
22351 export LANGUAGE
22353 # CDPATH.
22354 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22357 # as_fn_error ERROR [LINENO LOG_FD]
22358 # ---------------------------------
22359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22361 # script with status $?, using 1 if that was 0.
22362 as_fn_error ()
22363 {
22364 as_status=$?; test $as_status -eq 0 && as_status=1
22365 if test "$3"; then
22366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
22368 fi
22369 $as_echo "$as_me: error: $1" >&2
22370 as_fn_exit $as_status
22371 } # as_fn_error
22374 # as_fn_set_status STATUS
22375 # -----------------------
22376 # Set $? to STATUS, without forking.
22377 as_fn_set_status ()
22378 {
22379 return $1
22380 } # as_fn_set_status
22382 # as_fn_exit STATUS
22383 # -----------------
22384 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22385 as_fn_exit ()
22386 {
22387 set +e
22388 as_fn_set_status $1
22389 exit $1
22390 } # as_fn_exit
22392 # as_fn_unset VAR
22393 # ---------------
22394 # Portably unset VAR.
22395 as_fn_unset ()
22396 {
22397 { eval $1=; unset $1;}
22398 }
22399 as_unset=as_fn_unset
22400 # as_fn_append VAR VALUE
22401 # ----------------------
22402 # Append the text in VALUE to the end of the definition contained in VAR. Take
22403 # advantage of any shell optimizations that allow amortized linear growth over
22404 # repeated appends, instead of the typical quadratic growth present in naive
22405 # implementations.
22406 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22407 eval 'as_fn_append ()
22408 {
22409 eval $1+=\$2
22410 }'
22411 else
22412 as_fn_append ()
22413 {
22414 eval $1=\$$1\$2
22415 }
22416 fi # as_fn_append
22418 # as_fn_arith ARG...
22419 # ------------------
22420 # Perform arithmetic evaluation on the ARGs, and store the result in the
22421 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22422 # must be portable across $(()) and expr.
22423 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22424 eval 'as_fn_arith ()
22425 {
22426 as_val=$(( $* ))
22427 }'
22428 else
22429 as_fn_arith ()
22430 {
22431 as_val=`expr "$@" || test $? -eq 1`
22432 }
22433 fi # as_fn_arith
22436 if expr a : '\(a\)' >/dev/null 2>&1 &&
22437 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22438 as_expr=expr
22439 else
22440 as_expr=false
22441 fi
22443 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22444 as_basename=basename
22445 else
22446 as_basename=false
22447 fi
22449 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22450 as_dirname=dirname
22451 else
22452 as_dirname=false
22453 fi
22455 as_me=`$as_basename -- "$0" ||
22456 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22457 X"$0" : 'X\(//\)$' \| \
22458 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22459 $as_echo X/"$0" |
22460 sed '/^.*\/\([^/][^/]*\)\/*$/{
22461 s//\1/
22462 q
22463 }
22464 /^X\/\(\/\/\)$/{
22465 s//\1/
22466 q
22467 }
22468 /^X\/\(\/\).*/{
22469 s//\1/
22470 q
22471 }
22472 s/.*/./; q'`
22474 # Avoid depending upon Character Ranges.
22475 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22476 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22477 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22478 as_cr_digits='0123456789'
22479 as_cr_alnum=$as_cr_Letters$as_cr_digits
22481 ECHO_C= ECHO_N= ECHO_T=
22482 case `echo -n x` in #(((((
22483 -n*)
22484 case `echo 'xy\c'` in
22485 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22486 xy) ECHO_C='\c';;
22487 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22488 ECHO_T=' ';;
22489 esac;;
22490 *)
22491 ECHO_N='-n';;
22492 esac
22494 rm -f conf$$ conf$$.exe conf$$.file
22495 if test -d conf$$.dir; then
22496 rm -f conf$$.dir/conf$$.file
22497 else
22498 rm -f conf$$.dir
22499 mkdir conf$$.dir 2>/dev/null
22500 fi
22501 if (echo >conf$$.file) 2>/dev/null; then
22502 if ln -s conf$$.file conf$$ 2>/dev/null; then
22503 as_ln_s='ln -s'
22504 # ... but there are two gotchas:
22505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22507 # In both cases, we have to default to `cp -p'.
22508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22509 as_ln_s='cp -p'
22510 elif ln conf$$.file conf$$ 2>/dev/null; then
22511 as_ln_s=ln
22512 else
22513 as_ln_s='cp -p'
22514 fi
22515 else
22516 as_ln_s='cp -p'
22517 fi
22518 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22519 rmdir conf$$.dir 2>/dev/null
22522 # as_fn_mkdir_p
22523 # -------------
22524 # Create "$as_dir" as a directory, including parents if necessary.
22525 as_fn_mkdir_p ()
22526 {
22528 case $as_dir in #(
22529 -*) as_dir=./$as_dir;;
22530 esac
22531 test -d "$as_dir" || eval $as_mkdir_p || {
22532 as_dirs=
22533 while :; do
22534 case $as_dir in #(
22535 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22536 *) as_qdir=$as_dir;;
22537 esac
22538 as_dirs="'$as_qdir' $as_dirs"
22539 as_dir=`$as_dirname -- "$as_dir" ||
22540 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22541 X"$as_dir" : 'X\(//\)[^/]' \| \
22542 X"$as_dir" : 'X\(//\)$' \| \
22543 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22544 $as_echo X"$as_dir" |
22545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22546 s//\1/
22547 q
22548 }
22549 /^X\(\/\/\)[^/].*/{
22550 s//\1/
22551 q
22552 }
22553 /^X\(\/\/\)$/{
22554 s//\1/
22555 q
22556 }
22557 /^X\(\/\).*/{
22558 s//\1/
22559 q
22560 }
22561 s/.*/./; q'`
22562 test -d "$as_dir" && break
22563 done
22564 test -z "$as_dirs" || eval "mkdir $as_dirs"
22565 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
22568 } # as_fn_mkdir_p
22569 if mkdir -p . 2>/dev/null; then
22570 as_mkdir_p='mkdir -p "$as_dir"'
22571 else
22572 test -d ./-p && rmdir ./-p
22573 as_mkdir_p=false
22574 fi
22576 if test -x / >/dev/null 2>&1; then
22577 as_test_x='test -x'
22578 else
22579 if ls -dL / >/dev/null 2>&1; then
22580 as_ls_L_option=L
22581 else
22582 as_ls_L_option=
22583 fi
22584 as_test_x='
22585 eval sh -c '\''
22586 if test -d "$1"; then
22587 test -d "$1/.";
22588 else
22589 case $1 in #(
22590 -*)set "./$1";;
22591 esac;
22592 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22593 ???[sx]*):;;*)false;;esac;fi
22594 '\'' sh
22595 '
22596 fi
22597 as_executable_p=$as_test_x
22599 # Sed expression to map a string onto a valid CPP name.
22600 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22602 # Sed expression to map a string onto a valid variable name.
22603 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22606 exec 6>&1
22607 ## ----------------------------------- ##
22608 ## Main body of $CONFIG_STATUS script. ##
22609 ## ----------------------------------- ##
22610 _ASEOF
22611 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22614 # Save the log message, to keep $0 and so on meaningful, and to
22615 # report actual input values of CONFIG_FILES etc. instead of their
22616 # values after options handling.
22617 ac_log="
22618 This file was extended by rrdtool $as_me 1.3.999, which was
22619 generated by GNU Autoconf 2.64. Invocation command line was
22621 CONFIG_FILES = $CONFIG_FILES
22622 CONFIG_HEADERS = $CONFIG_HEADERS
22623 CONFIG_LINKS = $CONFIG_LINKS
22624 CONFIG_COMMANDS = $CONFIG_COMMANDS
22625 $ $0 $@
22627 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22628 "
22630 _ACEOF
22632 case $ac_config_files in *"
22633 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22634 esac
22636 case $ac_config_headers in *"
22637 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22638 esac
22641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22642 # Files that config.status was made for.
22643 config_files="$ac_config_files"
22644 config_headers="$ac_config_headers"
22645 config_commands="$ac_config_commands"
22647 _ACEOF
22649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22650 ac_cs_usage="\
22651 \`$as_me' instantiates files and other configuration actions
22652 from templates according to the current configuration. Unless the files
22653 and actions are specified as TAGs, all are instantiated by default.
22655 Usage: $0 [OPTION]... [TAG]...
22657 -h, --help print this help, then exit
22658 -V, --version print version number and configuration settings, then exit
22659 -q, --quiet, --silent
22660 do not print progress messages
22661 -d, --debug don't remove temporary files
22662 --recheck update $as_me by reconfiguring in the same conditions
22663 --file=FILE[:TEMPLATE]
22664 instantiate the configuration file FILE
22665 --header=FILE[:TEMPLATE]
22666 instantiate the configuration header FILE
22668 Configuration files:
22669 $config_files
22671 Configuration headers:
22672 $config_headers
22674 Configuration commands:
22675 $config_commands
22677 Report bugs to the package provider."
22679 _ACEOF
22680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22681 ac_cs_version="\\
22682 rrdtool config.status 1.3.999
22683 configured by $0, generated by GNU Autoconf 2.64,
22684 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22686 Copyright (C) 2009 Free Software Foundation, Inc.
22687 This config.status script is free software; the Free Software Foundation
22688 gives unlimited permission to copy, distribute and modify it."
22690 ac_pwd='$ac_pwd'
22691 srcdir='$srcdir'
22692 INSTALL='$INSTALL'
22693 MKDIR_P='$MKDIR_P'
22694 AWK='$AWK'
22695 test -n "\$AWK" || AWK=awk
22696 _ACEOF
22698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22699 # The default lists apply if the user does not specify any file.
22700 ac_need_defaults=:
22701 while test $# != 0
22702 do
22703 case $1 in
22704 --*=*)
22705 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22706 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22707 ac_shift=:
22708 ;;
22709 *)
22710 ac_option=$1
22711 ac_optarg=$2
22712 ac_shift=shift
22713 ;;
22714 esac
22716 case $ac_option in
22717 # Handling of the options.
22718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22719 ac_cs_recheck=: ;;
22720 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22721 $as_echo "$ac_cs_version"; exit ;;
22722 --debug | --debu | --deb | --de | --d | -d )
22723 debug=: ;;
22724 --file | --fil | --fi | --f )
22725 $ac_shift
22726 case $ac_optarg in
22727 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22728 esac
22729 as_fn_append CONFIG_FILES " '$ac_optarg'"
22730 ac_need_defaults=false;;
22731 --header | --heade | --head | --hea )
22732 $ac_shift
22733 case $ac_optarg in
22734 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22735 esac
22736 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22737 ac_need_defaults=false;;
22738 --he | --h)
22739 # Conflict between --help and --header
22740 as_fn_error "ambiguous option: \`$1'
22741 Try \`$0 --help' for more information.";;
22742 --help | --hel | -h )
22743 $as_echo "$ac_cs_usage"; exit ;;
22744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22745 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22746 ac_cs_silent=: ;;
22748 # This is an error.
22749 -*) as_fn_error "unrecognized option: \`$1'
22750 Try \`$0 --help' for more information." ;;
22752 *) as_fn_append ac_config_targets " $1"
22753 ac_need_defaults=false ;;
22755 esac
22756 shift
22757 done
22759 ac_configure_extra_args=
22761 if $ac_cs_silent; then
22762 exec 6>/dev/null
22763 ac_configure_extra_args="$ac_configure_extra_args --silent"
22764 fi
22766 _ACEOF
22767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22768 if \$ac_cs_recheck; then
22769 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22770 shift
22771 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22772 CONFIG_SHELL='$SHELL'
22773 export CONFIG_SHELL
22774 exec "\$@"
22775 fi
22777 _ACEOF
22778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22779 exec 5>>config.log
22780 {
22781 echo
22782 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22783 ## Running $as_me. ##
22784 _ASBOX
22785 $as_echo "$ac_log"
22786 } >&5
22788 _ACEOF
22789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22790 #
22791 # INIT-COMMANDS
22792 #
22793 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22796 # The HP-UX ksh and POSIX shell print the target directory to stdout
22797 # if CDPATH is set.
22798 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22800 sed_quote_subst='$sed_quote_subst'
22801 double_quote_subst='$double_quote_subst'
22802 delay_variable_subst='$delay_variable_subst'
22803 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22804 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22805 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22806 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22807 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22808 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22809 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22810 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22811 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22812 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22813 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22814 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22815 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22816 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22817 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22818 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22819 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22820 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22821 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22822 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22823 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22824 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22825 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22826 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22827 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22828 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22829 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22830 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22831 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22832 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22833 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22834 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22835 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22836 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22837 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22838 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22839 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22840 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22841 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22842 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22843 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22844 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22845 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22846 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22847 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"`'
22848 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"`'
22849 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22850 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22851 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22852 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22853 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22854 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22855 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22856 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22857 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22858 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22859 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22860 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22861 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22862 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22863 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22864 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22865 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22866 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22867 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22868 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22869 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22870 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22871 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22872 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22873 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22874 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22875 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22876 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22877 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22878 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22879 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22880 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22881 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22882 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22883 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22884 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22885 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22886 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22887 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22888 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22889 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22890 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22891 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22892 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22893 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22894 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22895 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22896 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22897 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22898 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22899 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22900 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22901 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22902 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22903 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22904 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22905 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22906 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22907 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22908 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22909 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22910 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22911 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22912 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22913 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22914 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22915 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22916 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22917 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22918 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22919 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22920 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22922 LTCC='$LTCC'
22923 LTCFLAGS='$LTCFLAGS'
22924 compiler='$compiler_DEFAULT'
22926 # Quote evaled strings.
22927 for var in SED \
22928 GREP \
22929 EGREP \
22930 FGREP \
22931 LD \
22932 NM \
22933 LN_S \
22934 lt_SP2NL \
22935 lt_NL2SP \
22936 reload_flag \
22937 OBJDUMP \
22938 deplibs_check_method \
22939 file_magic_cmd \
22940 AR \
22941 AR_FLAGS \
22942 STRIP \
22943 RANLIB \
22944 CC \
22945 CFLAGS \
22946 compiler \
22947 lt_cv_sys_global_symbol_pipe \
22948 lt_cv_sys_global_symbol_to_cdecl \
22949 lt_cv_sys_global_symbol_to_c_name_address \
22950 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22951 SHELL \
22952 ECHO \
22953 lt_prog_compiler_no_builtin_flag \
22954 lt_prog_compiler_wl \
22955 lt_prog_compiler_pic \
22956 lt_prog_compiler_static \
22957 lt_cv_prog_compiler_c_o \
22958 need_locks \
22959 DSYMUTIL \
22960 NMEDIT \
22961 LIPO \
22962 OTOOL \
22963 OTOOL64 \
22964 shrext_cmds \
22965 export_dynamic_flag_spec \
22966 whole_archive_flag_spec \
22967 compiler_needs_object \
22968 with_gnu_ld \
22969 allow_undefined_flag \
22970 no_undefined_flag \
22971 hardcode_libdir_flag_spec \
22972 hardcode_libdir_flag_spec_ld \
22973 hardcode_libdir_separator \
22974 fix_srcfile_path \
22975 exclude_expsyms \
22976 include_expsyms \
22977 file_list_spec \
22978 variables_saved_for_relink \
22979 libname_spec \
22980 library_names_spec \
22981 soname_spec \
22982 finish_eval \
22983 old_striplib \
22984 striplib; do
22985 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22986 *[\\\\\\\`\\"\\\$]*)
22987 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22988 ;;
22989 *)
22990 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22991 ;;
22992 esac
22993 done
22995 # Double-quote double-evaled strings.
22996 for var in reload_cmds \
22997 old_postinstall_cmds \
22998 old_postuninstall_cmds \
22999 old_archive_cmds \
23000 extract_expsyms_cmds \
23001 old_archive_from_new_cmds \
23002 old_archive_from_expsyms_cmds \
23003 archive_cmds \
23004 archive_expsym_cmds \
23005 module_cmds \
23006 module_expsym_cmds \
23007 export_symbols_cmds \
23008 prelink_cmds \
23009 postinstall_cmds \
23010 postuninstall_cmds \
23011 finish_cmds \
23012 sys_lib_search_path_spec \
23013 sys_lib_dlsearch_path_spec; do
23014 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23015 *[\\\\\\\`\\"\\\$]*)
23016 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23017 ;;
23018 *)
23019 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23020 ;;
23021 esac
23022 done
23024 # Fix-up fallback echo if it was mangled by the above quoting rules.
23025 case \$lt_ECHO in
23026 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23027 ;;
23028 esac
23030 ac_aux_dir='$ac_aux_dir'
23031 xsi_shell='$xsi_shell'
23032 lt_shell_append='$lt_shell_append'
23034 # See if we are running on zsh, and set the options which allow our
23035 # commands through without removal of \ escapes INIT.
23036 if test -n "\${ZSH_VERSION+set}" ; then
23037 setopt NO_GLOB_SUBST
23038 fi
23041 PACKAGE='$PACKAGE'
23042 VERSION='$VERSION'
23043 TIMESTAMP='$TIMESTAMP'
23044 RM='$RM'
23045 ofile='$ofile'
23049 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23050 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23051 # from automake.
23052 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23053 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23054 LINGUAS="${LINGUAS-%UNSET%}"
23058 _ACEOF
23060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23062 # Handling of arguments.
23063 for ac_config_target in $ac_config_targets
23064 do
23065 case $ac_config_target in
23066 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23067 "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
23068 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23069 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23070 "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
23071 "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
23072 "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
23073 "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
23074 "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
23075 "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
23076 "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
23077 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
23078 "examples/rrdcached/Makefile") CONFIG_FILES="$CONFIG_FILES examples/rrdcached/Makefile" ;;
23079 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23080 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23081 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
23082 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23083 "src/librrd.sym.in") CONFIG_FILES="$CONFIG_FILES src/librrd.sym.in" ;;
23084 "src/librrd.pc") CONFIG_FILES="$CONFIG_FILES src/librrd.pc" ;;
23085 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
23086 "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
23087 "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
23088 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23089 "bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/lua/Makefile" ;;
23090 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23092 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23093 esac
23094 done
23097 # If the user did not use the arguments to specify the items to instantiate,
23098 # then the envvar interface is used. Set only those that are not.
23099 # We use the long form for the default assignment because of an extremely
23100 # bizarre bug on SunOS 4.1.3.
23101 if $ac_need_defaults; then
23102 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23103 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23104 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23105 fi
23107 # Have a temporary directory for convenience. Make it in the build tree
23108 # simply because there is no reason against having it here, and in addition,
23109 # creating and moving files from /tmp can sometimes cause problems.
23110 # Hook for its removal unless debugging.
23111 # Note that there is a small window in which the directory will not be cleaned:
23112 # after its creation but before its name has been assigned to `$tmp'.
23113 $debug ||
23114 {
23115 tmp=
23116 trap 'exit_status=$?
23117 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23118 ' 0
23119 trap 'as_fn_exit 1' 1 2 13 15
23120 }
23121 # Create a (secure) tmp directory for tmp files.
23123 {
23124 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23125 test -n "$tmp" && test -d "$tmp"
23126 } ||
23127 {
23128 tmp=./conf$$-$RANDOM
23129 (umask 077 && mkdir "$tmp")
23130 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
23132 # Set up the scripts for CONFIG_FILES section.
23133 # No need to generate them if there are no CONFIG_FILES.
23134 # This happens for instance with `./config.status config.h'.
23135 if test -n "$CONFIG_FILES"; then
23138 ac_cr=`echo X | tr X '\015'`
23139 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23140 # But we know of no other shell where ac_cr would be empty at this
23141 # point, so we can use a bashism as a fallback.
23142 if test "x$ac_cr" = x; then
23143 eval ac_cr=\$\'\\r\'
23144 fi
23145 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23146 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23147 ac_cs_awk_cr='\r'
23148 else
23149 ac_cs_awk_cr=$ac_cr
23150 fi
23152 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23153 _ACEOF
23156 {
23157 echo "cat >conf$$subs.awk <<_ACEOF" &&
23158 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23159 echo "_ACEOF"
23160 } >conf$$subs.sh ||
23161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23162 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23163 ac_delim='%!_!# '
23164 for ac_last_try in false false false false false :; do
23165 . ./conf$$subs.sh ||
23166 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23168 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23169 if test $ac_delim_n = $ac_delim_num; then
23170 break
23171 elif $ac_last_try; then
23172 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
23173 else
23174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23175 fi
23176 done
23177 rm -f conf$$subs.sh
23179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23180 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23181 _ACEOF
23182 sed -n '
23183 h
23184 s/^/S["/; s/!.*/"]=/
23185 p
23186 g
23187 s/^[^!]*!//
23188 :repl
23189 t repl
23190 s/'"$ac_delim"'$//
23191 t delim
23192 :nl
23193 h
23194 s/\(.\{148\}\).*/\1/
23195 t more1
23196 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23197 p
23198 n
23199 b repl
23200 :more1
23201 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23202 p
23203 g
23204 s/.\{148\}//
23205 t nl
23206 :delim
23207 h
23208 s/\(.\{148\}\).*/\1/
23209 t more2
23210 s/["\\]/\\&/g; s/^/"/; s/$/"/
23211 p
23212 b
23213 :more2
23214 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23215 p
23216 g
23217 s/.\{148\}//
23218 t delim
23219 ' <conf$$subs.awk | sed '
23220 /^[^""]/{
23221 N
23222 s/\n//
23223 }
23224 ' >>$CONFIG_STATUS || ac_write_fail=1
23225 rm -f conf$$subs.awk
23226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23227 _ACAWK
23228 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23229 for (key in S) S_is_set[key] = 1
23230 FS = "\a"
23232 }
23233 {
23234 line = $ 0
23235 nfields = split(line, field, "@")
23236 substed = 0
23237 len = length(field[1])
23238 for (i = 2; i < nfields; i++) {
23239 key = field[i]
23240 keylen = length(key)
23241 if (S_is_set[key]) {
23242 value = S[key]
23243 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23244 len += length(value) + length(field[++i])
23245 substed = 1
23246 } else
23247 len += 1 + keylen
23248 }
23250 print line
23251 }
23253 _ACAWK
23254 _ACEOF
23255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23256 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23257 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23258 else
23259 cat
23260 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23261 || as_fn_error "could not setup config files machinery" "$LINENO" 5
23262 _ACEOF
23264 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23265 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23266 # trailing colons and then remove the whole line if VPATH becomes empty
23267 # (actually we leave an empty line to preserve line numbers).
23268 if test "x$srcdir" = x.; then
23269 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23270 s/:*\$(srcdir):*/:/
23271 s/:*\${srcdir}:*/:/
23272 s/:*@srcdir@:*/:/
23273 s/^\([^=]*=[ ]*\):*/\1/
23274 s/:*$//
23275 s/^[^=]*=[ ]*$//
23276 }'
23277 fi
23279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23280 fi # test -n "$CONFIG_FILES"
23282 # Set up the scripts for CONFIG_HEADERS section.
23283 # No need to generate them if there are no CONFIG_HEADERS.
23284 # This happens for instance with `./config.status Makefile'.
23285 if test -n "$CONFIG_HEADERS"; then
23286 cat >"$tmp/defines.awk" <<\_ACAWK ||
23287 BEGIN {
23288 _ACEOF
23290 # Transform confdefs.h into an awk script `defines.awk', embedded as
23291 # here-document in config.status, that substitutes the proper values into
23292 # config.h.in to produce config.h.
23294 # Create a delimiter string that does not exist in confdefs.h, to ease
23295 # handling of long lines.
23296 ac_delim='%!_!# '
23297 for ac_last_try in false false :; do
23298 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23299 if test -z "$ac_t"; then
23300 break
23301 elif $ac_last_try; then
23302 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
23303 else
23304 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23305 fi
23306 done
23308 # For the awk script, D is an array of macro values keyed by name,
23309 # likewise P contains macro parameters if any. Preserve backslash
23310 # newline sequences.
23312 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23313 sed -n '
23314 s/.\{148\}/&'"$ac_delim"'/g
23315 t rset
23316 :rset
23317 s/^[ ]*#[ ]*define[ ][ ]*/ /
23318 t def
23319 d
23320 :def
23321 s/\\$//
23322 t bsnl
23323 s/["\\]/\\&/g
23324 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23325 D["\1"]=" \3"/p
23326 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23327 d
23328 :bsnl
23329 s/["\\]/\\&/g
23330 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23331 D["\1"]=" \3\\\\\\n"\\/p
23332 t cont
23333 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23334 t cont
23335 d
23336 :cont
23337 n
23338 s/.\{148\}/&'"$ac_delim"'/g
23339 t clear
23340 :clear
23341 s/\\$//
23342 t bsnlc
23343 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23344 d
23345 :bsnlc
23346 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23347 b cont
23348 ' <confdefs.h | sed '
23349 s/'"$ac_delim"'/"\\\
23350 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23353 for (key in D) D_is_set[key] = 1
23354 FS = "\a"
23355 }
23356 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23357 line = \$ 0
23358 split(line, arg, " ")
23359 if (arg[1] == "#") {
23360 defundef = arg[2]
23361 mac1 = arg[3]
23362 } else {
23363 defundef = substr(arg[1], 2)
23364 mac1 = arg[2]
23365 }
23366 split(mac1, mac2, "(") #)
23367 macro = mac2[1]
23368 prefix = substr(line, 1, index(line, defundef) - 1)
23369 if (D_is_set[macro]) {
23370 # Preserve the white space surrounding the "#".
23371 print prefix "define", macro P[macro] D[macro]
23372 next
23373 } else {
23374 # Replace #undef with comments. This is necessary, for example,
23375 # in the case of _POSIX_SOURCE, which is predefined and required
23376 # on some systems where configure will not decide to define it.
23377 if (defundef == "undef") {
23378 print "/*", prefix defundef, macro, "*/"
23379 next
23380 }
23381 }
23382 }
23383 { print }
23384 _ACAWK
23385 _ACEOF
23386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23387 as_fn_error "could not setup config headers machinery" "$LINENO" 5
23388 fi # test -n "$CONFIG_HEADERS"
23391 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23392 shift
23393 for ac_tag
23394 do
23395 case $ac_tag in
23396 :[FHLC]) ac_mode=$ac_tag; continue;;
23397 esac
23398 case $ac_mode$ac_tag in
23399 :[FHL]*:*);;
23400 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
23401 :[FH]-) ac_tag=-:-;;
23402 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23403 esac
23404 ac_save_IFS=$IFS
23405 IFS=:
23406 set x $ac_tag
23407 IFS=$ac_save_IFS
23408 shift
23409 ac_file=$1
23410 shift
23412 case $ac_mode in
23413 :L) ac_source=$1;;
23414 :[FH])
23415 ac_file_inputs=
23416 for ac_f
23417 do
23418 case $ac_f in
23419 -) ac_f="$tmp/stdin";;
23420 *) # Look for the file first in the build tree, then in the source tree
23421 # (if the path is not absolute). The absolute path cannot be DOS-style,
23422 # because $ac_f cannot contain `:'.
23423 test -f "$ac_f" ||
23424 case $ac_f in
23425 [\\/$]*) false;;
23426 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23427 esac ||
23428 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23429 esac
23430 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23431 as_fn_append ac_file_inputs " '$ac_f'"
23432 done
23434 # Let's still pretend it is `configure' which instantiates (i.e., don't
23435 # use $as_me), people would be surprised to read:
23436 # /* config.h. Generated by config.status. */
23437 configure_input='Generated from '`
23438 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23439 `' by configure.'
23440 if test x"$ac_file" != x-; then
23441 configure_input="$ac_file. $configure_input"
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23443 $as_echo "$as_me: creating $ac_file" >&6;}
23444 fi
23445 # Neutralize special characters interpreted by sed in replacement strings.
23446 case $configure_input in #(
23447 *\&* | *\|* | *\\* )
23448 ac_sed_conf_input=`$as_echo "$configure_input" |
23449 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23450 *) ac_sed_conf_input=$configure_input;;
23451 esac
23453 case $ac_tag in
23454 *:-:* | *:-) cat >"$tmp/stdin" \
23455 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
23456 esac
23457 ;;
23458 esac
23460 ac_dir=`$as_dirname -- "$ac_file" ||
23461 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23462 X"$ac_file" : 'X\(//\)[^/]' \| \
23463 X"$ac_file" : 'X\(//\)$' \| \
23464 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23465 $as_echo X"$ac_file" |
23466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23467 s//\1/
23468 q
23469 }
23470 /^X\(\/\/\)[^/].*/{
23471 s//\1/
23472 q
23473 }
23474 /^X\(\/\/\)$/{
23475 s//\1/
23476 q
23477 }
23478 /^X\(\/\).*/{
23479 s//\1/
23480 q
23481 }
23482 s/.*/./; q'`
23483 as_dir="$ac_dir"; as_fn_mkdir_p
23484 ac_builddir=.
23486 case "$ac_dir" in
23487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23488 *)
23489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23490 # A ".." for each directory in $ac_dir_suffix.
23491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23492 case $ac_top_builddir_sub in
23493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23495 esac ;;
23496 esac
23497 ac_abs_top_builddir=$ac_pwd
23498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23499 # for backward compatibility:
23500 ac_top_builddir=$ac_top_build_prefix
23502 case $srcdir in
23503 .) # We are building in place.
23504 ac_srcdir=.
23505 ac_top_srcdir=$ac_top_builddir_sub
23506 ac_abs_top_srcdir=$ac_pwd ;;
23507 [\\/]* | ?:[\\/]* ) # Absolute name.
23508 ac_srcdir=$srcdir$ac_dir_suffix;
23509 ac_top_srcdir=$srcdir
23510 ac_abs_top_srcdir=$srcdir ;;
23511 *) # Relative name.
23512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23513 ac_top_srcdir=$ac_top_build_prefix$srcdir
23514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23515 esac
23516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23519 case $ac_mode in
23520 :F)
23521 #
23522 # CONFIG_FILE
23523 #
23525 case $INSTALL in
23526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23527 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23528 esac
23529 ac_MKDIR_P=$MKDIR_P
23530 case $MKDIR_P in
23531 [\\/$]* | ?:[\\/]* ) ;;
23532 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23533 esac
23534 _ACEOF
23536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23537 # If the template does not know about datarootdir, expand it.
23538 # FIXME: This hack should be removed a few years after 2.60.
23539 ac_datarootdir_hack=; ac_datarootdir_seen=
23540 ac_sed_dataroot='
23541 /datarootdir/ {
23542 p
23543 q
23544 }
23545 /@datadir@/p
23546 /@docdir@/p
23547 /@infodir@/p
23548 /@localedir@/p
23549 /@mandir@/p'
23550 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23551 *datarootdir*) ac_datarootdir_seen=yes;;
23552 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23554 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23555 _ACEOF
23556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23557 ac_datarootdir_hack='
23558 s&@datadir@&$datadir&g
23559 s&@docdir@&$docdir&g
23560 s&@infodir@&$infodir&g
23561 s&@localedir@&$localedir&g
23562 s&@mandir@&$mandir&g
23563 s&\\\${datarootdir}&$datarootdir&g' ;;
23564 esac
23565 _ACEOF
23567 # Neutralize VPATH when `$srcdir' = `.'.
23568 # Shell code in configure.ac might set extrasub.
23569 # FIXME: do we really want to maintain this feature?
23570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23571 ac_sed_extra="$ac_vpsub
23572 $extrasub
23573 _ACEOF
23574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23575 :t
23576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23577 s|@configure_input@|$ac_sed_conf_input|;t t
23578 s&@top_builddir@&$ac_top_builddir_sub&;t t
23579 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23580 s&@srcdir@&$ac_srcdir&;t t
23581 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23582 s&@top_srcdir@&$ac_top_srcdir&;t t
23583 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23584 s&@builddir@&$ac_builddir&;t t
23585 s&@abs_builddir@&$ac_abs_builddir&;t t
23586 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23587 s&@INSTALL@&$ac_INSTALL&;t t
23588 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23589 $ac_datarootdir_hack
23590 "
23591 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23592 || as_fn_error "could not create $ac_file" "$LINENO" 5
23594 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23595 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23596 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23598 which seems to be undefined. Please make sure it is defined." >&5
23599 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23600 which seems to be undefined. Please make sure it is defined." >&2;}
23602 rm -f "$tmp/stdin"
23603 case $ac_file in
23604 -) cat "$tmp/out" && rm -f "$tmp/out";;
23605 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23606 esac \
23607 || as_fn_error "could not create $ac_file" "$LINENO" 5
23608 ;;
23609 :H)
23610 #
23611 # CONFIG_HEADER
23612 #
23613 if test x"$ac_file" != x-; then
23614 {
23615 $as_echo "/* $configure_input */" \
23616 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23617 } >"$tmp/config.h" \
23618 || as_fn_error "could not create $ac_file" "$LINENO" 5
23619 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23621 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23622 else
23623 rm -f "$ac_file"
23624 mv "$tmp/config.h" "$ac_file" \
23625 || as_fn_error "could not create $ac_file" "$LINENO" 5
23626 fi
23627 else
23628 $as_echo "/* $configure_input */" \
23629 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23630 || as_fn_error "could not create -" "$LINENO" 5
23631 fi
23632 # Compute "$ac_file"'s index in $config_headers.
23633 _am_arg="$ac_file"
23634 _am_stamp_count=1
23635 for _am_header in $config_headers :; do
23636 case $_am_header in
23637 $_am_arg | $_am_arg:* )
23638 break ;;
23639 * )
23640 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23641 esac
23642 done
23643 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23644 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23645 X"$_am_arg" : 'X\(//\)[^/]' \| \
23646 X"$_am_arg" : 'X\(//\)$' \| \
23647 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23648 $as_echo X"$_am_arg" |
23649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23650 s//\1/
23651 q
23652 }
23653 /^X\(\/\/\)[^/].*/{
23654 s//\1/
23655 q
23656 }
23657 /^X\(\/\/\)$/{
23658 s//\1/
23659 q
23660 }
23661 /^X\(\/\).*/{
23662 s//\1/
23663 q
23664 }
23665 s/.*/./; q'`/stamp-h$_am_stamp_count
23666 ;;
23668 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23669 $as_echo "$as_me: executing $ac_file commands" >&6;}
23670 ;;
23671 esac
23674 case $ac_file$ac_mode in
23675 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23676 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23677 # are listed without --file. Let's play safe and only enable the eval
23678 # if we detect the quoting.
23679 case $CONFIG_FILES in
23680 *\'*) eval set x "$CONFIG_FILES" ;;
23681 *) set x $CONFIG_FILES ;;
23682 esac
23683 shift
23684 for mf
23685 do
23686 # Strip MF so we end up with the name of the file.
23687 mf=`echo "$mf" | sed -e 's/:.*$//'`
23688 # Check whether this is an Automake generated Makefile or not.
23689 # We used to match only the files named `Makefile.in', but
23690 # some people rename them; so instead we look at the file content.
23691 # Grep'ing the first line is not enough: some people post-process
23692 # each Makefile.in and add a new line on top of each file to say so.
23693 # Grep'ing the whole file is not good either: AIX grep has a line
23694 # limit of 2048, but all sed's we know have understand at least 4000.
23695 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23696 dirpart=`$as_dirname -- "$mf" ||
23697 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23698 X"$mf" : 'X\(//\)[^/]' \| \
23699 X"$mf" : 'X\(//\)$' \| \
23700 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23701 $as_echo X"$mf" |
23702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23703 s//\1/
23704 q
23705 }
23706 /^X\(\/\/\)[^/].*/{
23707 s//\1/
23708 q
23709 }
23710 /^X\(\/\/\)$/{
23711 s//\1/
23712 q
23713 }
23714 /^X\(\/\).*/{
23715 s//\1/
23716 q
23717 }
23718 s/.*/./; q'`
23719 else
23720 continue
23721 fi
23722 # Extract the definition of DEPDIR, am__include, and am__quote
23723 # from the Makefile without running `make'.
23724 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23725 test -z "$DEPDIR" && continue
23726 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23727 test -z "am__include" && continue
23728 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23729 # When using ansi2knr, U may be empty or an underscore; expand it
23730 U=`sed -n 's/^U = //p' < "$mf"`
23731 # Find all dependency output files, they are included files with
23732 # $(DEPDIR) in their names. We invoke sed twice because it is the
23733 # simplest approach to changing $(DEPDIR) to its actual value in the
23734 # expansion.
23735 for file in `sed -n "
23736 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23737 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23738 # Make sure the directory exists.
23739 test -f "$dirpart/$file" && continue
23740 fdir=`$as_dirname -- "$file" ||
23741 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23742 X"$file" : 'X\(//\)[^/]' \| \
23743 X"$file" : 'X\(//\)$' \| \
23744 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23745 $as_echo X"$file" |
23746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23747 s//\1/
23748 q
23749 }
23750 /^X\(\/\/\)[^/].*/{
23751 s//\1/
23752 q
23753 }
23754 /^X\(\/\/\)$/{
23755 s//\1/
23756 q
23757 }
23758 /^X\(\/\).*/{
23759 s//\1/
23760 q
23761 }
23762 s/.*/./; q'`
23763 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23764 # echo "creating $dirpart/$file"
23765 echo '# dummy' > "$dirpart/$file"
23766 done
23767 done
23768 }
23769 ;;
23770 "libtool":C)
23772 # See if we are running on zsh, and set the options which allow our
23773 # commands through without removal of \ escapes.
23774 if test -n "${ZSH_VERSION+set}" ; then
23775 setopt NO_GLOB_SUBST
23776 fi
23778 cfgfile="${ofile}T"
23779 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23780 $RM "$cfgfile"
23782 cat <<_LT_EOF >> "$cfgfile"
23783 #! $SHELL
23785 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23786 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23787 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23788 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23789 #
23790 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23791 # 2006, 2007, 2008 Free Software Foundation, Inc.
23792 # Written by Gordon Matzigkeit, 1996
23793 #
23794 # This file is part of GNU Libtool.
23795 #
23796 # GNU Libtool is free software; you can redistribute it and/or
23797 # modify it under the terms of the GNU General Public License as
23798 # published by the Free Software Foundation; either version 2 of
23799 # the License, or (at your option) any later version.
23800 #
23801 # As a special exception to the GNU General Public License,
23802 # if you distribute this file as part of a program or library that
23803 # is built using GNU Libtool, you may include this file under the
23804 # same distribution terms that you use for the rest of that program.
23805 #
23806 # GNU Libtool is distributed in the hope that it will be useful,
23807 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23808 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23809 # GNU General Public License for more details.
23810 #
23811 # You should have received a copy of the GNU General Public License
23812 # along with GNU Libtool; see the file COPYING. If not, a copy
23813 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23814 # obtained by writing to the Free Software Foundation, Inc.,
23815 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23818 # The names of the tagged configurations supported by this script.
23819 available_tags=""
23821 # ### BEGIN LIBTOOL CONFIG
23823 # Which release of libtool.m4 was used?
23824 macro_version=$macro_version
23825 macro_revision=$macro_revision
23827 # Whether or not to build shared libraries.
23828 build_libtool_libs=$enable_shared
23830 # Whether or not to build static libraries.
23831 build_old_libs=$enable_static
23833 # What type of objects to build.
23834 pic_mode=$pic_mode
23836 # Whether or not to optimize for fast installation.
23837 fast_install=$enable_fast_install
23839 # The host system.
23840 host_alias=$host_alias
23841 host=$host
23842 host_os=$host_os
23844 # The build system.
23845 build_alias=$build_alias
23846 build=$build
23847 build_os=$build_os
23849 # A sed program that does not truncate output.
23850 SED=$lt_SED
23852 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23853 Xsed="\$SED -e 1s/^X//"
23855 # A grep program that handles long lines.
23856 GREP=$lt_GREP
23858 # An ERE matcher.
23859 EGREP=$lt_EGREP
23861 # A literal string matcher.
23862 FGREP=$lt_FGREP
23864 # A BSD- or MS-compatible name lister.
23865 NM=$lt_NM
23867 # Whether we need soft or hard links.
23868 LN_S=$lt_LN_S
23870 # What is the maximum length of a command?
23871 max_cmd_len=$max_cmd_len
23873 # Object file suffix (normally "o").
23874 objext=$ac_objext
23876 # Executable file suffix (normally "").
23877 exeext=$exeext
23879 # whether the shell understands "unset".
23880 lt_unset=$lt_unset
23882 # turn spaces into newlines.
23883 SP2NL=$lt_lt_SP2NL
23885 # turn newlines into spaces.
23886 NL2SP=$lt_lt_NL2SP
23888 # How to create reloadable object files.
23889 reload_flag=$lt_reload_flag
23890 reload_cmds=$lt_reload_cmds
23892 # An object symbol dumper.
23893 OBJDUMP=$lt_OBJDUMP
23895 # Method to check whether dependent libraries are shared objects.
23896 deplibs_check_method=$lt_deplibs_check_method
23898 # Command to use when deplibs_check_method == "file_magic".
23899 file_magic_cmd=$lt_file_magic_cmd
23901 # The archiver.
23902 AR=$lt_AR
23903 AR_FLAGS=$lt_AR_FLAGS
23905 # A symbol stripping program.
23906 STRIP=$lt_STRIP
23908 # Commands used to install an old-style archive.
23909 RANLIB=$lt_RANLIB
23910 old_postinstall_cmds=$lt_old_postinstall_cmds
23911 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23913 # A C compiler.
23914 LTCC=$lt_CC
23916 # LTCC compiler flags.
23917 LTCFLAGS=$lt_CFLAGS
23919 # Take the output of nm and produce a listing of raw symbols and C names.
23920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23922 # Transform the output of nm in a proper C declaration.
23923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23925 # Transform the output of nm in a C name address pair.
23926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23928 # Transform the output of nm in a C name address pair when lib prefix is needed.
23929 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23931 # The name of the directory that contains temporary libtool files.
23932 objdir=$objdir
23934 # Shell to use when invoking shell scripts.
23935 SHELL=$lt_SHELL
23937 # An echo program that does not interpret backslashes.
23938 ECHO=$lt_ECHO
23940 # Used to examine libraries when file_magic_cmd begins with "file".
23941 MAGIC_CMD=$MAGIC_CMD
23943 # Must we lock files when doing compilation?
23944 need_locks=$lt_need_locks
23946 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23947 DSYMUTIL=$lt_DSYMUTIL
23949 # Tool to change global to local symbols on Mac OS X.
23950 NMEDIT=$lt_NMEDIT
23952 # Tool to manipulate fat objects and archives on Mac OS X.
23953 LIPO=$lt_LIPO
23955 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23956 OTOOL=$lt_OTOOL
23958 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23959 OTOOL64=$lt_OTOOL64
23961 # Old archive suffix (normally "a").
23962 libext=$libext
23964 # Shared library suffix (normally ".so").
23965 shrext_cmds=$lt_shrext_cmds
23967 # The commands to extract the exported symbol list from a shared archive.
23968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23970 # Variables whose values should be saved in libtool wrapper scripts and
23971 # restored at link time.
23972 variables_saved_for_relink=$lt_variables_saved_for_relink
23974 # Do we need the "lib" prefix for modules?
23975 need_lib_prefix=$need_lib_prefix
23977 # Do we need a version for libraries?
23978 need_version=$need_version
23980 # Library versioning type.
23981 version_type=$version_type
23983 # Shared library runtime path variable.
23984 runpath_var=$runpath_var
23986 # Shared library path variable.
23987 shlibpath_var=$shlibpath_var
23989 # Is shlibpath searched before the hard-coded library search path?
23990 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23992 # Format of library name prefix.
23993 libname_spec=$lt_libname_spec
23995 # List of archive names. First name is the real one, the rest are links.
23996 # The last name is the one that the linker finds with -lNAME
23997 library_names_spec=$lt_library_names_spec
23999 # The coded name of the library, if different from the real name.
24000 soname_spec=$lt_soname_spec
24002 # Command to use after installation of a shared archive.
24003 postinstall_cmds=$lt_postinstall_cmds
24005 # Command to use after uninstallation of a shared archive.
24006 postuninstall_cmds=$lt_postuninstall_cmds
24008 # Commands used to finish a libtool library installation in a directory.
24009 finish_cmds=$lt_finish_cmds
24011 # As "finish_cmds", except a single script fragment to be evaled but
24012 # not shown.
24013 finish_eval=$lt_finish_eval
24015 # Whether we should hardcode library paths into libraries.
24016 hardcode_into_libs=$hardcode_into_libs
24018 # Compile-time system search path for libraries.
24019 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24021 # Run-time system search path for libraries.
24022 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24024 # Whether dlopen is supported.
24025 dlopen_support=$enable_dlopen
24027 # Whether dlopen of programs is supported.
24028 dlopen_self=$enable_dlopen_self
24030 # Whether dlopen of statically linked programs is supported.
24031 dlopen_self_static=$enable_dlopen_self_static
24033 # Commands to strip libraries.
24034 old_striplib=$lt_old_striplib
24035 striplib=$lt_striplib
24038 # The linker used to build libraries.
24039 LD=$lt_LD
24041 # Commands used to build an old-style archive.
24042 old_archive_cmds=$lt_old_archive_cmds
24044 # A language specific compiler.
24045 CC=$lt_compiler
24047 # Is the compiler the GNU compiler?
24048 with_gcc=$GCC
24050 # Compiler flag to turn off builtin functions.
24051 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24053 # How to pass a linker flag through the compiler.
24054 wl=$lt_lt_prog_compiler_wl
24056 # Additional compiler flags for building library objects.
24057 pic_flag=$lt_lt_prog_compiler_pic
24059 # Compiler flag to prevent dynamic linking.
24060 link_static_flag=$lt_lt_prog_compiler_static
24062 # Does compiler simultaneously support -c and -o options?
24063 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24065 # Whether or not to add -lc for building shared libraries.
24066 build_libtool_need_lc=$archive_cmds_need_lc
24068 # Whether or not to disallow shared libs when runtime libs are static.
24069 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24071 # Compiler flag to allow reflexive dlopens.
24072 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24074 # Compiler flag to generate shared objects directly from archives.
24075 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24077 # Whether the compiler copes with passing no objects directly.
24078 compiler_needs_object=$lt_compiler_needs_object
24080 # Create an old-style archive from a shared archive.
24081 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24083 # Create a temporary old-style archive to link instead of a shared archive.
24084 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24086 # Commands used to build a shared archive.
24087 archive_cmds=$lt_archive_cmds
24088 archive_expsym_cmds=$lt_archive_expsym_cmds
24090 # Commands used to build a loadable module if different from building
24091 # a shared archive.
24092 module_cmds=$lt_module_cmds
24093 module_expsym_cmds=$lt_module_expsym_cmds
24095 # Whether we are building with GNU ld or not.
24096 with_gnu_ld=$lt_with_gnu_ld
24098 # Flag that allows shared libraries with undefined symbols to be built.
24099 allow_undefined_flag=$lt_allow_undefined_flag
24101 # Flag that enforces no undefined symbols.
24102 no_undefined_flag=$lt_no_undefined_flag
24104 # Flag to hardcode \$libdir into a binary during linking.
24105 # This must work even if \$libdir does not exist
24106 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24108 # If ld is used when linking, flag to hardcode \$libdir into a binary
24109 # during linking. This must work even if \$libdir does not exist.
24110 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24112 # Whether we need a single "-rpath" flag with a separated argument.
24113 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24115 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24116 # DIR into the resulting binary.
24117 hardcode_direct=$hardcode_direct
24119 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24120 # DIR into the resulting binary and the resulting library dependency is
24121 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24122 # library is relocated.
24123 hardcode_direct_absolute=$hardcode_direct_absolute
24125 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24126 # into the resulting binary.
24127 hardcode_minus_L=$hardcode_minus_L
24129 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24130 # into the resulting binary.
24131 hardcode_shlibpath_var=$hardcode_shlibpath_var
24133 # Set to "yes" if building a shared library automatically hardcodes DIR
24134 # into the library and all subsequent libraries and executables linked
24135 # against it.
24136 hardcode_automatic=$hardcode_automatic
24138 # Set to yes if linker adds runtime paths of dependent libraries
24139 # to runtime path list.
24140 inherit_rpath=$inherit_rpath
24142 # Whether libtool must link a program against all its dependency libraries.
24143 link_all_deplibs=$link_all_deplibs
24145 # Fix the shell variable \$srcfile for the compiler.
24146 fix_srcfile_path=$lt_fix_srcfile_path
24148 # Set to "yes" if exported symbols are required.
24149 always_export_symbols=$always_export_symbols
24151 # The commands to list exported symbols.
24152 export_symbols_cmds=$lt_export_symbols_cmds
24154 # Symbols that should not be listed in the preloaded symbols.
24155 exclude_expsyms=$lt_exclude_expsyms
24157 # Symbols that must always be exported.
24158 include_expsyms=$lt_include_expsyms
24160 # Commands necessary for linking programs (against libraries) with templates.
24161 prelink_cmds=$lt_prelink_cmds
24163 # Specify filename containing input files.
24164 file_list_spec=$lt_file_list_spec
24166 # How to hardcode a shared library path into an executable.
24167 hardcode_action=$hardcode_action
24169 # ### END LIBTOOL CONFIG
24171 _LT_EOF
24173 case $host_os in
24174 aix3*)
24175 cat <<\_LT_EOF >> "$cfgfile"
24176 # AIX sometimes has problems with the GCC collect2 program. For some
24177 # reason, if we set the COLLECT_NAMES environment variable, the problems
24178 # vanish in a puff of smoke.
24179 if test "X${COLLECT_NAMES+set}" != Xset; then
24180 COLLECT_NAMES=
24181 export COLLECT_NAMES
24182 fi
24183 _LT_EOF
24184 ;;
24185 esac
24188 ltmain="$ac_aux_dir/ltmain.sh"
24191 # We use sed instead of cat because bash on DJGPP gets confused if
24192 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24193 # text mode, it properly converts lines to CR/LF. This bash problem
24194 # is reportedly fixed, but why not run on old versions too?
24195 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24196 || (rm -f "$cfgfile"; exit 1)
24198 case $xsi_shell in
24199 yes)
24200 cat << \_LT_EOF >> "$cfgfile"
24202 # func_dirname file append nondir_replacement
24203 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24204 # otherwise set result to NONDIR_REPLACEMENT.
24205 func_dirname ()
24206 {
24207 case ${1} in
24208 */*) func_dirname_result="${1%/*}${2}" ;;
24209 * ) func_dirname_result="${3}" ;;
24210 esac
24211 }
24213 # func_basename file
24214 func_basename ()
24215 {
24216 func_basename_result="${1##*/}"
24217 }
24219 # func_dirname_and_basename file append nondir_replacement
24220 # perform func_basename and func_dirname in a single function
24221 # call:
24222 # dirname: Compute the dirname of FILE. If nonempty,
24223 # add APPEND to the result, otherwise set result
24224 # to NONDIR_REPLACEMENT.
24225 # value returned in "$func_dirname_result"
24226 # basename: Compute filename of FILE.
24227 # value retuned in "$func_basename_result"
24228 # Implementation must be kept synchronized with func_dirname
24229 # and func_basename. For efficiency, we do not delegate to
24230 # those functions but instead duplicate the functionality here.
24231 func_dirname_and_basename ()
24232 {
24233 case ${1} in
24234 */*) func_dirname_result="${1%/*}${2}" ;;
24235 * ) func_dirname_result="${3}" ;;
24236 esac
24237 func_basename_result="${1##*/}"
24238 }
24240 # func_stripname prefix suffix name
24241 # strip PREFIX and SUFFIX off of NAME.
24242 # PREFIX and SUFFIX must not contain globbing or regex special
24243 # characters, hashes, percent signs, but SUFFIX may contain a leading
24244 # dot (in which case that matches only a dot).
24245 func_stripname ()
24246 {
24247 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24248 # positional parameters, so assign one to ordinary parameter first.
24249 func_stripname_result=${3}
24250 func_stripname_result=${func_stripname_result#"${1}"}
24251 func_stripname_result=${func_stripname_result%"${2}"}
24252 }
24254 # func_opt_split
24255 func_opt_split ()
24256 {
24257 func_opt_split_opt=${1%%=*}
24258 func_opt_split_arg=${1#*=}
24259 }
24261 # func_lo2o object
24262 func_lo2o ()
24263 {
24264 case ${1} in
24265 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24266 *) func_lo2o_result=${1} ;;
24267 esac
24268 }
24270 # func_xform libobj-or-source
24271 func_xform ()
24272 {
24273 func_xform_result=${1%.*}.lo
24274 }
24276 # func_arith arithmetic-term...
24277 func_arith ()
24278 {
24279 func_arith_result=$(( $* ))
24280 }
24282 # func_len string
24283 # STRING may not start with a hyphen.
24284 func_len ()
24285 {
24286 func_len_result=${#1}
24287 }
24289 _LT_EOF
24290 ;;
24291 *) # Bourne compatible functions.
24292 cat << \_LT_EOF >> "$cfgfile"
24294 # func_dirname file append nondir_replacement
24295 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24296 # otherwise set result to NONDIR_REPLACEMENT.
24297 func_dirname ()
24298 {
24299 # Extract subdirectory from the argument.
24300 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24301 if test "X$func_dirname_result" = "X${1}"; then
24302 func_dirname_result="${3}"
24303 else
24304 func_dirname_result="$func_dirname_result${2}"
24305 fi
24306 }
24308 # func_basename file
24309 func_basename ()
24310 {
24311 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24312 }
24315 # func_stripname prefix suffix name
24316 # strip PREFIX and SUFFIX off of NAME.
24317 # PREFIX and SUFFIX must not contain globbing or regex special
24318 # characters, hashes, percent signs, but SUFFIX may contain a leading
24319 # dot (in which case that matches only a dot).
24320 # func_strip_suffix prefix name
24321 func_stripname ()
24322 {
24323 case ${2} in
24324 .*) func_stripname_result=`$ECHO "X${3}" \
24325 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24326 *) func_stripname_result=`$ECHO "X${3}" \
24327 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24328 esac
24329 }
24331 # sed scripts:
24332 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24333 my_sed_long_arg='1s/^-[^=]*=//'
24335 # func_opt_split
24336 func_opt_split ()
24337 {
24338 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24339 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24340 }
24342 # func_lo2o object
24343 func_lo2o ()
24344 {
24345 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24346 }
24348 # func_xform libobj-or-source
24349 func_xform ()
24350 {
24351 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24352 }
24354 # func_arith arithmetic-term...
24355 func_arith ()
24356 {
24357 func_arith_result=`expr "$@"`
24358 }
24360 # func_len string
24361 # STRING may not start with a hyphen.
24362 func_len ()
24363 {
24364 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24365 }
24367 _LT_EOF
24368 esac
24370 case $lt_shell_append in
24371 yes)
24372 cat << \_LT_EOF >> "$cfgfile"
24374 # func_append var value
24375 # Append VALUE to the end of shell variable VAR.
24376 func_append ()
24377 {
24378 eval "$1+=\$2"
24379 }
24380 _LT_EOF
24381 ;;
24382 *)
24383 cat << \_LT_EOF >> "$cfgfile"
24385 # func_append var value
24386 # Append VALUE to the end of shell variable VAR.
24387 func_append ()
24388 {
24389 eval "$1=\$$1\$2"
24390 }
24392 _LT_EOF
24393 ;;
24394 esac
24397 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24398 || (rm -f "$cfgfile"; exit 1)
24400 mv -f "$cfgfile" "$ofile" ||
24401 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24402 chmod +x "$ofile"
24404 ;;
24405 "default-1":C)
24406 for ac_file in $CONFIG_FILES; do
24407 # Support "outfile[:infile[:infile...]]"
24408 case "$ac_file" in
24409 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24410 esac
24411 # PO directories have a Makefile.in generated from Makefile.in.in.
24412 case "$ac_file" in */Makefile.in)
24413 # Adjust a relative srcdir.
24414 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24415 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24416 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24417 # In autoconf-2.13 it is called $ac_given_srcdir.
24418 # In autoconf-2.50 it is called $srcdir.
24419 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24420 case "$ac_given_srcdir" in
24421 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24422 /*) top_srcdir="$ac_given_srcdir" ;;
24423 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24424 esac
24425 # Treat a directory as a PO directory if and only if it has a
24426 # POTFILES.in file. This allows packages to have multiple PO
24427 # directories under different names or in different locations.
24428 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24429 rm -f "$ac_dir/POTFILES"
24430 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24431 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24432 POMAKEFILEDEPS="POTFILES.in"
24433 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24434 # on $ac_dir but don't depend on user-specified configuration
24435 # parameters.
24436 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24437 # The LINGUAS file contains the set of available languages.
24438 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24439 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24440 fi
24441 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24442 # Hide the ALL_LINGUAS assigment from automake.
24443 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24444 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24445 else
24446 # The set of available languages was given in configure.in.
24447 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24448 fi
24449 # Compute POFILES
24450 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24451 # Compute UPDATEPOFILES
24452 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24453 # Compute DUMMYPOFILES
24454 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24455 # Compute GMOFILES
24456 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24457 case "$ac_given_srcdir" in
24458 .) srcdirpre= ;;
24459 *) srcdirpre='$(srcdir)/' ;;
24460 esac
24461 POFILES=
24462 UPDATEPOFILES=
24463 DUMMYPOFILES=
24464 GMOFILES=
24465 for lang in $ALL_LINGUAS; do
24466 POFILES="$POFILES $srcdirpre$lang.po"
24467 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24468 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24469 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24470 done
24471 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24472 # environment variable.
24473 INST_LINGUAS=
24474 if test -n "$ALL_LINGUAS"; then
24475 for presentlang in $ALL_LINGUAS; do
24476 useit=no
24477 if test "%UNSET%" != "$LINGUAS"; then
24478 desiredlanguages="$LINGUAS"
24479 else
24480 desiredlanguages="$ALL_LINGUAS"
24481 fi
24482 for desiredlang in $desiredlanguages; do
24483 # Use the presentlang catalog if desiredlang is
24484 # a. equal to presentlang, or
24485 # b. a variant of presentlang (because in this case,
24486 # presentlang can be used as a fallback for messages
24487 # which are not translated in the desiredlang catalog).
24488 case "$desiredlang" in
24489 "$presentlang"*) useit=yes;;
24490 esac
24491 done
24492 if test $useit = yes; then
24493 INST_LINGUAS="$INST_LINGUAS $presentlang"
24494 fi
24495 done
24496 fi
24497 CATALOGS=
24498 if test -n "$INST_LINGUAS"; then
24499 for lang in $INST_LINGUAS; do
24500 CATALOGS="$CATALOGS $lang.gmo"
24501 done
24502 fi
24503 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24504 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"
24505 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24506 if test -f "$f"; then
24507 case "$f" in
24508 *.orig | *.bak | *~) ;;
24509 *) cat "$f" >> "$ac_dir/Makefile" ;;
24510 esac
24511 fi
24512 done
24513 fi
24514 ;;
24515 esac
24516 done ;;
24517 "default":C) chmod +x examples/*.pl ;;
24519 esac
24520 done # for ac_tag
24523 as_fn_exit 0
24524 _ACEOF
24525 ac_clean_files=$ac_clean_files_save
24527 test $ac_write_fail = 0 ||
24528 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
24530 test -f config.h || ln -s rrd_config.h config.h
24532 # configure is writing to config.log, and then calls config.status.
24533 # config.status does its own redirection, appending to config.log.
24534 # Unfortunately, on DOS this fails, as config.log is still kept open
24535 # by configure, so config.status won't be able to write to it; its
24536 # output is simply discarded. So we exec the FD to /dev/null,
24537 # effectively closing config.log, so it can be properly (re)opened and
24538 # appended to by config.status. When coming back to configure, we
24539 # need to make the FD available again.
24540 if test "$no_create" != yes; then
24541 ac_cs_success=:
24542 ac_config_status_args=
24543 test "$silent" = yes &&
24544 ac_config_status_args="$ac_config_status_args --quiet"
24545 exec 5>/dev/null
24546 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24547 exec 5>>config.log
24548 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24549 # would make configure fail if this is the last instruction.
24550 $ac_cs_success || as_fn_exit $?
24551 fi
24552 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24554 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24555 fi
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking in" >&5
24559 $as_echo_n "checking in... " >&6; }
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: and out again" >&5
24561 $as_echo "and out again" >&6; }
24563 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
24564 sleep 1
24565 echo $ECHO_N ".$ECHO_C" 1>&6
24566 sleep 1
24567 echo $ECHO_N ".$ECHO_C" 1>&6
24568 sleep 1
24569 echo $ECHO_N ".$ECHO_C" 1>&6
24570 sleep 1
24571 echo $ECHO_N ".$ECHO_C" 1>&6
24572 sleep 1
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just kidding ;-)" >&5
24574 $as_echo " just kidding ;-)" >&6; }
24575 echo
24576 echo "----------------------------------------------------------------"
24577 echo "Config is DONE!"
24578 echo
24579 echo " With MMAP IO: $enable_mmap"
24580 echo " Build rrd_getopt: $build_getopt"
24581 echo " Static programs: $staticprogs"
24582 echo " Perl Modules: $COMP_PERL"
24583 echo " Perl Binary: $PERL"
24584 echo " Perl Version: $PERL_VERSION"
24585 echo " Perl Options: $PERL_MAKE_OPTIONS"
24586 echo " Ruby Modules: $COMP_RUBY"
24587 echo " Ruby Binary: $RUBY"
24588 echo " Ruby Options: $RUBY_MAKE_OPTIONS"
24589 echo " Build Lua Bindings: $enable_lua"
24590 if test "$enable_lua" = "yes"; then
24591 echo " Lua Binary: $LUA"
24592 echo " Lua Version: $lua_version"
24593 echo " Lua C-modules dir: $LUA_INSTALL_CMOD"
24594 if test "$lua_need_compat51" = "1"; then
24595 echo " Lua Lua-modules dir: $LUA_INSTALL_LMOD"
24596 fi
24597 fi
24598 echo " Build Tcl Bindings: $enable_tcl"
24599 echo " Build Python Bindings: $enable_python"
24600 echo " Build rrdcgi: $enable_rrdcgi"
24601 echo " Build librrd MT: $enable_pthread"
24602 echo " Use gettext: $USE_NLS"
24603 echo " With libDBI: $have_libdbi"
24604 echo
24605 echo " Libraries: $ALL_LIBS"
24606 echo
24607 echo "Type 'make' to compile the software and use 'make install' to "
24608 echo "install everything to: $prefix."
24609 echo
24610 echo " ... that wishlist is NO JOKE. If you find RRDtool useful"
24611 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
24612 echo "place an order."
24613 echo
24614 echo " -- Tobi Oetiker <tobi@oetiker.ch>"
24615 echo "----------------------------------------------------------------"