blob: baff6230ccf1ec0b632c101ebee1b752b1694c89 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for ImageMagick 6.5.5.
4#
5# Report bugs to <http://www.imagemagick.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
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## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181
182 if test $as_have_required = yes && (eval ":
183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532else
533 as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606$*
607_LT_EOF
608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725lt_ltdl_dir='ltdl'
726
727lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
728
729exec 7<&0 </dev/null 6>&1
730
731# Name of the host.
732# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
733# so uname gets run too.
734ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735
736#
737# Initializations.
738#
739ac_default_prefix=/usr/local
740ac_clean_files=
741ac_config_libobj_dir=.
742LIBOBJS=
743cross_compiling=no
744subdirs=
745MFLAGS=
746MAKEFLAGS=
747SHELL=${CONFIG_SHELL-/bin/sh}
748
749# Identity of this package.
750PACKAGE_NAME='ImageMagick'
751PACKAGE_TARNAME='ImageMagick'
752PACKAGE_VERSION='6.5.5'
753PACKAGE_STRING='ImageMagick 6.5.5'
754PACKAGE_BUGREPORT='http://www.imagemagick.org'
755
756ac_unique_file="magick/MagickCore.h"
757ac_config_libobj_dir=ltdl
758# Factoring default headers for most tests.
759ac_includes_default="\
760#include <stdio.h>
761#ifdef HAVE_SYS_TYPES_H
762# include <sys/types.h>
763#endif
764#ifdef HAVE_SYS_STAT_H
765# include <sys/stat.h>
766#endif
767#ifdef STDC_HEADERS
768# include <stdlib.h>
769# include <stddef.h>
770#else
771# ifdef HAVE_STDLIB_H
772# include <stdlib.h>
773# endif
774#endif
775#ifdef HAVE_STRING_H
776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777# include <memory.h>
778# endif
779# include <string.h>
780#endif
781#ifdef HAVE_STRINGS_H
782# include <strings.h>
783#endif
784#ifdef HAVE_INTTYPES_H
785# include <inttypes.h>
786#endif
787#ifdef HAVE_STDINT_H
788# include <stdint.h>
789#endif
790#ifdef HAVE_UNISTD_H
791# include <unistd.h>
792#endif"
793
794ac_subst_vars='ltdl_LTLIBOBJS
795ltdl_LIBOBJS
796am__EXEEXT_FALSE
797am__EXEEXT_TRUE
798LTLIBOBJS
799MAGICK_LIBS
800MAGICK_LDFLAGS
801MAGICK_PCFLAGS
802MAGICK_CPPFLAGS
803MAGICK_CXXFLAGS
804MAGICK_CFLAGS
805MAGICK_DEP_LIBS
806MAGICK_LTDLDEPS
807MAGICK_LIBLTDL
808OSX_GCOV_LDFLAG
809DELEGATES
810MAGICKCORE_PATH
811PERL_SUPPORTS_DESTDIR
812WITH_PERL_DYNAMIC_FALSE
813WITH_PERL_DYNAMIC_TRUE
814WITH_PERL_STATIC_FALSE
815WITH_PERL_STATIC_TRUE
816WITH_PERL_FALSE
817WITH_PERL_TRUE
818GSVersion
819GSPSDevice
820GSPDFDevice
821GSMonoDevice
822GSEPSDevice
823GSColorDevice
824GSCMYKDevice
825GSAlphaDevice
826XPSVersion
827XPSCMYKDevice
828XPSColorDevice
829XPSMonoDevice
830PCLVersion
831PCLCMYKDevice
832PCLColorDevice
833PCLMonoDevice
834ZIP_DELEGATE_FALSE
835ZIP_DELEGATE_TRUE
836ZIP
837P7ZIP_DELEGATE_FALSE
838P7ZIP_DELEGATE_TRUE
839P7ZIP
840RPM_DELEGATE_FALSE
841RPM_DELEGATE_TRUE
842RPM
843PERL
844TAR
845ShowImageDelegate
846type_include_files
847ghostscript_font_dir
848windows_font_dir
849PrintDelegate
850ZipDelegate
851XPSDelegate
852WWWDecodeDelegate
853WMFDecodeDelegate
854TXTDelegate
855SCANDecodeDelegate
856RMDelegate
857RLEEncodeDelegate
858PSDelegate
859POVDelegate
860PGPDecodeDelegate
861PCLDelegate
862MVDelegate
863MPEGEncodeDelegate
864MPEGDecodeDelegate
865MANDelegate
866LaunchDelegate
867LZWEncodeDelegate
868LZWDecodeDelegate
869LPRDelegate
870LPDelegate
871ILBMEncodeDelegate
872ILBMDecodeDelegate
873HTMLDecodeDelegate
874HPGLDecodeDelegate
875HDRDecodeDelegate
876GnuplotDecodeDelegate
877MogrifyDelegate
878DisplayDelegate
879ConvertDelegate
880FIGDecodeDelegate
881EditorDelegate
882EchoDelegate
883DVIDecodeDelegate
884GVCDecodeDelegate
885DNGDecodeDelegate
886CatDelegate
887CGMDecodeDelegate
888BrowseDelegate
889BZIPDelegate
890BlenderDecodeDelegate
891AVIDecodeDelegate
892AutotraceDecodeDelegate
893SHARE_CONFIGURE_PATH
894SHARE_PATH
895DOCUMENTATION_PATH
896FILTER_PATH
897CODER_PATH
898CONFIGURE_PATH
899LIBRARY_PATH
900EXECUTABLE_PATH
901PERLMAINCC
902XML_LIBS
903XML_DELEGATE_FALSE
904XML_DELEGATE_TRUE
905xml2_config
906WMF_LIBS_DEPS
907WMF_LIBS
908WMF_DELEGATE_FALSE
909WMF_DELEGATE_TRUE
910TIFF_LIBS
911TIFF_DELEGATE_FALSE
912TIFF_DELEGATE_TRUE
913CAIRO_DELEGATE_FALSE
914CAIRO_DELEGATE_TRUE
915RSVG_DELEGATE_FALSE
916RSVG_DELEGATE_TRUE
917CAIRO_SVG_LIBS
918CAIRO_SVG_CFLAGS
919RSVG_LIBS
920RSVG_CFLAGS
921PNG_LIBS
922PNG_DELEGATE_FALSE
923PNG_DELEGATE_TRUE
924OPENEXR_DELEGATE_FALSE
925OPENEXR_DELEGATE_TRUE
926OPENEXR_LIBS
927OPENEXR_CFLAGS
928LQR_DELEGATE_FALSE
929LQR_DELEGATE_TRUE
930LQR_LIBS
931LQR_CFLAGS
932LCMS_LIBS
933LCMS_DELEGATE_FALSE
934LCMS_DELEGATE_TRUE
935JP2_LIBS
936JP2_DELEGATE_FALSE
937JP2_DELEGATE_TRUE
938JPEG_LIBS
939JPEG_DELEGATE_FALSE
940JPEG_DELEGATE_TRUE
941JBIG_LIBS
942JBIG_DELEGATE_FALSE
943JBIG_DELEGATE_TRUE
944GVC_DELEGATE_FALSE
945GVC_DELEGATE_TRUE
946GVC_LIBS
947GVC_CFLAGS
948GS_LIBS
949GS_DELEGATE_FALSE
950GS_DELEGATE_TRUE
951FREETYPE_LIBS
952FREETYPE_DELEGATE_FALSE
953FREETYPE_DELEGATE_TRUE
954freetype_config
955FONTCONFIG_DELEGATE_FALSE
956FONTCONFIG_DELEGATE_TRUE
957FONTCONFIG_LIBS
958FONTCONFIG_CFLAGS
959FPX_LIBS
960FPX_DELEGATE_FALSE
961FPX_DELEGATE_TRUE
962FFTW_LIBS
963FFTW_DELEGATE_FALSE
964FFTW_DELEGATE_TRUE
965DJVU_LIBS
966DJVU_DELEGATE_FALSE
967DJVU_DELEGATE_TRUE
968DPS_LIBS
969DPS_DELEGATE_FALSE
970DPS_DELEGATE_TRUE
971AUTOTRACE_DELEGATE_FALSE
972AUTOTRACE_DELEGATE_TRUE
973AUTOTRACE_LIBS
974AUTOTRACE_CFLAGS
975LIB_DL
976ZLIB_LIBS
977ZLIB_DELEGATE_FALSE
978ZLIB_DELEGATE_TRUE
979XEXT_LIBS
980X11_LIBS
981X11_DELEGATE_FALSE
982X11_DELEGATE_TRUE
983X_EXTRA_LIBS
984X_LIBS
985X_PRE_LIBS
986X_CFLAGS
987XMKMF
988BZLIB_LIBS
989BZLIB_DELEGATE_FALSE
990BZLIB_DELEGATE_TRUE
991MATH_LIBS
992CCMALLOCDelegate
993UMEM_LIBS
994HasUMEM_FALSE
995HasUMEM_TRUE
996THREAD_LIBS
997GOMP_LIBS
998WITH_MAGICK_PLUS_PLUS_FALSE
999WITH_MAGICK_PLUS_PLUS_TRUE
1000OPENMP_CXXFLAGS
1001POW_LIB
1002LIBOBJS
1003UINTPTR_T
1004UINTMAX_T
1005UINT64_T
1006INT64_T
1007UINT32_T
1008INT32_T
1009UINT16_T
1010INT16_T
1011UINT8_T
1012INT8_T
1013LIBRARY_EXTRA_CPPFLAGS
1014MODULE_EXTRA_CPPFLAGS
1015LIBSTDCLDFLAGS
1016PERL_MAKE_OPTIONS
1017QUANTUM_DEPTH
1018MAINT
1019MAINTAINER_MODE_FALSE
1020MAINTAINER_MODE_TRUE
1021MAGICK_HDRI
1022DLLDFLAGS
1023WITH_LTDL_FALSE
1024WITH_LTDL_TRUE
1025WITH_MODULES_FALSE
1026WITH_MODULES_TRUE
1027LTCXXLIBOPTS
1028LTDLOPEN
1029LT_CONFIG_H
1030CONVENIENCE_LTDL_FALSE
1031CONVENIENCE_LTDL_TRUE
1032INSTALL_LTDL_FALSE
1033INSTALL_LTDL_TRUE
1034ARGZ_H
1035sys_symbol_underscore
1036LIBADD_DL
1037LT_DLPREOPEN
1038LIBADD_DLD_LINK
1039LIBADD_SHL_LOAD
1040LIBADD_DLOPEN
1041LT_DLLOADERS
1042INCLTDL
1043LTDLINCL
1044LTDLDEPS
1045LIBLTDL
1046LIBTOOL_DEPS
1047CXXCPP
1048OTOOL64
1049OTOOL
1050LIPO
1051NMEDIT
1052DSYMUTIL
1053lt_ECHO
1054AR
1055NM
1056ac_ct_DUMPBIN
1057DUMPBIN
1058LIBTOOL
1059OBJDUMP
1060DLLTOOL
1061AS
1062LFS_CPPFLAGS
1063OPENMP_CFLAGS
1064PTHREAD_CFLAGS
1065PTHREAD_LIBS
1066PTHREAD_CXX
1067PTHREAD_CC
1068acx_pthread_config
1069WinPathScript
1070USING_CL_FALSE
1071USING_CL_TRUE
1072CYGWIN_BUILD_FALSE
1073CYGWIN_BUILD_TRUE
1074WIN32_NATIVE_BUILD_FALSE
1075WIN32_NATIVE_BUILD_TRUE
1076WINGDI32_DELEGATE_FALSE
1077WINGDI32_DELEGATE_TRUE
1078GDI32_LIBS
1079PKG_CONFIG
1080LN_S
1081am__fastdepCXX_FALSE
1082am__fastdepCXX_TRUE
1083CXXDEPMODE
1084ac_ct_CXX
1085CXXFLAGS
1086CXX
1087RANLIB
1088LD
1089FGREP
1090EGREP
1091GREP
1092SED
1093CPP
1094am__fastdepCC_FALSE
1095am__fastdepCC_TRUE
1096CCDEPMODE
1097AMDEPBACKSLASH
1098AMDEP_FALSE
1099AMDEP_TRUE
1100am__quote
1101am__include
1102DEPDIR
1103OBJEXT
1104EXEEXT
1105ac_ct_CC
1106CPPFLAGS
1107LDFLAGS
1108CFLAGS
1109CC
1110DIRSEP
1111MAGICK_FILTER_MODULE_PATH
1112MAGICK_CONFIGURE_BUILD_PATH
1113MAGICK_CONFIGURE_SRC_PATH
1114MAGICK_CODER_MODULE_PATH
1115MAN_DIR
1116INFO_DIR
1117PERSISTINCLUDE_DIR
1118INCLUDE_DIR
1119LIB_DIR
1120LOCALSTATE_DIR
1121SHAREDSTATE_DIR
1122SYSCONF_DIR
1123DATA_DIR
1124LIBEXEC_DIR
1125SBIN_DIR
1126BIN_DIR
1127EXEC_PREFIX_DIR
1128PREFIX_DIR
1129CONFIG_STATUS_DEPENDENCIES
1130MAGICK_LIB_VERSION_NUMBER
1131MAGICK_LIB_VERSION_TEXT
1132MAGICK_LIB_VERSION
1133AM_BACKSLASH
1134AM_DEFAULT_VERBOSITY
1135am__untar
1136am__tar
1137AMTAR
1138am__leading_dot
1139SET_MAKE
1140AWK
1141mkdir_p
1142MKDIR_P
1143INSTALL_STRIP_PROGRAM
1144STRIP
1145install_sh
1146MAKEINFO
1147AUTOHEADER
1148AUTOMAKE
1149AUTOCONF
1150ACLOCAL
1151VERSION
1152PACKAGE
1153CYGPATH_W
1154am__isrc
1155INSTALL_DATA
1156INSTALL_SCRIPT
1157INSTALL_PROGRAM
1158PACKAGE_LIB_SUBVERSION
1159PACKAGE_RELEASE_DATE
1160PACKAGE_LIB_VERSION_NUMBER
1161PACKAGE_LIB_VERSION
1162PACKAGE_CHANGE_DATE
1163PACKAGE_RELEASE
1164MAGICK_LIBRARY_AGE
1165MAGICK_LIBRARY_REVISION
1166MAGICK_LIBRARY_CURRENT
1167target_os
1168target_vendor
1169target_cpu
1170target
1171host_os
1172host_vendor
1173host_cpu
1174host
1175build_os
1176build_vendor
1177build_cpu
1178build
1179CONFIGURE_ARGS
1180DISTCHECK_CONFIG_FLAGS
1181target_alias
1182host_alias
1183build_alias
1184LIBS
1185ECHO_T
1186ECHO_N
1187ECHO_C
1188DEFS
1189mandir
1190localedir
1191libdir
1192psdir
1193pdfdir
1194dvidir
1195htmldir
1196infodir
1197docdir
1198oldincludedir
1199includedir
1200localstatedir
1201sharedstatedir
1202sysconfdir
1203datadir
1204datarootdir
1205libexecdir
1206sbindir
1207bindir
1208program_transform_name
1209prefix
1210exec_prefix
1211PACKAGE_BUGREPORT
1212PACKAGE_STRING
1213PACKAGE_VERSION
1214PACKAGE_TARNAME
1215PACKAGE_NAME
1216PATH_SEPARATOR
1217SHELL'
1218ac_subst_files=''
1219ac_user_opts='
1220enable_option_checking
1221enable_silent_rules
1222enable_dependency_tracking
1223with_gnu_ld
1224with_maximum_compile_warnings
1225with_dmalloc
1226enable_bounds_checking
1227enable_osx_universal_binary
1228with_threads
1229enable_openmp
1230enable_largefile
1231enable_shared
1232enable_static
1233with_pic
1234enable_fast_install
1235enable_libtool_lock
1236with_included_ltdl
1237with_ltdl_include
1238with_ltdl_lib
1239enable_ltdl_install
1240with_modules
1241enable_delegate_build
1242enable_deprecated
1243enable_installed
1244enable_cipher
1245enable_embeddable
1246enable_hdri
1247enable_libtool_verbose
1248enable_assert
1249enable_maintainer_mode
1250enable_ccmalloc
1251enable_efence
1252enable_prof
1253enable_gprof
1254enable_gcov
1255with_method_prefix
1256with_quantum_depth
1257with_cache
1258with_frozenpaths
1259with_magick_plus_plus
1260with_perl
1261with_perl_options
1262with_umem
1263with_libstdc
1264with_bzlib
1265with_x
1266with_zlib
1267with_autotrace
1268with_dps
1269with_djvu
1270with_fftw
1271with_fpx
1272with_fontconfig
1273with_freetype
1274with_gslib
1275with_fontpath
1276with_gs_font_dir
1277with_gvc
1278with_jbig
1279with_jpeg
1280with_jp2
1281with_lcms
1282with_lqr
1283with_openexr
1284with_png
1285with_rsvg
1286with_tiff
1287with_windows_font_dir
1288with_wmf
1289with_xml
1290'
1291 ac_precious_vars='build_alias
1292host_alias
1293target_alias
1294CC
1295CFLAGS
1296LDFLAGS
1297LIBS
1298CPPFLAGS
1299CPP
1300CXX
1301CXXFLAGS
1302CCC
1303PKG_CONFIG
1304CXXCPP
1305XMKMF
1306AUTOTRACE_CFLAGS
1307AUTOTRACE_LIBS
1308FONTCONFIG_CFLAGS
1309FONTCONFIG_LIBS
1310GVC_CFLAGS
1311GVC_LIBS
1312LQR_CFLAGS
1313LQR_LIBS
1314OPENEXR_CFLAGS
1315OPENEXR_LIBS
1316RSVG_CFLAGS
1317RSVG_LIBS
1318CAIRO_SVG_CFLAGS
1319CAIRO_SVG_LIBS'
1320
1321
1322# Initialize some variables set by options.
1323ac_init_help=
1324ac_init_version=false
1325ac_unrecognized_opts=
1326ac_unrecognized_sep=
1327# The variables have the same names as the options, with
1328# dashes changed to underlines.
1329cache_file=/dev/null
1330exec_prefix=NONE
1331no_create=
1332no_recursion=
1333prefix=NONE
1334program_prefix=NONE
1335program_suffix=NONE
1336program_transform_name=s,x,x,
1337silent=
1338site=
1339srcdir=
1340verbose=
1341x_includes=NONE
1342x_libraries=NONE
1343
1344# Installation directory options.
1345# These are left unexpanded so users can "make install exec_prefix=/foo"
1346# and all the variables that are supposed to be based on exec_prefix
1347# by default will actually change.
1348# Use braces instead of parens because sh, perl, etc. also accept them.
1349# (The list follows the same order as the GNU Coding Standards.)
1350bindir='${exec_prefix}/bin'
1351sbindir='${exec_prefix}/sbin'
1352libexecdir='${exec_prefix}/libexec'
1353datarootdir='${prefix}/share'
1354datadir='${datarootdir}'
1355sysconfdir='${prefix}/etc'
1356sharedstatedir='${prefix}/com'
1357localstatedir='${prefix}/var'
1358includedir='${prefix}/include'
1359oldincludedir='/usr/include'
1360docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1361infodir='${datarootdir}/info'
1362htmldir='${docdir}'
1363dvidir='${docdir}'
1364pdfdir='${docdir}'
1365psdir='${docdir}'
1366libdir='${exec_prefix}/lib'
1367localedir='${datarootdir}/locale'
1368mandir='${datarootdir}/man'
1369
1370ac_prev=
1371ac_dashdash=
1372for ac_option
1373do
1374 # If the previous option needs an argument, assign it.
1375 if test -n "$ac_prev"; then
1376 eval $ac_prev=\$ac_option
1377 ac_prev=
1378 continue
1379 fi
1380
1381 case $ac_option in
1382 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1383 *) ac_optarg=yes ;;
1384 esac
1385
1386 # Accept the important Cygnus configure options, so we can diagnose typos.
1387
1388 case $ac_dashdash$ac_option in
1389 --)
1390 ac_dashdash=yes ;;
1391
1392 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1393 ac_prev=bindir ;;
1394 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1395 bindir=$ac_optarg ;;
1396
1397 -build | --build | --buil | --bui | --bu)
1398 ac_prev=build_alias ;;
1399 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1400 build_alias=$ac_optarg ;;
1401
1402 -cache-file | --cache-file | --cache-fil | --cache-fi \
1403 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1404 ac_prev=cache_file ;;
1405 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1406 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1407 cache_file=$ac_optarg ;;
1408
1409 --config-cache | -C)
1410 cache_file=config.cache ;;
1411
1412 -datadir | --datadir | --datadi | --datad)
1413 ac_prev=datadir ;;
1414 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1415 datadir=$ac_optarg ;;
1416
1417 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1418 | --dataroo | --dataro | --datar)
1419 ac_prev=datarootdir ;;
1420 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1421 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1422 datarootdir=$ac_optarg ;;
1423
1424 -disable-* | --disable-*)
1425 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1426 # Reject names that are not valid shell variable names.
1427 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1428 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1429 { (exit 1); exit 1; }; }
1430 ac_useropt_orig=$ac_useropt
1431 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1432 case $ac_user_opts in
1433 *"
1434"enable_$ac_useropt"
1435"*) ;;
1436 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1437 ac_unrecognized_sep=', ';;
1438 esac
1439 eval enable_$ac_useropt=no ;;
1440
1441 -docdir | --docdir | --docdi | --doc | --do)
1442 ac_prev=docdir ;;
1443 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1444 docdir=$ac_optarg ;;
1445
1446 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1447 ac_prev=dvidir ;;
1448 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1449 dvidir=$ac_optarg ;;
1450
1451 -enable-* | --enable-*)
1452 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1453 # Reject names that are not valid shell variable names.
1454 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1455 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1456 { (exit 1); exit 1; }; }
1457 ac_useropt_orig=$ac_useropt
1458 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1459 case $ac_user_opts in
1460 *"
1461"enable_$ac_useropt"
1462"*) ;;
1463 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1464 ac_unrecognized_sep=', ';;
1465 esac
1466 eval enable_$ac_useropt=\$ac_optarg ;;
1467
1468 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1469 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1470 | --exec | --exe | --ex)
1471 ac_prev=exec_prefix ;;
1472 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1473 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1474 | --exec=* | --exe=* | --ex=*)
1475 exec_prefix=$ac_optarg ;;
1476
1477 -gas | --gas | --ga | --g)
1478 # Obsolete; use --with-gas.
1479 with_gas=yes ;;
1480
1481 -help | --help | --hel | --he | -h)
1482 ac_init_help=long ;;
1483 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1484 ac_init_help=recursive ;;
1485 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1486 ac_init_help=short ;;
1487
1488 -host | --host | --hos | --ho)
1489 ac_prev=host_alias ;;
1490 -host=* | --host=* | --hos=* | --ho=*)
1491 host_alias=$ac_optarg ;;
1492
1493 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1494 ac_prev=htmldir ;;
1495 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1496 | --ht=*)
1497 htmldir=$ac_optarg ;;
1498
1499 -includedir | --includedir | --includedi | --included | --include \
1500 | --includ | --inclu | --incl | --inc)
1501 ac_prev=includedir ;;
1502 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1503 | --includ=* | --inclu=* | --incl=* | --inc=*)
1504 includedir=$ac_optarg ;;
1505
1506 -infodir | --infodir | --infodi | --infod | --info | --inf)
1507 ac_prev=infodir ;;
1508 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1509 infodir=$ac_optarg ;;
1510
1511 -libdir | --libdir | --libdi | --libd)
1512 ac_prev=libdir ;;
1513 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1514 libdir=$ac_optarg ;;
1515
1516 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1517 | --libexe | --libex | --libe)
1518 ac_prev=libexecdir ;;
1519 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1520 | --libexe=* | --libex=* | --libe=*)
1521 libexecdir=$ac_optarg ;;
1522
1523 -localedir | --localedir | --localedi | --localed | --locale)
1524 ac_prev=localedir ;;
1525 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1526 localedir=$ac_optarg ;;
1527
1528 -localstatedir | --localstatedir | --localstatedi | --localstated \
1529 | --localstate | --localstat | --localsta | --localst | --locals)
1530 ac_prev=localstatedir ;;
1531 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1532 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1533 localstatedir=$ac_optarg ;;
1534
1535 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1536 ac_prev=mandir ;;
1537 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1538 mandir=$ac_optarg ;;
1539
1540 -nfp | --nfp | --nf)
1541 # Obsolete; use --without-fp.
1542 with_fp=no ;;
1543
1544 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1545 | --no-cr | --no-c | -n)
1546 no_create=yes ;;
1547
1548 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1549 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1550 no_recursion=yes ;;
1551
1552 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1553 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1554 | --oldin | --oldi | --old | --ol | --o)
1555 ac_prev=oldincludedir ;;
1556 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1557 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1558 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1559 oldincludedir=$ac_optarg ;;
1560
1561 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1562 ac_prev=prefix ;;
1563 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1564 prefix=$ac_optarg ;;
1565
1566 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1567 | --program-pre | --program-pr | --program-p)
1568 ac_prev=program_prefix ;;
1569 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1570 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1571 program_prefix=$ac_optarg ;;
1572
1573 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1574 | --program-suf | --program-su | --program-s)
1575 ac_prev=program_suffix ;;
1576 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1577 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1578 program_suffix=$ac_optarg ;;
1579
1580 -program-transform-name | --program-transform-name \
1581 | --program-transform-nam | --program-transform-na \
1582 | --program-transform-n | --program-transform- \
1583 | --program-transform | --program-transfor \
1584 | --program-transfo | --program-transf \
1585 | --program-trans | --program-tran \
1586 | --progr-tra | --program-tr | --program-t)
1587 ac_prev=program_transform_name ;;
1588 -program-transform-name=* | --program-transform-name=* \
1589 | --program-transform-nam=* | --program-transform-na=* \
1590 | --program-transform-n=* | --program-transform-=* \
1591 | --program-transform=* | --program-transfor=* \
1592 | --program-transfo=* | --program-transf=* \
1593 | --program-trans=* | --program-tran=* \
1594 | --progr-tra=* | --program-tr=* | --program-t=*)
1595 program_transform_name=$ac_optarg ;;
1596
1597 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1598 ac_prev=pdfdir ;;
1599 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1600 pdfdir=$ac_optarg ;;
1601
1602 -psdir | --psdir | --psdi | --psd | --ps)
1603 ac_prev=psdir ;;
1604 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1605 psdir=$ac_optarg ;;
1606
1607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1608 | -silent | --silent | --silen | --sile | --sil)
1609 silent=yes ;;
1610
1611 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1612 ac_prev=sbindir ;;
1613 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1614 | --sbi=* | --sb=*)
1615 sbindir=$ac_optarg ;;
1616
1617 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1618 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1619 | --sharedst | --shareds | --shared | --share | --shar \
1620 | --sha | --sh)
1621 ac_prev=sharedstatedir ;;
1622 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1623 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1624 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1625 | --sha=* | --sh=*)
1626 sharedstatedir=$ac_optarg ;;
1627
1628 -site | --site | --sit)
1629 ac_prev=site ;;
1630 -site=* | --site=* | --sit=*)
1631 site=$ac_optarg ;;
1632
1633 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1634 ac_prev=srcdir ;;
1635 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1636 srcdir=$ac_optarg ;;
1637
1638 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1639 | --syscon | --sysco | --sysc | --sys | --sy)
1640 ac_prev=sysconfdir ;;
1641 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1642 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1643 sysconfdir=$ac_optarg ;;
1644
1645 -target | --target | --targe | --targ | --tar | --ta | --t)
1646 ac_prev=target_alias ;;
1647 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1648 target_alias=$ac_optarg ;;
1649
1650 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1651 verbose=yes ;;
1652
1653 -version | --version | --versio | --versi | --vers | -V)
1654 ac_init_version=: ;;
1655
1656 -with-* | --with-*)
1657 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1658 # Reject names that are not valid shell variable names.
1659 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1660 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1661 { (exit 1); exit 1; }; }
1662 ac_useropt_orig=$ac_useropt
1663 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1664 case $ac_user_opts in
1665 *"
1666"with_$ac_useropt"
1667"*) ;;
1668 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1669 ac_unrecognized_sep=', ';;
1670 esac
1671 eval with_$ac_useropt=\$ac_optarg ;;
1672
1673 -without-* | --without-*)
1674 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1675 # Reject names that are not valid shell variable names.
1676 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1677 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1678 { (exit 1); exit 1; }; }
1679 ac_useropt_orig=$ac_useropt
1680 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1681 case $ac_user_opts in
1682 *"
1683"with_$ac_useropt"
1684"*) ;;
1685 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1686 ac_unrecognized_sep=', ';;
1687 esac
1688 eval with_$ac_useropt=no ;;
1689
1690 --x)
1691 # Obsolete; use --with-x.
1692 with_x=yes ;;
1693
1694 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1695 | --x-incl | --x-inc | --x-in | --x-i)
1696 ac_prev=x_includes ;;
1697 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1698 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1699 x_includes=$ac_optarg ;;
1700
1701 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1702 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1703 ac_prev=x_libraries ;;
1704 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1705 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1706 x_libraries=$ac_optarg ;;
1707
1708 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1709Try \`$0 --help' for more information." >&2
1710 { (exit 1); exit 1; }; }
1711 ;;
1712
1713 *=*)
1714 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1715 # Reject names that are not valid shell variable names.
1716 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1717 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1718 { (exit 1); exit 1; }; }
1719 eval $ac_envvar=\$ac_optarg
1720 export $ac_envvar ;;
1721
1722 *)
1723 # FIXME: should be removed in autoconf 3.0.
1724 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1725 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1726 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1727 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1728 ;;
1729
1730 esac
1731done
1732
1733if test -n "$ac_prev"; then
1734 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1735 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1736 { (exit 1); exit 1; }; }
1737fi
1738
1739if test -n "$ac_unrecognized_opts"; then
1740 case $enable_option_checking in
1741 no) ;;
1742 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1743 { (exit 1); exit 1; }; } ;;
1744 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1745 esac
1746fi
1747
1748# Check all directory arguments for consistency.
1749for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1750 datadir sysconfdir sharedstatedir localstatedir includedir \
1751 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1752 libdir localedir mandir
1753do
1754 eval ac_val=\$$ac_var
1755 # Remove trailing slashes.
1756 case $ac_val in
1757 */ )
1758 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1759 eval $ac_var=\$ac_val;;
1760 esac
1761 # Be sure to have absolute directory names.
1762 case $ac_val in
1763 [\\/$]* | ?:[\\/]* ) continue;;
1764 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1765 esac
1766 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1767 { (exit 1); exit 1; }; }
1768done
1769
1770# There might be people who depend on the old broken behavior: `$host'
1771# used to hold the argument of --host etc.
1772# FIXME: To remove some day.
1773build=$build_alias
1774host=$host_alias
1775target=$target_alias
1776
1777# FIXME: To remove some day.
1778if test "x$host_alias" != x; then
1779 if test "x$build_alias" = x; then
1780 cross_compiling=maybe
1781 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1782 If a cross compiler is detected then cross compile mode will be used." >&2
1783 elif test "x$build_alias" != "x$host_alias"; then
1784 cross_compiling=yes
1785 fi
1786fi
1787
1788ac_tool_prefix=
1789test -n "$host_alias" && ac_tool_prefix=$host_alias-
1790
1791test "$silent" = yes && exec 6>/dev/null
1792
1793
1794ac_pwd=`pwd` && test -n "$ac_pwd" &&
1795ac_ls_di=`ls -di .` &&
1796ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1797 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1798 { (exit 1); exit 1; }; }
1799test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1800 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1801 { (exit 1); exit 1; }; }
1802
1803
1804# Find the source files, if location was not specified.
1805if test -z "$srcdir"; then
1806 ac_srcdir_defaulted=yes
1807 # Try the directory containing this script, then the parent directory.
1808 ac_confdir=`$as_dirname -- "$as_myself" ||
1809$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1810 X"$as_myself" : 'X\(//\)[^/]' \| \
1811 X"$as_myself" : 'X\(//\)$' \| \
1812 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1813$as_echo X"$as_myself" |
1814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1815 s//\1/
1816 q
1817 }
1818 /^X\(\/\/\)[^/].*/{
1819 s//\1/
1820 q
1821 }
1822 /^X\(\/\/\)$/{
1823 s//\1/
1824 q
1825 }
1826 /^X\(\/\).*/{
1827 s//\1/
1828 q
1829 }
1830 s/.*/./; q'`
1831 srcdir=$ac_confdir
1832 if test ! -r "$srcdir/$ac_unique_file"; then
1833 srcdir=..
1834 fi
1835else
1836 ac_srcdir_defaulted=no
1837fi
1838if test ! -r "$srcdir/$ac_unique_file"; then
1839 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1840 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1841 { (exit 1); exit 1; }; }
1842fi
1843ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1844ac_abs_confdir=`(
1845 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1846 { (exit 1); exit 1; }; }
1847 pwd)`
1848# When building in place, set srcdir=.
1849if test "$ac_abs_confdir" = "$ac_pwd"; then
1850 srcdir=.
1851fi
1852# Remove unnecessary trailing slashes from srcdir.
1853# Double slashes in file names in object file debugging info
1854# mess up M-x gdb in Emacs.
1855case $srcdir in
1856*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1857esac
1858for ac_var in $ac_precious_vars; do
1859 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1860 eval ac_env_${ac_var}_value=\$${ac_var}
1861 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1862 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1863done
1864
1865#
1866# Report the --help message.
1867#
1868if test "$ac_init_help" = "long"; then
1869 # Omit some internal or obsolete options to make the list less imposing.
1870 # This message is too long to be a string in the A/UX 3.1 sh.
1871 cat <<_ACEOF
1872\`configure' configures ImageMagick 6.5.5 to adapt to many kinds of systems.
1873
1874Usage: $0 [OPTION]... [VAR=VALUE]...
1875
1876To assign environment variables (e.g., CC, CFLAGS...), specify them as
1877VAR=VALUE. See below for descriptions of some of the useful variables.
1878
1879Defaults for the options are specified in brackets.
1880
1881Configuration:
1882 -h, --help display this help and exit
1883 --help=short display options specific to this package
1884 --help=recursive display the short help of all the included packages
1885 -V, --version display version information and exit
1886 -q, --quiet, --silent do not print \`checking...' messages
1887 --cache-file=FILE cache test results in FILE [disabled]
1888 -C, --config-cache alias for \`--cache-file=config.cache'
1889 -n, --no-create do not create output files
1890 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1891
1892Installation directories:
1893 --prefix=PREFIX install architecture-independent files in PREFIX
1894 [$ac_default_prefix]
1895 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1896 [PREFIX]
1897
1898By default, \`make install' will install all the files in
1899\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1900an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1901for instance \`--prefix=\$HOME'.
1902
1903For better control, use the options below.
1904
1905Fine tuning of the installation directories:
1906 --bindir=DIR user executables [EPREFIX/bin]
1907 --sbindir=DIR system admin executables [EPREFIX/sbin]
1908 --libexecdir=DIR program executables [EPREFIX/libexec]
1909 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1910 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1911 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1912 --libdir=DIR object code libraries [EPREFIX/lib]
1913 --includedir=DIR C header files [PREFIX/include]
1914 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1915 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1916 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1917 --infodir=DIR info documentation [DATAROOTDIR/info]
1918 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1919 --mandir=DIR man documentation [DATAROOTDIR/man]
1920 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1921 --htmldir=DIR html documentation [DOCDIR]
1922 --dvidir=DIR dvi documentation [DOCDIR]
1923 --pdfdir=DIR pdf documentation [DOCDIR]
1924 --psdir=DIR ps documentation [DOCDIR]
1925_ACEOF
1926
1927 cat <<\_ACEOF
1928
1929Program names:
1930 --program-prefix=PREFIX prepend PREFIX to installed program names
1931 --program-suffix=SUFFIX append SUFFIX to installed program names
1932 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1933
1934X features:
1935 --x-includes=DIR X include files are in DIR
1936 --x-libraries=DIR X library files are in DIR
1937
1938System types:
1939 --build=BUILD configure for building on BUILD [guessed]
1940 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1941 --target=TARGET configure for building compilers for TARGET [HOST]
1942_ACEOF
1943fi
1944
1945if test -n "$ac_init_help"; then
1946 case $ac_init_help in
1947 short | recursive ) echo "Configuration of ImageMagick 6.5.5:";;
1948 esac
1949 cat <<\_ACEOF
1950
1951Optional Features:
1952 --disable-option-checking ignore unrecognized --enable/--with options
1953 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1954 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1955 --enable-silent-rules less verbose build output (undo: `make V=1')
1956 --disable-silent-rules verbose build output (undo: `make V=0')
1957 --disable-dependency-tracking speeds up one-time build
1958 --enable-dependency-tracking do not reject slow dependency extractors
1959 --bounds-checking enable run-time bounds-checking
1960 --enable-osx-universal-binary
1961 build universal binary on OS X [default=no]
1962 --disable-openmp do not use OpenMP
1963 --disable-largefile omit support for large files
1964 --enable-shared[=PKGS] build shared libraries [default=yes]
1965 --enable-static[=PKGS] build static libraries [default=yes]
1966 --enable-fast-install[=PKGS]
1967 optimize for fast installation [default=yes]
1968 --disable-libtool-lock avoid locking (might break parallel builds)
1969 --enable-ltdl-install install libltdl
1970 --enable-delegate-build look for delegate libraries in build directory
1971 --disable-deprecated exclude deprecated methods in MagickCore and
1972 MagickWand API's
1973 --disable-installed Formally install ImageMagick under PREFIX
1974 --disable-cipher disable enciphering and deciphering image pixels
1975 --enable-embeddable enable self-contained, embeddable,
1976 zero-configuration ImageMagick
1977 --enable-hdri accurately represent the wide range of intensity
1978 levels found in real scenes
1979 --enable-libtool-verbose
1980 enable verbose libtool output
1981 --disable-assert disable assert() statements in build
1982 --enable-maintainer-mode enable make rules and dependencies not useful
1983 (and sometimes confusing) to the casual installer
1984 --enable-ccmalloc enable 'ccmalloc' memory debug support
1985 --enable-efence enable 'efence' memory debug support
1986 --enable-prof enable 'prof' profiling support
1987 --enable-gprof enable 'gprof' profiling support
1988 --enable-gcov enable 'gcov' profiling support
1989
1990Optional Packages:
1991 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1992 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1993 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1994 --without-maximum-compile-warnings
1995 Disable maximum warning verbosity
1996 --with-dmalloc use dmalloc, as in
1997 http://www.dmalloc.com/dmalloc.tar.gz
1998 --without-threads disable threads support
1999 --with-pic try to use only PIC/non-PIC objects [default=use
2000 both]
2001 --with-included-ltdl use the GNU ltdl sources included here
2002 --with-ltdl-include=DIR use the ltdl headers installed in DIR
2003 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
2004 --with-modules enable building dynamically loadable modules
2005 --with-method-prefix=PREFIX
2006 prefix MagickCore API methods
2007 --with-quantum-depth=DEPTH
2008 number of bits in a pixel quantum (default 16)
2009 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
2010 memory)
2011 --with-frozenpaths freeze delegate paths
2012 --without-magick-plus-plus
2013 disable build/install of Magick++
2014 --with-perl enable build/install of PerlMagick
2015 --with-perl-options=OPTIONS
2016 options to pass on command-line when generating
2017 PerlMagick's build file
2018 --with-umem enable umem memory allocation library support
2019 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
2020 --without-bzlib disable BZLIB support
2021 --with-x use the X Window System
2022 --without-zlib disable ZLIB support
2023 --with-autotrace enable autotrace support
2024 --without-dps disable Display Postscript support
2025 --without-djvu disable DjVu support
2026 --without-fftw disable FFTW support
2027 --without-fpx disable FlashPIX support
2028 --without-fontconfig disable fontconfig support
2029 --without-freetype disable Freetype support
2030 --without-gslib enable Ghostscript library support
2031 --with-fontpath=DIR prepend to default font search path
2032 --with-gs-font-dir=DIR Ghostscript font directory
2033 --without-gvc disable GVC support
2034 --without-jbig disable JBIG support
2035 --without-jpeg disable JPEG support
2036 --without-jp2 disable JPEG-2000 support
2037 --without-lcms disable LCMS support
2038 --without-lqr disable Liquid Rescale support (experimental)
2039 --without-openexr disable OpenEXR support
2040 --without-png disable PNG support
2041 --without-rsvg disable RSVG support
2042 --without-tiff disable TIFF support
2043 --with-windows-font-dir=DIR
2044 directory containing MS-Windows fonts
2045 --without-wmf disable WMF support
2046 --without-xml disable XML support
2047
2048Some influential environment variables:
2049 CC C compiler command
2050 CFLAGS C compiler flags
2051 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2052 nonstandard directory <lib dir>
2053 LIBS libraries to pass to the linker, e.g. -l<library>
2054 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2055 you have headers in a nonstandard directory <include dir>
2056 CPP C preprocessor
2057 CXX C++ compiler command
2058 CXXFLAGS C++ compiler flags
2059 PKG_CONFIG path to pkg-config utility
2060 CXXCPP C++ preprocessor
2061 XMKMF Path to xmkmf, Makefile generator for X Window System
2062 AUTOTRACE_CFLAGS
2063 C compiler flags for AUTOTRACE, overriding pkg-config
2064 AUTOTRACE_LIBS
2065 linker flags for AUTOTRACE, overriding pkg-config
2066 FONTCONFIG_CFLAGS
2067 C compiler flags for FONTCONFIG, overriding pkg-config
2068 FONTCONFIG_LIBS
2069 linker flags for FONTCONFIG, overriding pkg-config
2070 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2071 GVC_LIBS linker flags for GVC, overriding pkg-config
2072 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2073 LQR_LIBS linker flags for LQR, overriding pkg-config
2074 OPENEXR_CFLAGS
2075 C compiler flags for OPENEXR, overriding pkg-config
2076 OPENEXR_LIBS
2077 linker flags for OPENEXR, overriding pkg-config
2078 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2079 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2080 CAIRO_SVG_CFLAGS
2081 C compiler flags for CAIRO_SVG, overriding pkg-config
2082 CAIRO_SVG_LIBS
2083 linker flags for CAIRO_SVG, overriding pkg-config
2084
2085Use these variables to override the choices made by `configure' or to help
2086it to find libraries and programs with nonstandard names/locations.
2087
2088Report bugs to <http://www.imagemagick.org>.
2089_ACEOF
2090ac_status=$?
2091fi
2092
2093if test "$ac_init_help" = "recursive"; then
2094 # If there are subdirs, report their specific --help.
2095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2096 test -d "$ac_dir" ||
2097 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2098 continue
2099 ac_builddir=.
2100
2101case "$ac_dir" in
2102.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2103*)
2104 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2105 # A ".." for each directory in $ac_dir_suffix.
2106 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2107 case $ac_top_builddir_sub in
2108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2110 esac ;;
2111esac
2112ac_abs_top_builddir=$ac_pwd
2113ac_abs_builddir=$ac_pwd$ac_dir_suffix
2114# for backward compatibility:
2115ac_top_builddir=$ac_top_build_prefix
2116
2117case $srcdir in
2118 .) # We are building in place.
2119 ac_srcdir=.
2120 ac_top_srcdir=$ac_top_builddir_sub
2121 ac_abs_top_srcdir=$ac_pwd ;;
2122 [\\/]* | ?:[\\/]* ) # Absolute name.
2123 ac_srcdir=$srcdir$ac_dir_suffix;
2124 ac_top_srcdir=$srcdir
2125 ac_abs_top_srcdir=$srcdir ;;
2126 *) # Relative name.
2127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2128 ac_top_srcdir=$ac_top_build_prefix$srcdir
2129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2130esac
2131ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2132
2133 cd "$ac_dir" || { ac_status=$?; continue; }
2134 # Check for guested configure.
2135 if test -f "$ac_srcdir/configure.gnu"; then
2136 echo &&
2137 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2138 elif test -f "$ac_srcdir/configure"; then
2139 echo &&
2140 $SHELL "$ac_srcdir/configure" --help=recursive
2141 else
2142 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2143 fi || ac_status=$?
2144 cd "$ac_pwd" || { ac_status=$?; break; }
2145 done
2146fi
2147
2148test -n "$ac_init_help" && exit $ac_status
2149if $ac_init_version; then
2150 cat <<\_ACEOF
2151ImageMagick configure 6.5.5
2152generated by GNU Autoconf 2.63
2153
2154Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
21552002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2156This configure script is free software; the Free Software Foundation
2157gives unlimited permission to copy, distribute and modify it.
2158_ACEOF
2159 exit
2160fi
2161cat >config.log <<_ACEOF
2162This file contains any messages produced by compilers while
2163running configure, to aid debugging if configure makes a mistake.
2164
2165It was created by ImageMagick $as_me 6.5.5, which was
2166generated by GNU Autoconf 2.63. Invocation command line was
2167
2168 $ $0 $@
2169
2170_ACEOF
2171exec 5>>config.log
2172{
2173cat <<_ASUNAME
2174## --------- ##
2175## Platform. ##
2176## --------- ##
2177
2178hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2179uname -m = `(uname -m) 2>/dev/null || echo unknown`
2180uname -r = `(uname -r) 2>/dev/null || echo unknown`
2181uname -s = `(uname -s) 2>/dev/null || echo unknown`
2182uname -v = `(uname -v) 2>/dev/null || echo unknown`
2183
2184/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2185/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2186
2187/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2188/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2189/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2190/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2191/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2192/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2193/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2194
2195_ASUNAME
2196
2197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198for as_dir in $PATH
2199do
2200 IFS=$as_save_IFS
2201 test -z "$as_dir" && as_dir=.
2202 $as_echo "PATH: $as_dir"
2203done
2204IFS=$as_save_IFS
2205
2206} >&5
2207
2208cat >&5 <<_ACEOF
2209
2210
2211## ----------- ##
2212## Core tests. ##
2213## ----------- ##
2214
2215_ACEOF
2216
2217
2218# Keep a trace of the command line.
2219# Strip out --no-create and --no-recursion so they do not pile up.
2220# Strip out --silent because we don't want to record it for future runs.
2221# Also quote any args containing shell meta-characters.
2222# Make two passes to allow for proper duplicate-argument suppression.
2223ac_configure_args=
2224ac_configure_args0=
2225ac_configure_args1=
2226ac_must_keep_next=false
2227for ac_pass in 1 2
2228do
2229 for ac_arg
2230 do
2231 case $ac_arg in
2232 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2234 | -silent | --silent | --silen | --sile | --sil)
2235 continue ;;
2236 *\'*)
2237 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2238 esac
2239 case $ac_pass in
2240 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2241 2)
2242 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2243 if test $ac_must_keep_next = true; then
2244 ac_must_keep_next=false # Got value, back to normal.
2245 else
2246 case $ac_arg in
2247 *=* | --config-cache | -C | -disable-* | --disable-* \
2248 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2249 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2250 | -with-* | --with-* | -without-* | --without-* | --x)
2251 case "$ac_configure_args0 " in
2252 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2253 esac
2254 ;;
2255 -* ) ac_must_keep_next=true ;;
2256 esac
2257 fi
2258 ac_configure_args="$ac_configure_args '$ac_arg'"
2259 ;;
2260 esac
2261 done
2262done
2263$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2264$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2265
2266# When interrupted or exit'd, cleanup temporary files, and complete
2267# config.log. We remove comments because anyway the quotes in there
2268# would cause problems or look ugly.
2269# WARNING: Use '\'' to represent an apostrophe within the trap.
2270# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2271trap 'exit_status=$?
2272 # Save into config.log some information that might help in debugging.
2273 {
2274 echo
2275
2276 cat <<\_ASBOX
2277## ---------------- ##
2278## Cache variables. ##
2279## ---------------- ##
2280_ASBOX
2281 echo
2282 # The following way of writing the cache mishandles newlines in values,
2283(
2284 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2285 eval ac_val=\$$ac_var
2286 case $ac_val in #(
2287 *${as_nl}*)
2288 case $ac_var in #(
2289 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2290$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2291 esac
2292 case $ac_var in #(
2293 _ | IFS | as_nl) ;; #(
2294 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2295 *) $as_unset $ac_var ;;
2296 esac ;;
2297 esac
2298 done
2299 (set) 2>&1 |
2300 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2301 *${as_nl}ac_space=\ *)
2302 sed -n \
2303 "s/'\''/'\''\\\\'\'''\''/g;
2304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2305 ;; #(
2306 *)
2307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2308 ;;
2309 esac |
2310 sort
2311)
2312 echo
2313
2314 cat <<\_ASBOX
2315## ----------------- ##
2316## Output variables. ##
2317## ----------------- ##
2318_ASBOX
2319 echo
2320 for ac_var in $ac_subst_vars
2321 do
2322 eval ac_val=\$$ac_var
2323 case $ac_val in
2324 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2325 esac
2326 $as_echo "$ac_var='\''$ac_val'\''"
2327 done | sort
2328 echo
2329
2330 if test -n "$ac_subst_files"; then
2331 cat <<\_ASBOX
2332## ------------------- ##
2333## File substitutions. ##
2334## ------------------- ##
2335_ASBOX
2336 echo
2337 for ac_var in $ac_subst_files
2338 do
2339 eval ac_val=\$$ac_var
2340 case $ac_val in
2341 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342 esac
2343 $as_echo "$ac_var='\''$ac_val'\''"
2344 done | sort
2345 echo
2346 fi
2347
2348 if test -s confdefs.h; then
2349 cat <<\_ASBOX
2350## ----------- ##
2351## confdefs.h. ##
2352## ----------- ##
2353_ASBOX
2354 echo
2355 cat confdefs.h
2356 echo
2357 fi
2358 test "$ac_signal" != 0 &&
2359 $as_echo "$as_me: caught signal $ac_signal"
2360 $as_echo "$as_me: exit $exit_status"
2361 } >&5
2362 rm -f core *.core core.conftest.* &&
2363 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2364 exit $exit_status
2365' 0
2366for ac_signal in 1 2 13 15; do
2367 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2368done
2369ac_signal=0
2370
2371# confdefs.h avoids OS command line length limits that DEFS can exceed.
2372rm -f -r conftest* confdefs.h
2373
2374# Predefined preprocessor variables.
2375
2376cat >>confdefs.h <<_ACEOF
2377#define PACKAGE_NAME "$PACKAGE_NAME"
2378_ACEOF
2379
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2383_ACEOF
2384
2385
2386cat >>confdefs.h <<_ACEOF
2387#define PACKAGE_VERSION "$PACKAGE_VERSION"
2388_ACEOF
2389
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_STRING "$PACKAGE_STRING"
2393_ACEOF
2394
2395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2398_ACEOF
2399
2400
2401# Let the site file select an alternate cache file if it wants to.
2402# Prefer an explicitly selected file to automatically selected ones.
2403ac_site_file1=NONE
2404ac_site_file2=NONE
2405if test -n "$CONFIG_SITE"; then
2406 ac_site_file1=$CONFIG_SITE
2407elif test "x$prefix" != xNONE; then
2408 ac_site_file1=$prefix/share/config.site
2409 ac_site_file2=$prefix/etc/config.site
2410else
2411 ac_site_file1=$ac_default_prefix/share/config.site
2412 ac_site_file2=$ac_default_prefix/etc/config.site
2413fi
2414for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415do
2416 test "x$ac_site_file" = xNONE && continue
2417 if test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2419$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2421 . "$ac_site_file"
2422 fi
2423done
2424
2425if test -r "$cache_file"; then
2426 # Some versions of bash will fail to source /dev/null (special
2427 # files actually), so we avoid doing that.
2428 if test -f "$cache_file"; then
2429 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2430$as_echo "$as_me: loading cache $cache_file" >&6;}
2431 case $cache_file in
2432 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2433 *) . "./$cache_file";;
2434 esac
2435 fi
2436else
2437 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2438$as_echo "$as_me: creating cache $cache_file" >&6;}
2439 >$cache_file
2440fi
2441
2442# Check that the precious variables saved in the cache have kept the same
2443# value.
2444ac_cache_corrupted=false
2445for ac_var in $ac_precious_vars; do
2446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2447 eval ac_new_set=\$ac_env_${ac_var}_set
2448 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2449 eval ac_new_val=\$ac_env_${ac_var}_value
2450 case $ac_old_set,$ac_new_set in
2451 set,)
2452 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2453$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2454 ac_cache_corrupted=: ;;
2455 ,set)
2456 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2457$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2459 ,);;
2460 *)
2461 if test "x$ac_old_val" != "x$ac_new_val"; then
2462 # differences in whitespace do not lead to failure.
2463 ac_old_val_w=`echo x $ac_old_val`
2464 ac_new_val_w=`echo x $ac_new_val`
2465 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2466 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2467$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2468 ac_cache_corrupted=:
2469 else
2470 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2471$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2472 eval $ac_var=\$ac_old_val
2473 fi
2474 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2475$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2476 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2477$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2478 fi;;
2479 esac
2480 # Pass precious variables to config.status.
2481 if test "$ac_new_set" = set; then
2482 case $ac_new_val in
2483 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2484 *) ac_arg=$ac_var=$ac_new_val ;;
2485 esac
2486 case " $ac_configure_args " in
2487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2488 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2489 esac
2490 fi
2491done
2492if $ac_cache_corrupted; then
2493 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2496$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2497 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2498$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2499 { (exit 1); exit 1; }; }
2500fi
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526ac_ext=c
2527ac_cpp='$CPP $CPPFLAGS'
2528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531
2532
2533
2534ac_aux_dir=
2535for ac_dir in config "$srcdir"/config; do
2536 if test -f "$ac_dir/install-sh"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/install-sh -c"
2539 break
2540 elif test -f "$ac_dir/install.sh"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/install.sh -c"
2543 break
2544 elif test -f "$ac_dir/shtool"; then
2545 ac_aux_dir=$ac_dir
2546 ac_install_sh="$ac_aux_dir/shtool install -c"
2547 break
2548 fi
2549done
2550if test -z "$ac_aux_dir"; then
2551 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2552$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2553 { (exit 1); exit 1; }; }
2554fi
2555
2556# These three variables are undocumented and unsupported,
2557# and are intended to be withdrawn in a future Autoconf release.
2558# They can cause serious problems if a builder's source tree is in a directory
2559# whose full name contains unusual characters.
2560ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2561ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2562ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2563
2564
2565
2566
2567ac_config_headers="$ac_config_headers config/config.h"
2568
2569ac_config_commands="$ac_config_commands magick/magick-config.h"
2570
2571ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
2572
2573
2574#
2575# Save initial user-tunable values
2576#
2577USER_LIBS=$LIBS
2578for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
2579 eval isset=\${$var+set}
2580 if test "$isset" = 'set'; then
2581 eval val=$`echo $var`
2582 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
2583 fi
2584done
2585
2586
2587CONFIGURE_ARGS="$0 ${ac_configure_args}"
2588
2589
2590# Source file containing package/library versioning information.
2591. ${srcdir}/version.sh
2592
2593echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
2594# Make sure we can run config.sub.
2595$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2596 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2597$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2598 { (exit 1); exit 1; }; }
2599
2600{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2601$as_echo_n "checking build system type... " >&6; }
2602if test "${ac_cv_build+set}" = set; then
2603 $as_echo_n "(cached) " >&6
2604else
2605 ac_build_alias=$build_alias
2606test "x$ac_build_alias" = x &&
2607 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2608test "x$ac_build_alias" = x &&
2609 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2610$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2611 { (exit 1); exit 1; }; }
2612ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2613 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2614$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2615 { (exit 1); exit 1; }; }
2616
2617fi
2618{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2619$as_echo "$ac_cv_build" >&6; }
2620case $ac_cv_build in
2621*-*-*) ;;
2622*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2623$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2624 { (exit 1); exit 1; }; };;
2625esac
2626build=$ac_cv_build
2627ac_save_IFS=$IFS; IFS='-'
2628set x $ac_cv_build
2629shift
2630build_cpu=$1
2631build_vendor=$2
2632shift; shift
2633# Remember, the first character of IFS is used to create $*,
2634# except with old shells:
2635build_os=$*
2636IFS=$ac_save_IFS
2637case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638
2639
2640{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2641$as_echo_n "checking host system type... " >&6; }
2642if test "${ac_cv_host+set}" = set; then
2643 $as_echo_n "(cached) " >&6
2644else
2645 if test "x$host_alias" = x; then
2646 ac_cv_host=$ac_cv_build
2647else
2648 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2649 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2650$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2651 { (exit 1); exit 1; }; }
2652fi
2653
2654fi
2655{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2656$as_echo "$ac_cv_host" >&6; }
2657case $ac_cv_host in
2658*-*-*) ;;
2659*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2660$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2661 { (exit 1); exit 1; }; };;
2662esac
2663host=$ac_cv_host
2664ac_save_IFS=$IFS; IFS='-'
2665set x $ac_cv_host
2666shift
2667host_cpu=$1
2668host_vendor=$2
2669shift; shift
2670# Remember, the first character of IFS is used to create $*,
2671# except with old shells:
2672host_os=$*
2673IFS=$ac_save_IFS
2674case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2675
2676
2677{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2678$as_echo_n "checking target system type... " >&6; }
2679if test "${ac_cv_target+set}" = set; then
2680 $as_echo_n "(cached) " >&6
2681else
2682 if test "x$target_alias" = x; then
2683 ac_cv_target=$ac_cv_host
2684else
2685 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2686 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2687$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2688 { (exit 1); exit 1; }; }
2689fi
2690
2691fi
2692{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2693$as_echo "$ac_cv_target" >&6; }
2694case $ac_cv_target in
2695*-*-*) ;;
2696*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2697$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2698 { (exit 1); exit 1; }; };;
2699esac
2700target=$ac_cv_target
2701ac_save_IFS=$IFS; IFS='-'
2702set x $ac_cv_target
2703shift
2704target_cpu=$1
2705target_vendor=$2
2706shift; shift
2707# Remember, the first character of IFS is used to create $*,
2708# except with old shells:
2709target_os=$*
2710IFS=$ac_save_IFS
2711case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2712
2713
2714# The aliases save the names the user supplied, while $host etc.
2715# will get canonicalized.
2716test -n "$target_alias" &&
2717 test "$program_prefix$program_suffix$program_transform_name" = \
2718 NONENONEs,x,x, &&
2719 program_prefix=${target_alias}-
2720
2721# Substitute library versioning
2722
2723
2724# Ensure that make can run correctly
2725{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2726$as_echo_n "checking whether build environment is sane... " >&6; }
2727# Just in case
2728sleep 1
2729echo timestamp > conftest.file
2730# Reject unsafe characters in $srcdir or the absolute working directory
2731# name. Accept space and tab only in the latter.
2732am_lf='
2733'
2734case `pwd` in
2735 *[\\\"\#\$\&\'\`$am_lf]*)
2736 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2737$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2738 { (exit 1); exit 1; }; };;
2739esac
2740case $srcdir in
2741 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2742 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2743$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2744 { (exit 1); exit 1; }; };;
2745esac
2746
2747# Do `set' in a subshell so we don't clobber the current shell's
2748# arguments. Must try -L first in case configure is actually a
2749# symlink; some systems play weird games with the mod time of symlinks
2750# (eg FreeBSD returns the mod time of the symlink's containing
2751# directory).
2752if (
2753 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2754 if test "$*" = "X"; then
2755 # -L didn't work.
2756 set X `ls -t "$srcdir/configure" conftest.file`
2757 fi
2758 rm -f conftest.file
2759 if test "$*" != "X $srcdir/configure conftest.file" \
2760 && test "$*" != "X conftest.file $srcdir/configure"; then
2761
2762 # If neither matched, then we have a broken ls. This can happen
2763 # if, for instance, CONFIG_SHELL is bash and it inherits a
2764 # broken ls alias from the environment. This has actually
2765 # happened. Such a system could not be considered "sane".
2766 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2767alias in your environment" >&5
2768$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2769alias in your environment" >&2;}
2770 { (exit 1); exit 1; }; }
2771 fi
2772
2773 test "$2" = conftest.file
2774 )
2775then
2776 # Ok.
2777 :
2778else
2779 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2780Check your system clock" >&5
2781$as_echo "$as_me: error: newly created file is older than distributed files!
2782Check your system clock" >&2;}
2783 { (exit 1); exit 1; }; }
2784fi
2785{ $as_echo "$as_me:$LINENO: result: yes" >&5
2786$as_echo "yes" >&6; }
2787
2788am__api_version='1.11'
2789
2790# Find a good install program. We prefer a C program (faster),
2791# so one script is as good as another. But avoid the broken or
2792# incompatible versions:
2793# SysV /etc/install, /usr/sbin/install
2794# SunOS /usr/etc/install
2795# IRIX /sbin/install
2796# AIX /bin/install
2797# AmigaOS /C/install, which installs bootblocks on floppy discs
2798# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2799# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2800# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2801# OS/2's system install, which has a completely different semantic
2802# ./install, which can be erroneously created by make from ./install.sh.
2803# Reject install programs that cannot install multiple files.
2804{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2805$as_echo_n "checking for a BSD-compatible install... " >&6; }
2806if test -z "$INSTALL"; then
2807if test "${ac_cv_path_install+set}" = set; then
2808 $as_echo_n "(cached) " >&6
2809else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 # Account for people who put trailing slashes in PATH elements.
2816case $as_dir/ in
2817 ./ | .// | /cC/* | \
2818 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2819 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2820 /usr/ucb/* ) ;;
2821 *)
2822 # OSF1 and SCO ODT 3.0 have their own names for install.
2823 # Don't use installbsd from OSF since it installs stuff as root
2824 # by default.
2825 for ac_prog in ginstall scoinst install; do
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2828 if test $ac_prog = install &&
2829 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2830 # AIX install. It has an incompatible calling convention.
2831 :
2832 elif test $ac_prog = install &&
2833 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2834 # program-specific install script used by HP pwplus--don't use.
2835 :
2836 else
2837 rm -rf conftest.one conftest.two conftest.dir
2838 echo one > conftest.one
2839 echo two > conftest.two
2840 mkdir conftest.dir
2841 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2842 test -s conftest.one && test -s conftest.two &&
2843 test -s conftest.dir/conftest.one &&
2844 test -s conftest.dir/conftest.two
2845 then
2846 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2847 break 3
2848 fi
2849 fi
2850 fi
2851 done
2852 done
2853 ;;
2854esac
2855
2856done
2857IFS=$as_save_IFS
2858
2859rm -rf conftest.one conftest.two conftest.dir
2860
2861fi
2862 if test "${ac_cv_path_install+set}" = set; then
2863 INSTALL=$ac_cv_path_install
2864 else
2865 # As a last resort, use the slow shell script. Don't cache a
2866 # value for INSTALL within a source directory, because that will
2867 # break other packages using the cache if that directory is
2868 # removed, or if the value is a relative name.
2869 INSTALL=$ac_install_sh
2870 fi
2871fi
2872{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2873$as_echo "$INSTALL" >&6; }
2874
2875# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2876# It thinks the first close brace ends the variable substitution.
2877test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2878
2879test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2880
2881test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2882
2883test "$program_prefix" != NONE &&
2884 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2885# Use a double $ so make ignores it.
2886test "$program_suffix" != NONE &&
2887 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2888# Double any \ or $.
2889# By default was `s,x,x', remove it if useless.
2890ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2891program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2892
2893# expand $ac_aux_dir to an absolute path
2894am_aux_dir=`cd $ac_aux_dir && pwd`
2895
2896if test x"${MISSING+set}" != xset; then
2897 case $am_aux_dir in
2898 *\ * | *\ *)
2899 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2900 *)
2901 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2902 esac
2903fi
2904# Use eval to expand $SHELL
2905if eval "$MISSING --run true"; then
2906 am_missing_run="$MISSING --run "
2907else
2908 am_missing_run=
2909 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2910$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2911fi
2912
2913if test x"${install_sh}" != xset; then
2914 case $am_aux_dir in
2915 *\ * | *\ *)
2916 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2917 *)
2918 install_sh="\${SHELL} $am_aux_dir/install-sh"
2919 esac
2920fi
2921
2922# Installed binaries are usually stripped using `strip' when the user
2923# run `make install-strip'. However `strip' might not be the right
2924# tool to use in cross-compilation environments, therefore Automake
2925# will honor the `STRIP' environment variable to overrule this program.
2926if test "$cross_compiling" != no; then
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2929set dummy ${ac_tool_prefix}strip; ac_word=$2
2930{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if test "${ac_cv_prog_STRIP+set}" = set; then
2933 $as_echo_n "(cached) " >&6
2934else
2935 if test -n "$STRIP"; then
2936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949done
2950done
2951IFS=$as_save_IFS
2952
2953fi
2954fi
2955STRIP=$ac_cv_prog_STRIP
2956if test -n "$STRIP"; then
2957 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2958$as_echo "$STRIP" >&6; }
2959else
2960 { $as_echo "$as_me:$LINENO: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964
2965fi
2966if test -z "$ac_cv_prog_STRIP"; then
2967 ac_ct_STRIP=$STRIP
2968 # Extract the first word of "strip", so it can be a program name with args.
2969set dummy strip; ac_word=$2
2970{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2971$as_echo_n "checking for $ac_word... " >&6; }
2972if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2973 $as_echo_n "(cached) " >&6
2974else
2975 if test -n "$ac_ct_STRIP"; then
2976 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2977else
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_ac_ct_STRIP="strip"
2986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989done
2990done
2991IFS=$as_save_IFS
2992
2993fi
2994fi
2995ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2996if test -n "$ac_ct_STRIP"; then
2997 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2998$as_echo "$ac_ct_STRIP" >&6; }
2999else
3000 { $as_echo "$as_me:$LINENO: result: no" >&5
3001$as_echo "no" >&6; }
3002fi
3003
3004 if test "x$ac_ct_STRIP" = x; then
3005 STRIP=":"
3006 else
3007 case $cross_compiling:$ac_tool_warned in
3008yes:)
3009{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3011ac_tool_warned=yes ;;
3012esac
3013 STRIP=$ac_ct_STRIP
3014 fi
3015else
3016 STRIP="$ac_cv_prog_STRIP"
3017fi
3018
3019fi
3020INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3021
3022{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3023$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3024if test -z "$MKDIR_P"; then
3025 if test "${ac_cv_path_mkdir+set}" = set; then
3026 $as_echo_n "(cached) " >&6
3027else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3030do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_prog in mkdir gmkdir; do
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3036 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3037 'mkdir (GNU coreutils) '* | \
3038 'mkdir (coreutils) '* | \
3039 'mkdir (fileutils) '4.1*)
3040 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3041 break 3;;
3042 esac
3043 done
3044 done
3045done
3046IFS=$as_save_IFS
3047
3048fi
3049
3050 if test "${ac_cv_path_mkdir+set}" = set; then
3051 MKDIR_P="$ac_cv_path_mkdir -p"
3052 else
3053 # As a last resort, use the slow shell script. Don't cache a
3054 # value for MKDIR_P within a source directory, because that will
3055 # break other packages using the cache if that directory is
3056 # removed, or if the value is a relative name.
3057 test -d ./--version && rmdir ./--version
3058 MKDIR_P="$ac_install_sh -d"
3059 fi
3060fi
3061{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3062$as_echo "$MKDIR_P" >&6; }
3063
3064mkdir_p="$MKDIR_P"
3065case $mkdir_p in
3066 [\\/$]* | ?:[\\/]*) ;;
3067 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3068esac
3069
3070for ac_prog in gawk mawk nawk awk
3071do
3072 # Extract the first word of "$ac_prog", so it can be a program name with args.
3073set dummy $ac_prog; ac_word=$2
3074{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3075$as_echo_n "checking for $ac_word... " >&6; }
3076if test "${ac_cv_prog_AWK+set}" = set; then
3077 $as_echo_n "(cached) " >&6
3078else
3079 if test -n "$AWK"; then
3080 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3081else
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 ac_cv_prog_AWK="$ac_prog"
3090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093done
3094done
3095IFS=$as_save_IFS
3096
3097fi
3098fi
3099AWK=$ac_cv_prog_AWK
3100if test -n "$AWK"; then
3101 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3102$as_echo "$AWK" >&6; }
3103else
3104 { $as_echo "$as_me:$LINENO: result: no" >&5
3105$as_echo "no" >&6; }
3106fi
3107
3108
3109 test -n "$AWK" && break
3110done
3111
3112{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3113$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3114set x ${MAKE-make}
3115ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3116if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3117 $as_echo_n "(cached) " >&6
3118else
3119 cat >conftest.make <<\_ACEOF
3120SHELL = /bin/sh
3121all:
3122 @echo '@@@%%%=$(MAKE)=@@@%%%'
3123_ACEOF
3124# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3125case `${MAKE-make} -f conftest.make 2>/dev/null` in
3126 *@@@%%%=?*=@@@%%%*)
3127 eval ac_cv_prog_make_${ac_make}_set=yes;;
3128 *)
3129 eval ac_cv_prog_make_${ac_make}_set=no;;
3130esac
3131rm -f conftest.make
3132fi
3133if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3134 { $as_echo "$as_me:$LINENO: result: yes" >&5
3135$as_echo "yes" >&6; }
3136 SET_MAKE=
3137else
3138 { $as_echo "$as_me:$LINENO: result: no" >&5
3139$as_echo "no" >&6; }
3140 SET_MAKE="MAKE=${MAKE-make}"
3141fi
3142
3143rm -rf .tst 2>/dev/null
3144mkdir .tst 2>/dev/null
3145if test -d .tst; then
3146 am__leading_dot=.
3147else
3148 am__leading_dot=_
3149fi
3150rmdir .tst 2>/dev/null
3151
3152if test "`cd $srcdir && pwd`" != "`pwd`"; then
3153 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3154 # is not polluted with repeated "-I."
3155 am__isrc=' -I$(srcdir)'
3156 # test to see if srcdir already configured
3157 if test -f $srcdir/config.status; then
3158 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3159$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3160 { (exit 1); exit 1; }; }
3161 fi
3162fi
3163
3164# test whether we have cygpath
3165if test -z "$CYGPATH_W"; then
3166 if (cygpath --version) >/dev/null 2>/dev/null; then
3167 CYGPATH_W='cygpath -w'
3168 else
3169 CYGPATH_W=echo
3170 fi
3171fi
3172
3173
3174# Define the identity of the package.
3175 PACKAGE=$PACKAGE_NAME
3176 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3177
3178
3179# Some tools Automake needs.
3180
3181ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3182
3183
3184AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3185
3186
3187AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3188
3189
3190AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3191
3192
3193MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3194
3195# We need awk for the "check" target. The system "awk" is bad on
3196# some platforms.
3197# Always define AMTAR for backward compatibility.
3198
3199AMTAR=${AMTAR-"${am_missing_run}tar"}
3200
3201am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3202
3203
3204
3205
3206
3207
3208# Enable support for silent build rules
3209# Check whether --enable-silent-rules was given.
3210if test "${enable_silent_rules+set}" = set; then
3211 enableval=$enable_silent_rules;
3212fi
3213
3214case $enable_silent_rules in
3215yes) AM_DEFAULT_VERBOSITY=0;;
3216no) AM_DEFAULT_VERBOSITY=1;;
3217*) AM_DEFAULT_VERBOSITY=0;;
3218esac
3219AM_BACKSLASH='\'
3220
3221
3222MAGICK_LIB_VERSION="0x"
3223if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3224 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3225fi
3226MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3227if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3228 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3229fi
3230MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3231if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3232 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3233fi
3234MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3235
3236
3237# Definition used to define MagickLibVersionText in version.h
3238MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3239
3240
3241# Definition used to define MagickLibVersionNumber in version.h
3242MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3243
3244
3245# Regenerate config.status if ChangeLog or version.sh is updated.
3246CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3247
3248
3249PERLMAINCC=$CC
3250
3251MAGICK_CFLAGS=''
3252MAGICK_CPPFLAGS=$CPPFLAGS_USER
3253MAGICK_PCFLAGS=$CPPFLAGS_USER
3254MAGICK_LDFLAGS=''
3255MAGICK_LIBS=''
3256
3257#
3258# Evaluate shell variable equivalents to Makefile directory variables
3259#
3260if test "x$prefix" = xNONE; then
3261 prefix=$ac_default_prefix
3262fi
3263# Let make expand exec_prefix.
3264if test "x$exec_prefix" = xNONE; then
3265 exec_prefix='${prefix}'
3266fi
3267
3268#
3269eval "eval PREFIX_DIR=${prefix}"
3270
3271eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3272
3273eval "eval BIN_DIR=$bindir"
3274
3275eval "eval SBIN_DIR=$sbindir"
3276
3277eval "eval LIBEXEC_DIR=$libexecdir"
3278
3279eval "eval DATA_DIR=$datadir"
3280
3281eval "eval SYSCONF_DIR=$sysconfdir"
3282
3283eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3284
3285eval "eval LOCALSTATE_DIR=$localstatedir"
3286
3287eval "eval LIB_DIR=$libdir"
3288
3289eval "eval INCLUDE_DIR=$includedir"
3290
3291eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3292
3293eval "eval INFO_DIR=$infodir"
3294
3295eval "eval MAN_DIR=$mandir"
3296
3297
3298# Get full paths to source and build directories
3299srcdirfull="`cd $srcdir && pwd`"
3300builddir="`pwd`"
3301
3302#
3303# Compute variables useful for running uninstalled software.
3304#
3305MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3306MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
3307MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
3308MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
3309DIRSEP=':'
3310case "${build_os}" in
3311 mingw* )
3312 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
3313 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
3314 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
3315 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
3316 DIRSEP=';'
3317 ;;
3318esac
3319case "${host_os}" in
3320 mingw* )
3321 DIRSEP=';'
3322 ;;
3323esac
3324
3325
3326
3327
3328
3329
3330# Check for programs
3331ac_ext=c
3332ac_cpp='$CPP $CPPFLAGS'
3333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336if test -n "$ac_tool_prefix"; then
3337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3338set dummy ${ac_tool_prefix}gcc; ac_word=$2
3339{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3340$as_echo_n "checking for $ac_word... " >&6; }
3341if test "${ac_cv_prog_CC+set}" = set; then
3342 $as_echo_n "(cached) " >&6
3343else
3344 if test -n "$CC"; then
3345 ac_cv_prog_CC="$CC" # Let the user override the test.
3346else
3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348for as_dir in $PATH
3349do
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3357 fi
3358done
3359done
3360IFS=$as_save_IFS
3361
3362fi
3363fi
3364CC=$ac_cv_prog_CC
3365if test -n "$CC"; then
3366 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3367$as_echo "$CC" >&6; }
3368else
3369 { $as_echo "$as_me:$LINENO: result: no" >&5
3370$as_echo "no" >&6; }
3371fi
3372
3373
3374fi
3375if test -z "$ac_cv_prog_CC"; then
3376 ac_ct_CC=$CC
3377 # Extract the first word of "gcc", so it can be a program name with args.
3378set dummy gcc; ac_word=$2
3379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3380$as_echo_n "checking for $ac_word... " >&6; }
3381if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3382 $as_echo_n "(cached) " >&6
3383else
3384 if test -n "$ac_ct_CC"; then
3385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3386else
3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 ac_cv_prog_ac_ct_CC="gcc"
3395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398done
3399done
3400IFS=$as_save_IFS
3401
3402fi
3403fi
3404ac_ct_CC=$ac_cv_prog_ac_ct_CC
3405if test -n "$ac_ct_CC"; then
3406 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3407$as_echo "$ac_ct_CC" >&6; }
3408else
3409 { $as_echo "$as_me:$LINENO: result: no" >&5
3410$as_echo "no" >&6; }
3411fi
3412
3413 if test "x$ac_ct_CC" = x; then
3414 CC=""
3415 else
3416 case $cross_compiling:$ac_tool_warned in
3417yes:)
3418{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3420ac_tool_warned=yes ;;
3421esac
3422 CC=$ac_ct_CC
3423 fi
3424else
3425 CC="$ac_cv_prog_CC"
3426fi
3427
3428if test -z "$CC"; then
3429 if test -n "$ac_tool_prefix"; then
3430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3431set dummy ${ac_tool_prefix}cc; ac_word=$2
3432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3433$as_echo_n "checking for $ac_word... " >&6; }
3434if test "${ac_cv_prog_CC+set}" = set; then
3435 $as_echo_n "(cached) " >&6
3436else
3437 if test -n "$CC"; then
3438 ac_cv_prog_CC="$CC" # Let the user override the test.
3439else
3440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441for as_dir in $PATH
3442do
3443 IFS=$as_save_IFS
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3447 ac_cv_prog_CC="${ac_tool_prefix}cc"
3448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 break 2
3450 fi
3451done
3452done
3453IFS=$as_save_IFS
3454
3455fi
3456fi
3457CC=$ac_cv_prog_CC
3458if test -n "$CC"; then
3459 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3460$as_echo "$CC" >&6; }
3461else
3462 { $as_echo "$as_me:$LINENO: result: no" >&5
3463$as_echo "no" >&6; }
3464fi
3465
3466
3467 fi
3468fi
3469if test -z "$CC"; then
3470 # Extract the first word of "cc", so it can be a program name with args.
3471set dummy cc; ac_word=$2
3472{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3473$as_echo_n "checking for $ac_word... " >&6; }
3474if test "${ac_cv_prog_CC+set}" = set; then
3475 $as_echo_n "(cached) " >&6
3476else
3477 if test -n "$CC"; then
3478 ac_cv_prog_CC="$CC" # Let the user override the test.
3479else
3480 ac_prog_rejected=no
3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482for as_dir in $PATH
3483do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3489 ac_prog_rejected=yes
3490 continue
3491 fi
3492 ac_cv_prog_CC="cc"
3493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 break 2
3495 fi
3496done
3497done
3498IFS=$as_save_IFS
3499
3500if test $ac_prog_rejected = yes; then
3501 # We found a bogon in the path, so make sure we never use it.
3502 set dummy $ac_cv_prog_CC
3503 shift
3504 if test $# != 0; then
3505 # We chose a different compiler from the bogus one.
3506 # However, it has the same basename, so the bogon will be chosen
3507 # first if we set CC to just the basename; use the full file name.
3508 shift
3509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3510 fi
3511fi
3512fi
3513fi
3514CC=$ac_cv_prog_CC
3515if test -n "$CC"; then
3516 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3517$as_echo "$CC" >&6; }
3518else
3519 { $as_echo "$as_me:$LINENO: result: no" >&5
3520$as_echo "no" >&6; }
3521fi
3522
3523
3524fi
3525if test -z "$CC"; then
3526 if test -n "$ac_tool_prefix"; then
3527 for ac_prog in cl.exe
3528 do
3529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3530set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3531{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3532$as_echo_n "checking for $ac_word... " >&6; }
3533if test "${ac_cv_prog_CC+set}" = set; then
3534 $as_echo_n "(cached) " >&6
3535else
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
3538else
3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550done
3551done
3552IFS=$as_save_IFS
3553
3554fi
3555fi
3556CC=$ac_cv_prog_CC
3557if test -n "$CC"; then
3558 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3559$as_echo "$CC" >&6; }
3560else
3561 { $as_echo "$as_me:$LINENO: result: no" >&5
3562$as_echo "no" >&6; }
3563fi
3564
3565
3566 test -n "$CC" && break
3567 done
3568fi
3569if test -z "$CC"; then
3570 ac_ct_CC=$CC
3571 for ac_prog in cl.exe
3572do
3573 # Extract the first word of "$ac_prog", so it can be a program name with args.
3574set dummy $ac_prog; ac_word=$2
3575{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3576$as_echo_n "checking for $ac_word... " >&6; }
3577if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3578 $as_echo_n "(cached) " >&6
3579else
3580 if test -n "$ac_ct_CC"; then
3581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3582else
3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH
3585do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_ac_ct_CC="$ac_prog"
3591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3593 fi
3594done
3595done
3596IFS=$as_save_IFS
3597
3598fi
3599fi
3600ac_ct_CC=$ac_cv_prog_ac_ct_CC
3601if test -n "$ac_ct_CC"; then
3602 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3603$as_echo "$ac_ct_CC" >&6; }
3604else
3605 { $as_echo "$as_me:$LINENO: result: no" >&5
3606$as_echo "no" >&6; }
3607fi
3608
3609
3610 test -n "$ac_ct_CC" && break
3611done
3612
3613 if test "x$ac_ct_CC" = x; then
3614 CC=""
3615 else
3616 case $cross_compiling:$ac_tool_warned in
3617yes:)
3618{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620ac_tool_warned=yes ;;
3621esac
3622 CC=$ac_ct_CC
3623 fi
3624fi
3625
3626fi
3627
3628
3629test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3632See \`config.log' for more details." >&5
3633$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3634See \`config.log' for more details." >&2;}
3635 { (exit 1); exit 1; }; }; }
3636
3637# Provide some information about the compiler.
3638$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3639set X $ac_compile
3640ac_compiler=$2
3641{ (ac_try="$ac_compiler --version >&5"
3642case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645esac
3646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3647$as_echo "$ac_try_echo") >&5
3648 (eval "$ac_compiler --version >&5") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }
3652{ (ac_try="$ac_compiler -v >&5"
3653case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656esac
3657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3658$as_echo "$ac_try_echo") >&5
3659 (eval "$ac_compiler -v >&5") 2>&5
3660 ac_status=$?
3661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }
3663{ (ac_try="$ac_compiler -V >&5"
3664case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667esac
3668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3669$as_echo "$ac_try_echo") >&5
3670 (eval "$ac_compiler -V >&5") 2>&5
3671 ac_status=$?
3672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }
3674
3675cat >conftest.$ac_ext <<_ACEOF
3676/* confdefs.h. */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
3680/* end confdefs.h. */
3681
3682int
3683main ()
3684{
3685
3686 ;
3687 return 0;
3688}
3689_ACEOF
3690ac_clean_files_save=$ac_clean_files
3691ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3692# Try to create an executable without -o first, disregard a.out.
3693# It will help us diagnose broken compilers, and finding out an intuition
3694# of exeext.
3695{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3696$as_echo_n "checking for C compiler default output file name... " >&6; }
3697ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3698
3699# The possible output files:
3700ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3701
3702ac_rmfiles=
3703for ac_file in $ac_files
3704do
3705 case $ac_file in
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3707 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3708 esac
3709done
3710rm -f $ac_rmfiles
3711
3712if { (ac_try="$ac_link_default"
3713case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716esac
3717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3718$as_echo "$ac_try_echo") >&5
3719 (eval "$ac_link_default") 2>&5
3720 ac_status=$?
3721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; then
3723 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3724# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3725# in a Makefile. We should not override ac_cv_exeext if it was cached,
3726# so that the user can short-circuit this test for compilers unknown to
3727# Autoconf.
3728for ac_file in $ac_files ''
3729do
3730 test -f "$ac_file" || continue
3731 case $ac_file in
3732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3733 ;;
3734 [ab].out )
3735 # We found the default executable, but exeext='' is most
3736 # certainly right.
3737 break;;
3738 *.* )
3739 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3740 then :; else
3741 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3742 fi
3743 # We set ac_cv_exeext here because the later test for it is not
3744 # safe: cross compilers may not add the suffix if given an `-o'
3745 # argument, so we may need to know it at that point already.
3746 # Even if this section looks crufty: it has the advantage of
3747 # actually working.
3748 break;;
3749 * )
3750 break;;
3751 esac
3752done
3753test "$ac_cv_exeext" = no && ac_cv_exeext=
3754
3755else
3756 ac_file=''
3757fi
3758
3759{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3760$as_echo "$ac_file" >&6; }
3761if test -z "$ac_file"; then
3762 $as_echo "$as_me: failed program was:" >&5
3763sed 's/^/| /' conftest.$ac_ext >&5
3764
3765{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3768See \`config.log' for more details." >&5
3769$as_echo "$as_me: error: C compiler cannot create executables
3770See \`config.log' for more details." >&2;}
3771 { (exit 77); exit 77; }; }; }
3772fi
3773
3774ac_exeext=$ac_cv_exeext
3775
3776# Check that the compiler produces executables we can run. If not, either
3777# the compiler is broken, or we cross compile.
3778{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3779$as_echo_n "checking whether the C compiler works... " >&6; }
3780# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3781# If not cross compiling, check that we can run a simple program.
3782if test "$cross_compiling" != yes; then
3783 if { ac_try='./$ac_file'
3784 { (case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787esac
3788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3789$as_echo "$ac_try_echo") >&5
3790 (eval "$ac_try") 2>&5
3791 ac_status=$?
3792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; }; then
3794 cross_compiling=no
3795 else
3796 if test "$cross_compiling" = maybe; then
3797 cross_compiling=yes
3798 else
3799 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3802If you meant to cross compile, use \`--host'.
3803See \`config.log' for more details." >&5
3804$as_echo "$as_me: error: cannot run C compiled programs.
3805If you meant to cross compile, use \`--host'.
3806See \`config.log' for more details." >&2;}
3807 { (exit 1); exit 1; }; }; }
3808 fi
3809 fi
3810fi
3811{ $as_echo "$as_me:$LINENO: result: yes" >&5
3812$as_echo "yes" >&6; }
3813
3814rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3815ac_clean_files=$ac_clean_files_save
3816# Check that the compiler produces executables we can run. If not, either
3817# the compiler is broken, or we cross compile.
3818{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3819$as_echo_n "checking whether we are cross compiling... " >&6; }
3820{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3821$as_echo "$cross_compiling" >&6; }
3822
3823{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3824$as_echo_n "checking for suffix of executables... " >&6; }
3825if { (ac_try="$ac_link"
3826case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829esac
3830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831$as_echo "$ac_try_echo") >&5
3832 (eval "$ac_link") 2>&5
3833 ac_status=$?
3834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; then
3836 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3837# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3838# work properly (i.e., refer to `conftest.exe'), while it won't with
3839# `rm'.
3840for ac_file in conftest.exe conftest conftest.*; do
3841 test -f "$ac_file" || continue
3842 case $ac_file in
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 break;;
3846 * ) break;;
3847 esac
3848done
3849else
3850 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3852{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3853See \`config.log' for more details." >&5
3854$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3855See \`config.log' for more details." >&2;}
3856 { (exit 1); exit 1; }; }; }
3857fi
3858
3859rm -f conftest$ac_cv_exeext
3860{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3861$as_echo "$ac_cv_exeext" >&6; }
3862
3863rm -f conftest.$ac_ext
3864EXEEXT=$ac_cv_exeext
3865ac_exeext=$EXEEXT
3866{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3867$as_echo_n "checking for suffix of object files... " >&6; }
3868if test "${ac_cv_objext+set}" = set; then
3869 $as_echo_n "(cached) " >&6
3870else
3871 cat >conftest.$ac_ext <<_ACEOF
3872/* confdefs.h. */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h. */
3877
3878int
3879main ()
3880{
3881
3882 ;
3883 return 0;
3884}
3885_ACEOF
3886rm -f conftest.o conftest.obj
3887if { (ac_try="$ac_compile"
3888case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891esac
3892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3893$as_echo "$ac_try_echo") >&5
3894 (eval "$ac_compile") 2>&5
3895 ac_status=$?
3896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; then
3898 for ac_file in conftest.o conftest.obj conftest.*; do
3899 test -f "$ac_file" || continue;
3900 case $ac_file in
3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3902 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3903 break;;
3904 esac
3905done
3906else
3907 $as_echo "$as_me: failed program was:" >&5
3908sed 's/^/| /' conftest.$ac_ext >&5
3909
3910{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3913See \`config.log' for more details." >&5
3914$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3915See \`config.log' for more details." >&2;}
3916 { (exit 1); exit 1; }; }; }
3917fi
3918
3919rm -f conftest.$ac_cv_objext conftest.$ac_ext
3920fi
3921{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3922$as_echo "$ac_cv_objext" >&6; }
3923OBJEXT=$ac_cv_objext
3924ac_objext=$OBJEXT
3925{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3926$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3927if test "${ac_cv_c_compiler_gnu+set}" = set; then
3928 $as_echo_n "(cached) " >&6
3929else
3930 cat >conftest.$ac_ext <<_ACEOF
3931/* confdefs.h. */
3932_ACEOF
3933cat confdefs.h >>conftest.$ac_ext
3934cat >>conftest.$ac_ext <<_ACEOF
3935/* end confdefs.h. */
3936
3937int
3938main ()
3939{
3940#ifndef __GNUC__
3941 choke me
3942#endif
3943
3944 ;
3945 return 0;
3946}
3947_ACEOF
3948rm -f conftest.$ac_objext
3949if { (ac_try="$ac_compile"
3950case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953esac
3954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3955$as_echo "$ac_try_echo") >&5
3956 (eval "$ac_compile") 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } && {
3963 test -z "$ac_c_werror_flag" ||
3964 test ! -s conftest.err
3965 } && test -s conftest.$ac_objext; then
3966 ac_compiler_gnu=yes
3967else
3968 $as_echo "$as_me: failed program was:" >&5
3969sed 's/^/| /' conftest.$ac_ext >&5
3970
3971 ac_compiler_gnu=no
3972fi
3973
3974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975ac_cv_c_compiler_gnu=$ac_compiler_gnu
3976
3977fi
3978{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3979$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3980if test $ac_compiler_gnu = yes; then
3981 GCC=yes
3982else
3983 GCC=
3984fi
3985ac_test_CFLAGS=${CFLAGS+set}
3986ac_save_CFLAGS=$CFLAGS
3987{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3988$as_echo_n "checking whether $CC accepts -g... " >&6; }
3989if test "${ac_cv_prog_cc_g+set}" = set; then
3990 $as_echo_n "(cached) " >&6
3991else
3992 ac_save_c_werror_flag=$ac_c_werror_flag
3993 ac_c_werror_flag=yes
3994 ac_cv_prog_cc_g=no
3995 CFLAGS="-g"
3996 cat >conftest.$ac_ext <<_ACEOF
3997/* confdefs.h. */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h. */
4002
4003int
4004main ()
4005{
4006
4007 ;
4008 return 0;
4009}
4010_ACEOF
4011rm -f conftest.$ac_objext
4012if { (ac_try="$ac_compile"
4013case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
4017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4018$as_echo "$ac_try_echo") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } && {
4026 test -z "$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 } && test -s conftest.$ac_objext; then
4029 ac_cv_prog_cc_g=yes
4030else
4031 $as_echo "$as_me: failed program was:" >&5
4032sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 CFLAGS=""
4035 cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h. */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h. */
4041
4042int
4043main ()
4044{
4045
4046 ;
4047 return 0;
4048}
4049_ACEOF
4050rm -f conftest.$ac_objext
4051if { (ac_try="$ac_compile"
4052case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055esac
4056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4057$as_echo "$ac_try_echo") >&5
4058 (eval "$ac_compile") 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } && {
4065 test -z "$ac_c_werror_flag" ||
4066 test ! -s conftest.err
4067 } && test -s conftest.$ac_objext; then
4068 :
4069else
4070 $as_echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073 ac_c_werror_flag=$ac_save_c_werror_flag
4074 CFLAGS="-g"
4075 cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h. */
4081
4082int
4083main ()
4084{
4085
4086 ;
4087 return 0;
4088}
4089_ACEOF
4090rm -f conftest.$ac_objext
4091if { (ac_try="$ac_compile"
4092case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095esac
4096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097$as_echo "$ac_try_echo") >&5
4098 (eval "$ac_compile") 2>conftest.er1
4099 ac_status=$?
4100 grep -v '^ *+' conftest.er1 >conftest.err
4101 rm -f conftest.er1
4102 cat conftest.err >&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } && {
4105 test -z "$ac_c_werror_flag" ||
4106 test ! -s conftest.err
4107 } && test -s conftest.$ac_objext; then
4108 ac_cv_prog_cc_g=yes
4109else
4110 $as_echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
4113
4114fi
4115
4116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117fi
4118
4119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120fi
4121
4122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 ac_c_werror_flag=$ac_save_c_werror_flag
4124fi
4125{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4126$as_echo "$ac_cv_prog_cc_g" >&6; }
4127if test "$ac_test_CFLAGS" = set; then
4128 CFLAGS=$ac_save_CFLAGS
4129elif test $ac_cv_prog_cc_g = yes; then
4130 if test "$GCC" = yes; then
4131 CFLAGS="-g -O2"
4132 else
4133 CFLAGS="-g"
4134 fi
4135else
4136 if test "$GCC" = yes; then
4137 CFLAGS="-O2"
4138 else
4139 CFLAGS=
4140 fi
4141fi
4142{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4143$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4144if test "${ac_cv_prog_cc_c89+set}" = set; then
4145 $as_echo_n "(cached) " >&6
4146else
4147 ac_cv_prog_cc_c89=no
4148ac_save_CC=$CC
4149cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h. */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
4154/* end confdefs.h. */
4155#include <stdarg.h>
4156#include <stdio.h>
4157#include <sys/types.h>
4158#include <sys/stat.h>
4159/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4160struct buf { int x; };
4161FILE * (*rcsopen) (struct buf *, struct stat *, int);
4162static char *e (p, i)
4163 char **p;
4164 int i;
4165{
4166 return p[i];
4167}
4168static char *f (char * (*g) (char **, int), char **p, ...)
4169{
4170 char *s;
4171 va_list v;
4172 va_start (v,p);
4173 s = g (p, va_arg (v,int));
4174 va_end (v);
4175 return s;
4176}
4177
4178/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4179 function prototypes and stuff, but not '\xHH' hex character constants.
4180 These don't provoke an error unfortunately, instead are silently treated
4181 as 'x'. The following induces an error, until -std is added to get
4182 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4183 array size at least. It's necessary to write '\x00'==0 to get something
4184 that's true only with -std. */
4185int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4186
4187/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4188 inside strings and character constants. */
4189#define FOO(x) 'x'
4190int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4191
4192int test (int i, double x);
4193struct s1 {int (*f) (int a);};
4194struct s2 {int (*f) (double a);};
4195int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4196int argc;
4197char **argv;
4198int
4199main ()
4200{
4201return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4202 ;
4203 return 0;
4204}
4205_ACEOF
4206for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4207 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4208do
4209 CC="$ac_save_CC $ac_arg"
4210 rm -f conftest.$ac_objext
4211if { (ac_try="$ac_compile"
4212case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215esac
4216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4217$as_echo "$ac_try_echo") >&5
4218 (eval "$ac_compile") 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } && {
4225 test -z "$ac_c_werror_flag" ||
4226 test ! -s conftest.err
4227 } && test -s conftest.$ac_objext; then
4228 ac_cv_prog_cc_c89=$ac_arg
4229else
4230 $as_echo "$as_me: failed program was:" >&5
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
4233
4234fi
4235
4236rm -f core conftest.err conftest.$ac_objext
4237 test "x$ac_cv_prog_cc_c89" != "xno" && break
4238done
4239rm -f conftest.$ac_ext
4240CC=$ac_save_CC
4241
4242fi
4243# AC_CACHE_VAL
4244case "x$ac_cv_prog_cc_c89" in
4245 x)
4246 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4247$as_echo "none needed" >&6; } ;;
4248 xno)
4249 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4250$as_echo "unsupported" >&6; } ;;
4251 *)
4252 CC="$CC $ac_cv_prog_cc_c89"
4253 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4254$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4255esac
4256
4257
4258ac_ext=c
4259ac_cpp='$CPP $CPPFLAGS'
4260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263DEPDIR="${am__leading_dot}deps"
4264
4265ac_config_commands="$ac_config_commands depfiles"
4266
4267
4268am_make=${MAKE-make}
4269cat > confinc << 'END'
4270am__doit:
4271 @echo this is the am__doit target
4272.PHONY: am__doit
4273END
4274# If we don't find an include directive, just comment out the code.
4275{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4276$as_echo_n "checking for style of include used by $am_make... " >&6; }
4277am__include="#"
4278am__quote=
4279_am_result=none
4280# First try GNU make style include.
4281echo "include confinc" > confmf
4282# Ignore all kinds of additional output from `make'.
4283case `$am_make -s -f confmf 2> /dev/null` in #(
4284*the\ am__doit\ target*)
4285 am__include=include
4286 am__quote=
4287 _am_result=GNU
4288 ;;
4289esac
4290# Now try BSD make style include.
4291if test "$am__include" = "#"; then
4292 echo '.include "confinc"' > confmf
4293 case `$am_make -s -f confmf 2> /dev/null` in #(
4294 *the\ am__doit\ target*)
4295 am__include=.include
4296 am__quote="\""
4297 _am_result=BSD
4298 ;;
4299 esac
4300fi
4301
4302
4303{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4304$as_echo "$_am_result" >&6; }
4305rm -f confinc confmf
4306
4307# Check whether --enable-dependency-tracking was given.
4308if test "${enable_dependency_tracking+set}" = set; then
4309 enableval=$enable_dependency_tracking;
4310fi
4311
4312if test "x$enable_dependency_tracking" != xno; then
4313 am_depcomp="$ac_aux_dir/depcomp"
4314 AMDEPBACKSLASH='\'
4315fi
4316 if test "x$enable_dependency_tracking" != xno; then
4317 AMDEP_TRUE=
4318 AMDEP_FALSE='#'
4319else
4320 AMDEP_TRUE='#'
4321 AMDEP_FALSE=
4322fi
4323
4324
4325
4326depcc="$CC" am_compiler_list=
4327
4328{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4329$as_echo_n "checking dependency style of $depcc... " >&6; }
4330if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4331 $as_echo_n "(cached) " >&6
4332else
4333 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4334 # We make a subdir and do the tests there. Otherwise we can end up
4335 # making bogus files that we don't know about and never remove. For
4336 # instance it was reported that on HP-UX the gcc test will end up
4337 # making a dummy file named `D' -- because `-MD' means `put the output
4338 # in D'.
4339 mkdir conftest.dir
4340 # Copy depcomp to subdir because otherwise we won't find it if we're
4341 # using a relative directory.
4342 cp "$am_depcomp" conftest.dir
4343 cd conftest.dir
4344 # We will build objects and dependencies in a subdirectory because
4345 # it helps to detect inapplicable dependency modes. For instance
4346 # both Tru64's cc and ICC support -MD to output dependencies as a
4347 # side effect of compilation, but ICC will put the dependencies in
4348 # the current directory while Tru64 will put them in the object
4349 # directory.
4350 mkdir sub
4351
4352 am_cv_CC_dependencies_compiler_type=none
4353 if test "$am_compiler_list" = ""; then
4354 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4355 fi
4356 am__universal=false
4357 case " $depcc " in #(
4358 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4359 esac
4360
4361 for depmode in $am_compiler_list; do
4362 # Setup a source with many dependencies, because some compilers
4363 # like to wrap large dependency lists on column 80 (with \), and
4364 # we should not choose a depcomp mode which is confused by this.
4365 #
4366 # We need to recreate these files for each test, as the compiler may
4367 # overwrite some of them when testing with obscure command lines.
4368 # This happens at least with the AIX C compiler.
4369 : > sub/conftest.c
4370 for i in 1 2 3 4 5 6; do
4371 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4372 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4373 # Solaris 8's {/usr,}/bin/sh.
4374 touch sub/conftst$i.h
4375 done
4376 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4377
4378 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4379 # mode. It turns out that the SunPro C++ compiler does not properly
4380 # handle `-M -o', and we need to detect this. Also, some Intel
4381 # versions had trouble with output in subdirs
4382 am__obj=sub/conftest.${OBJEXT-o}
4383 am__minus_obj="-o $am__obj"
4384 case $depmode in
4385 gcc)
4386 # This depmode causes a compiler race in universal mode.
4387 test "$am__universal" = false || continue
4388 ;;
4389 nosideeffect)
4390 # after this tag, mechanisms are not by side-effect, so they'll
4391 # only be used when explicitly requested
4392 if test "x$enable_dependency_tracking" = xyes; then
4393 continue
4394 else
4395 break
4396 fi
4397 ;;
4398 msvisualcpp | msvcmsys)
4399 # This compiler won't grok `-c -o', but also, the minuso test has
4400 # not run yet. These depmodes are late enough in the game, and
4401 # so weak that their functioning should not be impacted.
4402 am__obj=conftest.${OBJEXT-o}
4403 am__minus_obj=
4404 ;;
4405 none) break ;;
4406 esac
4407 if depmode=$depmode \
4408 source=sub/conftest.c object=$am__obj \
4409 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4410 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4411 >/dev/null 2>conftest.err &&
4412 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4413 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4414 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4415 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4416 # icc doesn't choke on unknown options, it will just issue warnings
4417 # or remarks (even with -Werror). So we grep stderr for any message
4418 # that says an option was ignored or not supported.
4419 # When given -MP, icc 7.0 and 7.1 complain thusly:
4420 # icc: Command line warning: ignoring option '-M'; no argument required
4421 # The diagnosis changed in icc 8.0:
4422 # icc: Command line remark: option '-MP' not supported
4423 if (grep 'ignoring option' conftest.err ||
4424 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4425 am_cv_CC_dependencies_compiler_type=$depmode
4426 break
4427 fi
4428 fi
4429 done
4430
4431 cd ..
4432 rm -rf conftest.dir
4433else
4434 am_cv_CC_dependencies_compiler_type=none
4435fi
4436
4437fi
4438{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4439$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4440CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4441
4442 if
4443 test "x$enable_dependency_tracking" != xno \
4444 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4445 am__fastdepCC_TRUE=
4446 am__fastdepCC_FALSE='#'
4447else
4448 am__fastdepCC_TRUE='#'
4449 am__fastdepCC_FALSE=
4450fi
4451
4452
4453 case $ac_cv_prog_cc_stdc in
4454 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
4455 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4456$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4457if test "${ac_cv_prog_cc_c99+set}" = set; then
4458 $as_echo_n "(cached) " >&6
4459else
4460 ac_cv_prog_cc_c99=no
4461ac_save_CC=$CC
4462cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
4468#include <stdarg.h>
4469#include <stdbool.h>
4470#include <stdlib.h>
4471#include <wchar.h>
4472#include <stdio.h>
4473
4474// Check varargs macros. These examples are taken from C99 6.10.3.5.
4475#define debug(...) fprintf (stderr, __VA_ARGS__)
4476#define showlist(...) puts (#__VA_ARGS__)
4477#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4478static void
4479test_varargs_macros (void)
4480{
4481 int x = 1234;
4482 int y = 5678;
4483 debug ("Flag");
4484 debug ("X = %d\n", x);
4485 showlist (The first, second, and third items.);
4486 report (x>y, "x is %d but y is %d", x, y);
4487}
4488
4489// Check long long types.
4490#define BIG64 18446744073709551615ull
4491#define BIG32 4294967295ul
4492#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4493#if !BIG_OK
4494 your preprocessor is broken;
4495#endif
4496#if BIG_OK
4497#else
4498 your preprocessor is broken;
4499#endif
4500static long long int bignum = -9223372036854775807LL;
4501static unsigned long long int ubignum = BIG64;
4502
4503struct incomplete_array
4504{
4505 int datasize;
4506 double data[];
4507};
4508
4509struct named_init {
4510 int number;
4511 const wchar_t *name;
4512 double average;
4513};
4514
4515typedef const char *ccp;
4516
4517static inline int
4518test_restrict (ccp restrict text)
4519{
4520 // See if C++-style comments work.
4521 // Iterate through items via the restricted pointer.
4522 // Also check for declarations in for loops.
4523 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4524 continue;
4525 return 0;
4526}
4527
4528// Check varargs and va_copy.
4529static void
4530test_varargs (const char *format, ...)
4531{
4532 va_list args;
4533 va_start (args, format);
4534 va_list args_copy;
4535 va_copy (args_copy, args);
4536
4537 const char *str;
4538 int number;
4539 float fnumber;
4540
4541 while (*format)
4542 {
4543 switch (*format++)
4544 {
4545 case 's': // string
4546 str = va_arg (args_copy, const char *);
4547 break;
4548 case 'd': // int
4549 number = va_arg (args_copy, int);
4550 break;
4551 case 'f': // float
4552 fnumber = va_arg (args_copy, double);
4553 break;
4554 default:
4555 break;
4556 }
4557 }
4558 va_end (args_copy);
4559 va_end (args);
4560}
4561
4562int
4563main ()
4564{
4565
4566 // Check bool.
4567 _Bool success = false;
4568
4569 // Check restrict.
4570 if (test_restrict ("String literal") == 0)
4571 success = true;
4572 char *restrict newvar = "Another string";
4573
4574 // Check varargs.
4575 test_varargs ("s, d' f .", "string", 65, 34.234);
4576 test_varargs_macros ();
4577
4578 // Check flexible array members.
4579 struct incomplete_array *ia =
4580 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4581 ia->datasize = 10;
4582 for (int i = 0; i < ia->datasize; ++i)
4583 ia->data[i] = i * 1.234;
4584
4585 // Check named initializers.
4586 struct named_init ni = {
4587 .number = 34,
4588 .name = L"Test wide string",
4589 .average = 543.34343,
4590 };
4591
4592 ni.number = 58;
4593
4594 int dynamic_array[ni.number];
4595 dynamic_array[ni.number - 1] = 543;
4596
4597 // work around unused variable warnings
4598 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4599 || dynamic_array[ni.number - 1] != 543);
4600
4601 ;
4602 return 0;
4603}
4604_ACEOF
4605for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4606do
4607 CC="$ac_save_CC $ac_arg"
4608 rm -f conftest.$ac_objext
4609if { (ac_try="$ac_compile"
4610case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613esac
4614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4615$as_echo "$ac_try_echo") >&5
4616 (eval "$ac_compile") 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } && {
4623 test -z "$ac_c_werror_flag" ||
4624 test ! -s conftest.err
4625 } && test -s conftest.$ac_objext; then
4626 ac_cv_prog_cc_c99=$ac_arg
4627else
4628 $as_echo "$as_me: failed program was:" >&5
4629sed 's/^/| /' conftest.$ac_ext >&5
4630
4631
4632fi
4633
4634rm -f core conftest.err conftest.$ac_objext
4635 test "x$ac_cv_prog_cc_c99" != "xno" && break
4636done
4637rm -f conftest.$ac_ext
4638CC=$ac_save_CC
4639
4640fi
4641# AC_CACHE_VAL
4642case "x$ac_cv_prog_cc_c99" in
4643 x)
4644 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4645$as_echo "none needed" >&6; } ;;
4646 xno)
4647 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4648$as_echo "unsupported" >&6; } ;;
4649 *)
4650 CC="$CC $ac_cv_prog_cc_c99"
4651 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4652$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4653esac
4654if test "x$ac_cv_prog_cc_c99" != xno; then
4655 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4656else
4657 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4658$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4659if test "${ac_cv_prog_cc_c89+set}" = set; then
4660 $as_echo_n "(cached) " >&6
4661else
4662 ac_cv_prog_cc_c89=no
4663ac_save_CC=$CC
4664cat >conftest.$ac_ext <<_ACEOF
4665/* confdefs.h. */
4666_ACEOF
4667cat confdefs.h >>conftest.$ac_ext
4668cat >>conftest.$ac_ext <<_ACEOF
4669/* end confdefs.h. */
4670#include <stdarg.h>
4671#include <stdio.h>
4672#include <sys/types.h>
4673#include <sys/stat.h>
4674/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4675struct buf { int x; };
4676FILE * (*rcsopen) (struct buf *, struct stat *, int);
4677static char *e (p, i)
4678 char **p;
4679 int i;
4680{
4681 return p[i];
4682}
4683static char *f (char * (*g) (char **, int), char **p, ...)
4684{
4685 char *s;
4686 va_list v;
4687 va_start (v,p);
4688 s = g (p, va_arg (v,int));
4689 va_end (v);
4690 return s;
4691}
4692
4693/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4694 function prototypes and stuff, but not '\xHH' hex character constants.
4695 These don't provoke an error unfortunately, instead are silently treated
4696 as 'x'. The following induces an error, until -std is added to get
4697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4698 array size at least. It's necessary to write '\x00'==0 to get something
4699 that's true only with -std. */
4700int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4701
4702/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4703 inside strings and character constants. */
4704#define FOO(x) 'x'
4705int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4706
4707int test (int i, double x);
4708struct s1 {int (*f) (int a);};
4709struct s2 {int (*f) (double a);};
4710int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4711int argc;
4712char **argv;
4713int
4714main ()
4715{
4716return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4717 ;
4718 return 0;
4719}
4720_ACEOF
4721for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4722 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4723do
4724 CC="$ac_save_CC $ac_arg"
4725 rm -f conftest.$ac_objext
4726if { (ac_try="$ac_compile"
4727case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730esac
4731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4732$as_echo "$ac_try_echo") >&5
4733 (eval "$ac_compile") 2>conftest.er1
4734 ac_status=$?
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
4737 cat conftest.err >&5
4738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } && {
4740 test -z "$ac_c_werror_flag" ||
4741 test ! -s conftest.err
4742 } && test -s conftest.$ac_objext; then
4743 ac_cv_prog_cc_c89=$ac_arg
4744else
4745 $as_echo "$as_me: failed program was:" >&5
4746sed 's/^/| /' conftest.$ac_ext >&5
4747
4748
4749fi
4750
4751rm -f core conftest.err conftest.$ac_objext
4752 test "x$ac_cv_prog_cc_c89" != "xno" && break
4753done
4754rm -f conftest.$ac_ext
4755CC=$ac_save_CC
4756
4757fi
4758# AC_CACHE_VAL
4759case "x$ac_cv_prog_cc_c89" in
4760 x)
4761 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4762$as_echo "none needed" >&6; } ;;
4763 xno)
4764 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4765$as_echo "unsupported" >&6; } ;;
4766 *)
4767 CC="$CC $ac_cv_prog_cc_c89"
4768 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4769$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4770esac
4771if test "x$ac_cv_prog_cc_c89" != xno; then
4772 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4773else
4774 ac_cv_prog_cc_stdc=no
4775fi
4776
4777
4778fi
4779
4780 ;;
4781esac
4782 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4783$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4784 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4785 $as_echo_n "(cached) " >&6
4786fi
4787
4788 case $ac_cv_prog_cc_stdc in
4789 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4790$as_echo "unsupported" >&6; } ;;
4791 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4792$as_echo "none needed" >&6; } ;;
4793 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4794$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4795esac
4796
4797
4798ac_ext=c
4799ac_cpp='$CPP $CPPFLAGS'
4800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4804$as_echo_n "checking how to run the C preprocessor... " >&6; }
4805# On Suns, sometimes $CPP names a directory.
4806if test -n "$CPP" && test -d "$CPP"; then
4807 CPP=
4808fi
4809if test -z "$CPP"; then
4810 if test "${ac_cv_prog_CPP+set}" = set; then
4811 $as_echo_n "(cached) " >&6
4812else
4813 # Double quotes because CPP needs to be expanded
4814 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4815 do
4816 ac_preproc_ok=false
4817for ac_c_preproc_warn_flag in '' yes
4818do
4819 # Use a header file that comes with gcc, so configuring glibc
4820 # with a fresh cross-compiler works.
4821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4822 # <limits.h> exists even on freestanding compilers.
4823 # On the NeXT, cc -E runs the code through the compiler's parser,
4824 # not just through cpp. "Syntax error" is here to catch this case.
4825 cat >conftest.$ac_ext <<_ACEOF
4826/* confdefs.h. */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h. */
4831#ifdef __STDC__
4832# include <limits.h>
4833#else
4834# include <assert.h>
4835#endif
4836 Syntax error
4837_ACEOF
4838if { (ac_try="$ac_cpp conftest.$ac_ext"
4839case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842esac
4843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4844$as_echo "$ac_try_echo") >&5
4845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev/null && {
4852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 }; then
4855 :
4856else
4857 $as_echo "$as_me: failed program was:" >&5
4858sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 # Broken: fails on valid input.
4861continue
4862fi
4863
4864rm -f conftest.err conftest.$ac_ext
4865
4866 # OK, works on sane cases. Now check whether nonexistent headers
4867 # can be detected and how.
4868 cat >conftest.$ac_ext <<_ACEOF
4869/* confdefs.h. */
4870_ACEOF
4871cat confdefs.h >>conftest.$ac_ext
4872cat >>conftest.$ac_ext <<_ACEOF
4873/* end confdefs.h. */
4874#include <ac_nonexistent.h>
4875_ACEOF
4876if { (ac_try="$ac_cpp conftest.$ac_ext"
4877case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880esac
4881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4882$as_echo "$ac_try_echo") >&5
4883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } >/dev/null && {
4890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4891 test ! -s conftest.err
4892 }; then
4893 # Broken: success on invalid input.
4894continue
4895else
4896 $as_echo "$as_me: failed program was:" >&5
4897sed 's/^/| /' conftest.$ac_ext >&5
4898
4899 # Passes both tests.
4900ac_preproc_ok=:
4901break
4902fi
4903
4904rm -f conftest.err conftest.$ac_ext
4905
4906done
4907# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4908rm -f conftest.err conftest.$ac_ext
4909if $ac_preproc_ok; then
4910 break
4911fi
4912
4913 done
4914 ac_cv_prog_CPP=$CPP
4915
4916fi
4917 CPP=$ac_cv_prog_CPP
4918else
4919 ac_cv_prog_CPP=$CPP
4920fi
4921{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4922$as_echo "$CPP" >&6; }
4923ac_preproc_ok=false
4924for ac_c_preproc_warn_flag in '' yes
4925do
4926 # Use a header file that comes with gcc, so configuring glibc
4927 # with a fresh cross-compiler works.
4928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929 # <limits.h> exists even on freestanding compilers.
4930 # On the NeXT, cc -E runs the code through the compiler's parser,
4931 # not just through cpp. "Syntax error" is here to catch this case.
4932 cat >conftest.$ac_ext <<_ACEOF
4933/* confdefs.h. */
4934_ACEOF
4935cat confdefs.h >>conftest.$ac_ext
4936cat >>conftest.$ac_ext <<_ACEOF
4937/* end confdefs.h. */
4938#ifdef __STDC__
4939# include <limits.h>
4940#else
4941# include <assert.h>
4942#endif
4943 Syntax error
4944_ACEOF
4945if { (ac_try="$ac_cpp conftest.$ac_ext"
4946case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949esac
4950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4951$as_echo "$ac_try_echo") >&5
4952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } >/dev/null && {
4959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4960 test ! -s conftest.err
4961 }; then
4962 :
4963else
4964 $as_echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 # Broken: fails on valid input.
4968continue
4969fi
4970
4971rm -f conftest.err conftest.$ac_ext
4972
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
4981#include <ac_nonexistent.h>
4982_ACEOF
4983if { (ac_try="$ac_cpp conftest.$ac_ext"
4984case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987esac
4988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4989$as_echo "$ac_try_echo") >&5
4990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } >/dev/null && {
4997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4998 test ! -s conftest.err
4999 }; then
5000 # Broken: success on invalid input.
5001continue
5002else
5003 $as_echo "$as_me: failed program was:" >&5
5004sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 # Passes both tests.
5007ac_preproc_ok=:
5008break
5009fi
5010
5011rm -f conftest.err conftest.$ac_ext
5012
5013done
5014# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5015rm -f conftest.err conftest.$ac_ext
5016if $ac_preproc_ok; then
5017 :
5018else
5019 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5021{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5022See \`config.log' for more details." >&5
5023$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5024See \`config.log' for more details." >&2;}
5025 { (exit 1); exit 1; }; }; }
5026fi
5027
5028ac_ext=c
5029ac_cpp='$CPP $CPPFLAGS'
5030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033
5034{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5035$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5036if test "${ac_cv_path_SED+set}" = set; then
5037 $as_echo_n "(cached) " >&6
5038else
5039 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5040 for ac_i in 1 2 3 4 5 6 7; do
5041 ac_script="$ac_script$as_nl$ac_script"
5042 done
5043 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5044 $as_unset ac_script || ac_script=
5045 if test -z "$SED"; then
5046 ac_path_SED_found=false
5047 # Loop through the user's path and test for each of PROGNAME-LIST
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_prog in sed gsed; do
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5056 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5057# Check for GNU ac_path_SED and select it if it is found.
5058 # Check for GNU $ac_path_SED
5059case `"$ac_path_SED" --version 2>&1` in
5060*GNU*)
5061 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5062*)
5063 ac_count=0
5064 $as_echo_n 0123456789 >"conftest.in"
5065 while :
5066 do
5067 cat "conftest.in" "conftest.in" >"conftest.tmp"
5068 mv "conftest.tmp" "conftest.in"
5069 cp "conftest.in" "conftest.nl"
5070 $as_echo '' >> "conftest.nl"
5071 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5073 ac_count=`expr $ac_count + 1`
5074 if test $ac_count -gt ${ac_path_SED_max-0}; then
5075 # Best one so far, save it but keep looking for a better one
5076 ac_cv_path_SED="$ac_path_SED"
5077 ac_path_SED_max=$ac_count
5078 fi
5079 # 10*(2^10) chars as input seems more than enough
5080 test $ac_count -gt 10 && break
5081 done
5082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5083esac
5084
5085 $ac_path_SED_found && break 3
5086 done
5087 done
5088done
5089IFS=$as_save_IFS
5090 if test -z "$ac_cv_path_SED"; then
5091 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5092$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5093 { (exit 1); exit 1; }; }
5094 fi
5095else
5096 ac_cv_path_SED=$SED
5097fi
5098
5099fi
5100{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5101$as_echo "$ac_cv_path_SED" >&6; }
5102 SED="$ac_cv_path_SED"
5103 rm -f conftest.sed
5104
5105test -z "$SED" && SED=sed
5106Xsed="$SED -e 1s/^X//"
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5119$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5120if test "${ac_cv_path_GREP+set}" = set; then
5121 $as_echo_n "(cached) " >&6
5122else
5123 if test -z "$GREP"; then
5124 ac_path_GREP_found=false
5125 # Loop through the user's path and test for each of PROGNAME-LIST
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5128do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_prog in grep ggrep; do
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5134 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5135# Check for GNU ac_path_GREP and select it if it is found.
5136 # Check for GNU $ac_path_GREP
5137case `"$ac_path_GREP" --version 2>&1` in
5138*GNU*)
5139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5140*)
5141 ac_count=0
5142 $as_echo_n 0123456789 >"conftest.in"
5143 while :
5144 do
5145 cat "conftest.in" "conftest.in" >"conftest.tmp"
5146 mv "conftest.tmp" "conftest.in"
5147 cp "conftest.in" "conftest.nl"
5148 $as_echo 'GREP' >> "conftest.nl"
5149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5151 ac_count=`expr $ac_count + 1`
5152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5153 # Best one so far, save it but keep looking for a better one
5154 ac_cv_path_GREP="$ac_path_GREP"
5155 ac_path_GREP_max=$ac_count
5156 fi
5157 # 10*(2^10) chars as input seems more than enough
5158 test $ac_count -gt 10 && break
5159 done
5160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5161esac
5162
5163 $ac_path_GREP_found && break 3
5164 done
5165 done
5166done
5167IFS=$as_save_IFS
5168 if test -z "$ac_cv_path_GREP"; then
5169 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5170$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5171 { (exit 1); exit 1; }; }
5172 fi
5173else
5174 ac_cv_path_GREP=$GREP
5175fi
5176
5177fi
5178{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5179$as_echo "$ac_cv_path_GREP" >&6; }
5180 GREP="$ac_cv_path_GREP"
5181
5182
5183{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5184$as_echo_n "checking for egrep... " >&6; }
5185if test "${ac_cv_path_EGREP+set}" = set; then
5186 $as_echo_n "(cached) " >&6
5187else
5188 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5189 then ac_cv_path_EGREP="$GREP -E"
5190 else
5191 if test -z "$EGREP"; then
5192 ac_path_EGREP_found=false
5193 # Loop through the user's path and test for each of PROGNAME-LIST
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5196do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_prog in egrep; do
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5202 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5203# Check for GNU ac_path_EGREP and select it if it is found.
5204 # Check for GNU $ac_path_EGREP
5205case `"$ac_path_EGREP" --version 2>&1` in
5206*GNU*)
5207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5208*)
5209 ac_count=0
5210 $as_echo_n 0123456789 >"conftest.in"
5211 while :
5212 do
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo 'EGREP' >> "conftest.nl"
5217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219 ac_count=`expr $ac_count + 1`
5220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_EGREP="$ac_path_EGREP"
5223 ac_path_EGREP_max=$ac_count
5224 fi
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5227 done
5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229esac
5230
5231 $ac_path_EGREP_found && break 3
5232 done
5233 done
5234done
5235IFS=$as_save_IFS
5236 if test -z "$ac_cv_path_EGREP"; then
5237 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5238$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5239 { (exit 1); exit 1; }; }
5240 fi
5241else
5242 ac_cv_path_EGREP=$EGREP
5243fi
5244
5245 fi
5246fi
5247{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5248$as_echo "$ac_cv_path_EGREP" >&6; }
5249 EGREP="$ac_cv_path_EGREP"
5250
5251
5252{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5253$as_echo_n "checking for fgrep... " >&6; }
5254if test "${ac_cv_path_FGREP+set}" = set; then
5255 $as_echo_n "(cached) " >&6
5256else
5257 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5258 then ac_cv_path_FGREP="$GREP -F"
5259 else
5260 if test -z "$FGREP"; then
5261 ac_path_FGREP_found=false
5262 # Loop through the user's path and test for each of PROGNAME-LIST
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5265do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_prog in fgrep; do
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5271 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5272# Check for GNU ac_path_FGREP and select it if it is found.
5273 # Check for GNU $ac_path_FGREP
5274case `"$ac_path_FGREP" --version 2>&1` in
5275*GNU*)
5276 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5277*)
5278 ac_count=0
5279 $as_echo_n 0123456789 >"conftest.in"
5280 while :
5281 do
5282 cat "conftest.in" "conftest.in" >"conftest.tmp"
5283 mv "conftest.tmp" "conftest.in"
5284 cp "conftest.in" "conftest.nl"
5285 $as_echo 'FGREP' >> "conftest.nl"
5286 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5288 ac_count=`expr $ac_count + 1`
5289 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5290 # Best one so far, save it but keep looking for a better one
5291 ac_cv_path_FGREP="$ac_path_FGREP"
5292 ac_path_FGREP_max=$ac_count
5293 fi
5294 # 10*(2^10) chars as input seems more than enough
5295 test $ac_count -gt 10 && break
5296 done
5297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5298esac
5299
5300 $ac_path_FGREP_found && break 3
5301 done
5302 done
5303done
5304IFS=$as_save_IFS
5305 if test -z "$ac_cv_path_FGREP"; then
5306 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5307$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5308 { (exit 1); exit 1; }; }
5309 fi
5310else
5311 ac_cv_path_FGREP=$FGREP
5312fi
5313
5314 fi
5315fi
5316{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5317$as_echo "$ac_cv_path_FGREP" >&6; }
5318 FGREP="$ac_cv_path_FGREP"
5319
5320
5321test -z "$GREP" && GREP=grep
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341# Check whether --with-gnu-ld was given.
5342if test "${with_gnu_ld+set}" = set; then
5343 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5344else
5345 with_gnu_ld=no
5346fi
5347
5348ac_prog=ld
5349if test "$GCC" = yes; then
5350 # Check if gcc -print-prog-name=ld gives a path.
5351 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5352$as_echo_n "checking for ld used by $CC... " >&6; }
5353 case $host in
5354 *-*-mingw*)
5355 # gcc leaves a trailing carriage return which upsets mingw
5356 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5357 *)
5358 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5359 esac
5360 case $ac_prog in
5361 # Accept absolute paths.
5362 [\\/]* | ?:[\\/]*)
5363 re_direlt='/[^/][^/]*/\.\./'
5364 # Canonicalize the pathname of ld
5365 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5366 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5367 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5368 done
5369 test -z "$LD" && LD="$ac_prog"
5370 ;;
5371 "")
5372 # If it fails, then pretend we aren't using GCC.
5373 ac_prog=ld
5374 ;;
5375 *)
5376 # If it is relative, then search for the first ld in PATH.
5377 with_gnu_ld=unknown
5378 ;;
5379 esac
5380elif test "$with_gnu_ld" = yes; then
5381 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5382$as_echo_n "checking for GNU ld... " >&6; }
5383else
5384 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5385$as_echo_n "checking for non-GNU ld... " >&6; }
5386fi
5387if test "${lt_cv_path_LD+set}" = set; then
5388 $as_echo_n "(cached) " >&6
5389else
5390 if test -z "$LD"; then
5391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5392 for ac_dir in $PATH; do
5393 IFS="$lt_save_ifs"
5394 test -z "$ac_dir" && ac_dir=.
5395 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5396 lt_cv_path_LD="$ac_dir/$ac_prog"
5397 # Check to see if the program is GNU ld. I'd rather use --version,
5398 # but apparently some variants of GNU ld only accept -v.
5399 # Break only if it was the GNU/non-GNU ld that we prefer.
5400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5401 *GNU* | *'with BFD'*)
5402 test "$with_gnu_ld" != no && break
5403 ;;
5404 *)
5405 test "$with_gnu_ld" != yes && break
5406 ;;
5407 esac
5408 fi
5409 done
5410 IFS="$lt_save_ifs"
5411else
5412 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5413fi
5414fi
5415
5416LD="$lt_cv_path_LD"
5417if test -n "$LD"; then
5418 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5419$as_echo "$LD" >&6; }
5420else
5421 { $as_echo "$as_me:$LINENO: result: no" >&5
5422$as_echo "no" >&6; }
5423fi
5424test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5425$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5426 { (exit 1); exit 1; }; }
5427{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5428$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5429if test "${lt_cv_prog_gnu_ld+set}" = set; then
5430 $as_echo_n "(cached) " >&6
5431else
5432 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5433case `$LD -v 2>&1 </dev/null` in
5434*GNU* | *'with BFD'*)
5435 lt_cv_prog_gnu_ld=yes
5436 ;;
5437*)
5438 lt_cv_prog_gnu_ld=no
5439 ;;
5440esac
5441fi
5442{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5443$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5444with_gnu_ld=$lt_cv_prog_gnu_ld
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454if test -n "$ac_tool_prefix"; then
5455 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5456set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5457{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5458$as_echo_n "checking for $ac_word... " >&6; }
5459if test "${ac_cv_prog_RANLIB+set}" = set; then
5460 $as_echo_n "(cached) " >&6
5461else
5462 if test -n "$RANLIB"; then
5463 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5464else
5465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466for as_dir in $PATH
5467do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5475 fi
5476done
5477done
5478IFS=$as_save_IFS
5479
5480fi
5481fi
5482RANLIB=$ac_cv_prog_RANLIB
5483if test -n "$RANLIB"; then
5484 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5485$as_echo "$RANLIB" >&6; }
5486else
5487 { $as_echo "$as_me:$LINENO: result: no" >&5
5488$as_echo "no" >&6; }
5489fi
5490
5491
5492fi
5493if test -z "$ac_cv_prog_RANLIB"; then
5494 ac_ct_RANLIB=$RANLIB
5495 # Extract the first word of "ranlib", so it can be a program name with args.
5496set dummy ranlib; ac_word=$2
5497{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5498$as_echo_n "checking for $ac_word... " >&6; }
5499if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5500 $as_echo_n "(cached) " >&6
5501else
5502 if test -n "$ac_ct_RANLIB"; then
5503 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_ac_ct_RANLIB="ranlib"
5513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516done
5517done
5518IFS=$as_save_IFS
5519
5520fi
5521fi
5522ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5523if test -n "$ac_ct_RANLIB"; then
5524 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5525$as_echo "$ac_ct_RANLIB" >&6; }
5526else
5527 { $as_echo "$as_me:$LINENO: result: no" >&5
5528$as_echo "no" >&6; }
5529fi
5530
5531 if test "x$ac_ct_RANLIB" = x; then
5532 RANLIB=":"
5533 else
5534 case $cross_compiling:$ac_tool_warned in
5535yes:)
5536{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5538ac_tool_warned=yes ;;
5539esac
5540 RANLIB=$ac_ct_RANLIB
5541 fi
5542else
5543 RANLIB="$ac_cv_prog_RANLIB"
5544fi
5545
5546
5547if test "x$CC" != xcc; then
5548 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5549$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5550else
5551 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5552$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5553fi
5554set dummy $CC; ac_cc=`$as_echo "$2" |
5555 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5556if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5557 $as_echo_n "(cached) " >&6
5558else
5559 cat >conftest.$ac_ext <<_ACEOF
5560/* confdefs.h. */
5561_ACEOF
5562cat confdefs.h >>conftest.$ac_ext
5563cat >>conftest.$ac_ext <<_ACEOF
5564/* end confdefs.h. */
5565
5566int
5567main ()
5568{
5569
5570 ;
5571 return 0;
5572}
5573_ACEOF
5574# Make sure it works both with $CC and with simple cc.
5575# We do the test twice because some compilers refuse to overwrite an
5576# existing .o file with -o, though they will create one.
5577ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5578rm -f conftest2.*
5579if { (case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582esac
5583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5584$as_echo "$ac_try_echo") >&5
5585 (eval "$ac_try") 2>&5
5586 ac_status=$?
5587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592esac
5593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5594$as_echo "$ac_try_echo") >&5
5595 (eval "$ac_try") 2>&5
5596 ac_status=$?
5597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); };
5599then
5600 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5601 if test "x$CC" != xcc; then
5602 # Test first that cc exists at all.
5603 if { ac_try='cc -c conftest.$ac_ext >&5'
5604 { (case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607esac
5608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5609$as_echo "$ac_try_echo") >&5
5610 (eval "$ac_try") 2>&5
5611 ac_status=$?
5612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5615 rm -f conftest2.*
5616 if { (case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619esac
5620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5621$as_echo "$ac_try_echo") >&5
5622 (eval "$ac_try") 2>&5
5623 ac_status=$?
5624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629esac
5630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5631$as_echo "$ac_try_echo") >&5
5632 (eval "$ac_try") 2>&5
5633 ac_status=$?
5634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); };
5636 then
5637 # cc works too.
5638 :
5639 else
5640 # cc exists but doesn't like -o.
5641 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5642 fi
5643 fi
5644 fi
5645else
5646 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5647fi
5648rm -f core conftest*
5649
5650fi
5651if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5652 { $as_echo "$as_me:$LINENO: result: yes" >&5
5653$as_echo "yes" >&6; }
5654else
5655 { $as_echo "$as_me:$LINENO: result: no" >&5
5656$as_echo "no" >&6; }
5657
5658cat >>confdefs.h <<\_ACEOF
5659#define NO_MINUS_C_MINUS_O 1
5660_ACEOF
5661
5662fi
5663
5664# FIXME: we rely on the cache variable name because
5665# there is no other way.
5666set dummy $CC
5667am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5668eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5669if test "$am_t" != yes; then
5670 # Losing compiler, so override with the script.
5671 # FIXME: It is wrong to rewrite CC.
5672 # But if we don't then we get into trouble of one sort or another.
5673 # A longer-term fix would be to have automake use am__CC in this case,
5674 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5675 CC="$am_aux_dir/compile $CC"
5676fi
5677
5678
5679# Find a good install program. We prefer a C program (faster),
5680# so one script is as good as another. But avoid the broken or
5681# incompatible versions:
5682# SysV /etc/install, /usr/sbin/install
5683# SunOS /usr/etc/install
5684# IRIX /sbin/install
5685# AIX /bin/install
5686# AmigaOS /C/install, which installs bootblocks on floppy discs
5687# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5688# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5689# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5690# OS/2's system install, which has a completely different semantic
5691# ./install, which can be erroneously created by make from ./install.sh.
5692# Reject install programs that cannot install multiple files.
5693{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5694$as_echo_n "checking for a BSD-compatible install... " >&6; }
5695if test -z "$INSTALL"; then
5696if test "${ac_cv_path_install+set}" = set; then
5697 $as_echo_n "(cached) " >&6
5698else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700for as_dir in $PATH
5701do
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 # Account for people who put trailing slashes in PATH elements.
5705case $as_dir/ in
5706 ./ | .// | /cC/* | \
5707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5708 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5709 /usr/ucb/* ) ;;
5710 *)
5711 # OSF1 and SCO ODT 3.0 have their own names for install.
5712 # Don't use installbsd from OSF since it installs stuff as root
5713 # by default.
5714 for ac_prog in ginstall scoinst install; do
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5717 if test $ac_prog = install &&
5718 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5719 # AIX install. It has an incompatible calling convention.
5720 :
5721 elif test $ac_prog = install &&
5722 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5723 # program-specific install script used by HP pwplus--don't use.
5724 :
5725 else
5726 rm -rf conftest.one conftest.two conftest.dir
5727 echo one > conftest.one
5728 echo two > conftest.two
5729 mkdir conftest.dir
5730 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5731 test -s conftest.one && test -s conftest.two &&
5732 test -s conftest.dir/conftest.one &&
5733 test -s conftest.dir/conftest.two
5734 then
5735 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5736 break 3
5737 fi
5738 fi
5739 fi
5740 done
5741 done
5742 ;;
5743esac
5744
5745done
5746IFS=$as_save_IFS
5747
5748rm -rf conftest.one conftest.two conftest.dir
5749
5750fi
5751 if test "${ac_cv_path_install+set}" = set; then
5752 INSTALL=$ac_cv_path_install
5753 else
5754 # As a last resort, use the slow shell script. Don't cache a
5755 # value for INSTALL within a source directory, because that will
5756 # break other packages using the cache if that directory is
5757 # removed, or if the value is a relative name.
5758 INSTALL=$ac_install_sh
5759 fi
5760fi
5761{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5762$as_echo "$INSTALL" >&6; }
5763
5764# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5765# It thinks the first close brace ends the variable substitution.
5766test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5767
5768test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5769
5770test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5771
5772{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5773$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5774set x ${MAKE-make}
5775ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5776if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5777 $as_echo_n "(cached) " >&6
5778else
5779 cat >conftest.make <<\_ACEOF
5780SHELL = /bin/sh
5781all:
5782 @echo '@@@%%%=$(MAKE)=@@@%%%'
5783_ACEOF
5784# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5785case `${MAKE-make} -f conftest.make 2>/dev/null` in
5786 *@@@%%%=?*=@@@%%%*)
5787 eval ac_cv_prog_make_${ac_make}_set=yes;;
5788 *)
5789 eval ac_cv_prog_make_${ac_make}_set=no;;
5790esac
5791rm -f conftest.make
5792fi
5793if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5794 { $as_echo "$as_me:$LINENO: result: yes" >&5
5795$as_echo "yes" >&6; }
5796 SET_MAKE=
5797else
5798 { $as_echo "$as_me:$LINENO: result: no" >&5
5799$as_echo "no" >&6; }
5800 SET_MAKE="MAKE=${MAKE-make}"
5801fi
5802
5803ac_ext=cpp
5804ac_cpp='$CXXCPP $CPPFLAGS'
5805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5808if test -z "$CXX"; then
5809 if test -n "$CCC"; then
5810 CXX=$CCC
5811 else
5812 if test -n "$ac_tool_prefix"; then
5813 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5814 do
5815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5817{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5818$as_echo_n "checking for $ac_word... " >&6; }
5819if test "${ac_cv_prog_CXX+set}" = set; then
5820 $as_echo_n "(cached) " >&6
5821else
5822 if test -n "$CXX"; then
5823 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
5836done
5837done
5838IFS=$as_save_IFS
5839
5840fi
5841fi
5842CXX=$ac_cv_prog_CXX
5843if test -n "$CXX"; then
5844 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5845$as_echo "$CXX" >&6; }
5846else
5847 { $as_echo "$as_me:$LINENO: result: no" >&5
5848$as_echo "no" >&6; }
5849fi
5850
5851
5852 test -n "$CXX" && break
5853 done
5854fi
5855if test -z "$CXX"; then
5856 ac_ct_CXX=$CXX
5857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5858do
5859 # Extract the first word of "$ac_prog", so it can be a program name with args.
5860set dummy $ac_prog; ac_word=$2
5861{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5862$as_echo_n "checking for $ac_word... " >&6; }
5863if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5864 $as_echo_n "(cached) " >&6
5865else
5866 if test -n "$ac_ct_CXX"; then
5867 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_ac_ct_CXX="$ac_prog"
5877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880done
5881done
5882IFS=$as_save_IFS
5883
5884fi
5885fi
5886ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5887if test -n "$ac_ct_CXX"; then
5888 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5889$as_echo "$ac_ct_CXX" >&6; }
5890else
5891 { $as_echo "$as_me:$LINENO: result: no" >&5
5892$as_echo "no" >&6; }
5893fi
5894
5895
5896 test -n "$ac_ct_CXX" && break
5897done
5898
5899 if test "x$ac_ct_CXX" = x; then
5900 CXX="g++"
5901 else
5902 case $cross_compiling:$ac_tool_warned in
5903yes:)
5904{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5906ac_tool_warned=yes ;;
5907esac
5908 CXX=$ac_ct_CXX
5909 fi
5910fi
5911
5912 fi
5913fi
5914# Provide some information about the compiler.
5915$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5916set X $ac_compile
5917ac_compiler=$2
5918{ (ac_try="$ac_compiler --version >&5"
5919case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922esac
5923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5924$as_echo "$ac_try_echo") >&5
5925 (eval "$ac_compiler --version >&5") 2>&5
5926 ac_status=$?
5927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }
5929{ (ac_try="$ac_compiler -v >&5"
5930case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933esac
5934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5935$as_echo "$ac_try_echo") >&5
5936 (eval "$ac_compiler -v >&5") 2>&5
5937 ac_status=$?
5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }
5940{ (ac_try="$ac_compiler -V >&5"
5941case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944esac
5945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5946$as_echo "$ac_try_echo") >&5
5947 (eval "$ac_compiler -V >&5") 2>&5
5948 ac_status=$?
5949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }
5951
5952{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5953$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5954if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5955 $as_echo_n "(cached) " >&6
5956else
5957 cat >conftest.$ac_ext <<_ACEOF
5958/* confdefs.h. */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h. */
5963
5964int
5965main ()
5966{
5967#ifndef __GNUC__
5968 choke me
5969#endif
5970
5971 ;
5972 return 0;
5973}
5974_ACEOF
5975rm -f conftest.$ac_objext
5976if { (ac_try="$ac_compile"
5977case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980esac
5981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5982$as_echo "$ac_try_echo") >&5
5983 (eval "$ac_compile") 2>conftest.er1
5984 ac_status=$?
5985 grep -v '^ *+' conftest.er1 >conftest.err
5986 rm -f conftest.er1
5987 cat conftest.err >&5
5988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } && {
5990 test -z "$ac_cxx_werror_flag" ||
5991 test ! -s conftest.err
5992 } && test -s conftest.$ac_objext; then
5993 ac_compiler_gnu=yes
5994else
5995 $as_echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 ac_compiler_gnu=no
5999fi
6000
6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6003
6004fi
6005{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6006$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6007if test $ac_compiler_gnu = yes; then
6008 GXX=yes
6009else
6010 GXX=
6011fi
6012ac_test_CXXFLAGS=${CXXFLAGS+set}
6013ac_save_CXXFLAGS=$CXXFLAGS
6014{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6015$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6016if test "${ac_cv_prog_cxx_g+set}" = set; then
6017 $as_echo_n "(cached) " >&6
6018else
6019 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6020 ac_cxx_werror_flag=yes
6021 ac_cv_prog_cxx_g=no
6022 CXXFLAGS="-g"
6023 cat >conftest.$ac_ext <<_ACEOF
6024/* confdefs.h. */
6025_ACEOF
6026cat confdefs.h >>conftest.$ac_ext
6027cat >>conftest.$ac_ext <<_ACEOF
6028/* end confdefs.h. */
6029
6030int
6031main ()
6032{
6033
6034 ;
6035 return 0;
6036}
6037_ACEOF
6038rm -f conftest.$ac_objext
6039if { (ac_try="$ac_compile"
6040case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043esac
6044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6045$as_echo "$ac_try_echo") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_cxx_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.$ac_objext; then
6056 ac_cv_prog_cxx_g=yes
6057else
6058 $as_echo "$as_me: failed program was:" >&5
6059sed 's/^/| /' conftest.$ac_ext >&5
6060
6061 CXXFLAGS=""
6062 cat >conftest.$ac_ext <<_ACEOF
6063/* confdefs.h. */
6064_ACEOF
6065cat confdefs.h >>conftest.$ac_ext
6066cat >>conftest.$ac_ext <<_ACEOF
6067/* end confdefs.h. */
6068
6069int
6070main ()
6071{
6072
6073 ;
6074 return 0;
6075}
6076_ACEOF
6077rm -f conftest.$ac_objext
6078if { (ac_try="$ac_compile"
6079case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082esac
6083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6084$as_echo "$ac_try_echo") >&5
6085 (eval "$ac_compile") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } && {
6092 test -z "$ac_cxx_werror_flag" ||
6093 test ! -s conftest.err
6094 } && test -s conftest.$ac_objext; then
6095 :
6096else
6097 $as_echo "$as_me: failed program was:" >&5
6098sed 's/^/| /' conftest.$ac_ext >&5
6099
6100 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6101 CXXFLAGS="-g"
6102 cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
6108
6109int
6110main ()
6111{
6112
6113 ;
6114 return 0;
6115}
6116_ACEOF
6117rm -f conftest.$ac_objext
6118if { (ac_try="$ac_compile"
6119case "(($ac_try" in
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6122esac
6123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6124$as_echo "$ac_try_echo") >&5
6125 (eval "$ac_compile") 2>conftest.er1
6126 ac_status=$?
6127 grep -v '^ *+' conftest.er1 >conftest.err
6128 rm -f conftest.er1
6129 cat conftest.err >&5
6130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } && {
6132 test -z "$ac_cxx_werror_flag" ||
6133 test ! -s conftest.err
6134 } && test -s conftest.$ac_objext; then
6135 ac_cv_prog_cxx_g=yes
6136else
6137 $as_echo "$as_me: failed program was:" >&5
6138sed 's/^/| /' conftest.$ac_ext >&5
6139
6140
6141fi
6142
6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144fi
6145
6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147fi
6148
6149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6151fi
6152{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6153$as_echo "$ac_cv_prog_cxx_g" >&6; }
6154if test "$ac_test_CXXFLAGS" = set; then
6155 CXXFLAGS=$ac_save_CXXFLAGS
6156elif test $ac_cv_prog_cxx_g = yes; then
6157 if test "$GXX" = yes; then
6158 CXXFLAGS="-g -O2"
6159 else
6160 CXXFLAGS="-g"
6161 fi
6162else
6163 if test "$GXX" = yes; then
6164 CXXFLAGS="-O2"
6165 else
6166 CXXFLAGS=
6167 fi
6168fi
6169ac_ext=c
6170ac_cpp='$CPP $CPPFLAGS'
6171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174
6175depcc="$CXX" am_compiler_list=
6176
6177{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6178$as_echo_n "checking dependency style of $depcc... " >&6; }
6179if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6180 $as_echo_n "(cached) " >&6
6181else
6182 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6183 # We make a subdir and do the tests there. Otherwise we can end up
6184 # making bogus files that we don't know about and never remove. For
6185 # instance it was reported that on HP-UX the gcc test will end up
6186 # making a dummy file named `D' -- because `-MD' means `put the output
6187 # in D'.
6188 mkdir conftest.dir
6189 # Copy depcomp to subdir because otherwise we won't find it if we're
6190 # using a relative directory.
6191 cp "$am_depcomp" conftest.dir
6192 cd conftest.dir
6193 # We will build objects and dependencies in a subdirectory because
6194 # it helps to detect inapplicable dependency modes. For instance
6195 # both Tru64's cc and ICC support -MD to output dependencies as a
6196 # side effect of compilation, but ICC will put the dependencies in
6197 # the current directory while Tru64 will put them in the object
6198 # directory.
6199 mkdir sub
6200
6201 am_cv_CXX_dependencies_compiler_type=none
6202 if test "$am_compiler_list" = ""; then
6203 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6204 fi
6205 am__universal=false
6206 case " $depcc " in #(
6207 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6208 esac
6209
6210 for depmode in $am_compiler_list; do
6211 # Setup a source with many dependencies, because some compilers
6212 # like to wrap large dependency lists on column 80 (with \), and
6213 # we should not choose a depcomp mode which is confused by this.
6214 #
6215 # We need to recreate these files for each test, as the compiler may
6216 # overwrite some of them when testing with obscure command lines.
6217 # This happens at least with the AIX C compiler.
6218 : > sub/conftest.c
6219 for i in 1 2 3 4 5 6; do
6220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6222 # Solaris 8's {/usr,}/bin/sh.
6223 touch sub/conftst$i.h
6224 done
6225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6226
6227 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6228 # mode. It turns out that the SunPro C++ compiler does not properly
6229 # handle `-M -o', and we need to detect this. Also, some Intel
6230 # versions had trouble with output in subdirs
6231 am__obj=sub/conftest.${OBJEXT-o}
6232 am__minus_obj="-o $am__obj"
6233 case $depmode in
6234 gcc)
6235 # This depmode causes a compiler race in universal mode.
6236 test "$am__universal" = false || continue
6237 ;;
6238 nosideeffect)
6239 # after this tag, mechanisms are not by side-effect, so they'll
6240 # only be used when explicitly requested
6241 if test "x$enable_dependency_tracking" = xyes; then
6242 continue
6243 else
6244 break
6245 fi
6246 ;;
6247 msvisualcpp | msvcmsys)
6248 # This compiler won't grok `-c -o', but also, the minuso test has
6249 # not run yet. These depmodes are late enough in the game, and
6250 # so weak that their functioning should not be impacted.
6251 am__obj=conftest.${OBJEXT-o}
6252 am__minus_obj=
6253 ;;
6254 none) break ;;
6255 esac
6256 if depmode=$depmode \
6257 source=sub/conftest.c object=$am__obj \
6258 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6259 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6260 >/dev/null 2>conftest.err &&
6261 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6262 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6263 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6264 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6265 # icc doesn't choke on unknown options, it will just issue warnings
6266 # or remarks (even with -Werror). So we grep stderr for any message
6267 # that says an option was ignored or not supported.
6268 # When given -MP, icc 7.0 and 7.1 complain thusly:
6269 # icc: Command line warning: ignoring option '-M'; no argument required
6270 # The diagnosis changed in icc 8.0:
6271 # icc: Command line remark: option '-MP' not supported
6272 if (grep 'ignoring option' conftest.err ||
6273 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6274 am_cv_CXX_dependencies_compiler_type=$depmode
6275 break
6276 fi
6277 fi
6278 done
6279
6280 cd ..
6281 rm -rf conftest.dir
6282else
6283 am_cv_CXX_dependencies_compiler_type=none
6284fi
6285
6286fi
6287{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6288$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6289CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6290
6291 if
6292 test "x$enable_dependency_tracking" != xno \
6293 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6294 am__fastdepCXX_TRUE=
6295 am__fastdepCXX_FALSE='#'
6296else
6297 am__fastdepCXX_TRUE='#'
6298 am__fastdepCXX_FALSE=
6299fi
6300
6301
6302
6303{ $as_echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5
6304$as_echo_n "checking maximum warning verbosity option... " >&6; }
6305
6306
6307
6308
6309# Check whether --with-maximum-compile-warnings was given.
6310if test "${with_maximum_compile_warnings+set}" = set; then
6311 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6312else
6313 ac_compile_warnings_on=""
6314fi
6315
6316
6317 if test x"$ac_compile_warnings_on" = xno
6318 then
6319 ac_compile_warnings_msg=no
6320 else
6321 if test -n "$CXX"
6322 then
6323 if test "$GXX" = "yes"
6324 then
6325 ac_compile_warnings_opt='-Wall -W'
6326 fi
6327 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6328 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6329 fi
6330
6331 if test -n "$CC"
6332 then
6333 if test "$GCC" = "yes"
6334 then
6335 ac_compile_warnings_opt='-Wall -W'
6336 fi
6337 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6338 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6339 fi
6340 fi
6341 { $as_echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
6342$as_echo "$ac_compile_warnings_msg" >&6; }
6343 unset ac_compile_warnings_msg
6344 unset ac_compile_warnings_opt
6345
6346{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6347$as_echo_n "checking whether ln -s works... " >&6; }
6348LN_S=$as_ln_s
6349if test "$LN_S" = "ln -s"; then
6350 { $as_echo "$as_me:$LINENO: result: yes" >&5
6351$as_echo "yes" >&6; }
6352else
6353 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6354$as_echo "no, using $LN_S" >&6; }
6355fi
6356
6357{ $as_echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6358$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6359
6360# Check whether --with-dmalloc was given.
6361if test "${with_dmalloc+set}" = set; then
6362 withval=$with_dmalloc; if test "$withval" = yes; then
6363 { $as_echo "$as_me:$LINENO: result: yes" >&5
6364$as_echo "yes" >&6; }
6365
6366cat >>confdefs.h <<\_ACEOF
6367#define WITH_DMALLOC 1
6368_ACEOF
6369
6370 LIBS="$LIBS -ldmalloc"
6371 LDFLAGS="$LDFLAGS -g"
6372else
6373 { $as_echo "$as_me:$LINENO: result: no" >&5
6374$as_echo "no" >&6; }
6375fi
6376else
6377 { $as_echo "$as_me:$LINENO: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381
6382
6383
6384if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6385 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6387set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6388{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6389$as_echo_n "checking for $ac_word... " >&6; }
6390if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6391 $as_echo_n "(cached) " >&6
6392else
6393 case $PKG_CONFIG in
6394 [\\/]* | ?:[\\/]*)
6395 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6396 ;;
6397 *)
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409done
6410done
6411IFS=$as_save_IFS
6412
6413 ;;
6414esac
6415fi
6416PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6417if test -n "$PKG_CONFIG"; then
6418 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6419$as_echo "$PKG_CONFIG" >&6; }
6420else
6421 { $as_echo "$as_me:$LINENO: result: no" >&5
6422$as_echo "no" >&6; }
6423fi
6424
6425
6426fi
6427if test -z "$ac_cv_path_PKG_CONFIG"; then
6428 ac_pt_PKG_CONFIG=$PKG_CONFIG
6429 # Extract the first word of "pkg-config", so it can be a program name with args.
6430set dummy pkg-config; ac_word=$2
6431{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6432$as_echo_n "checking for $ac_word... " >&6; }
6433if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6434 $as_echo_n "(cached) " >&6
6435else
6436 case $ac_pt_PKG_CONFIG in
6437 [\\/]* | ?:[\\/]*)
6438 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6439 ;;
6440 *)
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452done
6453done
6454IFS=$as_save_IFS
6455
6456 ;;
6457esac
6458fi
6459ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6460if test -n "$ac_pt_PKG_CONFIG"; then
6461 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6462$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6463else
6464 { $as_echo "$as_me:$LINENO: result: no" >&5
6465$as_echo "no" >&6; }
6466fi
6467
6468 if test "x$ac_pt_PKG_CONFIG" = x; then
6469 PKG_CONFIG=""
6470 else
6471 case $cross_compiling:$ac_tool_warned in
6472yes:)
6473{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475ac_tool_warned=yes ;;
6476esac
6477 PKG_CONFIG=$ac_pt_PKG_CONFIG
6478 fi
6479else
6480 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6481fi
6482
6483fi
6484if test -n "$PKG_CONFIG"; then
6485 _pkg_min_version=0.9.0
6486 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6487$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6488 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6489 { $as_echo "$as_me:$LINENO: result: yes" >&5
6490$as_echo "yes" >&6; }
6491 else
6492 { $as_echo "$as_me:$LINENO: result: no" >&5
6493$as_echo "no" >&6; }
6494 PKG_CONFIG=""
6495 fi
6496
6497fi
6498
6499#
6500# Enable OS features.
6501#
6502
6503
6504{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6505$as_echo_n "checking for ANSI C header files... " >&6; }
6506if test "${ac_cv_header_stdc+set}" = set; then
6507 $as_echo_n "(cached) " >&6
6508else
6509 cat >conftest.$ac_ext <<_ACEOF
6510/* confdefs.h. */
6511_ACEOF
6512cat confdefs.h >>conftest.$ac_ext
6513cat >>conftest.$ac_ext <<_ACEOF
6514/* end confdefs.h. */
6515#include <stdlib.h>
6516#include <stdarg.h>
6517#include <string.h>
6518#include <float.h>
6519
6520int
6521main ()
6522{
6523
6524 ;
6525 return 0;
6526}
6527_ACEOF
6528rm -f conftest.$ac_objext
6529if { (ac_try="$ac_compile"
6530case "(($ac_try" in
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6533esac
6534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6535$as_echo "$ac_try_echo") >&5
6536 (eval "$ac_compile") 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } && {
6543 test -z "$ac_c_werror_flag" ||
6544 test ! -s conftest.err
6545 } && test -s conftest.$ac_objext; then
6546 ac_cv_header_stdc=yes
6547else
6548 $as_echo "$as_me: failed program was:" >&5
6549sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 ac_cv_header_stdc=no
6552fi
6553
6554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555
6556if test $ac_cv_header_stdc = yes; then
6557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6558 cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h. */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
6563/* end confdefs.h. */
6564#include <string.h>
6565
6566_ACEOF
6567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6568 $EGREP "memchr" >/dev/null 2>&1; then
6569 :
6570else
6571 ac_cv_header_stdc=no
6572fi
6573rm -f conftest*
6574
6575fi
6576
6577if test $ac_cv_header_stdc = yes; then
6578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6579 cat >conftest.$ac_ext <<_ACEOF
6580/* confdefs.h. */
6581_ACEOF
6582cat confdefs.h >>conftest.$ac_ext
6583cat >>conftest.$ac_ext <<_ACEOF
6584/* end confdefs.h. */
6585#include <stdlib.h>
6586
6587_ACEOF
6588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6589 $EGREP "free" >/dev/null 2>&1; then
6590 :
6591else
6592 ac_cv_header_stdc=no
6593fi
6594rm -f conftest*
6595
6596fi
6597
6598if test $ac_cv_header_stdc = yes; then
6599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6600 if test "$cross_compiling" = yes; then
6601 :
6602else
6603 cat >conftest.$ac_ext <<_ACEOF
6604/* confdefs.h. */
6605_ACEOF
6606cat confdefs.h >>conftest.$ac_ext
6607cat >>conftest.$ac_ext <<_ACEOF
6608/* end confdefs.h. */
6609#include <ctype.h>
6610#include <stdlib.h>
6611#if ((' ' & 0x0FF) == 0x020)
6612# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6613# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6614#else
6615# define ISLOWER(c) \
6616 (('a' <= (c) && (c) <= 'i') \
6617 || ('j' <= (c) && (c) <= 'r') \
6618 || ('s' <= (c) && (c) <= 'z'))
6619# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6620#endif
6621
6622#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6623int
6624main ()
6625{
6626 int i;
6627 for (i = 0; i < 256; i++)
6628 if (XOR (islower (i), ISLOWER (i))
6629 || toupper (i) != TOUPPER (i))
6630 return 2;
6631 return 0;
6632}
6633_ACEOF
6634rm -f conftest$ac_exeext
6635if { (ac_try="$ac_link"
6636case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6639esac
6640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6641$as_echo "$ac_try_echo") >&5
6642 (eval "$ac_link") 2>&5
6643 ac_status=$?
6644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6646 { (case "(($ac_try" in
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6649esac
6650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6651$as_echo "$ac_try_echo") >&5
6652 (eval "$ac_try") 2>&5
6653 ac_status=$?
6654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 :
6657else
6658 $as_echo "$as_me: program exited with status $ac_status" >&5
6659$as_echo "$as_me: failed program was:" >&5
6660sed 's/^/| /' conftest.$ac_ext >&5
6661
6662( exit $ac_status )
6663ac_cv_header_stdc=no
6664fi
6665rm -rf conftest.dSYM
6666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6667fi
6668
6669
6670fi
6671fi
6672{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6673$as_echo "$ac_cv_header_stdc" >&6; }
6674if test $ac_cv_header_stdc = yes; then
6675
6676cat >>confdefs.h <<\_ACEOF
6677#define STDC_HEADERS 1
6678_ACEOF
6679
6680fi
6681
6682# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6693 inttypes.h stdint.h unistd.h
6694do
6695as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6696{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6697$as_echo_n "checking for $ac_header... " >&6; }
6698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6699 $as_echo_n "(cached) " >&6
6700else
6701 cat >conftest.$ac_ext <<_ACEOF
6702/* confdefs.h. */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h. */
6707$ac_includes_default
6708
6709#include <$ac_header>
6710_ACEOF
6711rm -f conftest.$ac_objext
6712if { (ac_try="$ac_compile"
6713case "(($ac_try" in
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6716esac
6717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6718$as_echo "$ac_try_echo") >&5
6719 (eval "$ac_compile") 2>conftest.er1
6720 ac_status=$?
6721 grep -v '^ *+' conftest.er1 >conftest.err
6722 rm -f conftest.er1
6723 cat conftest.err >&5
6724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && {
6726 test -z "$ac_c_werror_flag" ||
6727 test ! -s conftest.err
6728 } && test -s conftest.$ac_objext; then
6729 eval "$as_ac_Header=yes"
6730else
6731 $as_echo "$as_me: failed program was:" >&5
6732sed 's/^/| /' conftest.$ac_ext >&5
6733
6734 eval "$as_ac_Header=no"
6735fi
6736
6737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738fi
6739ac_res=`eval 'as_val=${'$as_ac_Header'}
6740 $as_echo "$as_val"'`
6741 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6742$as_echo "$ac_res" >&6; }
6743as_val=`eval 'as_val=${'$as_ac_Header'}
6744 $as_echo "$as_val"'`
6745 if test "x$as_val" = x""yes; then
6746 cat >>confdefs.h <<_ACEOF
6747#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6748_ACEOF
6749
6750fi
6751
6752done
6753
6754
6755
6756 if test "${ac_cv_header_minix_config_h+set}" = set; then
6757 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6758$as_echo_n "checking for minix/config.h... " >&6; }
6759if test "${ac_cv_header_minix_config_h+set}" = set; then
6760 $as_echo_n "(cached) " >&6
6761fi
6762{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6763$as_echo "$ac_cv_header_minix_config_h" >&6; }
6764else
6765 # Is the header compilable?
6766{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
6767$as_echo_n "checking minix/config.h usability... " >&6; }
6768cat >conftest.$ac_ext <<_ACEOF
6769/* confdefs.h. */
6770_ACEOF
6771cat confdefs.h >>conftest.$ac_ext
6772cat >>conftest.$ac_ext <<_ACEOF
6773/* end confdefs.h. */
6774$ac_includes_default
6775#include <minix/config.h>
6776_ACEOF
6777rm -f conftest.$ac_objext
6778if { (ac_try="$ac_compile"
6779case "(($ac_try" in
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6782esac
6783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6784$as_echo "$ac_try_echo") >&5
6785 (eval "$ac_compile") 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest.$ac_objext; then
6795 ac_header_compiler=yes
6796else
6797 $as_echo "$as_me: failed program was:" >&5
6798sed 's/^/| /' conftest.$ac_ext >&5
6799
6800 ac_header_compiler=no
6801fi
6802
6803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6805$as_echo "$ac_header_compiler" >&6; }
6806
6807# Is the header present?
6808{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
6809$as_echo_n "checking minix/config.h presence... " >&6; }
6810cat >conftest.$ac_ext <<_ACEOF
6811/* confdefs.h. */
6812_ACEOF
6813cat confdefs.h >>conftest.$ac_ext
6814cat >>conftest.$ac_ext <<_ACEOF
6815/* end confdefs.h. */
6816#include <minix/config.h>
6817_ACEOF
6818if { (ac_try="$ac_cpp conftest.$ac_ext"
6819case "(($ac_try" in
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6822esac
6823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6824$as_echo "$ac_try_echo") >&5
6825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } >/dev/null && {
6832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6833 test ! -s conftest.err
6834 }; then
6835 ac_header_preproc=yes
6836else
6837 $as_echo "$as_me: failed program was:" >&5
6838sed 's/^/| /' conftest.$ac_ext >&5
6839
6840 ac_header_preproc=no
6841fi
6842
6843rm -f conftest.err conftest.$ac_ext
6844{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6845$as_echo "$ac_header_preproc" >&6; }
6846
6847# So? What about this header?
6848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6849 yes:no: )
6850 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6851$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6852 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6853$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6854 ac_header_preproc=yes
6855 ;;
6856 no:yes:* )
6857 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6858$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6859 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
6860$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
6861 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6862$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6863 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
6864$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
6865 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6866$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6867 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6868$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6869 ( cat <<\_ASBOX
6870## ----------------------------------------- ##
6871## Report this to http://www.imagemagick.org ##
6872## ----------------------------------------- ##
6873_ASBOX
6874 ) | sed "s/^/$as_me: WARNING: /" >&2
6875 ;;
6876esac
6877{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6878$as_echo_n "checking for minix/config.h... " >&6; }
6879if test "${ac_cv_header_minix_config_h+set}" = set; then
6880 $as_echo_n "(cached) " >&6
6881else
6882 ac_cv_header_minix_config_h=$ac_header_preproc
6883fi
6884{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6885$as_echo "$ac_cv_header_minix_config_h" >&6; }
6886
6887fi
6888if test "x$ac_cv_header_minix_config_h" = x""yes; then
6889 MINIX=yes
6890else
6891 MINIX=
6892fi
6893
6894
6895 if test "$MINIX" = yes; then
6896
6897cat >>confdefs.h <<\_ACEOF
6898#define _POSIX_SOURCE 1
6899_ACEOF
6900
6901
6902cat >>confdefs.h <<\_ACEOF
6903#define _POSIX_1_SOURCE 2
6904_ACEOF
6905
6906
6907cat >>confdefs.h <<\_ACEOF
6908#define _MINIX 1
6909_ACEOF
6910
6911 fi
6912
6913
6914
6915 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6916$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6917if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6918 $as_echo_n "(cached) " >&6
6919else
6920 cat >conftest.$ac_ext <<_ACEOF
6921/* confdefs.h. */
6922_ACEOF
6923cat confdefs.h >>conftest.$ac_ext
6924cat >>conftest.$ac_ext <<_ACEOF
6925/* end confdefs.h. */
6926
6927# define __EXTENSIONS__ 1
6928 $ac_includes_default
6929int
6930main ()
6931{
6932
6933 ;
6934 return 0;
6935}
6936_ACEOF
6937rm -f conftest.$ac_objext
6938if { (ac_try="$ac_compile"
6939case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942esac
6943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6944$as_echo "$ac_try_echo") >&5
6945 (eval "$ac_compile") 2>conftest.er1
6946 ac_status=$?
6947 grep -v '^ *+' conftest.er1 >conftest.err
6948 rm -f conftest.er1
6949 cat conftest.err >&5
6950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_c_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest.$ac_objext; then
6955 ac_cv_safe_to_define___extensions__=yes
6956else
6957 $as_echo "$as_me: failed program was:" >&5
6958sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 ac_cv_safe_to_define___extensions__=no
6961fi
6962
6963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964fi
6965{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6966$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6967 test $ac_cv_safe_to_define___extensions__ = yes &&
6968 cat >>confdefs.h <<\_ACEOF
6969#define __EXTENSIONS__ 1
6970_ACEOF
6971
6972 cat >>confdefs.h <<\_ACEOF
6973#define _ALL_SOURCE 1
6974_ACEOF
6975
6976 cat >>confdefs.h <<\_ACEOF
6977#define _GNU_SOURCE 1
6978_ACEOF
6979
6980 cat >>confdefs.h <<\_ACEOF
6981#define _POSIX_PTHREAD_SEMANTICS 1
6982_ACEOF
6983
6984 cat >>confdefs.h <<\_ACEOF
6985#define _TANDEM_SOURCE 1
6986_ACEOF
6987
6988
6989
6990#
6991# Enable run-time checking.
6992#
6993# Check whether --enable-bounds-checking was given.
6994if test "${enable_bounds_checking+set}" = set; then
6995 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6996else
6997 enable_bounds_checking='no'
6998fi
6999
7000
7001if test "$enable_bounds_checking" = yes; then
7002
7003cat >>confdefs.h <<\_ACEOF
7004#define _FORTIFY_SOURCE 2
7005_ACEOF
7006
7007fi
7008
7009#
7010# Tests for Windows
7011#
7012
7013
7014
7015GDI32_LIBS=''
7016StaticCplusPlusLibraries='no'
7017native_win32_build='no'
7018cygwin_build='no'
7019case "${host_os}" in
7020 cygwin* )
7021 StaticCplusPlusLibraries='yes'
7022 cygwin_build='yes'
7023 GDI32_LIBS='-lgdi32'
7024 ;;
7025 mingw* )
7026 StaticCplusPlusLibraries='yes'
7027 native_win32_build='yes'
7028 GDI32_LIBS='-lgdi32'
7029 ;;
7030esac
7031if test "${GDI32_LIBS}x" != 'x'; then
7032
7033cat >>confdefs.h <<\_ACEOF
7034#define WINGDI32_DELEGATE 1
7035_ACEOF
7036
7037fi
7038
7039 if test "${GDI32_LIBS}x" != 'x' ; then
7040 WINGDI32_DELEGATE_TRUE=
7041 WINGDI32_DELEGATE_FALSE='#'
7042else
7043 WINGDI32_DELEGATE_TRUE='#'
7044 WINGDI32_DELEGATE_FALSE=
7045fi
7046
7047 if test "${native_win32_build}" = 'yes' ; then
7048 WIN32_NATIVE_BUILD_TRUE=
7049 WIN32_NATIVE_BUILD_FALSE='#'
7050else
7051 WIN32_NATIVE_BUILD_TRUE='#'
7052 WIN32_NATIVE_BUILD_FALSE=
7053fi
7054
7055 if test "${cygwin_build}" = 'yes' ; then
7056 CYGWIN_BUILD_TRUE=
7057 CYGWIN_BUILD_FALSE='#'
7058else
7059 CYGWIN_BUILD_TRUE='#'
7060 CYGWIN_BUILD_FALSE=
7061fi
7062
7063 if test "x${CC}" = 'xcl.exe' ; then
7064 USING_CL_TRUE=
7065 USING_CL_FALSE='#'
7066else
7067 USING_CL_TRUE='#'
7068 USING_CL_FALSE=
7069fi
7070
7071
7072WinPathScript="${srcdirfull}/winpath.sh"
7073
7074
7075#
7076# Compiler flags tweaks
7077#
7078if test "${GCC}" != "yes"; then
7079 case "${host}" in
7080 *-*-hpux* )
7081 # aCC: HP ANSI C++ B3910B A.03.34
7082 CFLAGS="${CFLAGS} -Wp,-H30000"
7083 if test -n "${CXXFLAGS}"; then
7084 CXXFLAGS='-AA'
7085 else
7086 CXXFLAGS="${CXXFLAGS} -AA"
7087 fi
7088 ;;
7089 *-dec-osf5.* )
7090 # Compaq alphaev68-dec-osf5.1 compiler
7091 if test -n "${CXXFLAGS}"; then
7092 CXXFLAGS='-std strict_ansi -noimplicit_include'
7093 else
7094 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7095 fi
7096 esac
7097fi
7098
7099# Check for lazy-loading.
7100{ $as_echo "$as_me:$LINENO: checking for linker lazyload option" >&5
7101$as_echo_n "checking for linker lazyload option... " >&6; }
7102if test "${im_cv_ld_lazyload+set}" = set; then
7103 $as_echo_n "(cached) " >&6
7104else
7105
7106im_cv_ld_lazyload='none'
7107case "${host}" in
7108 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7109 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7110 im_cv_ld_lazyload='-Wl,-zlazyload'
7111 fi
7112 ;;
7113esac
7114
7115fi
7116{ $as_echo "$as_me:$LINENO: result: $im_cv_ld_lazyload" >&5
7117$as_echo "$im_cv_ld_lazyload" >&6; }
7118if test "${im_cv_ld_lazyload}" != 'none' ; then
7119 if test -z "${LDFLAGS}" ; then
7120 LDFLAGS="${im_cv_ld_lazyload}"
7121 else
7122 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7123 fi
7124fi
7125
7126case "$host" in
7127*darwin* | *-macos10*)
7128 if test -d /opt/local ; then
7129 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7130 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7131 elif test -d /sw ; then
7132 CPPFLAGS="$CPPFLAGS -I/sw/include"
7133 LDFLAGS="$LDFLAGS -L/sw/lib"
7134 fi
7135 # Check whether --enable-osx-universal-binary was given.
7136if test "${enable_osx_universal_binary+set}" = set; then
7137 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7138else
7139 build_osxuniversal=no
7140fi
7141
7142
7143 if test "${build_osxuniversal}" != no ; then
7144 if test "$enable_dependency_tracking" != no ; then
7145 { { $as_echo "$as_me:$LINENO: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7146Please re-run configure with these options:
7147 --disable-dependency-tracking --enable-osx-universal-binary
7148 " >&5
7149$as_echo "$as_me: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7150Please re-run configure with these options:
7151 --disable-dependency-tracking --enable-osx-universal-binary
7152 " >&2;}
7153 { (exit 1); exit 1; }; }
7154 fi
7155 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7156 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7157 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7158 fi
7159 ;;
7160esac
7161
7162# Enable support for threads
7163
7164# Check whether --with-threads was given.
7165if test "${with_threads+set}" = set; then
7166 withval=$with_threads; with_threads=$withval
7167else
7168 with_threads='yes'
7169fi
7170
7171
7172have_threads=no
7173if test "$with_threads" != 'no'; then
7174
7175
7176
7177ac_ext=c
7178ac_cpp='$CPP $CPPFLAGS'
7179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7181ac_compiler_gnu=$ac_cv_c_compiler_gnu
7182
7183acx_pthread_ok=no
7184
7185# We used to check for pthread.h first, but this fails if pthread.h
7186# requires special compiler flags (e.g. on True64 or Sequent).
7187# It gets checked for in the link test anyway.
7188
7189# First of all, check if the user has set any of the PTHREAD_LIBS,
7190# etcetera environment variables, and if threads linking works using
7191# them:
7192if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7193 save_CFLAGS="$CFLAGS"
7194 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7195 save_LIBS="$LIBS"
7196 LIBS="$PTHREAD_LIBS $LIBS"
7197 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7198$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
7199 cat >conftest.$ac_ext <<_ACEOF
7200/* confdefs.h. */
7201_ACEOF
7202cat confdefs.h >>conftest.$ac_ext
7203cat >>conftest.$ac_ext <<_ACEOF
7204/* end confdefs.h. */
7205
7206/* Override any GCC internal prototype to avoid an error.
7207 Use char because int might match the return type of a GCC
7208 builtin and then its argument prototype would still apply. */
7209#ifdef __cplusplus
7210extern "C"
7211#endif
7212char pthread_join ();
7213int
7214main ()
7215{
7216return pthread_join ();
7217 ;
7218 return 0;
7219}
7220_ACEOF
7221rm -f conftest.$ac_objext conftest$ac_exeext
7222if { (ac_try="$ac_link"
7223case "(($ac_try" in
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7226esac
7227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7228$as_echo "$ac_try_echo") >&5
7229 (eval "$ac_link") 2>conftest.er1
7230 ac_status=$?
7231 grep -v '^ *+' conftest.er1 >conftest.err
7232 rm -f conftest.er1
7233 cat conftest.err >&5
7234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } && {
7236 test -z "$ac_c_werror_flag" ||
7237 test ! -s conftest.err
7238 } && test -s conftest$ac_exeext && {
7239 test "$cross_compiling" = yes ||
7240 $as_test_x conftest$ac_exeext
7241 }; then
7242 acx_pthread_ok=yes
7243else
7244 $as_echo "$as_me: failed program was:" >&5
7245sed 's/^/| /' conftest.$ac_ext >&5
7246
7247
7248fi
7249
7250rm -rf conftest.dSYM
7251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7252 conftest$ac_exeext conftest.$ac_ext
7253 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7254$as_echo "$acx_pthread_ok" >&6; }
7255 if test x"$acx_pthread_ok" = xno; then
7256 PTHREAD_LIBS=""
7257 PTHREAD_CFLAGS=""
7258 fi
7259 LIBS="$save_LIBS"
7260 CFLAGS="$save_CFLAGS"
7261fi
7262
7263# We must check for the threads library under a number of different
7264# names; the ordering is very important because some systems
7265# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7266# libraries is broken (non-POSIX).
7267
7268# Create a list of thread flags to try. Items starting with a "-" are
7269# C compiler flags, and other items are library names, except for "none"
7270# which indicates that we try without any flags at all, and "pthread-config"
7271# which is a program returning the flags for the Pth emulation library.
7272
7273acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7274
7275# The ordering *is* (sometimes) important. Some notes on the
7276# individual items follow:
7277
7278# pthreads: AIX (must check this before -lpthread)
7279# none: in case threads are in libc; should be tried before -Kthread and
7280# other compiler flags to prevent continual compiler warnings
7281# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7282# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7283# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7284# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7285# -pthreads: Solaris/gcc
7286# -mthreads: Mingw32/gcc, Lynx/gcc
7287# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7288# doesn't hurt to check since this sometimes defines pthreads too;
7289# also defines -D_REENTRANT)
7290# ... -mt is also the pthreads flag for HP/aCC
7291# pthread: Linux, etcetera
7292# --thread-safe: KAI C++
7293# pthread-config: use pthread-config program (for GNU Pth library)
7294
7295case "${host_cpu}-${host_os}" in
7296 *solaris*)
7297
7298 # On Solaris (at least, for some versions), libc contains stubbed
7299 # (non-functional) versions of the pthreads routines, so link-based
7300 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7301 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7302 # a function called by this macro, so we could check for that, but
7303 # who knows whether they'll stub that too in a future libc.) So,
7304 # we'll just look for -pthreads and -lpthread first:
7305
7306 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7307 ;;
7308
7309 # The HP-UX compiler just warns about options it does not understand
7310 # but it needs -mt.
7311 *-hpux*)
7312 acx_pthread_flags="-mt $acx_pthread_flags"
7313 ;;
7314esac
7315
7316if test x"$acx_pthread_ok" = xno; then
7317for flag in $acx_pthread_flags; do
7318
7319 case $flag in
7320 none)
7321 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7322$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7323 ;;
7324
7325 -*)
7326 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7327$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7328 PTHREAD_CFLAGS="$flag"
7329 ;;
7330
7331 pthread-config)
7332 # Extract the first word of "pthread-config", so it can be a program name with args.
7333set dummy pthread-config; ac_word=$2
7334{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7336if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7337 $as_echo_n "(cached) " >&6
7338else
7339 if test -n "$acx_pthread_config"; then
7340 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_prog_acx_pthread_config="yes"
7350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7352 fi
7353done
7354done
7355IFS=$as_save_IFS
7356
7357 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7358fi
7359fi
7360acx_pthread_config=$ac_cv_prog_acx_pthread_config
7361if test -n "$acx_pthread_config"; then
7362 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7363$as_echo "$acx_pthread_config" >&6; }
7364else
7365 { $as_echo "$as_me:$LINENO: result: no" >&5
7366$as_echo "no" >&6; }
7367fi
7368
7369
7370 if test x"$acx_pthread_config" = xno; then continue; fi
7371 PTHREAD_CFLAGS="`pthread-config --cflags`"
7372 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7373 ;;
7374
7375 *)
7376 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7377$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7378 PTHREAD_LIBS="-l$flag"
7379 ;;
7380 esac
7381
7382 save_LIBS="$LIBS"
7383 save_CFLAGS="$CFLAGS"
7384 LIBS="$PTHREAD_LIBS $LIBS"
7385 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7386
7387 # Check for various functions. We must include pthread.h,
7388 # since some functions may be macros. (On the Sequent, we
7389 # need a special flag -Kthread to make this header compile.)
7390 # We check for pthread_join because it is in -lpthread on IRIX
7391 # while pthread_create is in libc. We check for pthread_attr_init
7392 # due to DEC craziness with -lpthreads. We check for
7393 # pthread_cleanup_push because it is one of the few pthread
7394 # functions on Solaris that doesn't have a non-functional libc stub.
7395 # We try pthread_create on general principles.
7396 cat >conftest.$ac_ext <<_ACEOF
7397/* confdefs.h. */
7398_ACEOF
7399cat confdefs.h >>conftest.$ac_ext
7400cat >>conftest.$ac_ext <<_ACEOF
7401/* end confdefs.h. */
7402#include <pthread.h>
7403int
7404main ()
7405{
7406pthread_t th; pthread_join(th, 0);
7407 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7408 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7409 ;
7410 return 0;
7411}
7412_ACEOF
7413rm -f conftest.$ac_objext conftest$ac_exeext
7414if { (ac_try="$ac_link"
7415case "(($ac_try" in
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7418esac
7419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7420$as_echo "$ac_try_echo") >&5
7421 (eval "$ac_link") 2>conftest.er1
7422 ac_status=$?
7423 grep -v '^ *+' conftest.er1 >conftest.err
7424 rm -f conftest.er1
7425 cat conftest.err >&5
7426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && {
7428 test -z "$ac_c_werror_flag" ||
7429 test ! -s conftest.err
7430 } && test -s conftest$ac_exeext && {
7431 test "$cross_compiling" = yes ||
7432 $as_test_x conftest$ac_exeext
7433 }; then
7434 acx_pthread_ok=yes
7435else
7436 $as_echo "$as_me: failed program was:" >&5
7437sed 's/^/| /' conftest.$ac_ext >&5
7438
7439
7440fi
7441
7442rm -rf conftest.dSYM
7443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7444 conftest$ac_exeext conftest.$ac_ext
7445
7446 LIBS="$save_LIBS"
7447 CFLAGS="$save_CFLAGS"
7448
7449 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7450$as_echo "$acx_pthread_ok" >&6; }
7451 if test "x$acx_pthread_ok" = xyes; then
7452 break;
7453 fi
7454
7455 PTHREAD_LIBS=""
7456 PTHREAD_CFLAGS=""
7457done
7458fi
7459
7460# Various other checks:
7461if test "x$acx_pthread_ok" = xyes; then
7462 save_LIBS="$LIBS"
7463 LIBS="$PTHREAD_LIBS $LIBS"
7464 save_CFLAGS="$CFLAGS"
7465 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7466
7467 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7468 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7469$as_echo_n "checking for joinable pthread attribute... " >&6; }
7470 attr_name=unknown
7471 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7472 cat >conftest.$ac_ext <<_ACEOF
7473/* confdefs.h. */
7474_ACEOF
7475cat confdefs.h >>conftest.$ac_ext
7476cat >>conftest.$ac_ext <<_ACEOF
7477/* end confdefs.h. */
7478#include <pthread.h>
7479int
7480main ()
7481{
7482int attr=$attr; return attr;
7483 ;
7484 return 0;
7485}
7486_ACEOF
7487rm -f conftest.$ac_objext conftest$ac_exeext
7488if { (ac_try="$ac_link"
7489case "(($ac_try" in
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7492esac
7493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7494$as_echo "$ac_try_echo") >&5
7495 (eval "$ac_link") 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest$ac_exeext && {
7505 test "$cross_compiling" = yes ||
7506 $as_test_x conftest$ac_exeext
7507 }; then
7508 attr_name=$attr; break
7509else
7510 $as_echo "$as_me: failed program was:" >&5
7511sed 's/^/| /' conftest.$ac_ext >&5
7512
7513
7514fi
7515
7516rm -rf conftest.dSYM
7517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7518 conftest$ac_exeext conftest.$ac_ext
7519 done
7520 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
7521$as_echo "$attr_name" >&6; }
7522 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7523
7524cat >>confdefs.h <<_ACEOF
7525#define PTHREAD_CREATE_JOINABLE $attr_name
7526_ACEOF
7527
7528 fi
7529
7530 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7531$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7532 flag=no
7533 case "${host_cpu}-${host_os}" in
7534 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7535 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7536 esac
7537 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
7538$as_echo "${flag}" >&6; }
7539 if test "x$flag" != xno; then
7540 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7541 fi
7542
7543 LIBS="$save_LIBS"
7544 CFLAGS="$save_CFLAGS"
7545
7546 # More AIX lossage: must compile with xlc_r or cc_r
7547 case "${host_os}" in
7548 aix* )
7549 if test x"$GCC" != xyes; then
7550 case "$CC" in
7551 *xlc )
7552 # Extract the first word of "xlc_r", so it can be a program name with args.
7553set dummy xlc_r; ac_word=$2
7554{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7555$as_echo_n "checking for $ac_word... " >&6; }
7556if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7557 $as_echo_n "(cached) " >&6
7558else
7559 if test -n "$PTHREAD_CC"; then
7560 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7561else
7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_prog_PTHREAD_CC="xlc_r"
7570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7572 fi
7573done
7574done
7575IFS=$as_save_IFS
7576
7577 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
7578fi
7579fi
7580PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7581if test -n "$PTHREAD_CC"; then
7582 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7583$as_echo "$PTHREAD_CC" >&6; }
7584else
7585 { $as_echo "$as_me:$LINENO: result: no" >&5
7586$as_echo "no" >&6; }
7587fi
7588
7589 ;;
7590 *cc )
7591 # Extract the first word of "cc_r", so it can be a program name with args.
7592set dummy cc_r; ac_word=$2
7593{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7594$as_echo_n "checking for $ac_word... " >&6; }
7595if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7596 $as_echo_n "(cached) " >&6
7597else
7598 if test -n "$PTHREAD_CC"; then
7599 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7600else
7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608 ac_cv_prog_PTHREAD_CC="cc_r"
7609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612done
7613done
7614IFS=$as_save_IFS
7615
7616 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
7617fi
7618fi
7619PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7620if test -n "$PTHREAD_CC"; then
7621 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7622$as_echo "$PTHREAD_CC" >&6; }
7623else
7624 { $as_echo "$as_me:$LINENO: result: no" >&5
7625$as_echo "no" >&6; }
7626fi
7627
7628 ;;
7629 esac
7630 fi
7631 case "$CXX" in
7632 *xlC )
7633 # Extract the first word of "xlC_r", so it can be a program name with args.
7634set dummy xlC_r; ac_word=$2
7635{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7636$as_echo_n "checking for $ac_word... " >&6; }
7637if test "${ac_cv_prog_PTHREAD_CXX+set}" = set; then
7638 $as_echo_n "(cached) " >&6
7639else
7640 if test -n "$PTHREAD_CXX"; then
7641 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7642else
7643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644for as_dir in $PATH
7645do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_prog_PTHREAD_CXX="xlC_r"
7651 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654done
7655done
7656IFS=$as_save_IFS
7657
7658 test -z "$ac_cv_prog_PTHREAD_CXX" && ac_cv_prog_PTHREAD_CXX="${CXX}"
7659fi
7660fi
7661PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7662if test -n "$PTHREAD_CXX"; then
7663 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CXX" >&5
7664$as_echo "$PTHREAD_CXX" >&6; }
7665else
7666 { $as_echo "$as_me:$LINENO: result: no" >&5
7667$as_echo "no" >&6; }
7668fi
7669
7670 ;;
7671 esac
7672 ;;
7673 esac
7674fi
7675
7676if test "${PTHREAD_CC}x" = "x"
7677then
7678 PTHREAD_CC="$CC"
7679fi
7680if test "${PTHREAD_CXX}x" = "x"
7681then
7682 PTHREAD_CXX="$CXX"
7683fi
7684
7685
7686
7687
7688
7689
7690# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7691if test x"$acx_pthread_ok" = xyes; then
7692
7693cat >>confdefs.h <<\_ACEOF
7694#define HAVE_PTHREAD 1
7695_ACEOF
7696
7697 :
7698else
7699 acx_pthread_ok=no
7700
7701fi
7702ac_ext=c
7703ac_cpp='$CPP $CPPFLAGS'
7704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7706ac_compiler_gnu=$ac_cv_c_compiler_gnu
7707
7708
7709 if test "$acx_pthread_ok" = yes; then
7710 have_threads=yes
7711 DEF_THREAD="$PTHREAD_CFLAGS"
7712 CFLAGS="$CFLAGS $DEF_THREAD"
7713 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7714 if test "$CC" != "$PTHREAD_CC"; then
7715 { $as_echo "$as_me:$LINENO: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
7716$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7717 CC="$PTHREAD_CC"
7718 fi
7719 fi
7720fi
7721
7722# Enable support for OpenMP
7723if test "$have_threads" != 'yes'; then
7724 ac_cv_prog_c_openmp=unsupported
7725fi
7726
7727 OPENMP_CFLAGS=
7728 # Check whether --enable-openmp was given.
7729if test "${enable_openmp+set}" = set; then
7730 enableval=$enable_openmp;
7731fi
7732
7733 if test "$enable_openmp" != no; then
7734 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
7735$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
7736if test "${ac_cv_prog_c_openmp+set}" = set; then
7737 $as_echo_n "(cached) " >&6
7738else
7739 cat >conftest.$ac_ext <<_ACEOF
7740
7741#ifndef _OPENMP
7742 choke me
7743#endif
7744#include <omp.h>
7745int main () { return omp_get_num_threads (); }
7746
7747_ACEOF
7748rm -f conftest.$ac_objext conftest$ac_exeext
7749if { (ac_try="$ac_link"
7750case "(($ac_try" in
7751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752 *) ac_try_echo=$ac_try;;
7753esac
7754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7755$as_echo "$ac_try_echo") >&5
7756 (eval "$ac_link") 2>conftest.er1
7757 ac_status=$?
7758 grep -v '^ *+' conftest.er1 >conftest.err
7759 rm -f conftest.er1
7760 cat conftest.err >&5
7761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && {
7763 test -z "$ac_c_werror_flag" ||
7764 test ! -s conftest.err
7765 } && test -s conftest$ac_exeext && {
7766 test "$cross_compiling" = yes ||
7767 $as_test_x conftest$ac_exeext
7768 }; then
7769 ac_cv_prog_c_openmp='none needed'
7770else
7771 $as_echo "$as_me: failed program was:" >&5
7772sed 's/^/| /' conftest.$ac_ext >&5
7773
7774 ac_cv_prog_c_openmp='unsupported'
7775 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7776 ac_save_CFLAGS=$CFLAGS
7777 CFLAGS="$CFLAGS $ac_option"
7778 cat >conftest.$ac_ext <<_ACEOF
7779
7780#ifndef _OPENMP
7781 choke me
7782#endif
7783#include <omp.h>
7784int main () { return omp_get_num_threads (); }
7785
7786_ACEOF
7787rm -f conftest.$ac_objext conftest$ac_exeext
7788if { (ac_try="$ac_link"
7789case "(($ac_try" in
7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7792esac
7793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7794$as_echo "$ac_try_echo") >&5
7795 (eval "$ac_link") 2>conftest.er1
7796 ac_status=$?
7797 grep -v '^ *+' conftest.er1 >conftest.err
7798 rm -f conftest.er1
7799 cat conftest.err >&5
7800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && {
7802 test -z "$ac_c_werror_flag" ||
7803 test ! -s conftest.err
7804 } && test -s conftest$ac_exeext && {
7805 test "$cross_compiling" = yes ||
7806 $as_test_x conftest$ac_exeext
7807 }; then
7808 ac_cv_prog_c_openmp=$ac_option
7809else
7810 $as_echo "$as_me: failed program was:" >&5
7811sed 's/^/| /' conftest.$ac_ext >&5
7812
7813
7814fi
7815
7816rm -rf conftest.dSYM
7817rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7818 conftest$ac_exeext conftest.$ac_ext
7819 CFLAGS=$ac_save_CFLAGS
7820 if test "$ac_cv_prog_c_openmp" != unsupported; then
7821 break
7822 fi
7823 done
7824fi
7825
7826rm -rf conftest.dSYM
7827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7828 conftest$ac_exeext conftest.$ac_ext
7829fi
7830{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_c_openmp" >&5
7831$as_echo "$ac_cv_prog_c_openmp" >&6; }
7832 case $ac_cv_prog_c_openmp in #(
7833 "none needed" | unsupported)
7834 ;; #(
7835 *)
7836 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
7837 esac
7838 fi
7839
7840
7841CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7842MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7843
7844
7845########
7846#
7847# Check for large file support
7848#
7849########
7850# Check whether --enable-largefile was given.
7851if test "${enable_largefile+set}" = set; then
7852 enableval=$enable_largefile;
7853fi
7854
7855if test "$enable_largefile" != no; then
7856
7857 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
7858$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7859if test "${ac_cv_sys_largefile_CC+set}" = set; then
7860 $as_echo_n "(cached) " >&6
7861else
7862 ac_cv_sys_largefile_CC=no
7863 if test "$GCC" != yes; then
7864 ac_save_CC=$CC
7865 while :; do
7866 # IRIX 6.2 and later do not support large files by default,
7867 # so use the C compiler's -n32 option if that helps.
7868 cat >conftest.$ac_ext <<_ACEOF
7869/* confdefs.h. */
7870_ACEOF
7871cat confdefs.h >>conftest.$ac_ext
7872cat >>conftest.$ac_ext <<_ACEOF
7873/* end confdefs.h. */
7874#include <sys/types.h>
7875 /* Check that off_t can represent 2**63 - 1 correctly.
7876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7877 since some C++ compilers masquerading as C compilers
7878 incorrectly reject 9223372036854775807. */
7879#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7881 && LARGE_OFF_T % 2147483647 == 1)
7882 ? 1 : -1];
7883int
7884main ()
7885{
7886
7887 ;
7888 return 0;
7889}
7890_ACEOF
7891 rm -f conftest.$ac_objext
7892if { (ac_try="$ac_compile"
7893case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896esac
7897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7898$as_echo "$ac_try_echo") >&5
7899 (eval "$ac_compile") 2>conftest.er1
7900 ac_status=$?
7901 grep -v '^ *+' conftest.er1 >conftest.err
7902 rm -f conftest.er1
7903 cat conftest.err >&5
7904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } && {
7906 test -z "$ac_c_werror_flag" ||
7907 test ! -s conftest.err
7908 } && test -s conftest.$ac_objext; then
7909 break
7910else
7911 $as_echo "$as_me: failed program was:" >&5
7912sed 's/^/| /' conftest.$ac_ext >&5
7913
7914
7915fi
7916
7917rm -f core conftest.err conftest.$ac_objext
7918 CC="$CC -n32"
7919 rm -f conftest.$ac_objext
7920if { (ac_try="$ac_compile"
7921case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924esac
7925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7926$as_echo "$ac_try_echo") >&5
7927 (eval "$ac_compile") 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } && {
7934 test -z "$ac_c_werror_flag" ||
7935 test ! -s conftest.err
7936 } && test -s conftest.$ac_objext; then
7937 ac_cv_sys_largefile_CC=' -n32'; break
7938else
7939 $as_echo "$as_me: failed program was:" >&5
7940sed 's/^/| /' conftest.$ac_ext >&5
7941
7942
7943fi
7944
7945rm -f core conftest.err conftest.$ac_objext
7946 break
7947 done
7948 CC=$ac_save_CC
7949 rm -f conftest.$ac_ext
7950 fi
7951fi
7952{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
7953$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7954 if test "$ac_cv_sys_largefile_CC" != no; then
7955 CC=$CC$ac_cv_sys_largefile_CC
7956 fi
7957
7958 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7959$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7960if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7961 $as_echo_n "(cached) " >&6
7962else
7963 while :; do
7964 cat >conftest.$ac_ext <<_ACEOF
7965/* confdefs.h. */
7966_ACEOF
7967cat confdefs.h >>conftest.$ac_ext
7968cat >>conftest.$ac_ext <<_ACEOF
7969/* end confdefs.h. */
7970#include <sys/types.h>
7971 /* Check that off_t can represent 2**63 - 1 correctly.
7972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7973 since some C++ compilers masquerading as C compilers
7974 incorrectly reject 9223372036854775807. */
7975#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7977 && LARGE_OFF_T % 2147483647 == 1)
7978 ? 1 : -1];
7979int
7980main ()
7981{
7982
7983 ;
7984 return 0;
7985}
7986_ACEOF
7987rm -f conftest.$ac_objext
7988if { (ac_try="$ac_compile"
7989case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992esac
7993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7994$as_echo "$ac_try_echo") >&5
7995 (eval "$ac_compile") 2>conftest.er1
7996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
8000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } && {
8002 test -z "$ac_c_werror_flag" ||
8003 test ! -s conftest.err
8004 } && test -s conftest.$ac_objext; then
8005 ac_cv_sys_file_offset_bits=no; break
8006else
8007 $as_echo "$as_me: failed program was:" >&5
8008sed 's/^/| /' conftest.$ac_ext >&5
8009
8010
8011fi
8012
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 cat >conftest.$ac_ext <<_ACEOF
8015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8020#define _FILE_OFFSET_BITS 64
8021#include <sys/types.h>
8022 /* Check that off_t can represent 2**63 - 1 correctly.
8023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8024 since some C++ compilers masquerading as C compilers
8025 incorrectly reject 9223372036854775807. */
8026#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8028 && LARGE_OFF_T % 2147483647 == 1)
8029 ? 1 : -1];
8030int
8031main ()
8032{
8033
8034 ;
8035 return 0;
8036}
8037_ACEOF
8038rm -f conftest.$ac_objext
8039if { (ac_try="$ac_compile"
8040case "(($ac_try" in
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8043esac
8044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8045$as_echo "$ac_try_echo") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8047 ac_status=$?
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
8051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest.$ac_objext; then
8056 ac_cv_sys_file_offset_bits=64; break
8057else
8058 $as_echo "$as_me: failed program was:" >&5
8059sed 's/^/| /' conftest.$ac_ext >&5
8060
8061
8062fi
8063
8064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 ac_cv_sys_file_offset_bits=unknown
8066 break
8067done
8068fi
8069{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8070$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8071case $ac_cv_sys_file_offset_bits in #(
8072 no | unknown) ;;
8073 *)
8074cat >>confdefs.h <<_ACEOF
8075#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8076_ACEOF
8077;;
8078esac
8079rm -rf conftest*
8080 if test $ac_cv_sys_file_offset_bits = unknown; then
8081 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8082$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8083if test "${ac_cv_sys_large_files+set}" = set; then
8084 $as_echo_n "(cached) " >&6
8085else
8086 while :; do
8087 cat >conftest.$ac_ext <<_ACEOF
8088/* confdefs.h. */
8089_ACEOF
8090cat confdefs.h >>conftest.$ac_ext
8091cat >>conftest.$ac_ext <<_ACEOF
8092/* end confdefs.h. */
8093#include <sys/types.h>
8094 /* Check that off_t can represent 2**63 - 1 correctly.
8095 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8096 since some C++ compilers masquerading as C compilers
8097 incorrectly reject 9223372036854775807. */
8098#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8099 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8100 && LARGE_OFF_T % 2147483647 == 1)
8101 ? 1 : -1];
8102int
8103main ()
8104{
8105
8106 ;
8107 return 0;
8108}
8109_ACEOF
8110rm -f conftest.$ac_objext
8111if { (ac_try="$ac_compile"
8112case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8117$as_echo "$ac_try_echo") >&5
8118 (eval "$ac_compile") 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } && {
8125 test -z "$ac_c_werror_flag" ||
8126 test ! -s conftest.err
8127 } && test -s conftest.$ac_objext; then
8128 ac_cv_sys_large_files=no; break
8129else
8130 $as_echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
8133
8134fi
8135
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 cat >conftest.$ac_ext <<_ACEOF
8138/* confdefs.h. */
8139_ACEOF
8140cat confdefs.h >>conftest.$ac_ext
8141cat >>conftest.$ac_ext <<_ACEOF
8142/* end confdefs.h. */
8143#define _LARGE_FILES 1
8144#include <sys/types.h>
8145 /* Check that off_t can represent 2**63 - 1 correctly.
8146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8147 since some C++ compilers masquerading as C compilers
8148 incorrectly reject 9223372036854775807. */
8149#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8151 && LARGE_OFF_T % 2147483647 == 1)
8152 ? 1 : -1];
8153int
8154main ()
8155{
8156
8157 ;
8158 return 0;
8159}
8160_ACEOF
8161rm -f conftest.$ac_objext
8162if { (ac_try="$ac_compile"
8163case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8166esac
8167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8168$as_echo "$ac_try_echo") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 ac_cv_sys_large_files=1; break
8180else
8181 $as_echo "$as_me: failed program was:" >&5
8182sed 's/^/| /' conftest.$ac_ext >&5
8183
8184
8185fi
8186
8187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 ac_cv_sys_large_files=unknown
8189 break
8190done
8191fi
8192{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8193$as_echo "$ac_cv_sys_large_files" >&6; }
8194case $ac_cv_sys_large_files in #(
8195 no | unknown) ;;
8196 *)
8197cat >>confdefs.h <<_ACEOF
8198#define _LARGE_FILES $ac_cv_sys_large_files
8199_ACEOF
8200;;
8201esac
8202rm -rf conftest*
8203 fi
8204fi
8205
8206{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8207$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8208if test "${ac_cv_sys_largefile_source+set}" = set; then
8209 $as_echo_n "(cached) " >&6
8210else
8211 while :; do
8212 cat >conftest.$ac_ext <<_ACEOF
8213/* confdefs.h. */
8214_ACEOF
8215cat confdefs.h >>conftest.$ac_ext
8216cat >>conftest.$ac_ext <<_ACEOF
8217/* end confdefs.h. */
8218#include <sys/types.h> /* for off_t */
8219 #include <stdio.h>
8220int
8221main ()
8222{
8223int (*fp) (FILE *, off_t, int) = fseeko;
8224 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8225 ;
8226 return 0;
8227}
8228_ACEOF
8229rm -f conftest.$ac_objext conftest$ac_exeext
8230if { (ac_try="$ac_link"
8231case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8234esac
8235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8236$as_echo "$ac_try_echo") >&5
8237 (eval "$ac_link") 2>conftest.er1
8238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest$ac_exeext && {
8247 test "$cross_compiling" = yes ||
8248 $as_test_x conftest$ac_exeext
8249 }; then
8250 ac_cv_sys_largefile_source=no; break
8251else
8252 $as_echo "$as_me: failed program was:" >&5
8253sed 's/^/| /' conftest.$ac_ext >&5
8254
8255
8256fi
8257
8258rm -rf conftest.dSYM
8259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8260 conftest$ac_exeext conftest.$ac_ext
8261 cat >conftest.$ac_ext <<_ACEOF
8262/* confdefs.h. */
8263_ACEOF
8264cat confdefs.h >>conftest.$ac_ext
8265cat >>conftest.$ac_ext <<_ACEOF
8266/* end confdefs.h. */
8267#define _LARGEFILE_SOURCE 1
8268#include <sys/types.h> /* for off_t */
8269 #include <stdio.h>
8270int
8271main ()
8272{
8273int (*fp) (FILE *, off_t, int) = fseeko;
8274 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8275 ;
8276 return 0;
8277}
8278_ACEOF
8279rm -f conftest.$ac_objext conftest$ac_exeext
8280if { (ac_try="$ac_link"
8281case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284esac
8285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8286$as_echo "$ac_try_echo") >&5
8287 (eval "$ac_link") 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest$ac_exeext && {
8297 test "$cross_compiling" = yes ||
8298 $as_test_x conftest$ac_exeext
8299 }; then
8300 ac_cv_sys_largefile_source=1; break
8301else
8302 $as_echo "$as_me: failed program was:" >&5
8303sed 's/^/| /' conftest.$ac_ext >&5
8304
8305
8306fi
8307
8308rm -rf conftest.dSYM
8309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8310 conftest$ac_exeext conftest.$ac_ext
8311 ac_cv_sys_largefile_source=unknown
8312 break
8313done
8314fi
8315{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8316$as_echo "$ac_cv_sys_largefile_source" >&6; }
8317case $ac_cv_sys_largefile_source in #(
8318 no | unknown) ;;
8319 *)
8320cat >>confdefs.h <<_ACEOF
8321#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8322_ACEOF
8323;;
8324esac
8325rm -rf conftest*
8326
8327# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8328# in glibc 2.1.3, but that breaks too many other things.
8329# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8330if test $ac_cv_sys_largefile_source != unknown; then
8331
8332cat >>confdefs.h <<\_ACEOF
8333#define HAVE_FSEEKO 1
8334_ACEOF
8335
8336fi
8337
8338LFS_CPPFLAGS=''
8339if test "$enable_largefile" != no; then
8340 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8341 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8342 else
8343 { $as_echo "$as_me:$LINENO: checking for native large file support" >&5
8344$as_echo_n "checking for native large file support... " >&6; }
8345 if test "$cross_compiling" = yes; then
8346 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8348{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8349See \`config.log' for more details." >&5
8350$as_echo "$as_me: error: cannot run test program while cross compiling
8351See \`config.log' for more details." >&2;}
8352 { (exit 1); exit 1; }; }; }
8353else
8354 cat >conftest.$ac_ext <<_ACEOF
8355#include <unistd.h>
8356 main () {
8357 exit(!(sizeof(off_t) == 8));
8358 }
8359_ACEOF
8360rm -f conftest$ac_exeext
8361if { (ac_try="$ac_link"
8362case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365esac
8366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8367$as_echo "$ac_try_echo") >&5
8368 (eval "$ac_link") 2>&5
8369 ac_status=$?
8370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375esac
8376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8377$as_echo "$ac_try_echo") >&5
8378 (eval "$ac_try") 2>&5
8379 ac_status=$?
8380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_sys_file_offset_bits=64; cat >>confdefs.h <<\_ACEOF
8383#define _FILE_OFFSET_BITS 64
8384_ACEOF
8385
8386 { $as_echo "$as_me:$LINENO: result: yes" >&5
8387$as_echo "yes" >&6; }
8388else
8389 $as_echo "$as_me: program exited with status $ac_status" >&5
8390$as_echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393( exit $ac_status )
8394{ $as_echo "$as_me:$LINENO: result: no" >&5
8395$as_echo "no" >&6; }
8396fi
8397rm -rf conftest.dSYM
8398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8399fi
8400
8401
8402 fi
8403 if test "$ac_cv_sys_large_files" != 'no'; then
8404 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8405 fi
8406 if test "$ac_cv_sys_largefile_source" != 'no'; then
8407 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8408 fi
8409fi
8410
8411
8412#
8413# Configure libtool & libltdl
8414#
8415# Configure libtool
8416enable_dlopen=yes
8417
8418
8419
8420case `pwd` in
8421 *\ * | *\ *)
8422 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8423$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8424esac
8425
8426
8427
8428macro_version='2.2.6'
8429macro_revision='1.3012'
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443ltmain="$ac_aux_dir/ltmain.sh"
8444
8445{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
8446$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8447if test "${lt_cv_path_NM+set}" = set; then
8448 $as_echo_n "(cached) " >&6
8449else
8450 if test -n "$NM"; then
8451 # Let the user override the test.
8452 lt_cv_path_NM="$NM"
8453else
8454 lt_nm_to_check="${ac_tool_prefix}nm"
8455 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8456 lt_nm_to_check="$lt_nm_to_check nm"
8457 fi
8458 for lt_tmp_nm in $lt_nm_to_check; do
8459 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8460 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8461 IFS="$lt_save_ifs"
8462 test -z "$ac_dir" && ac_dir=.
8463 tmp_nm="$ac_dir/$lt_tmp_nm"
8464 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8465 # Check to see if the nm accepts a BSD-compat flag.
8466 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8467 # nm: unknown option "B" ignored
8468 # Tru64's nm complains that /dev/null is an invalid object file
8469 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8470 */dev/null* | *'Invalid file or object type'*)
8471 lt_cv_path_NM="$tmp_nm -B"
8472 break
8473 ;;
8474 *)
8475 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8476 */dev/null*)
8477 lt_cv_path_NM="$tmp_nm -p"
8478 break
8479 ;;
8480 *)
8481 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8482 continue # so that we can try to find one that supports BSD flags
8483 ;;
8484 esac
8485 ;;
8486 esac
8487 fi
8488 done
8489 IFS="$lt_save_ifs"
8490 done
8491 : ${lt_cv_path_NM=no}
8492fi
8493fi
8494{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8495$as_echo "$lt_cv_path_NM" >&6; }
8496if test "$lt_cv_path_NM" != "no"; then
8497 NM="$lt_cv_path_NM"
8498else
8499 # Didn't find any BSD compatible name lister, look for dumpbin.
8500 if test -n "$ac_tool_prefix"; then
8501 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8502 do
8503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8504set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8505{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8506$as_echo_n "checking for $ac_word... " >&6; }
8507if test "${ac_cv_prog_DUMPBIN+set}" = set; then
8508 $as_echo_n "(cached) " >&6
8509else
8510 if test -n "$DUMPBIN"; then
8511 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8512else
8513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514for as_dir in $PATH
8515do
8516 IFS=$as_save_IFS
8517 test -z "$as_dir" && as_dir=.
8518 for ac_exec_ext in '' $ac_executable_extensions; do
8519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8520 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 break 2
8523 fi
8524done
8525done
8526IFS=$as_save_IFS
8527
8528fi
8529fi
8530DUMPBIN=$ac_cv_prog_DUMPBIN
8531if test -n "$DUMPBIN"; then
8532 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
8533$as_echo "$DUMPBIN" >&6; }
8534else
8535 { $as_echo "$as_me:$LINENO: result: no" >&5
8536$as_echo "no" >&6; }
8537fi
8538
8539
8540 test -n "$DUMPBIN" && break
8541 done
8542fi
8543if test -z "$DUMPBIN"; then
8544 ac_ct_DUMPBIN=$DUMPBIN
8545 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8546do
8547 # Extract the first word of "$ac_prog", so it can be a program name with args.
8548set dummy $ac_prog; ac_word=$2
8549{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8550$as_echo_n "checking for $ac_word... " >&6; }
8551if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
8552 $as_echo_n "(cached) " >&6
8553else
8554 if test -n "$ac_ct_DUMPBIN"; then
8555 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8556else
8557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558for as_dir in $PATH
8559do
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8564 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 break 2
8567 fi
8568done
8569done
8570IFS=$as_save_IFS
8571
8572fi
8573fi
8574ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8575if test -n "$ac_ct_DUMPBIN"; then
8576 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
8577$as_echo "$ac_ct_DUMPBIN" >&6; }
8578else
8579 { $as_echo "$as_me:$LINENO: result: no" >&5
8580$as_echo "no" >&6; }
8581fi
8582
8583
8584 test -n "$ac_ct_DUMPBIN" && break
8585done
8586
8587 if test "x$ac_ct_DUMPBIN" = x; then
8588 DUMPBIN=":"
8589 else
8590 case $cross_compiling:$ac_tool_warned in
8591yes:)
8592{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8594ac_tool_warned=yes ;;
8595esac
8596 DUMPBIN=$ac_ct_DUMPBIN
8597 fi
8598fi
8599
8600
8601 if test "$DUMPBIN" != ":"; then
8602 NM="$DUMPBIN"
8603 fi
8604fi
8605test -z "$NM" && NM=nm
8606
8607
8608
8609
8610
8611
8612{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
8613$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8614if test "${lt_cv_nm_interface+set}" = set; then
8615 $as_echo_n "(cached) " >&6
8616else
8617 lt_cv_nm_interface="BSD nm"
8618 echo "int some_variable = 0;" > conftest.$ac_ext
8619 (eval echo "\"\$as_me:8619: $ac_compile\"" >&5)
8620 (eval "$ac_compile" 2>conftest.err)
8621 cat conftest.err >&5
8622 (eval echo "\"\$as_me:8622: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8623 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8624 cat conftest.err >&5
8625 (eval echo "\"\$as_me:8625: output\"" >&5)
8626 cat conftest.out >&5
8627 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8628 lt_cv_nm_interface="MS dumpbin"
8629 fi
8630 rm -f conftest*
8631fi
8632{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
8633$as_echo "$lt_cv_nm_interface" >&6; }
8634
8635# find the maximum length of command line arguments
8636{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8637$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8638if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8639 $as_echo_n "(cached) " >&6
8640else
8641 i=0
8642 teststring="ABCD"
8643
8644 case $build_os in
8645 msdosdjgpp*)
8646 # On DJGPP, this test can blow up pretty badly due to problems in libc
8647 # (any single argument exceeding 2000 bytes causes a buffer overrun
8648 # during glob expansion). Even if it were fixed, the result of this
8649 # check would be larger than it should be.
8650 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8651 ;;
8652
8653 gnu*)
8654 # Under GNU Hurd, this test is not required because there is
8655 # no limit to the length of command line arguments.
8656 # Libtool will interpret -1 as no limit whatsoever
8657 lt_cv_sys_max_cmd_len=-1;
8658 ;;
8659
8660 cygwin* | mingw* | cegcc*)
8661 # On Win9x/ME, this test blows up -- it succeeds, but takes
8662 # about 5 minutes as the teststring grows exponentially.
8663 # Worse, since 9x/ME are not pre-emptively multitasking,
8664 # you end up with a "frozen" computer, even though with patience
8665 # the test eventually succeeds (with a max line length of 256k).
8666 # Instead, let's just punt: use the minimum linelength reported by
8667 # all of the supported platforms: 8192 (on NT/2K/XP).
8668 lt_cv_sys_max_cmd_len=8192;
8669 ;;
8670
8671 amigaos*)
8672 # On AmigaOS with pdksh, this test takes hours, literally.
8673 # So we just punt and use a minimum line length of 8192.
8674 lt_cv_sys_max_cmd_len=8192;
8675 ;;
8676
8677 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8678 # This has been around since 386BSD, at least. Likely further.
8679 if test -x /sbin/sysctl; then
8680 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8681 elif test -x /usr/sbin/sysctl; then
8682 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8683 else
8684 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8685 fi
8686 # And add a safety zone
8687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8689 ;;
8690
8691 interix*)
8692 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8693 lt_cv_sys_max_cmd_len=196608
8694 ;;
8695
8696 osf*)
8697 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8698 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8699 # nice to cause kernel panics so lets avoid the loop below.
8700 # First set a reasonable default.
8701 lt_cv_sys_max_cmd_len=16384
8702 #
8703 if test -x /sbin/sysconfig; then
8704 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8705 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8706 esac
8707 fi
8708 ;;
8709 sco3.2v5*)
8710 lt_cv_sys_max_cmd_len=102400
8711 ;;
8712 sysv5* | sco5v6* | sysv4.2uw2*)
8713 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8714 if test -n "$kargmax"; then
8715 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8716 else
8717 lt_cv_sys_max_cmd_len=32768
8718 fi
8719 ;;
8720 *)
8721 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8722 if test -n "$lt_cv_sys_max_cmd_len"; then
8723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8725 else
8726 # Make teststring a little bigger before we do anything with it.
8727 # a 1K string should be a reasonable start.
8728 for i in 1 2 3 4 5 6 7 8 ; do
8729 teststring=$teststring$teststring
8730 done
8731 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8732 # If test is not a shell built-in, we'll probably end up computing a
8733 # maximum length that is only half of the actual maximum length, but
8734 # we can't tell.
8735 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8736 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8737 test $i != 17 # 1/2 MB should be enough
8738 do
8739 i=`expr $i + 1`
8740 teststring=$teststring$teststring
8741 done
8742 # Only check the string length outside the loop.
8743 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8744 teststring=
8745 # Add a significant safety factor because C++ compilers can tack on
8746 # massive amounts of additional arguments before passing them to the
8747 # linker. It appears as though 1/2 is a usable value.
8748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8749 fi
8750 ;;
8751 esac
8752
8753fi
8754
8755if test -n $lt_cv_sys_max_cmd_len ; then
8756 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8757$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8758else
8759 { $as_echo "$as_me:$LINENO: result: none" >&5
8760$as_echo "none" >&6; }
8761fi
8762max_cmd_len=$lt_cv_sys_max_cmd_len
8763
8764
8765
8766
8767
8768
8769: ${CP="cp -f"}
8770: ${MV="mv -f"}
8771: ${RM="rm -f"}
8772
8773{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
8774$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8775# Try some XSI features
8776xsi_shell=no
8777( _lt_dummy="a/b/c"
8778 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8779 = c,a/b,, \
8780 && eval 'test $(( 1 + 1 )) -eq 2 \
8781 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8782 && xsi_shell=yes
8783{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
8784$as_echo "$xsi_shell" >&6; }
8785
8786
8787{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
8788$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8789lt_shell_append=no
8790( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8791 >/dev/null 2>&1 \
8792 && lt_shell_append=yes
8793{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
8794$as_echo "$lt_shell_append" >&6; }
8795
8796
8797if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8798 lt_unset=unset
8799else
8800 lt_unset=false
8801fi
8802
8803
8804
8805
8806
8807# test EBCDIC or ASCII
8808case `echo X|tr X '\101'` in
8809 A) # ASCII based system
8810 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8811 lt_SP2NL='tr \040 \012'
8812 lt_NL2SP='tr \015\012 \040\040'
8813 ;;
8814 *) # EBCDIC based system
8815 lt_SP2NL='tr \100 \n'
8816 lt_NL2SP='tr \r\n \100\100'
8817 ;;
8818esac
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8829$as_echo_n "checking for $LD option to reload object files... " >&6; }
8830if test "${lt_cv_ld_reload_flag+set}" = set; then
8831 $as_echo_n "(cached) " >&6
8832else
8833 lt_cv_ld_reload_flag='-r'
8834fi
8835{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8836$as_echo "$lt_cv_ld_reload_flag" >&6; }
8837reload_flag=$lt_cv_ld_reload_flag
8838case $reload_flag in
8839"" | " "*) ;;
8840*) reload_flag=" $reload_flag" ;;
8841esac
8842reload_cmds='$LD$reload_flag -o $output$reload_objs'
8843case $host_os in
8844 darwin*)
8845 if test "$GCC" = yes; then
8846 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8847 else
8848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8849 fi
8850 ;;
8851esac
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861if test -n "$ac_tool_prefix"; then
8862 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8863set dummy ${ac_tool_prefix}objdump; ac_word=$2
8864{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8865$as_echo_n "checking for $ac_word... " >&6; }
8866if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8867 $as_echo_n "(cached) " >&6
8868else
8869 if test -n "$OBJDUMP"; then
8870 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8871else
8872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873for as_dir in $PATH
8874do
8875 IFS=$as_save_IFS
8876 test -z "$as_dir" && as_dir=.
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8879 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8881 break 2
8882 fi
8883done
8884done
8885IFS=$as_save_IFS
8886
8887fi
8888fi
8889OBJDUMP=$ac_cv_prog_OBJDUMP
8890if test -n "$OBJDUMP"; then
8891 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8892$as_echo "$OBJDUMP" >&6; }
8893else
8894 { $as_echo "$as_me:$LINENO: result: no" >&5
8895$as_echo "no" >&6; }
8896fi
8897
8898
8899fi
8900if test -z "$ac_cv_prog_OBJDUMP"; then
8901 ac_ct_OBJDUMP=$OBJDUMP
8902 # Extract the first word of "objdump", so it can be a program name with args.
8903set dummy objdump; ac_word=$2
8904{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8905$as_echo_n "checking for $ac_word... " >&6; }
8906if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
8907 $as_echo_n "(cached) " >&6
8908else
8909 if test -n "$ac_ct_OBJDUMP"; then
8910 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8911else
8912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913for as_dir in $PATH
8914do
8915 IFS=$as_save_IFS
8916 test -z "$as_dir" && as_dir=.
8917 for ac_exec_ext in '' $ac_executable_extensions; do
8918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8919 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8921 break 2
8922 fi
8923done
8924done
8925IFS=$as_save_IFS
8926
8927fi
8928fi
8929ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8930if test -n "$ac_ct_OBJDUMP"; then
8931 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
8932$as_echo "$ac_ct_OBJDUMP" >&6; }
8933else
8934 { $as_echo "$as_me:$LINENO: result: no" >&5
8935$as_echo "no" >&6; }
8936fi
8937
8938 if test "x$ac_ct_OBJDUMP" = x; then
8939 OBJDUMP="false"
8940 else
8941 case $cross_compiling:$ac_tool_warned in
8942yes:)
8943{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8945ac_tool_warned=yes ;;
8946esac
8947 OBJDUMP=$ac_ct_OBJDUMP
8948 fi
8949else
8950 OBJDUMP="$ac_cv_prog_OBJDUMP"
8951fi
8952
8953test -z "$OBJDUMP" && OBJDUMP=objdump
8954
8955
8956
8957
8958
8959
8960{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
8961$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8962if test "${lt_cv_deplibs_check_method+set}" = set; then
8963 $as_echo_n "(cached) " >&6
8964else
8965 lt_cv_file_magic_cmd='$MAGIC_CMD'
8966lt_cv_file_magic_test_file=
8967lt_cv_deplibs_check_method='unknown'
8968# Need to set the preceding variable on all platforms that support
8969# interlibrary dependencies.
8970# 'none' -- dependencies not supported.
8971# `unknown' -- same as none, but documents that we really don't know.
8972# 'pass_all' -- all dependencies passed with no checks.
8973# 'test_compile' -- check by making test program.
8974# 'file_magic [[regex]]' -- check by looking for files in library path
8975# which responds to the $file_magic_cmd with a given extended regex.
8976# If you have `file' or equivalent on your system and you're not sure
8977# whether `pass_all' will *always* work, you probably want this one.
8978
8979case $host_os in
8980aix[4-9]*)
8981 lt_cv_deplibs_check_method=pass_all
8982 ;;
8983
8984beos*)
8985 lt_cv_deplibs_check_method=pass_all
8986 ;;
8987
8988bsdi[45]*)
8989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8990 lt_cv_file_magic_cmd='/usr/bin/file -L'
8991 lt_cv_file_magic_test_file=/shlib/libc.so
8992 ;;
8993
8994cygwin*)
8995 # func_win32_libid is a shell function defined in ltmain.sh
8996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8997 lt_cv_file_magic_cmd='func_win32_libid'
8998 ;;
8999
9000mingw* | pw32*)
9001 # Base MSYS/MinGW do not provide the 'file' command needed by
9002 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9003 # unless we find 'file', for example because we are cross-compiling.
9004 if ( file / ) >/dev/null 2>&1; then
9005 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9006 lt_cv_file_magic_cmd='func_win32_libid'
9007 else
9008 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9009 lt_cv_file_magic_cmd='$OBJDUMP -f'
9010 fi
9011 ;;
9012
9013cegcc)
9014 # use the weaker test based on 'objdump'. See mingw*.
9015 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9016 lt_cv_file_magic_cmd='$OBJDUMP -f'
9017 ;;
9018
9019darwin* | rhapsody*)
9020 lt_cv_deplibs_check_method=pass_all
9021 ;;
9022
9023freebsd* | dragonfly*)
9024 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9025 case $host_cpu in
9026 i*86 )
9027 # Not sure whether the presence of OpenBSD here was a mistake.
9028 # Let's accept both of them until this is cleared up.
9029 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9030 lt_cv_file_magic_cmd=/usr/bin/file
9031 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9032 ;;
9033 esac
9034 else
9035 lt_cv_deplibs_check_method=pass_all
9036 fi
9037 ;;
9038
9039gnu*)
9040 lt_cv_deplibs_check_method=pass_all
9041 ;;
9042
9043hpux10.20* | hpux11*)
9044 lt_cv_file_magic_cmd=/usr/bin/file
9045 case $host_cpu in
9046 ia64*)
9047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9048 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9049 ;;
9050 hppa*64*)
9051 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]'
9052 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9053 ;;
9054 *)
9055 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9056 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9057 ;;
9058 esac
9059 ;;
9060
9061interix[3-9]*)
9062 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9064 ;;
9065
9066irix5* | irix6* | nonstopux*)
9067 case $LD in
9068 *-32|*"-32 ") libmagic=32-bit;;
9069 *-n32|*"-n32 ") libmagic=N32;;
9070 *-64|*"-64 ") libmagic=64-bit;;
9071 *) libmagic=never-match;;
9072 esac
9073 lt_cv_deplibs_check_method=pass_all
9074 ;;
9075
9076# This must be Linux ELF.
9077linux* | k*bsd*-gnu)
9078 lt_cv_deplibs_check_method=pass_all
9079 ;;
9080
9081netbsd*)
9082 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9084 else
9085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9086 fi
9087 ;;
9088
9089newos6*)
9090 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9091 lt_cv_file_magic_cmd=/usr/bin/file
9092 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9093 ;;
9094
9095*nto* | *qnx*)
9096 lt_cv_deplibs_check_method=pass_all
9097 ;;
9098
9099openbsd*)
9100 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9102 else
9103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9104 fi
9105 ;;
9106
9107osf3* | osf4* | osf5*)
9108 lt_cv_deplibs_check_method=pass_all
9109 ;;
9110
9111rdos*)
9112 lt_cv_deplibs_check_method=pass_all
9113 ;;
9114
9115solaris*)
9116 lt_cv_deplibs_check_method=pass_all
9117 ;;
9118
9119sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9120 lt_cv_deplibs_check_method=pass_all
9121 ;;
9122
9123sysv4 | sysv4.3*)
9124 case $host_vendor in
9125 motorola)
9126 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]'
9127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9128 ;;
9129 ncr)
9130 lt_cv_deplibs_check_method=pass_all
9131 ;;
9132 sequent)
9133 lt_cv_file_magic_cmd='/bin/file'
9134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9135 ;;
9136 sni)
9137 lt_cv_file_magic_cmd='/bin/file'
9138 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9139 lt_cv_file_magic_test_file=/lib/libc.so
9140 ;;
9141 siemens)
9142 lt_cv_deplibs_check_method=pass_all
9143 ;;
9144 pc)
9145 lt_cv_deplibs_check_method=pass_all
9146 ;;
9147 esac
9148 ;;
9149
9150tpf*)
9151 lt_cv_deplibs_check_method=pass_all
9152 ;;
9153esac
9154
9155fi
9156{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9157$as_echo "$lt_cv_deplibs_check_method" >&6; }
9158file_magic_cmd=$lt_cv_file_magic_cmd
9159deplibs_check_method=$lt_cv_deplibs_check_method
9160test -z "$deplibs_check_method" && deplibs_check_method=unknown
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173if test -n "$ac_tool_prefix"; then
9174 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9175set dummy ${ac_tool_prefix}ar; ac_word=$2
9176{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9177$as_echo_n "checking for $ac_word... " >&6; }
9178if test "${ac_cv_prog_AR+set}" = set; then
9179 $as_echo_n "(cached) " >&6
9180else
9181 if test -n "$AR"; then
9182 ac_cv_prog_AR="$AR" # Let the user override the test.
9183else
9184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185for as_dir in $PATH
9186do
9187 IFS=$as_save_IFS
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9191 ac_cv_prog_AR="${ac_tool_prefix}ar"
9192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9193 break 2
9194 fi
9195done
9196done
9197IFS=$as_save_IFS
9198
9199fi
9200fi
9201AR=$ac_cv_prog_AR
9202if test -n "$AR"; then
9203 { $as_echo "$as_me:$LINENO: result: $AR" >&5
9204$as_echo "$AR" >&6; }
9205else
9206 { $as_echo "$as_me:$LINENO: result: no" >&5
9207$as_echo "no" >&6; }
9208fi
9209
9210
9211fi
9212if test -z "$ac_cv_prog_AR"; then
9213 ac_ct_AR=$AR
9214 # Extract the first word of "ar", so it can be a program name with args.
9215set dummy ar; ac_word=$2
9216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9217$as_echo_n "checking for $ac_word... " >&6; }
9218if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9219 $as_echo_n "(cached) " >&6
9220else
9221 if test -n "$ac_ct_AR"; then
9222 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9223else
9224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225for as_dir in $PATH
9226do
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9231 ac_cv_prog_ac_ct_AR="ar"
9232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9233 break 2
9234 fi
9235done
9236done
9237IFS=$as_save_IFS
9238
9239fi
9240fi
9241ac_ct_AR=$ac_cv_prog_ac_ct_AR
9242if test -n "$ac_ct_AR"; then
9243 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9244$as_echo "$ac_ct_AR" >&6; }
9245else
9246 { $as_echo "$as_me:$LINENO: result: no" >&5
9247$as_echo "no" >&6; }
9248fi
9249
9250 if test "x$ac_ct_AR" = x; then
9251 AR="false"
9252 else
9253 case $cross_compiling:$ac_tool_warned in
9254yes:)
9255{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9257ac_tool_warned=yes ;;
9258esac
9259 AR=$ac_ct_AR
9260 fi
9261else
9262 AR="$ac_cv_prog_AR"
9263fi
9264
9265test -z "$AR" && AR=ar
9266test -z "$AR_FLAGS" && AR_FLAGS=cru
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278if test -n "$ac_tool_prefix"; then
9279 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9280set dummy ${ac_tool_prefix}strip; ac_word=$2
9281{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9282$as_echo_n "checking for $ac_word... " >&6; }
9283if test "${ac_cv_prog_STRIP+set}" = set; then
9284 $as_echo_n "(cached) " >&6
9285else
9286 if test -n "$STRIP"; then
9287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9288else
9289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290for as_dir in $PATH
9291do
9292 IFS=$as_save_IFS
9293 test -z "$as_dir" && as_dir=.
9294 for ac_exec_ext in '' $ac_executable_extensions; do
9295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9296 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9298 break 2
9299 fi
9300done
9301done
9302IFS=$as_save_IFS
9303
9304fi
9305fi
9306STRIP=$ac_cv_prog_STRIP
9307if test -n "$STRIP"; then
9308 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
9309$as_echo "$STRIP" >&6; }
9310else
9311 { $as_echo "$as_me:$LINENO: result: no" >&5
9312$as_echo "no" >&6; }
9313fi
9314
9315
9316fi
9317if test -z "$ac_cv_prog_STRIP"; then
9318 ac_ct_STRIP=$STRIP
9319 # Extract the first word of "strip", so it can be a program name with args.
9320set dummy strip; ac_word=$2
9321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9322$as_echo_n "checking for $ac_word... " >&6; }
9323if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9324 $as_echo_n "(cached) " >&6
9325else
9326 if test -n "$ac_ct_STRIP"; then
9327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9328else
9329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330for as_dir in $PATH
9331do
9332 IFS=$as_save_IFS
9333 test -z "$as_dir" && as_dir=.
9334 for ac_exec_ext in '' $ac_executable_extensions; do
9335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9336 ac_cv_prog_ac_ct_STRIP="strip"
9337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9338 break 2
9339 fi
9340done
9341done
9342IFS=$as_save_IFS
9343
9344fi
9345fi
9346ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9347if test -n "$ac_ct_STRIP"; then
9348 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9349$as_echo "$ac_ct_STRIP" >&6; }
9350else
9351 { $as_echo "$as_me:$LINENO: result: no" >&5
9352$as_echo "no" >&6; }
9353fi
9354
9355 if test "x$ac_ct_STRIP" = x; then
9356 STRIP=":"
9357 else
9358 case $cross_compiling:$ac_tool_warned in
9359yes:)
9360{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9362ac_tool_warned=yes ;;
9363esac
9364 STRIP=$ac_ct_STRIP
9365 fi
9366else
9367 STRIP="$ac_cv_prog_STRIP"
9368fi
9369
9370test -z "$STRIP" && STRIP=:
9371
9372
9373
9374
9375
9376
9377if test -n "$ac_tool_prefix"; then
9378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9379set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9380{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9381$as_echo_n "checking for $ac_word... " >&6; }
9382if test "${ac_cv_prog_RANLIB+set}" = set; then
9383 $as_echo_n "(cached) " >&6
9384else
9385 if test -n "$RANLIB"; then
9386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9387else
9388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389for as_dir in $PATH
9390do
9391 IFS=$as_save_IFS
9392 test -z "$as_dir" && as_dir=.
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 break 2
9398 fi
9399done
9400done
9401IFS=$as_save_IFS
9402
9403fi
9404fi
9405RANLIB=$ac_cv_prog_RANLIB
9406if test -n "$RANLIB"; then
9407 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
9408$as_echo "$RANLIB" >&6; }
9409else
9410 { $as_echo "$as_me:$LINENO: result: no" >&5
9411$as_echo "no" >&6; }
9412fi
9413
9414
9415fi
9416if test -z "$ac_cv_prog_RANLIB"; then
9417 ac_ct_RANLIB=$RANLIB
9418 # Extract the first word of "ranlib", so it can be a program name with args.
9419set dummy ranlib; ac_word=$2
9420{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9421$as_echo_n "checking for $ac_word... " >&6; }
9422if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9423 $as_echo_n "(cached) " >&6
9424else
9425 if test -n "$ac_ct_RANLIB"; then
9426 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9427else
9428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429for as_dir in $PATH
9430do
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435 ac_cv_prog_ac_ct_RANLIB="ranlib"
9436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 break 2
9438 fi
9439done
9440done
9441IFS=$as_save_IFS
9442
9443fi
9444fi
9445ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9446if test -n "$ac_ct_RANLIB"; then
9447 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9448$as_echo "$ac_ct_RANLIB" >&6; }
9449else
9450 { $as_echo "$as_me:$LINENO: result: no" >&5
9451$as_echo "no" >&6; }
9452fi
9453
9454 if test "x$ac_ct_RANLIB" = x; then
9455 RANLIB=":"
9456 else
9457 case $cross_compiling:$ac_tool_warned in
9458yes:)
9459{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9461ac_tool_warned=yes ;;
9462esac
9463 RANLIB=$ac_ct_RANLIB
9464 fi
9465else
9466 RANLIB="$ac_cv_prog_RANLIB"
9467fi
9468
9469test -z "$RANLIB" && RANLIB=:
9470
9471
9472
9473
9474
9475
9476# Determine commands to create old-style static archives.
9477old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9478old_postinstall_cmds='chmod 644 $oldlib'
9479old_postuninstall_cmds=
9480
9481if test -n "$RANLIB"; then
9482 case $host_os in
9483 openbsd*)
9484 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9485 ;;
9486 *)
9487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9488 ;;
9489 esac
9490 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9491fi
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526# If no C compiler was specified, use CC.
9527LTCC=${LTCC-"$CC"}
9528
9529# If no C compiler flags were specified, use CFLAGS.
9530LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9531
9532# Allow CC to be a program name with arguments.
9533compiler=$CC
9534
9535
9536# Check for command to grab the raw symbol name followed by C symbol from nm.
9537{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9538$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9539if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9540 $as_echo_n "(cached) " >&6
9541else
9542
9543# These are sane defaults that work on at least a few old systems.
9544# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9545
9546# Character class describing NM global symbol codes.
9547symcode='[BCDEGRST]'
9548
9549# Regexp to match symbols that can be accessed directly from C.
9550sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9551
9552# Define system-specific variables.
9553case $host_os in
9554aix*)
9555 symcode='[BCDT]'
9556 ;;
9557cygwin* | mingw* | pw32* | cegcc*)
9558 symcode='[ABCDGISTW]'
9559 ;;
9560hpux*)
9561 if test "$host_cpu" = ia64; then
9562 symcode='[ABCDEGRST]'
9563 fi
9564 ;;
9565irix* | nonstopux*)
9566 symcode='[BCDEGRST]'
9567 ;;
9568osf*)
9569 symcode='[BCDEGQRST]'
9570 ;;
9571solaris*)
9572 symcode='[BDRT]'
9573 ;;
9574sco3.2v5*)
9575 symcode='[DT]'
9576 ;;
9577sysv4.2uw2*)
9578 symcode='[DT]'
9579 ;;
9580sysv5* | sco5v6* | unixware* | OpenUNIX*)
9581 symcode='[ABDT]'
9582 ;;
9583sysv4)
9584 symcode='[DFNSTU]'
9585 ;;
9586esac
9587
9588# If we're using GNU nm, then use its standard symbol codes.
9589case `$NM -V 2>&1` in
9590*GNU* | *'with BFD'*)
9591 symcode='[ABCDGIRSTW]' ;;
9592esac
9593
9594# Transform an extracted symbol line into a proper C declaration.
9595# Some systems (esp. on ia64) link data and code symbols differently,
9596# so use this general approach.
9597lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9598
9599# Transform an extracted symbol line into symbol name and symbol address
9600lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9601lt_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'"
9602
9603# Handle CRLF in mingw tool chain
9604opt_cr=
9605case $build_os in
9606mingw*)
9607 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9608 ;;
9609esac
9610
9611# Try without a prefix underscore, then with it.
9612for ac_symprfx in "" "_"; do
9613
9614 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9615 symxfrm="\\1 $ac_symprfx\\2 \\2"
9616
9617 # Write the raw and C identifiers.
9618 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9619 # Fake it for dumpbin and say T for any non-static function
9620 # and D for any global variable.
9621 # Also find C++ and __fastcall symbols from MSVC++,
9622 # which start with @ or ?.
9623 lt_cv_sys_global_symbol_pipe="$AWK '"\
9624" {last_section=section; section=\$ 3};"\
9625" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9626" \$ 0!~/External *\|/{next};"\
9627" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9628" {if(hide[section]) next};"\
9629" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9630" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9631" s[1]~/^[@?]/{print s[1], s[1]; next};"\
9632" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9633" ' prfx=^$ac_symprfx"
9634 else
9635 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9636 fi
9637
9638 # Check to see that the pipe works correctly.
9639 pipe_works=no
9640
9641 rm -f conftest*
9642 cat > conftest.$ac_ext <<_LT_EOF
9643#ifdef __cplusplus
9644extern "C" {
9645#endif
9646char nm_test_var;
9647void nm_test_func(void);
9648void nm_test_func(void){}
9649#ifdef __cplusplus
9650}
9651#endif
9652int main(){nm_test_var='a';nm_test_func();return(0);}
9653_LT_EOF
9654
9655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656 (eval $ac_compile) 2>&5
9657 ac_status=$?
9658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; then
9660 # Now try to grab the symbols.
9661 nlist=conftest.nm
9662 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9663 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9664 ac_status=$?
9665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && test -s "$nlist"; then
9667 # Try sorting and uniquifying the output.
9668 if sort "$nlist" | uniq > "$nlist"T; then
9669 mv -f "$nlist"T "$nlist"
9670 else
9671 rm -f "$nlist"T
9672 fi
9673
9674 # Make sure that we snagged all the symbols we need.
9675 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9676 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9677 cat <<_LT_EOF > conftest.$ac_ext
9678#ifdef __cplusplus
9679extern "C" {
9680#endif
9681
9682_LT_EOF
9683 # Now generate the symbol file.
9684 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9685
9686 cat <<_LT_EOF >> conftest.$ac_ext
9687
9688/* The mapping between symbol names and symbols. */
9689const struct {
9690 const char *name;
9691 void *address;
9692}
9693lt__PROGRAM__LTX_preloaded_symbols[] =
9694{
9695 { "@PROGRAM@", (void *) 0 },
9696_LT_EOF
9697 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9698 cat <<\_LT_EOF >> conftest.$ac_ext
9699 {0, (void *) 0}
9700};
9701
9702/* This works around a problem in FreeBSD linker */
9703#ifdef FREEBSD_WORKAROUND
9704static const void *lt_preloaded_setup() {
9705 return lt__PROGRAM__LTX_preloaded_symbols;
9706}
9707#endif
9708
9709#ifdef __cplusplus
9710}
9711#endif
9712_LT_EOF
9713 # Now try linking the two files.
9714 mv conftest.$ac_objext conftstm.$ac_objext
9715 lt_save_LIBS="$LIBS"
9716 lt_save_CFLAGS="$CFLAGS"
9717 LIBS="conftstm.$ac_objext"
9718 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>&5
9721 ac_status=$?
9722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9724 pipe_works=yes
9725 fi
9726 LIBS="$lt_save_LIBS"
9727 CFLAGS="$lt_save_CFLAGS"
9728 else
9729 echo "cannot find nm_test_func in $nlist" >&5
9730 fi
9731 else
9732 echo "cannot find nm_test_var in $nlist" >&5
9733 fi
9734 else
9735 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9736 fi
9737 else
9738 echo "$progname: failed program was:" >&5
9739 cat conftest.$ac_ext >&5
9740 fi
9741 rm -rf conftest* conftst*
9742
9743 # Do not use the global_symbol_pipe unless it works.
9744 if test "$pipe_works" = yes; then
9745 break
9746 else
9747 lt_cv_sys_global_symbol_pipe=
9748 fi
9749done
9750
9751fi
9752
9753if test -z "$lt_cv_sys_global_symbol_pipe"; then
9754 lt_cv_sys_global_symbol_to_cdecl=
9755fi
9756if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9757 { $as_echo "$as_me:$LINENO: result: failed" >&5
9758$as_echo "failed" >&6; }
9759else
9760 { $as_echo "$as_me:$LINENO: result: ok" >&5
9761$as_echo "ok" >&6; }
9762fi
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785# Check whether --enable-libtool-lock was given.
9786if test "${enable_libtool_lock+set}" = set; then
9787 enableval=$enable_libtool_lock;
9788fi
9789
9790test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9791
9792# Some flags need to be propagated to the compiler or linker for good
9793# libtool support.
9794case $host in
9795ia64-*-hpux*)
9796 # Find out which ABI we are using.
9797 echo 'int i;' > conftest.$ac_ext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9799 (eval $ac_compile) 2>&5
9800 ac_status=$?
9801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; then
9803 case `/usr/bin/file conftest.$ac_objext` in
9804 *ELF-32*)
9805 HPUX_IA64_MODE="32"
9806 ;;
9807 *ELF-64*)
9808 HPUX_IA64_MODE="64"
9809 ;;
9810 esac
9811 fi
9812 rm -rf conftest*
9813 ;;
9814*-*-irix6*)
9815 # Find out which ABI we are using.
9816 echo '#line 9816 "configure"' > conftest.$ac_ext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>&5
9819 ac_status=$?
9820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; then
9822 if test "$lt_cv_prog_gnu_ld" = yes; then
9823 case `/usr/bin/file conftest.$ac_objext` in
9824 *32-bit*)
9825 LD="${LD-ld} -melf32bsmip"
9826 ;;
9827 *N32*)
9828 LD="${LD-ld} -melf32bmipn32"
9829 ;;
9830 *64-bit*)
9831 LD="${LD-ld} -melf64bmip"
9832 ;;
9833 esac
9834 else
9835 case `/usr/bin/file conftest.$ac_objext` in
9836 *32-bit*)
9837 LD="${LD-ld} -32"
9838 ;;
9839 *N32*)
9840 LD="${LD-ld} -n32"
9841 ;;
9842 *64-bit*)
9843 LD="${LD-ld} -64"
9844 ;;
9845 esac
9846 fi
9847 fi
9848 rm -rf conftest*
9849 ;;
9850
9851x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9852s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9853 # Find out which ABI we are using.
9854 echo 'int i;' > conftest.$ac_ext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9856 (eval $ac_compile) 2>&5
9857 ac_status=$?
9858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; then
9860 case `/usr/bin/file conftest.o` in
9861 *32-bit*)
9862 case $host in
9863 x86_64-*kfreebsd*-gnu)
9864 LD="${LD-ld} -m elf_i386_fbsd"
9865 ;;
9866 x86_64-*linux*)
9867 LD="${LD-ld} -m elf_i386"
9868 ;;
9869 ppc64-*linux*|powerpc64-*linux*)
9870 LD="${LD-ld} -m elf32ppclinux"
9871 ;;
9872 s390x-*linux*)
9873 LD="${LD-ld} -m elf_s390"
9874 ;;
9875 sparc64-*linux*)
9876 LD="${LD-ld} -m elf32_sparc"
9877 ;;
9878 esac
9879 ;;
9880 *64-bit*)
9881 case $host in
9882 x86_64-*kfreebsd*-gnu)
9883 LD="${LD-ld} -m elf_x86_64_fbsd"
9884 ;;
9885 x86_64-*linux*)
9886 LD="${LD-ld} -m elf_x86_64"
9887 ;;
9888 ppc*-*linux*|powerpc*-*linux*)
9889 LD="${LD-ld} -m elf64ppc"
9890 ;;
9891 s390*-*linux*|s390*-*tpf*)
9892 LD="${LD-ld} -m elf64_s390"
9893 ;;
9894 sparc*-*linux*)
9895 LD="${LD-ld} -m elf64_sparc"
9896 ;;
9897 esac
9898 ;;
9899 esac
9900 fi
9901 rm -rf conftest*
9902 ;;
9903
9904*-*-sco3.2v5*)
9905 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9906 SAVE_CFLAGS="$CFLAGS"
9907 CFLAGS="$CFLAGS -belf"
9908 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
9909$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9910if test "${lt_cv_cc_needs_belf+set}" = set; then
9911 $as_echo_n "(cached) " >&6
9912else
9913 ac_ext=c
9914ac_cpp='$CPP $CPPFLAGS'
9915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9917ac_compiler_gnu=$ac_cv_c_compiler_gnu
9918
9919 cat >conftest.$ac_ext <<_ACEOF
9920/* confdefs.h. */
9921_ACEOF
9922cat confdefs.h >>conftest.$ac_ext
9923cat >>conftest.$ac_ext <<_ACEOF
9924/* end confdefs.h. */
9925
9926int
9927main ()
9928{
9929
9930 ;
9931 return 0;
9932}
9933_ACEOF
9934rm -f conftest.$ac_objext conftest$ac_exeext
9935if { (ac_try="$ac_link"
9936case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9939esac
9940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9941$as_echo "$ac_try_echo") >&5
9942 (eval "$ac_link") 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } && {
9949 test -z "$ac_c_werror_flag" ||
9950 test ! -s conftest.err
9951 } && test -s conftest$ac_exeext && {
9952 test "$cross_compiling" = yes ||
9953 $as_test_x conftest$ac_exeext
9954 }; then
9955 lt_cv_cc_needs_belf=yes
9956else
9957 $as_echo "$as_me: failed program was:" >&5
9958sed 's/^/| /' conftest.$ac_ext >&5
9959
9960 lt_cv_cc_needs_belf=no
9961fi
9962
9963rm -rf conftest.dSYM
9964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965 conftest$ac_exeext conftest.$ac_ext
9966 ac_ext=c
9967ac_cpp='$CPP $CPPFLAGS'
9968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9970ac_compiler_gnu=$ac_cv_c_compiler_gnu
9971
9972fi
9973{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9974$as_echo "$lt_cv_cc_needs_belf" >&6; }
9975 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9976 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9977 CFLAGS="$SAVE_CFLAGS"
9978 fi
9979 ;;
9980sparc*-*solaris*)
9981 # Find out which ABI we are using.
9982 echo 'int i;' > conftest.$ac_ext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9984 (eval $ac_compile) 2>&5
9985 ac_status=$?
9986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; then
9988 case `/usr/bin/file conftest.o` in
9989 *64-bit*)
9990 case $lt_cv_prog_gnu_ld in
9991 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9992 *)
9993 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9994 LD="${LD-ld} -64"
9995 fi
9996 ;;
9997 esac
9998 ;;
9999 esac
10000 fi
10001 rm -rf conftest*
10002 ;;
10003esac
10004
10005need_locks="$enable_libtool_lock"
10006
10007
10008 case $host_os in
10009 rhapsody* | darwin*)
10010 if test -n "$ac_tool_prefix"; then
10011 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10012set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10013{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10014$as_echo_n "checking for $ac_word... " >&6; }
10015if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10016 $as_echo_n "(cached) " >&6
10017else
10018 if test -n "$DSYMUTIL"; then
10019 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10020else
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10028 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10029 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10031 fi
10032done
10033done
10034IFS=$as_save_IFS
10035
10036fi
10037fi
10038DSYMUTIL=$ac_cv_prog_DSYMUTIL
10039if test -n "$DSYMUTIL"; then
10040 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10041$as_echo "$DSYMUTIL" >&6; }
10042else
10043 { $as_echo "$as_me:$LINENO: result: no" >&5
10044$as_echo "no" >&6; }
10045fi
10046
10047
10048fi
10049if test -z "$ac_cv_prog_DSYMUTIL"; then
10050 ac_ct_DSYMUTIL=$DSYMUTIL
10051 # Extract the first word of "dsymutil", so it can be a program name with args.
10052set dummy dsymutil; ac_word=$2
10053{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10054$as_echo_n "checking for $ac_word... " >&6; }
10055if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10056 $as_echo_n "(cached) " >&6
10057else
10058 if test -n "$ac_ct_DSYMUTIL"; then
10059 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10060else
10061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062for as_dir in $PATH
10063do
10064 IFS=$as_save_IFS
10065 test -z "$as_dir" && as_dir=.
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10068 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 break 2
10071 fi
10072done
10073done
10074IFS=$as_save_IFS
10075
10076fi
10077fi
10078ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10079if test -n "$ac_ct_DSYMUTIL"; then
10080 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10081$as_echo "$ac_ct_DSYMUTIL" >&6; }
10082else
10083 { $as_echo "$as_me:$LINENO: result: no" >&5
10084$as_echo "no" >&6; }
10085fi
10086
10087 if test "x$ac_ct_DSYMUTIL" = x; then
10088 DSYMUTIL=":"
10089 else
10090 case $cross_compiling:$ac_tool_warned in
10091yes:)
10092{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10094ac_tool_warned=yes ;;
10095esac
10096 DSYMUTIL=$ac_ct_DSYMUTIL
10097 fi
10098else
10099 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10100fi
10101
10102 if test -n "$ac_tool_prefix"; then
10103 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10104set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10105{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10106$as_echo_n "checking for $ac_word... " >&6; }
10107if test "${ac_cv_prog_NMEDIT+set}" = set; then
10108 $as_echo_n "(cached) " >&6
10109else
10110 if test -n "$NMEDIT"; then
10111 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10112else
10113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114for as_dir in $PATH
10115do
10116 IFS=$as_save_IFS
10117 test -z "$as_dir" && as_dir=.
10118 for ac_exec_ext in '' $ac_executable_extensions; do
10119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10120 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10122 break 2
10123 fi
10124done
10125done
10126IFS=$as_save_IFS
10127
10128fi
10129fi
10130NMEDIT=$ac_cv_prog_NMEDIT
10131if test -n "$NMEDIT"; then
10132 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
10133$as_echo "$NMEDIT" >&6; }
10134else
10135 { $as_echo "$as_me:$LINENO: result: no" >&5
10136$as_echo "no" >&6; }
10137fi
10138
10139
10140fi
10141if test -z "$ac_cv_prog_NMEDIT"; then
10142 ac_ct_NMEDIT=$NMEDIT
10143 # Extract the first word of "nmedit", so it can be a program name with args.
10144set dummy nmedit; ac_word=$2
10145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10146$as_echo_n "checking for $ac_word... " >&6; }
10147if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10148 $as_echo_n "(cached) " >&6
10149else
10150 if test -n "$ac_ct_NMEDIT"; then
10151 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10152else
10153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10154for as_dir in $PATH
10155do
10156 IFS=$as_save_IFS
10157 test -z "$as_dir" && as_dir=.
10158 for ac_exec_ext in '' $ac_executable_extensions; do
10159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10160 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10162 break 2
10163 fi
10164done
10165done
10166IFS=$as_save_IFS
10167
10168fi
10169fi
10170ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10171if test -n "$ac_ct_NMEDIT"; then
10172 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10173$as_echo "$ac_ct_NMEDIT" >&6; }
10174else
10175 { $as_echo "$as_me:$LINENO: result: no" >&5
10176$as_echo "no" >&6; }
10177fi
10178
10179 if test "x$ac_ct_NMEDIT" = x; then
10180 NMEDIT=":"
10181 else
10182 case $cross_compiling:$ac_tool_warned in
10183yes:)
10184{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10186ac_tool_warned=yes ;;
10187esac
10188 NMEDIT=$ac_ct_NMEDIT
10189 fi
10190else
10191 NMEDIT="$ac_cv_prog_NMEDIT"
10192fi
10193
10194 if test -n "$ac_tool_prefix"; then
10195 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10196set dummy ${ac_tool_prefix}lipo; ac_word=$2
10197{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10198$as_echo_n "checking for $ac_word... " >&6; }
10199if test "${ac_cv_prog_LIPO+set}" = set; then
10200 $as_echo_n "(cached) " >&6
10201else
10202 if test -n "$LIPO"; then
10203 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10204else
10205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206for as_dir in $PATH
10207do
10208 IFS=$as_save_IFS
10209 test -z "$as_dir" && as_dir=.
10210 for ac_exec_ext in '' $ac_executable_extensions; do
10211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10212 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10214 break 2
10215 fi
10216done
10217done
10218IFS=$as_save_IFS
10219
10220fi
10221fi
10222LIPO=$ac_cv_prog_LIPO
10223if test -n "$LIPO"; then
10224 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
10225$as_echo "$LIPO" >&6; }
10226else
10227 { $as_echo "$as_me:$LINENO: result: no" >&5
10228$as_echo "no" >&6; }
10229fi
10230
10231
10232fi
10233if test -z "$ac_cv_prog_LIPO"; then
10234 ac_ct_LIPO=$LIPO
10235 # Extract the first word of "lipo", so it can be a program name with args.
10236set dummy lipo; ac_word=$2
10237{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10238$as_echo_n "checking for $ac_word... " >&6; }
10239if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
10240 $as_echo_n "(cached) " >&6
10241else
10242 if test -n "$ac_ct_LIPO"; then
10243 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10244else
10245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10246for as_dir in $PATH
10247do
10248 IFS=$as_save_IFS
10249 test -z "$as_dir" && as_dir=.
10250 for ac_exec_ext in '' $ac_executable_extensions; do
10251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10252 ac_cv_prog_ac_ct_LIPO="lipo"
10253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10254 break 2
10255 fi
10256done
10257done
10258IFS=$as_save_IFS
10259
10260fi
10261fi
10262ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10263if test -n "$ac_ct_LIPO"; then
10264 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
10265$as_echo "$ac_ct_LIPO" >&6; }
10266else
10267 { $as_echo "$as_me:$LINENO: result: no" >&5
10268$as_echo "no" >&6; }
10269fi
10270
10271 if test "x$ac_ct_LIPO" = x; then
10272 LIPO=":"
10273 else
10274 case $cross_compiling:$ac_tool_warned in
10275yes:)
10276{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10278ac_tool_warned=yes ;;
10279esac
10280 LIPO=$ac_ct_LIPO
10281 fi
10282else
10283 LIPO="$ac_cv_prog_LIPO"
10284fi
10285
10286 if test -n "$ac_tool_prefix"; then
10287 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10288set dummy ${ac_tool_prefix}otool; ac_word=$2
10289{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10290$as_echo_n "checking for $ac_word... " >&6; }
10291if test "${ac_cv_prog_OTOOL+set}" = set; then
10292 $as_echo_n "(cached) " >&6
10293else
10294 if test -n "$OTOOL"; then
10295 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10296else
10297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298for as_dir in $PATH
10299do
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10304 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 break 2
10307 fi
10308done
10309done
10310IFS=$as_save_IFS
10311
10312fi
10313fi
10314OTOOL=$ac_cv_prog_OTOOL
10315if test -n "$OTOOL"; then
10316 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
10317$as_echo "$OTOOL" >&6; }
10318else
10319 { $as_echo "$as_me:$LINENO: result: no" >&5
10320$as_echo "no" >&6; }
10321fi
10322
10323
10324fi
10325if test -z "$ac_cv_prog_OTOOL"; then
10326 ac_ct_OTOOL=$OTOOL
10327 # Extract the first word of "otool", so it can be a program name with args.
10328set dummy otool; ac_word=$2
10329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10330$as_echo_n "checking for $ac_word... " >&6; }
10331if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
10332 $as_echo_n "(cached) " >&6
10333else
10334 if test -n "$ac_ct_OTOOL"; then
10335 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10336else
10337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338for as_dir in $PATH
10339do
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10344 ac_cv_prog_ac_ct_OTOOL="otool"
10345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 break 2
10347 fi
10348done
10349done
10350IFS=$as_save_IFS
10351
10352fi
10353fi
10354ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10355if test -n "$ac_ct_OTOOL"; then
10356 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
10357$as_echo "$ac_ct_OTOOL" >&6; }
10358else
10359 { $as_echo "$as_me:$LINENO: result: no" >&5
10360$as_echo "no" >&6; }
10361fi
10362
10363 if test "x$ac_ct_OTOOL" = x; then
10364 OTOOL=":"
10365 else
10366 case $cross_compiling:$ac_tool_warned in
10367yes:)
10368{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10370ac_tool_warned=yes ;;
10371esac
10372 OTOOL=$ac_ct_OTOOL
10373 fi
10374else
10375 OTOOL="$ac_cv_prog_OTOOL"
10376fi
10377
10378 if test -n "$ac_tool_prefix"; then
10379 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10380set dummy ${ac_tool_prefix}otool64; ac_word=$2
10381{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10382$as_echo_n "checking for $ac_word... " >&6; }
10383if test "${ac_cv_prog_OTOOL64+set}" = set; then
10384 $as_echo_n "(cached) " >&6
10385else
10386 if test -n "$OTOOL64"; then
10387 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10388else
10389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390for as_dir in $PATH
10391do
10392 IFS=$as_save_IFS
10393 test -z "$as_dir" && as_dir=.
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10396 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 break 2
10399 fi
10400done
10401done
10402IFS=$as_save_IFS
10403
10404fi
10405fi
10406OTOOL64=$ac_cv_prog_OTOOL64
10407if test -n "$OTOOL64"; then
10408 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
10409$as_echo "$OTOOL64" >&6; }
10410else
10411 { $as_echo "$as_me:$LINENO: result: no" >&5
10412$as_echo "no" >&6; }
10413fi
10414
10415
10416fi
10417if test -z "$ac_cv_prog_OTOOL64"; then
10418 ac_ct_OTOOL64=$OTOOL64
10419 # Extract the first word of "otool64", so it can be a program name with args.
10420set dummy otool64; ac_word=$2
10421{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10422$as_echo_n "checking for $ac_word... " >&6; }
10423if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
10424 $as_echo_n "(cached) " >&6
10425else
10426 if test -n "$ac_ct_OTOOL64"; then
10427 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10428else
10429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430for as_dir in $PATH
10431do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10436 ac_cv_prog_ac_ct_OTOOL64="otool64"
10437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 break 2
10439 fi
10440done
10441done
10442IFS=$as_save_IFS
10443
10444fi
10445fi
10446ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10447if test -n "$ac_ct_OTOOL64"; then
10448 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
10449$as_echo "$ac_ct_OTOOL64" >&6; }
10450else
10451 { $as_echo "$as_me:$LINENO: result: no" >&5
10452$as_echo "no" >&6; }
10453fi
10454
10455 if test "x$ac_ct_OTOOL64" = x; then
10456 OTOOL64=":"
10457 else
10458 case $cross_compiling:$ac_tool_warned in
10459yes:)
10460{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10462ac_tool_warned=yes ;;
10463esac
10464 OTOOL64=$ac_ct_OTOOL64
10465 fi
10466else
10467 OTOOL64="$ac_cv_prog_OTOOL64"
10468fi
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
10497$as_echo_n "checking for -single_module linker flag... " >&6; }
10498if test "${lt_cv_apple_cc_single_mod+set}" = set; then
10499 $as_echo_n "(cached) " >&6
10500else
10501 lt_cv_apple_cc_single_mod=no
10502 if test -z "${LT_MULTI_MODULE}"; then
10503 # By default we will add the -single_module flag. You can override
10504 # by either setting the environment variable LT_MULTI_MODULE
10505 # non-empty at configure time, or by adding -multi_module to the
10506 # link flags.
10507 rm -rf libconftest.dylib*
10508 echo "int foo(void){return 1;}" > conftest.c
10509 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10510-dynamiclib -Wl,-single_module conftest.c" >&5
10511 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10512 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10513 _lt_result=$?
10514 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10515 lt_cv_apple_cc_single_mod=yes
10516 else
10517 cat conftest.err >&5
10518 fi
10519 rm -rf libconftest.dylib*
10520 rm -f conftest.*
10521 fi
10522fi
10523{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
10524$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10525 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
10526$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10527if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
10528 $as_echo_n "(cached) " >&6
10529else
10530 lt_cv_ld_exported_symbols_list=no
10531 save_LDFLAGS=$LDFLAGS
10532 echo "_main" > conftest.sym
10533 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10534 cat >conftest.$ac_ext <<_ACEOF
10535/* confdefs.h. */
10536_ACEOF
10537cat confdefs.h >>conftest.$ac_ext
10538cat >>conftest.$ac_ext <<_ACEOF
10539/* end confdefs.h. */
10540
10541int
10542main ()
10543{
10544
10545 ;
10546 return 0;
10547}
10548_ACEOF
10549rm -f conftest.$ac_objext conftest$ac_exeext
10550if { (ac_try="$ac_link"
10551case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10554esac
10555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10556$as_echo "$ac_try_echo") >&5
10557 (eval "$ac_link") 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } && {
10564 test -z "$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10566 } && test -s conftest$ac_exeext && {
10567 test "$cross_compiling" = yes ||
10568 $as_test_x conftest$ac_exeext
10569 }; then
10570 lt_cv_ld_exported_symbols_list=yes
10571else
10572 $as_echo "$as_me: failed program was:" >&5
10573sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 lt_cv_ld_exported_symbols_list=no
10576fi
10577
10578rm -rf conftest.dSYM
10579rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LDFLAGS="$save_LDFLAGS"
10582
10583fi
10584{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
10585$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10586 case $host_os in
10587 rhapsody* | darwin1.[012])
10588 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10589 darwin1.*)
10590 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10591 darwin*) # darwin 5.x on
10592 # if running on 10.5 or later, the deployment target defaults
10593 # to the OS version, if on x86, and 10.4, the deployment
10594 # target defaults to 10.4. Don't you love it?
10595 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10596 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10597 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10598 10.[012]*)
10599 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10600 10.*)
10601 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10602 esac
10603 ;;
10604 esac
10605 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10606 _lt_dar_single_mod='$single_module'
10607 fi
10608 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10609 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10610 else
10611 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10612 fi
10613 if test "$DSYMUTIL" != ":"; then
10614 _lt_dsymutil='~$DSYMUTIL $lib || :'
10615 else
10616 _lt_dsymutil=
10617 fi
10618 ;;
10619 esac
10620
10621
10622for ac_header in dlfcn.h
10623do
10624as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10625{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10626$as_echo_n "checking for $ac_header... " >&6; }
10627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10628 $as_echo_n "(cached) " >&6
10629else
10630 cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h. */
10636$ac_includes_default
10637
10638#include <$ac_header>
10639_ACEOF
10640rm -f conftest.$ac_objext
10641if { (ac_try="$ac_compile"
10642case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10645esac
10646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10647$as_echo "$ac_try_echo") >&5
10648 (eval "$ac_compile") 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && {
10655 test -z "$ac_c_werror_flag" ||
10656 test ! -s conftest.err
10657 } && test -s conftest.$ac_objext; then
10658 eval "$as_ac_Header=yes"
10659else
10660 $as_echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
10663 eval "$as_ac_Header=no"
10664fi
10665
10666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667fi
10668ac_res=`eval 'as_val=${'$as_ac_Header'}
10669 $as_echo "$as_val"'`
10670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10671$as_echo "$ac_res" >&6; }
10672as_val=`eval 'as_val=${'$as_ac_Header'}
10673 $as_echo "$as_val"'`
10674 if test "x$as_val" = x""yes; then
10675 cat >>confdefs.h <<_ACEOF
10676#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10677_ACEOF
10678
10679fi
10680
10681done
10682
10683
10684
10685ac_ext=cpp
10686ac_cpp='$CXXCPP $CPPFLAGS'
10687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10690if test -z "$CXX"; then
10691 if test -n "$CCC"; then
10692 CXX=$CCC
10693 else
10694 if test -n "$ac_tool_prefix"; then
10695 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10696 do
10697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10698set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10699{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10700$as_echo_n "checking for $ac_word... " >&6; }
10701if test "${ac_cv_prog_CXX+set}" = set; then
10702 $as_echo_n "(cached) " >&6
10703else
10704 if test -n "$CXX"; then
10705 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10706else
10707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708for as_dir in $PATH
10709do
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10714 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10717 fi
10718done
10719done
10720IFS=$as_save_IFS
10721
10722fi
10723fi
10724CXX=$ac_cv_prog_CXX
10725if test -n "$CXX"; then
10726 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
10727$as_echo "$CXX" >&6; }
10728else
10729 { $as_echo "$as_me:$LINENO: result: no" >&5
10730$as_echo "no" >&6; }
10731fi
10732
10733
10734 test -n "$CXX" && break
10735 done
10736fi
10737if test -z "$CXX"; then
10738 ac_ct_CXX=$CXX
10739 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10740do
10741 # Extract the first word of "$ac_prog", so it can be a program name with args.
10742set dummy $ac_prog; ac_word=$2
10743{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10744$as_echo_n "checking for $ac_word... " >&6; }
10745if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10746 $as_echo_n "(cached) " >&6
10747else
10748 if test -n "$ac_ct_CXX"; then
10749 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10750else
10751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752for as_dir in $PATH
10753do
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10758 ac_cv_prog_ac_ct_CXX="$ac_prog"
10759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 break 2
10761 fi
10762done
10763done
10764IFS=$as_save_IFS
10765
10766fi
10767fi
10768ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10769if test -n "$ac_ct_CXX"; then
10770 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10771$as_echo "$ac_ct_CXX" >&6; }
10772else
10773 { $as_echo "$as_me:$LINENO: result: no" >&5
10774$as_echo "no" >&6; }
10775fi
10776
10777
10778 test -n "$ac_ct_CXX" && break
10779done
10780
10781 if test "x$ac_ct_CXX" = x; then
10782 CXX="g++"
10783 else
10784 case $cross_compiling:$ac_tool_warned in
10785yes:)
10786{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10788ac_tool_warned=yes ;;
10789esac
10790 CXX=$ac_ct_CXX
10791 fi
10792fi
10793
10794 fi
10795fi
10796# Provide some information about the compiler.
10797$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
10798set X $ac_compile
10799ac_compiler=$2
10800{ (ac_try="$ac_compiler --version >&5"
10801case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804esac
10805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10806$as_echo "$ac_try_echo") >&5
10807 (eval "$ac_compiler --version >&5") 2>&5
10808 ac_status=$?
10809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }
10811{ (ac_try="$ac_compiler -v >&5"
10812case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815esac
10816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10817$as_echo "$ac_try_echo") >&5
10818 (eval "$ac_compiler -v >&5") 2>&5
10819 ac_status=$?
10820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }
10822{ (ac_try="$ac_compiler -V >&5"
10823case "(($ac_try" in
10824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825 *) ac_try_echo=$ac_try;;
10826esac
10827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10828$as_echo "$ac_try_echo") >&5
10829 (eval "$ac_compiler -V >&5") 2>&5
10830 ac_status=$?
10831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }
10833
10834{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10835$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10836if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10837 $as_echo_n "(cached) " >&6
10838else
10839 cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h. */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h. */
10845
10846int
10847main ()
10848{
10849#ifndef __GNUC__
10850 choke me
10851#endif
10852
10853 ;
10854 return 0;
10855}
10856_ACEOF
10857rm -f conftest.$ac_objext
10858if { (ac_try="$ac_compile"
10859case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862esac
10863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10864$as_echo "$ac_try_echo") >&5
10865 (eval "$ac_compile") 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && {
10872 test -z "$ac_cxx_werror_flag" ||
10873 test ! -s conftest.err
10874 } && test -s conftest.$ac_objext; then
10875 ac_compiler_gnu=yes
10876else
10877 $as_echo "$as_me: failed program was:" >&5
10878sed 's/^/| /' conftest.$ac_ext >&5
10879
10880 ac_compiler_gnu=no
10881fi
10882
10883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10884ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10885
10886fi
10887{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10888$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10889if test $ac_compiler_gnu = yes; then
10890 GXX=yes
10891else
10892 GXX=
10893fi
10894ac_test_CXXFLAGS=${CXXFLAGS+set}
10895ac_save_CXXFLAGS=$CXXFLAGS
10896{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10897$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10898if test "${ac_cv_prog_cxx_g+set}" = set; then
10899 $as_echo_n "(cached) " >&6
10900else
10901 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10902 ac_cxx_werror_flag=yes
10903 ac_cv_prog_cxx_g=no
10904 CXXFLAGS="-g"
10905 cat >conftest.$ac_ext <<_ACEOF
10906/* confdefs.h. */
10907_ACEOF
10908cat confdefs.h >>conftest.$ac_ext
10909cat >>conftest.$ac_ext <<_ACEOF
10910/* end confdefs.h. */
10911
10912int
10913main ()
10914{
10915
10916 ;
10917 return 0;
10918}
10919_ACEOF
10920rm -f conftest.$ac_objext
10921if { (ac_try="$ac_compile"
10922case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925esac
10926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10927$as_echo "$ac_try_echo") >&5
10928 (eval "$ac_compile") 2>conftest.er1
10929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } && {
10935 test -z "$ac_cxx_werror_flag" ||
10936 test ! -s conftest.err
10937 } && test -s conftest.$ac_objext; then
10938 ac_cv_prog_cxx_g=yes
10939else
10940 $as_echo "$as_me: failed program was:" >&5
10941sed 's/^/| /' conftest.$ac_ext >&5
10942
10943 CXXFLAGS=""
10944 cat >conftest.$ac_ext <<_ACEOF
10945/* confdefs.h. */
10946_ACEOF
10947cat confdefs.h >>conftest.$ac_ext
10948cat >>conftest.$ac_ext <<_ACEOF
10949/* end confdefs.h. */
10950
10951int
10952main ()
10953{
10954
10955 ;
10956 return 0;
10957}
10958_ACEOF
10959rm -f conftest.$ac_objext
10960if { (ac_try="$ac_compile"
10961case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964esac
10965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10966$as_echo "$ac_try_echo") >&5
10967 (eval "$ac_compile") 2>conftest.er1
10968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } && {
10974 test -z "$ac_cxx_werror_flag" ||
10975 test ! -s conftest.err
10976 } && test -s conftest.$ac_objext; then
10977 :
10978else
10979 $as_echo "$as_me: failed program was:" >&5
10980sed 's/^/| /' conftest.$ac_ext >&5
10981
10982 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10983 CXXFLAGS="-g"
10984 cat >conftest.$ac_ext <<_ACEOF
10985/* confdefs.h. */
10986_ACEOF
10987cat confdefs.h >>conftest.$ac_ext
10988cat >>conftest.$ac_ext <<_ACEOF
10989/* end confdefs.h. */
10990
10991int
10992main ()
10993{
10994
10995 ;
10996 return 0;
10997}
10998_ACEOF
10999rm -f conftest.$ac_objext
11000if { (ac_try="$ac_compile"
11001case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004esac
11005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11006$as_echo "$ac_try_echo") >&5
11007 (eval "$ac_compile") 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } && {
11014 test -z "$ac_cxx_werror_flag" ||
11015 test ! -s conftest.err
11016 } && test -s conftest.$ac_objext; then
11017 ac_cv_prog_cxx_g=yes
11018else
11019 $as_echo "$as_me: failed program was:" >&5
11020sed 's/^/| /' conftest.$ac_ext >&5
11021
11022
11023fi
11024
11025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11026fi
11027
11028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029fi
11030
11031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11032 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11033fi
11034{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11035$as_echo "$ac_cv_prog_cxx_g" >&6; }
11036if test "$ac_test_CXXFLAGS" = set; then
11037 CXXFLAGS=$ac_save_CXXFLAGS
11038elif test $ac_cv_prog_cxx_g = yes; then
11039 if test "$GXX" = yes; then
11040 CXXFLAGS="-g -O2"
11041 else
11042 CXXFLAGS="-g"
11043 fi
11044else
11045 if test "$GXX" = yes; then
11046 CXXFLAGS="-O2"
11047 else
11048 CXXFLAGS=
11049 fi
11050fi
11051ac_ext=c
11052ac_cpp='$CPP $CPPFLAGS'
11053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11055ac_compiler_gnu=$ac_cv_c_compiler_gnu
11056
11057depcc="$CXX" am_compiler_list=
11058
11059{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11060$as_echo_n "checking dependency style of $depcc... " >&6; }
11061if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11062 $as_echo_n "(cached) " >&6
11063else
11064 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11065 # We make a subdir and do the tests there. Otherwise we can end up
11066 # making bogus files that we don't know about and never remove. For
11067 # instance it was reported that on HP-UX the gcc test will end up
11068 # making a dummy file named `D' -- because `-MD' means `put the output
11069 # in D'.
11070 mkdir conftest.dir
11071 # Copy depcomp to subdir because otherwise we won't find it if we're
11072 # using a relative directory.
11073 cp "$am_depcomp" conftest.dir
11074 cd conftest.dir
11075 # We will build objects and dependencies in a subdirectory because
11076 # it helps to detect inapplicable dependency modes. For instance
11077 # both Tru64's cc and ICC support -MD to output dependencies as a
11078 # side effect of compilation, but ICC will put the dependencies in
11079 # the current directory while Tru64 will put them in the object
11080 # directory.
11081 mkdir sub
11082
11083 am_cv_CXX_dependencies_compiler_type=none
11084 if test "$am_compiler_list" = ""; then
11085 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11086 fi
11087 am__universal=false
11088 case " $depcc " in #(
11089 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11090 esac
11091
11092 for depmode in $am_compiler_list; do
11093 # Setup a source with many dependencies, because some compilers
11094 # like to wrap large dependency lists on column 80 (with \), and
11095 # we should not choose a depcomp mode which is confused by this.
11096 #
11097 # We need to recreate these files for each test, as the compiler may
11098 # overwrite some of them when testing with obscure command lines.
11099 # This happens at least with the AIX C compiler.
11100 : > sub/conftest.c
11101 for i in 1 2 3 4 5 6; do
11102 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11103 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11104 # Solaris 8's {/usr,}/bin/sh.
11105 touch sub/conftst$i.h
11106 done
11107 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11108
11109 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11110 # mode. It turns out that the SunPro C++ compiler does not properly
11111 # handle `-M -o', and we need to detect this. Also, some Intel
11112 # versions had trouble with output in subdirs
11113 am__obj=sub/conftest.${OBJEXT-o}
11114 am__minus_obj="-o $am__obj"
11115 case $depmode in
11116 gcc)
11117 # This depmode causes a compiler race in universal mode.
11118 test "$am__universal" = false || continue
11119 ;;
11120 nosideeffect)
11121 # after this tag, mechanisms are not by side-effect, so they'll
11122 # only be used when explicitly requested
11123 if test "x$enable_dependency_tracking" = xyes; then
11124 continue
11125 else
11126 break
11127 fi
11128 ;;
11129 msvisualcpp | msvcmsys)
11130 # This compiler won't grok `-c -o', but also, the minuso test has
11131 # not run yet. These depmodes are late enough in the game, and
11132 # so weak that their functioning should not be impacted.
11133 am__obj=conftest.${OBJEXT-o}
11134 am__minus_obj=
11135 ;;
11136 none) break ;;
11137 esac
11138 if depmode=$depmode \
11139 source=sub/conftest.c object=$am__obj \
11140 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11141 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11142 >/dev/null 2>conftest.err &&
11143 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11144 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11145 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11146 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11147 # icc doesn't choke on unknown options, it will just issue warnings
11148 # or remarks (even with -Werror). So we grep stderr for any message
11149 # that says an option was ignored or not supported.
11150 # When given -MP, icc 7.0 and 7.1 complain thusly:
11151 # icc: Command line warning: ignoring option '-M'; no argument required
11152 # The diagnosis changed in icc 8.0:
11153 # icc: Command line remark: option '-MP' not supported
11154 if (grep 'ignoring option' conftest.err ||
11155 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11156 am_cv_CXX_dependencies_compiler_type=$depmode
11157 break
11158 fi
11159 fi
11160 done
11161
11162 cd ..
11163 rm -rf conftest.dir
11164else
11165 am_cv_CXX_dependencies_compiler_type=none
11166fi
11167
11168fi
11169{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11170$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11171CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11172
11173 if
11174 test "x$enable_dependency_tracking" != xno \
11175 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11176 am__fastdepCXX_TRUE=
11177 am__fastdepCXX_FALSE='#'
11178else
11179 am__fastdepCXX_TRUE='#'
11180 am__fastdepCXX_FALSE=
11181fi
11182
11183
11184if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11185 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11186 (test "X$CXX" != "Xg++"))) ; then
11187 ac_ext=cpp
11188ac_cpp='$CXXCPP $CPPFLAGS'
11189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11192{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11193$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11194if test -z "$CXXCPP"; then
11195 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11196 $as_echo_n "(cached) " >&6
11197else
11198 # Double quotes because CXXCPP needs to be expanded
11199 for CXXCPP in "$CXX -E" "/lib/cpp"
11200 do
11201 ac_preproc_ok=false
11202for ac_cxx_preproc_warn_flag in '' yes
11203do
11204 # Use a header file that comes with gcc, so configuring glibc
11205 # with a fresh cross-compiler works.
11206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11207 # <limits.h> exists even on freestanding compilers.
11208 # On the NeXT, cc -E runs the code through the compiler's parser,
11209 # not just through cpp. "Syntax error" is here to catch this case.
11210 cat >conftest.$ac_ext <<_ACEOF
11211/* confdefs.h. */
11212_ACEOF
11213cat confdefs.h >>conftest.$ac_ext
11214cat >>conftest.$ac_ext <<_ACEOF
11215/* end confdefs.h. */
11216#ifdef __STDC__
11217# include <limits.h>
11218#else
11219# include <assert.h>
11220#endif
11221 Syntax error
11222_ACEOF
11223if { (ac_try="$ac_cpp conftest.$ac_ext"
11224case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11227esac
11228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11229$as_echo "$ac_try_echo") >&5
11230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11231 ac_status=$?
11232 grep -v '^ *+' conftest.er1 >conftest.err
11233 rm -f conftest.er1
11234 cat conftest.err >&5
11235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } >/dev/null && {
11237 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11238 test ! -s conftest.err
11239 }; then
11240 :
11241else
11242 $as_echo "$as_me: failed program was:" >&5
11243sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 # Broken: fails on valid input.
11246continue
11247fi
11248
11249rm -f conftest.err conftest.$ac_ext
11250
11251 # OK, works on sane cases. Now check whether nonexistent headers
11252 # can be detected and how.
11253 cat >conftest.$ac_ext <<_ACEOF
11254/* confdefs.h. */
11255_ACEOF
11256cat confdefs.h >>conftest.$ac_ext
11257cat >>conftest.$ac_ext <<_ACEOF
11258/* end confdefs.h. */
11259#include <ac_nonexistent.h>
11260_ACEOF
11261if { (ac_try="$ac_cpp conftest.$ac_ext"
11262case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11265esac
11266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11267$as_echo "$ac_try_echo") >&5
11268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } >/dev/null && {
11275 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11276 test ! -s conftest.err
11277 }; then
11278 # Broken: success on invalid input.
11279continue
11280else
11281 $as_echo "$as_me: failed program was:" >&5
11282sed 's/^/| /' conftest.$ac_ext >&5
11283
11284 # Passes both tests.
11285ac_preproc_ok=:
11286break
11287fi
11288
11289rm -f conftest.err conftest.$ac_ext
11290
11291done
11292# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11293rm -f conftest.err conftest.$ac_ext
11294if $ac_preproc_ok; then
11295 break
11296fi
11297
11298 done
11299 ac_cv_prog_CXXCPP=$CXXCPP
11300
11301fi
11302 CXXCPP=$ac_cv_prog_CXXCPP
11303else
11304 ac_cv_prog_CXXCPP=$CXXCPP
11305fi
11306{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
11307$as_echo "$CXXCPP" >&6; }
11308ac_preproc_ok=false
11309for ac_cxx_preproc_warn_flag in '' yes
11310do
11311 # Use a header file that comes with gcc, so configuring glibc
11312 # with a fresh cross-compiler works.
11313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11314 # <limits.h> exists even on freestanding compilers.
11315 # On the NeXT, cc -E runs the code through the compiler's parser,
11316 # not just through cpp. "Syntax error" is here to catch this case.
11317 cat >conftest.$ac_ext <<_ACEOF
11318/* confdefs.h. */
11319_ACEOF
11320cat confdefs.h >>conftest.$ac_ext
11321cat >>conftest.$ac_ext <<_ACEOF
11322/* end confdefs.h. */
11323#ifdef __STDC__
11324# include <limits.h>
11325#else
11326# include <assert.h>
11327#endif
11328 Syntax error
11329_ACEOF
11330if { (ac_try="$ac_cpp conftest.$ac_ext"
11331case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334esac
11335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11336$as_echo "$ac_try_echo") >&5
11337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } >/dev/null && {
11344 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11345 test ! -s conftest.err
11346 }; then
11347 :
11348else
11349 $as_echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352 # Broken: fails on valid input.
11353continue
11354fi
11355
11356rm -f conftest.err conftest.$ac_ext
11357
11358 # OK, works on sane cases. Now check whether nonexistent headers
11359 # can be detected and how.
11360 cat >conftest.$ac_ext <<_ACEOF
11361/* confdefs.h. */
11362_ACEOF
11363cat confdefs.h >>conftest.$ac_ext
11364cat >>conftest.$ac_ext <<_ACEOF
11365/* end confdefs.h. */
11366#include <ac_nonexistent.h>
11367_ACEOF
11368if { (ac_try="$ac_cpp conftest.$ac_ext"
11369case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11372esac
11373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11374$as_echo "$ac_try_echo") >&5
11375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } >/dev/null && {
11382 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11383 test ! -s conftest.err
11384 }; then
11385 # Broken: success on invalid input.
11386continue
11387else
11388 $as_echo "$as_me: failed program was:" >&5
11389sed 's/^/| /' conftest.$ac_ext >&5
11390
11391 # Passes both tests.
11392ac_preproc_ok=:
11393break
11394fi
11395
11396rm -f conftest.err conftest.$ac_ext
11397
11398done
11399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11400rm -f conftest.err conftest.$ac_ext
11401if $ac_preproc_ok; then
11402 :
11403else
11404 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11406_lt_caught_CXX_error=yes; }
11407fi
11408
11409ac_ext=c
11410ac_cpp='$CPP $CPPFLAGS'
11411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11413ac_compiler_gnu=$ac_cv_c_compiler_gnu
11414
11415else
11416 _lt_caught_CXX_error=yes
11417fi
11418
11419
11420
11421
11422
11423# Set options
11424enable_win32_dll=yes
11425
11426case $host in
11427*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
11428 if test -n "$ac_tool_prefix"; then
11429 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11430set dummy ${ac_tool_prefix}as; ac_word=$2
11431{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11432$as_echo_n "checking for $ac_word... " >&6; }
11433if test "${ac_cv_prog_AS+set}" = set; then
11434 $as_echo_n "(cached) " >&6
11435else
11436 if test -n "$AS"; then
11437 ac_cv_prog_AS="$AS" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11446 ac_cv_prog_AS="${ac_tool_prefix}as"
11447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11449 fi
11450done
11451done
11452IFS=$as_save_IFS
11453
11454fi
11455fi
11456AS=$ac_cv_prog_AS
11457if test -n "$AS"; then
11458 { $as_echo "$as_me:$LINENO: result: $AS" >&5
11459$as_echo "$AS" >&6; }
11460else
11461 { $as_echo "$as_me:$LINENO: result: no" >&5
11462$as_echo "no" >&6; }
11463fi
11464
11465
11466fi
11467if test -z "$ac_cv_prog_AS"; then
11468 ac_ct_AS=$AS
11469 # Extract the first word of "as", so it can be a program name with args.
11470set dummy as; ac_word=$2
11471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11472$as_echo_n "checking for $ac_word... " >&6; }
11473if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
11474 $as_echo_n "(cached) " >&6
11475else
11476 if test -n "$ac_ct_AS"; then
11477 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11478else
11479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480for as_dir in $PATH
11481do
11482 IFS=$as_save_IFS
11483 test -z "$as_dir" && as_dir=.
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11486 ac_cv_prog_ac_ct_AS="as"
11487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11488 break 2
11489 fi
11490done
11491done
11492IFS=$as_save_IFS
11493
11494fi
11495fi
11496ac_ct_AS=$ac_cv_prog_ac_ct_AS
11497if test -n "$ac_ct_AS"; then
11498 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
11499$as_echo "$ac_ct_AS" >&6; }
11500else
11501 { $as_echo "$as_me:$LINENO: result: no" >&5
11502$as_echo "no" >&6; }
11503fi
11504
11505 if test "x$ac_ct_AS" = x; then
11506 AS="false"
11507 else
11508 case $cross_compiling:$ac_tool_warned in
11509yes:)
11510{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11512ac_tool_warned=yes ;;
11513esac
11514 AS=$ac_ct_AS
11515 fi
11516else
11517 AS="$ac_cv_prog_AS"
11518fi
11519
11520 if test -n "$ac_tool_prefix"; then
11521 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11522set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11523{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11524$as_echo_n "checking for $ac_word... " >&6; }
11525if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11526 $as_echo_n "(cached) " >&6
11527else
11528 if test -n "$DLLTOOL"; then
11529 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11530else
11531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532for as_dir in $PATH
11533do
11534 IFS=$as_save_IFS
11535 test -z "$as_dir" && as_dir=.
11536 for ac_exec_ext in '' $ac_executable_extensions; do
11537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11538 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 break 2
11541 fi
11542done
11543done
11544IFS=$as_save_IFS
11545
11546fi
11547fi
11548DLLTOOL=$ac_cv_prog_DLLTOOL
11549if test -n "$DLLTOOL"; then
11550 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11551$as_echo "$DLLTOOL" >&6; }
11552else
11553 { $as_echo "$as_me:$LINENO: result: no" >&5
11554$as_echo "no" >&6; }
11555fi
11556
11557
11558fi
11559if test -z "$ac_cv_prog_DLLTOOL"; then
11560 ac_ct_DLLTOOL=$DLLTOOL
11561 # Extract the first word of "dlltool", so it can be a program name with args.
11562set dummy dlltool; ac_word=$2
11563{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11564$as_echo_n "checking for $ac_word... " >&6; }
11565if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11566 $as_echo_n "(cached) " >&6
11567else
11568 if test -n "$ac_ct_DLLTOOL"; then
11569 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11570else
11571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572for as_dir in $PATH
11573do
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11578 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 break 2
11581 fi
11582done
11583done
11584IFS=$as_save_IFS
11585
11586fi
11587fi
11588ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11589if test -n "$ac_ct_DLLTOOL"; then
11590 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11591$as_echo "$ac_ct_DLLTOOL" >&6; }
11592else
11593 { $as_echo "$as_me:$LINENO: result: no" >&5
11594$as_echo "no" >&6; }
11595fi
11596
11597 if test "x$ac_ct_DLLTOOL" = x; then
11598 DLLTOOL="false"
11599 else
11600 case $cross_compiling:$ac_tool_warned in
11601yes:)
11602{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11604ac_tool_warned=yes ;;
11605esac
11606 DLLTOOL=$ac_ct_DLLTOOL
11607 fi
11608else
11609 DLLTOOL="$ac_cv_prog_DLLTOOL"
11610fi
11611
11612 if test -n "$ac_tool_prefix"; then
11613 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11614set dummy ${ac_tool_prefix}objdump; ac_word=$2
11615{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11616$as_echo_n "checking for $ac_word... " >&6; }
11617if test "${ac_cv_prog_OBJDUMP+set}" = set; then
11618 $as_echo_n "(cached) " >&6
11619else
11620 if test -n "$OBJDUMP"; then
11621 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11622else
11623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624for as_dir in $PATH
11625do
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 break 2
11633 fi
11634done
11635done
11636IFS=$as_save_IFS
11637
11638fi
11639fi
11640OBJDUMP=$ac_cv_prog_OBJDUMP
11641if test -n "$OBJDUMP"; then
11642 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
11643$as_echo "$OBJDUMP" >&6; }
11644else
11645 { $as_echo "$as_me:$LINENO: result: no" >&5
11646$as_echo "no" >&6; }
11647fi
11648
11649
11650fi
11651if test -z "$ac_cv_prog_OBJDUMP"; then
11652 ac_ct_OBJDUMP=$OBJDUMP
11653 # Extract the first word of "objdump", so it can be a program name with args.
11654set dummy objdump; ac_word=$2
11655{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11656$as_echo_n "checking for $ac_word... " >&6; }
11657if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
11658 $as_echo_n "(cached) " >&6
11659else
11660 if test -n "$ac_ct_OBJDUMP"; then
11661 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11662else
11663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664for as_dir in $PATH
11665do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11670 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 break 2
11673 fi
11674done
11675done
11676IFS=$as_save_IFS
11677
11678fi
11679fi
11680ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11681if test -n "$ac_ct_OBJDUMP"; then
11682 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
11683$as_echo "$ac_ct_OBJDUMP" >&6; }
11684else
11685 { $as_echo "$as_me:$LINENO: result: no" >&5
11686$as_echo "no" >&6; }
11687fi
11688
11689 if test "x$ac_ct_OBJDUMP" = x; then
11690 OBJDUMP="false"
11691 else
11692 case $cross_compiling:$ac_tool_warned in
11693yes:)
11694{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11696ac_tool_warned=yes ;;
11697esac
11698 OBJDUMP=$ac_ct_OBJDUMP
11699 fi
11700else
11701 OBJDUMP="$ac_cv_prog_OBJDUMP"
11702fi
11703
11704 ;;
11705esac
11706
11707test -z "$AS" && AS=as
11708
11709
11710
11711
11712
11713test -z "$DLLTOOL" && DLLTOOL=dlltool
11714
11715
11716
11717
11718
11719test -z "$OBJDUMP" && OBJDUMP=objdump
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729 # Check whether --enable-shared was given.
11730if test "${enable_shared+set}" = set; then
11731 enableval=$enable_shared; p=${PACKAGE-default}
11732 case $enableval in
11733 yes) enable_shared=yes ;;
11734 no) enable_shared=no ;;
11735 *)
11736 enable_shared=no
11737 # Look at the argument we got. We use all the common list separators.
11738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11739 for pkg in $enableval; do
11740 IFS="$lt_save_ifs"
11741 if test "X$pkg" = "X$p"; then
11742 enable_shared=yes
11743 fi
11744 done
11745 IFS="$lt_save_ifs"
11746 ;;
11747 esac
11748else
11749 enable_shared=yes
11750fi
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760 # Check whether --enable-static was given.
11761if test "${enable_static+set}" = set; then
11762 enableval=$enable_static; p=${PACKAGE-default}
11763 case $enableval in
11764 yes) enable_static=yes ;;
11765 no) enable_static=no ;;
11766 *)
11767 enable_static=no
11768 # Look at the argument we got. We use all the common list separators.
11769 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11770 for pkg in $enableval; do
11771 IFS="$lt_save_ifs"
11772 if test "X$pkg" = "X$p"; then
11773 enable_static=yes
11774 fi
11775 done
11776 IFS="$lt_save_ifs"
11777 ;;
11778 esac
11779else
11780 enable_static=yes
11781fi
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792# Check whether --with-pic was given.
11793if test "${with_pic+set}" = set; then
11794 withval=$with_pic; pic_mode="$withval"
11795else
11796 pic_mode=default
11797fi
11798
11799
11800test -z "$pic_mode" && pic_mode=default
11801
11802
11803
11804
11805
11806
11807
11808 # Check whether --enable-fast-install was given.
11809if test "${enable_fast_install+set}" = set; then
11810 enableval=$enable_fast_install; p=${PACKAGE-default}
11811 case $enableval in
11812 yes) enable_fast_install=yes ;;
11813 no) enable_fast_install=no ;;
11814 *)
11815 enable_fast_install=no
11816 # Look at the argument we got. We use all the common list separators.
11817 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11818 for pkg in $enableval; do
11819 IFS="$lt_save_ifs"
11820 if test "X$pkg" = "X$p"; then
11821 enable_fast_install=yes
11822 fi
11823 done
11824 IFS="$lt_save_ifs"
11825 ;;
11826 esac
11827else
11828 enable_fast_install=yes
11829fi
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841# This can be used to rebuild libtool when needed
11842LIBTOOL_DEPS="$ltmain"
11843
11844# Always use our own libtool.
11845LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871test -z "$LN_S" && LN_S="ln -s"
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886if test -n "${ZSH_VERSION+set}" ; then
11887 setopt NO_GLOB_SUBST
11888fi
11889
11890{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
11891$as_echo_n "checking for objdir... " >&6; }
11892if test "${lt_cv_objdir+set}" = set; then
11893 $as_echo_n "(cached) " >&6
11894else
11895 rm -f .libs 2>/dev/null
11896mkdir .libs 2>/dev/null
11897if test -d .libs; then
11898 lt_cv_objdir=.libs
11899else
11900 # MS-DOS does not allow filenames that begin with a dot.
11901 lt_cv_objdir=_libs
11902fi
11903rmdir .libs 2>/dev/null
11904fi
11905{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11906$as_echo "$lt_cv_objdir" >&6; }
11907objdir=$lt_cv_objdir
11908
11909
11910
11911
11912
11913cat >>confdefs.h <<_ACEOF
11914#define LT_OBJDIR "$lt_cv_objdir/"
11915_ACEOF
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933case $host_os in
11934aix3*)
11935 # AIX sometimes has problems with the GCC collect2 program. For some
11936 # reason, if we set the COLLECT_NAMES environment variable, the problems
11937 # vanish in a puff of smoke.
11938 if test "X${COLLECT_NAMES+set}" != Xset; then
11939 COLLECT_NAMES=
11940 export COLLECT_NAMES
11941 fi
11942 ;;
11943esac
11944
11945# Sed substitution that helps us do robust quoting. It backslashifies
11946# metacharacters that are still active within double-quoted strings.
11947sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11948
11949# Same as above, but do not quote variable references.
11950double_quote_subst='s/\(["`\\]\)/\\\1/g'
11951
11952# Sed substitution to delay expansion of an escaped shell variable in a
11953# double_quote_subst'ed string.
11954delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11955
11956# Sed substitution to delay expansion of an escaped single quote.
11957delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11958
11959# Sed substitution to avoid accidental globbing in evaled expressions
11960no_glob_subst='s/\*/\\\*/g'
11961
11962# Global variables:
11963ofile=libtool
11964can_build_shared=yes
11965
11966# All known linkers require a `.a' archive for static linking (except MSVC,
11967# which needs '.lib').
11968libext=a
11969
11970with_gnu_ld="$lt_cv_prog_gnu_ld"
11971
11972old_CC="$CC"
11973old_CFLAGS="$CFLAGS"
11974
11975# Set sane defaults for various variables
11976test -z "$CC" && CC=cc
11977test -z "$LTCC" && LTCC=$CC
11978test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11979test -z "$LD" && LD=ld
11980test -z "$ac_objext" && ac_objext=o
11981
11982for cc_temp in $compiler""; do
11983 case $cc_temp in
11984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11986 \-*) ;;
11987 *) break;;
11988 esac
11989done
11990cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11991
11992
11993# Only perform the check for file, if the check method requires it
11994test -z "$MAGIC_CMD" && MAGIC_CMD=file
11995case $deplibs_check_method in
11996file_magic*)
11997 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11998 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11999$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12000if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12001 $as_echo_n "(cached) " >&6
12002else
12003 case $MAGIC_CMD in
12004[\\/*] | ?:[\\/]*)
12005 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12006 ;;
12007*)
12008 lt_save_MAGIC_CMD="$MAGIC_CMD"
12009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12010 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12011 for ac_dir in $ac_dummy; do
12012 IFS="$lt_save_ifs"
12013 test -z "$ac_dir" && ac_dir=.
12014 if test -f $ac_dir/${ac_tool_prefix}file; then
12015 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12016 if test -n "$file_magic_test_file"; then
12017 case $deplibs_check_method in
12018 "file_magic "*)
12019 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12022 $EGREP "$file_magic_regex" > /dev/null; then
12023 :
12024 else
12025 cat <<_LT_EOF 1>&2
12026
12027*** Warning: the command libtool uses to detect shared libraries,
12028*** $file_magic_cmd, produces output that libtool cannot recognize.
12029*** The result is that libtool may fail to recognize shared libraries
12030*** as such. This will affect the creation of libtool libraries that
12031*** depend on shared libraries, but programs linked with such libtool
12032*** libraries will work regardless of this problem. Nevertheless, you
12033*** may want to report the problem to your system manager and/or to
12034*** bug-libtool@gnu.org
12035
12036_LT_EOF
12037 fi ;;
12038 esac
12039 fi
12040 break
12041 fi
12042 done
12043 IFS="$lt_save_ifs"
12044 MAGIC_CMD="$lt_save_MAGIC_CMD"
12045 ;;
12046esac
12047fi
12048
12049MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12050if test -n "$MAGIC_CMD"; then
12051 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12052$as_echo "$MAGIC_CMD" >&6; }
12053else
12054 { $as_echo "$as_me:$LINENO: result: no" >&5
12055$as_echo "no" >&6; }
12056fi
12057
12058
12059
12060
12061
12062if test -z "$lt_cv_path_MAGIC_CMD"; then
12063 if test -n "$ac_tool_prefix"; then
12064 { $as_echo "$as_me:$LINENO: checking for file" >&5
12065$as_echo_n "checking for file... " >&6; }
12066if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12067 $as_echo_n "(cached) " >&6
12068else
12069 case $MAGIC_CMD in
12070[\\/*] | ?:[\\/]*)
12071 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12072 ;;
12073*)
12074 lt_save_MAGIC_CMD="$MAGIC_CMD"
12075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12076 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12077 for ac_dir in $ac_dummy; do
12078 IFS="$lt_save_ifs"
12079 test -z "$ac_dir" && ac_dir=.
12080 if test -f $ac_dir/file; then
12081 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12082 if test -n "$file_magic_test_file"; then
12083 case $deplibs_check_method in
12084 "file_magic "*)
12085 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12087 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12088 $EGREP "$file_magic_regex" > /dev/null; then
12089 :
12090 else
12091 cat <<_LT_EOF 1>&2
12092
12093*** Warning: the command libtool uses to detect shared libraries,
12094*** $file_magic_cmd, produces output that libtool cannot recognize.
12095*** The result is that libtool may fail to recognize shared libraries
12096*** as such. This will affect the creation of libtool libraries that
12097*** depend on shared libraries, but programs linked with such libtool
12098*** libraries will work regardless of this problem. Nevertheless, you
12099*** may want to report the problem to your system manager and/or to
12100*** bug-libtool@gnu.org
12101
12102_LT_EOF
12103 fi ;;
12104 esac
12105 fi
12106 break
12107 fi
12108 done
12109 IFS="$lt_save_ifs"
12110 MAGIC_CMD="$lt_save_MAGIC_CMD"
12111 ;;
12112esac
12113fi
12114
12115MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12116if test -n "$MAGIC_CMD"; then
12117 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12118$as_echo "$MAGIC_CMD" >&6; }
12119else
12120 { $as_echo "$as_me:$LINENO: result: no" >&5
12121$as_echo "no" >&6; }
12122fi
12123
12124
12125 else
12126 MAGIC_CMD=:
12127 fi
12128fi
12129
12130 fi
12131 ;;
12132esac
12133
12134# Use C for the default configuration in the libtool script
12135
12136lt_save_CC="$CC"
12137ac_ext=c
12138ac_cpp='$CPP $CPPFLAGS'
12139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12141ac_compiler_gnu=$ac_cv_c_compiler_gnu
12142
12143
12144# Source file extension for C test sources.
12145ac_ext=c
12146
12147# Object file extension for compiled C test sources.
12148objext=o
12149objext=$objext
12150
12151# Code to be used in simple compile tests
12152lt_simple_compile_test_code="int some_variable = 0;"
12153
12154# Code to be used in simple link tests
12155lt_simple_link_test_code='int main(){return(0);}'
12156
12157
12158
12159
12160
12161
12162
12163# If no C compiler was specified, use CC.
12164LTCC=${LTCC-"$CC"}
12165
12166# If no C compiler flags were specified, use CFLAGS.
12167LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12168
12169# Allow CC to be a program name with arguments.
12170compiler=$CC
12171
12172# Save the default compiler, since it gets overwritten when the other
12173# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12174compiler_DEFAULT=$CC
12175
12176# save warnings/boilerplate of simple test code
12177ac_outfile=conftest.$ac_objext
12178echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12179eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12180_lt_compiler_boilerplate=`cat conftest.err`
12181$RM conftest*
12182
12183ac_outfile=conftest.$ac_objext
12184echo "$lt_simple_link_test_code" >conftest.$ac_ext
12185eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12186_lt_linker_boilerplate=`cat conftest.err`
12187$RM -r conftest*
12188
12189
12190## CAVEAT EMPTOR:
12191## There is no encapsulation within the following macros, do not change
12192## the running order or otherwise move them around unless you know exactly
12193## what you are doing...
12194if test -n "$compiler"; then
12195
12196lt_prog_compiler_no_builtin_flag=
12197
12198if test "$GCC" = yes; then
12199 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12200
12201 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12202$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12203if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12204 $as_echo_n "(cached) " >&6
12205else
12206 lt_cv_prog_compiler_rtti_exceptions=no
12207 ac_outfile=conftest.$ac_objext
12208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12209 lt_compiler_flag="-fno-rtti -fno-exceptions"
12210 # Insert the option either (1) after the last *FLAGS variable, or
12211 # (2) before a word containing "conftest.", or (3) at the end.
12212 # Note that $ac_compile itself does not contain backslashes and begins
12213 # with a dollar sign (not a hyphen), so the echo should work correctly.
12214 # The option is referenced via a variable to avoid confusing sed.
12215 lt_compile=`echo "$ac_compile" | $SED \
12216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12218 -e 's:$: $lt_compiler_flag:'`
12219 (eval echo "\"\$as_me:12219: $lt_compile\"" >&5)
12220 (eval "$lt_compile" 2>conftest.err)
12221 ac_status=$?
12222 cat conftest.err >&5
12223 echo "$as_me:12223: \$? = $ac_status" >&5
12224 if (exit $ac_status) && test -s "$ac_outfile"; then
12225 # The compiler can only warn and ignore the option if not recognized
12226 # So say no if there are warnings other than the usual output.
12227 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12230 lt_cv_prog_compiler_rtti_exceptions=yes
12231 fi
12232 fi
12233 $RM conftest*
12234
12235fi
12236{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12237$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12238
12239if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12240 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12241else
12242 :
12243fi
12244
12245fi
12246
12247
12248
12249
12250
12251
12252 lt_prog_compiler_wl=
12253lt_prog_compiler_pic=
12254lt_prog_compiler_static=
12255
12256{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12257$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12258
12259 if test "$GCC" = yes; then
12260 lt_prog_compiler_wl='-Wl,'
12261 lt_prog_compiler_static='-static'
12262
12263 case $host_os in
12264 aix*)
12265 # All AIX code is PIC.
12266 if test "$host_cpu" = ia64; then
12267 # AIX 5 now supports IA64 processor
12268 lt_prog_compiler_static='-Bstatic'
12269 fi
12270 ;;
12271
12272 amigaos*)
12273 case $host_cpu in
12274 powerpc)
12275 # see comment about AmigaOS4 .so support
12276 lt_prog_compiler_pic='-fPIC'
12277 ;;
12278 m68k)
12279 # FIXME: we need at least 68020 code to build shared libraries, but
12280 # adding the `-m68020' flag to GCC prevents building anything better,
12281 # like `-m68040'.
12282 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12283 ;;
12284 esac
12285 ;;
12286
12287 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12288 # PIC is the default for these OSes.
12289 ;;
12290
12291 mingw* | cygwin* | pw32* | os2* | cegcc*)
12292 # This hack is so that the source file can tell whether it is being
12293 # built for inclusion in a dll (and should export symbols for example).
12294 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12295 # (--disable-auto-import) libraries
12296 lt_prog_compiler_pic='-DDLL_EXPORT'
12297 ;;
12298
12299 darwin* | rhapsody*)
12300 # PIC is the default on this platform
12301 # Common symbols not allowed in MH_DYLIB files
12302 lt_prog_compiler_pic='-fno-common'
12303 ;;
12304
12305 hpux*)
12306 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12307 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12308 # sets the default TLS model and affects inlining.
12309 case $host_cpu in
12310 hppa*64*)
12311 # +Z the default
12312 ;;
12313 *)
12314 lt_prog_compiler_pic='-fPIC'
12315 ;;
12316 esac
12317 ;;
12318
12319 interix[3-9]*)
12320 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12321 # Instead, we relocate shared libraries at runtime.
12322 ;;
12323
12324 msdosdjgpp*)
12325 # Just because we use GCC doesn't mean we suddenly get shared libraries
12326 # on systems that don't support them.
12327 lt_prog_compiler_can_build_shared=no
12328 enable_shared=no
12329 ;;
12330
12331 *nto* | *qnx*)
12332 # QNX uses GNU C++, but need to define -shared option too, otherwise
12333 # it will coredump.
12334 lt_prog_compiler_pic='-fPIC -shared'
12335 ;;
12336
12337 sysv4*MP*)
12338 if test -d /usr/nec; then
12339 lt_prog_compiler_pic=-Kconform_pic
12340 fi
12341 ;;
12342
12343 *)
12344 lt_prog_compiler_pic='-fPIC'
12345 ;;
12346 esac
12347 else
12348 # PORTME Check for flag to pass linker flags through the system compiler.
12349 case $host_os in
12350 aix*)
12351 lt_prog_compiler_wl='-Wl,'
12352 if test "$host_cpu" = ia64; then
12353 # AIX 5 now supports IA64 processor
12354 lt_prog_compiler_static='-Bstatic'
12355 else
12356 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12357 fi
12358 ;;
12359
12360 mingw* | cygwin* | pw32* | os2* | cegcc*)
12361 # This hack is so that the source file can tell whether it is being
12362 # built for inclusion in a dll (and should export symbols for example).
12363 lt_prog_compiler_pic='-DDLL_EXPORT'
12364 ;;
12365
12366 hpux9* | hpux10* | hpux11*)
12367 lt_prog_compiler_wl='-Wl,'
12368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12369 # not for PA HP-UX.
12370 case $host_cpu in
12371 hppa*64*|ia64*)
12372 # +Z the default
12373 ;;
12374 *)
12375 lt_prog_compiler_pic='+Z'
12376 ;;
12377 esac
12378 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12379 lt_prog_compiler_static='${wl}-a ${wl}archive'
12380 ;;
12381
12382 irix5* | irix6* | nonstopux*)
12383 lt_prog_compiler_wl='-Wl,'
12384 # PIC (with -KPIC) is the default.
12385 lt_prog_compiler_static='-non_shared'
12386 ;;
12387
12388 linux* | k*bsd*-gnu)
12389 case $cc_basename in
12390 # old Intel for x86_64 which still supported -KPIC.
12391 ecc*)
12392 lt_prog_compiler_wl='-Wl,'
12393 lt_prog_compiler_pic='-KPIC'
12394 lt_prog_compiler_static='-static'
12395 ;;
12396 # icc used to be incompatible with GCC.
12397 # ICC 10 doesn't accept -KPIC any more.
12398 icc* | ifort*)
12399 lt_prog_compiler_wl='-Wl,'
12400 lt_prog_compiler_pic='-fPIC'
12401 lt_prog_compiler_static='-static'
12402 ;;
12403 # Lahey Fortran 8.1.
12404 lf95*)
12405 lt_prog_compiler_wl='-Wl,'
12406 lt_prog_compiler_pic='--shared'
12407 lt_prog_compiler_static='--static'
12408 ;;
12409 pgcc* | pgf77* | pgf90* | pgf95*)
12410 # Portland Group compilers (*not* the Pentium gcc compiler,
12411 # which looks to be a dead project)
12412 lt_prog_compiler_wl='-Wl,'
12413 lt_prog_compiler_pic='-fpic'
12414 lt_prog_compiler_static='-Bstatic'
12415 ;;
12416 ccc*)
12417 lt_prog_compiler_wl='-Wl,'
12418 # All Alpha code is PIC.
12419 lt_prog_compiler_static='-non_shared'
12420 ;;
12421 xl*)
12422 # IBM XL C 8.0/Fortran 10.1 on PPC
12423 lt_prog_compiler_wl='-Wl,'
12424 lt_prog_compiler_pic='-qpic'
12425 lt_prog_compiler_static='-qstaticlink'
12426 ;;
12427 *)
12428 case `$CC -V 2>&1 | sed 5q` in
12429 *Sun\ C*)
12430 # Sun C 5.9
12431 lt_prog_compiler_pic='-KPIC'
12432 lt_prog_compiler_static='-Bstatic'
12433 lt_prog_compiler_wl='-Wl,'
12434 ;;
12435 *Sun\ F*)
12436 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12437 lt_prog_compiler_pic='-KPIC'
12438 lt_prog_compiler_static='-Bstatic'
12439 lt_prog_compiler_wl=''
12440 ;;
12441 esac
12442 ;;
12443 esac
12444 ;;
12445
12446 newsos6)
12447 lt_prog_compiler_pic='-KPIC'
12448 lt_prog_compiler_static='-Bstatic'
12449 ;;
12450
12451 *nto* | *qnx*)
12452 # QNX uses GNU C++, but need to define -shared option too, otherwise
12453 # it will coredump.
12454 lt_prog_compiler_pic='-fPIC -shared'
12455 ;;
12456
12457 osf3* | osf4* | osf5*)
12458 lt_prog_compiler_wl='-Wl,'
12459 # All OSF/1 code is PIC.
12460 lt_prog_compiler_static='-non_shared'
12461 ;;
12462
12463 rdos*)
12464 lt_prog_compiler_static='-non_shared'
12465 ;;
12466
12467 solaris*)
12468 lt_prog_compiler_pic='-KPIC'
12469 lt_prog_compiler_static='-Bstatic'
12470 case $cc_basename in
12471 f77* | f90* | f95*)
12472 lt_prog_compiler_wl='-Qoption ld ';;
12473 *)
12474 lt_prog_compiler_wl='-Wl,';;
12475 esac
12476 ;;
12477
12478 sunos4*)
12479 lt_prog_compiler_wl='-Qoption ld '
12480 lt_prog_compiler_pic='-PIC'
12481 lt_prog_compiler_static='-Bstatic'
12482 ;;
12483
12484 sysv4 | sysv4.2uw2* | sysv4.3*)
12485 lt_prog_compiler_wl='-Wl,'
12486 lt_prog_compiler_pic='-KPIC'
12487 lt_prog_compiler_static='-Bstatic'
12488 ;;
12489
12490 sysv4*MP*)
12491 if test -d /usr/nec ;then
12492 lt_prog_compiler_pic='-Kconform_pic'
12493 lt_prog_compiler_static='-Bstatic'
12494 fi
12495 ;;
12496
12497 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12498 lt_prog_compiler_wl='-Wl,'
12499 lt_prog_compiler_pic='-KPIC'
12500 lt_prog_compiler_static='-Bstatic'
12501 ;;
12502
12503 unicos*)
12504 lt_prog_compiler_wl='-Wl,'
12505 lt_prog_compiler_can_build_shared=no
12506 ;;
12507
12508 uts4*)
12509 lt_prog_compiler_pic='-pic'
12510 lt_prog_compiler_static='-Bstatic'
12511 ;;
12512
12513 *)
12514 lt_prog_compiler_can_build_shared=no
12515 ;;
12516 esac
12517 fi
12518
12519case $host_os in
12520 # For platforms which do not support PIC, -DPIC is meaningless:
12521 *djgpp*)
12522 lt_prog_compiler_pic=
12523 ;;
12524 *)
12525 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12526 ;;
12527esac
12528{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12529$as_echo "$lt_prog_compiler_pic" >&6; }
12530
12531
12532
12533
12534
12535
12536#
12537# Check to make sure the PIC flag actually works.
12538#
12539if test -n "$lt_prog_compiler_pic"; then
12540 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12541$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12542if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
12543 $as_echo_n "(cached) " >&6
12544else
12545 lt_cv_prog_compiler_pic_works=no
12546 ac_outfile=conftest.$ac_objext
12547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12548 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12549 # Insert the option either (1) after the last *FLAGS variable, or
12550 # (2) before a word containing "conftest.", or (3) at the end.
12551 # Note that $ac_compile itself does not contain backslashes and begins
12552 # with a dollar sign (not a hyphen), so the echo should work correctly.
12553 # The option is referenced via a variable to avoid confusing sed.
12554 lt_compile=`echo "$ac_compile" | $SED \
12555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12557 -e 's:$: $lt_compiler_flag:'`
12558 (eval echo "\"\$as_me:12558: $lt_compile\"" >&5)
12559 (eval "$lt_compile" 2>conftest.err)
12560 ac_status=$?
12561 cat conftest.err >&5
12562 echo "$as_me:12562: \$? = $ac_status" >&5
12563 if (exit $ac_status) && test -s "$ac_outfile"; then
12564 # The compiler can only warn and ignore the option if not recognized
12565 # So say no if there are warnings other than the usual output.
12566 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12569 lt_cv_prog_compiler_pic_works=yes
12570 fi
12571 fi
12572 $RM conftest*
12573
12574fi
12575{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
12576$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12577
12578if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12579 case $lt_prog_compiler_pic in
12580 "" | " "*) ;;
12581 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12582 esac
12583else
12584 lt_prog_compiler_pic=
12585 lt_prog_compiler_can_build_shared=no
12586fi
12587
12588fi
12589
12590
12591
12592
12593
12594
12595#
12596# Check to make sure the static flag actually works.
12597#
12598wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12599{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12600$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12601if test "${lt_cv_prog_compiler_static_works+set}" = set; then
12602 $as_echo_n "(cached) " >&6
12603else
12604 lt_cv_prog_compiler_static_works=no
12605 save_LDFLAGS="$LDFLAGS"
12606 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12607 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12609 # The linker can only warn and ignore the option if not recognized
12610 # So say no if there are warnings
12611 if test -s conftest.err; then
12612 # Append any errors to the config.log.
12613 cat conftest.err 1>&5
12614 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12616 if diff conftest.exp conftest.er2 >/dev/null; then
12617 lt_cv_prog_compiler_static_works=yes
12618 fi
12619 else
12620 lt_cv_prog_compiler_static_works=yes
12621 fi
12622 fi
12623 $RM -r conftest*
12624 LDFLAGS="$save_LDFLAGS"
12625
12626fi
12627{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
12628$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12629
12630if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12631 :
12632else
12633 lt_prog_compiler_static=
12634fi
12635
12636
12637
12638
12639
12640
12641
12642 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12643$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12644if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12645 $as_echo_n "(cached) " >&6
12646else
12647 lt_cv_prog_compiler_c_o=no
12648 $RM -r conftest 2>/dev/null
12649 mkdir conftest
12650 cd conftest
12651 mkdir out
12652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12653
12654 lt_compiler_flag="-o out/conftest2.$ac_objext"
12655 # Insert the option either (1) after the last *FLAGS variable, or
12656 # (2) before a word containing "conftest.", or (3) at the end.
12657 # Note that $ac_compile itself does not contain backslashes and begins
12658 # with a dollar sign (not a hyphen), so the echo should work correctly.
12659 lt_compile=`echo "$ac_compile" | $SED \
12660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12662 -e 's:$: $lt_compiler_flag:'`
12663 (eval echo "\"\$as_me:12663: $lt_compile\"" >&5)
12664 (eval "$lt_compile" 2>out/conftest.err)
12665 ac_status=$?
12666 cat out/conftest.err >&5
12667 echo "$as_me:12667: \$? = $ac_status" >&5
12668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12669 then
12670 # The compiler can only warn and ignore the option if not recognized
12671 # So say no if there are warnings
12672 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12675 lt_cv_prog_compiler_c_o=yes
12676 fi
12677 fi
12678 chmod u+w . 2>&5
12679 $RM conftest*
12680 # SGI C++ compiler will create directory out/ii_files/ for
12681 # template instantiation
12682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12683 $RM out/* && rmdir out
12684 cd ..
12685 $RM -r conftest
12686 $RM conftest*
12687
12688fi
12689{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12690$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12691
12692
12693
12694
12695
12696
12697 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12698$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12699if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12700 $as_echo_n "(cached) " >&6
12701else
12702 lt_cv_prog_compiler_c_o=no
12703 $RM -r conftest 2>/dev/null
12704 mkdir conftest
12705 cd conftest
12706 mkdir out
12707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12708
12709 lt_compiler_flag="-o out/conftest2.$ac_objext"
12710 # Insert the option either (1) after the last *FLAGS variable, or
12711 # (2) before a word containing "conftest.", or (3) at the end.
12712 # Note that $ac_compile itself does not contain backslashes and begins
12713 # with a dollar sign (not a hyphen), so the echo should work correctly.
12714 lt_compile=`echo "$ac_compile" | $SED \
12715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12717 -e 's:$: $lt_compiler_flag:'`
12718 (eval echo "\"\$as_me:12718: $lt_compile\"" >&5)
12719 (eval "$lt_compile" 2>out/conftest.err)
12720 ac_status=$?
12721 cat out/conftest.err >&5
12722 echo "$as_me:12722: \$? = $ac_status" >&5
12723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12724 then
12725 # The compiler can only warn and ignore the option if not recognized
12726 # So say no if there are warnings
12727 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12730 lt_cv_prog_compiler_c_o=yes
12731 fi
12732 fi
12733 chmod u+w . 2>&5
12734 $RM conftest*
12735 # SGI C++ compiler will create directory out/ii_files/ for
12736 # template instantiation
12737 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12738 $RM out/* && rmdir out
12739 cd ..
12740 $RM -r conftest
12741 $RM conftest*
12742
12743fi
12744{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12745$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12746
12747
12748
12749
12750hard_links="nottested"
12751if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12752 # do not overwrite the value of need_locks provided by the user
12753 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12754$as_echo_n "checking if we can lock with hard links... " >&6; }
12755 hard_links=yes
12756 $RM conftest*
12757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12758 touch conftest.a
12759 ln conftest.a conftest.b 2>&5 || hard_links=no
12760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12761 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12762$as_echo "$hard_links" >&6; }
12763 if test "$hard_links" = no; then
12764 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12765$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12766 need_locks=warn
12767 fi
12768else
12769 need_locks=no
12770fi
12771
12772
12773
12774
12775
12776
12777 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12778$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12779
12780 runpath_var=
12781 allow_undefined_flag=
12782 always_export_symbols=no
12783 archive_cmds=
12784 archive_expsym_cmds=
12785 compiler_needs_object=no
12786 enable_shared_with_static_runtimes=no
12787 export_dynamic_flag_spec=
12788 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12789 hardcode_automatic=no
12790 hardcode_direct=no
12791 hardcode_direct_absolute=no
12792 hardcode_libdir_flag_spec=
12793 hardcode_libdir_flag_spec_ld=
12794 hardcode_libdir_separator=
12795 hardcode_minus_L=no
12796 hardcode_shlibpath_var=unsupported
12797 inherit_rpath=no
12798 link_all_deplibs=unknown
12799 module_cmds=
12800 module_expsym_cmds=
12801 old_archive_from_new_cmds=
12802 old_archive_from_expsyms_cmds=
12803 thread_safe_flag_spec=
12804 whole_archive_flag_spec=
12805 # include_expsyms should be a list of space-separated symbols to be *always*
12806 # included in the symbol list
12807 include_expsyms=
12808 # exclude_expsyms can be an extended regexp of symbols to exclude
12809 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12810 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12811 # as well as any symbol that contains `d'.
12812 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12813 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12814 # platforms (ab)use it in PIC code, but their linkers get confused if
12815 # the symbol is explicitly referenced. Since portable code cannot
12816 # rely on this symbol name, it's probably fine to never include it in
12817 # preloaded symbol tables.
12818 # Exclude shared library initialization/finalization symbols.
12819 extract_expsyms_cmds=
12820
12821 case $host_os in
12822 cygwin* | mingw* | pw32* | cegcc*)
12823 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12824 # When not using gcc, we currently assume that we are using
12825 # Microsoft Visual C++.
12826 if test "$GCC" != yes; then
12827 with_gnu_ld=no
12828 fi
12829 ;;
12830 interix*)
12831 # we just hope/assume this is gcc and not c89 (= MSVC++)
12832 with_gnu_ld=yes
12833 ;;
12834 openbsd*)
12835 with_gnu_ld=no
12836 ;;
12837 esac
12838
12839 ld_shlibs=yes
12840 if test "$with_gnu_ld" = yes; then
12841 # If archive_cmds runs LD, not CC, wlarc should be empty
12842 wlarc='${wl}'
12843
12844 # Set some defaults for GNU ld with shared library support. These
12845 # are reset later if shared libraries are not supported. Putting them
12846 # here allows them to be overridden if necessary.
12847 runpath_var=LD_RUN_PATH
12848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12849 export_dynamic_flag_spec='${wl}--export-dynamic'
12850 # ancient GNU ld didn't support --whole-archive et. al.
12851 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12852 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12853 else
12854 whole_archive_flag_spec=
12855 fi
12856 supports_anon_versioning=no
12857 case `$LD -v 2>&1` in
12858 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12859 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12860 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12861 *\ 2.11.*) ;; # other 2.11 versions
12862 *) supports_anon_versioning=yes ;;
12863 esac
12864
12865 # See if GNU ld supports shared libraries.
12866 case $host_os in
12867 aix[3-9]*)
12868 # On AIX/PPC, the GNU linker is very broken
12869 if test "$host_cpu" != ia64; then
12870 ld_shlibs=no
12871 cat <<_LT_EOF 1>&2
12872
12873*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12874*** to be unable to reliably create shared libraries on AIX.
12875*** Therefore, libtool is disabling shared libraries support. If you
12876*** really care for shared libraries, you may want to modify your PATH
12877*** so that a non-GNU linker is found, and then restart.
12878
12879_LT_EOF
12880 fi
12881 ;;
12882
12883 amigaos*)
12884 case $host_cpu in
12885 powerpc)
12886 # see comment about AmigaOS4 .so support
12887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12888 archive_expsym_cmds=''
12889 ;;
12890 m68k)
12891 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)'
12892 hardcode_libdir_flag_spec='-L$libdir'
12893 hardcode_minus_L=yes
12894 ;;
12895 esac
12896 ;;
12897
12898 beos*)
12899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12900 allow_undefined_flag=unsupported
12901 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12902 # support --undefined. This deserves some investigation. FIXME
12903 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12904 else
12905 ld_shlibs=no
12906 fi
12907 ;;
12908
12909 cygwin* | mingw* | pw32* | cegcc*)
12910 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12911 # as there is no search path for DLLs.
12912 hardcode_libdir_flag_spec='-L$libdir'
12913 allow_undefined_flag=unsupported
12914 always_export_symbols=no
12915 enable_shared_with_static_runtimes=yes
12916 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12917
12918 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12920 # If the export-symbols file already is a .def file (1st line
12921 # is EXPORTS), use it as is; otherwise, prepend...
12922 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12923 cp $export_symbols $output_objdir/$soname.def;
12924 else
12925 echo EXPORTS > $output_objdir/$soname.def;
12926 cat $export_symbols >> $output_objdir/$soname.def;
12927 fi~
12928 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12929 else
12930 ld_shlibs=no
12931 fi
12932 ;;
12933
12934 interix[3-9]*)
12935 hardcode_direct=no
12936 hardcode_shlibpath_var=no
12937 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12938 export_dynamic_flag_spec='${wl}-E'
12939 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12940 # Instead, shared libraries are loaded at an image base (0x10000000 by
12941 # default) and relocated if they conflict, which is a slow very memory
12942 # consuming and fragmenting process. To avoid this, we pick a random,
12943 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12944 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12945 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12946 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'
12947 ;;
12948
12949 gnu* | linux* | tpf* | k*bsd*-gnu)
12950 tmp_diet=no
12951 if test "$host_os" = linux-dietlibc; then
12952 case $cc_basename in
12953 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12954 esac
12955 fi
12956 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12957 && test "$tmp_diet" = no
12958 then
12959 tmp_addflag=
12960 tmp_sharedflag='-shared'
12961 case $cc_basename,$host_cpu in
12962 pgcc*) # Portland Group C compiler
12963 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'
12964 tmp_addflag=' $pic_flag'
12965 ;;
12966 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12967 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'
12968 tmp_addflag=' $pic_flag -Mnomain' ;;
12969 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12970 tmp_addflag=' -i_dynamic' ;;
12971 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12972 tmp_addflag=' -i_dynamic -nofor_main' ;;
12973 ifc* | ifort*) # Intel Fortran compiler
12974 tmp_addflag=' -nofor_main' ;;
12975 lf95*) # Lahey Fortran 8.1
12976 whole_archive_flag_spec=
12977 tmp_sharedflag='--shared' ;;
12978 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12979 tmp_sharedflag='-qmkshrobj'
12980 tmp_addflag= ;;
12981 esac
12982 case `$CC -V 2>&1 | sed 5q` in
12983 *Sun\ C*) # Sun C 5.9
12984 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'
12985 compiler_needs_object=yes
12986 tmp_sharedflag='-G' ;;
12987 *Sun\ F*) # Sun Fortran 8.3
12988 tmp_sharedflag='-G' ;;
12989 esac
12990 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12991
12992 if test "x$supports_anon_versioning" = xyes; then
12993 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12994 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12995 echo "local: *; };" >> $output_objdir/$libname.ver~
12996 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12997 fi
12998
12999 case $cc_basename in
13000 xlf*)
13001 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13002 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13003 hardcode_libdir_flag_spec=
13004 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13005 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13006 if test "x$supports_anon_versioning" = xyes; then
13007 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13008 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13009 echo "local: *; };" >> $output_objdir/$libname.ver~
13010 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13011 fi
13012 ;;
13013 esac
13014 else
13015 ld_shlibs=no
13016 fi
13017 ;;
13018
13019 netbsd*)
13020 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13021 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13022 wlarc=
13023 else
13024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13026 fi
13027 ;;
13028
13029 solaris*)
13030 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13031 ld_shlibs=no
13032 cat <<_LT_EOF 1>&2
13033
13034*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13035*** create shared libraries on Solaris systems. Therefore, libtool
13036*** is disabling shared libraries support. We urge you to upgrade GNU
13037*** binutils to release 2.9.1 or newer. Another option is to modify
13038*** your PATH or compiler configuration so that the native linker is
13039*** used, and then restart.
13040
13041_LT_EOF
13042 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13045 else
13046 ld_shlibs=no
13047 fi
13048 ;;
13049
13050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13051 case `$LD -v 2>&1` in
13052 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13053 ld_shlibs=no
13054 cat <<_LT_EOF 1>&2
13055
13056*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13057*** reliably create shared libraries on SCO systems. Therefore, libtool
13058*** is disabling shared libraries support. We urge you to upgrade GNU
13059*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13060*** your PATH or compiler configuration so that the native linker is
13061*** used, and then restart.
13062
13063_LT_EOF
13064 ;;
13065 *)
13066 # For security reasons, it is highly recommended that you always
13067 # use absolute paths for naming shared libraries, and exclude the
13068 # DT_RUNPATH tag from executables and libraries. But doing so
13069 # requires that you compile everything twice, which is a pain.
13070 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13071 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13074 else
13075 ld_shlibs=no
13076 fi
13077 ;;
13078 esac
13079 ;;
13080
13081 sunos4*)
13082 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13083 wlarc=
13084 hardcode_direct=yes
13085 hardcode_shlibpath_var=no
13086 ;;
13087
13088 *)
13089 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13092 else
13093 ld_shlibs=no
13094 fi
13095 ;;
13096 esac
13097
13098 if test "$ld_shlibs" = no; then
13099 runpath_var=
13100 hardcode_libdir_flag_spec=
13101 export_dynamic_flag_spec=
13102 whole_archive_flag_spec=
13103 fi
13104 else
13105 # PORTME fill in a description of your system's linker (not GNU ld)
13106 case $host_os in
13107 aix3*)
13108 allow_undefined_flag=unsupported
13109 always_export_symbols=yes
13110 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'
13111 # Note: this linker hardcodes the directories in LIBPATH if there
13112 # are no directories specified by -L.
13113 hardcode_minus_L=yes
13114 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13115 # Neither direct hardcoding nor static linking is supported with a
13116 # broken collect2.
13117 hardcode_direct=unsupported
13118 fi
13119 ;;
13120
13121 aix[4-9]*)
13122 if test "$host_cpu" = ia64; then
13123 # On IA64, the linker does run time linking by default, so we don't
13124 # have to do anything special.
13125 aix_use_runtimelinking=no
13126 exp_sym_flag='-Bexport'
13127 no_entry_flag=""
13128 else
13129 # If we're using GNU nm, then we don't want the "-C" option.
13130 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13131 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13132 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'
13133 else
13134 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'
13135 fi
13136 aix_use_runtimelinking=no
13137
13138 # Test if we are trying to use run time linking or normal
13139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13140 # need to do runtime linking.
13141 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13142 for ld_flag in $LDFLAGS; do
13143 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13144 aix_use_runtimelinking=yes
13145 break
13146 fi
13147 done
13148 ;;
13149 esac
13150
13151 exp_sym_flag='-bexport'
13152 no_entry_flag='-bnoentry'
13153 fi
13154
13155 # When large executables or shared objects are built, AIX ld can
13156 # have problems creating the table of contents. If linking a library
13157 # or program results in "error TOC overflow" add -mminimal-toc to
13158 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13159 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13160
13161 archive_cmds=''
13162 hardcode_direct=yes
13163 hardcode_direct_absolute=yes
13164 hardcode_libdir_separator=':'
13165 link_all_deplibs=yes
13166 file_list_spec='${wl}-f,'
13167
13168 if test "$GCC" = yes; then
13169 case $host_os in aix4.[012]|aix4.[012].*)
13170 # We only want to do this on AIX 4.2 and lower, the check
13171 # below for broken collect2 doesn't work under 4.3+
13172 collect2name=`${CC} -print-prog-name=collect2`
13173 if test -f "$collect2name" &&
13174 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13175 then
13176 # We have reworked collect2
13177 :
13178 else
13179 # We have old collect2
13180 hardcode_direct=unsupported
13181 # It fails to find uninstalled libraries when the uninstalled
13182 # path is not listed in the libpath. Setting hardcode_minus_L
13183 # to unsupported forces relinking
13184 hardcode_minus_L=yes
13185 hardcode_libdir_flag_spec='-L$libdir'
13186 hardcode_libdir_separator=
13187 fi
13188 ;;
13189 esac
13190 shared_flag='-shared'
13191 if test "$aix_use_runtimelinking" = yes; then
13192 shared_flag="$shared_flag "'${wl}-G'
13193 fi
13194 else
13195 # not using gcc
13196 if test "$host_cpu" = ia64; then
13197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13198 # chokes on -Wl,-G. The following line is correct:
13199 shared_flag='-G'
13200 else
13201 if test "$aix_use_runtimelinking" = yes; then
13202 shared_flag='${wl}-G'
13203 else
13204 shared_flag='${wl}-bM:SRE'
13205 fi
13206 fi
13207 fi
13208
13209 export_dynamic_flag_spec='${wl}-bexpall'
13210 # It seems that -bexpall does not export symbols beginning with
13211 # underscore (_), so it is better to generate a list of symbols to export.
13212 always_export_symbols=yes
13213 if test "$aix_use_runtimelinking" = yes; then
13214 # Warning - without using the other runtime loading flags (-brtl),
13215 # -berok will link without error, but may produce a broken library.
13216 allow_undefined_flag='-berok'
13217 # Determine the default libpath from the value encoded in an
13218 # empty executable.
13219 cat >conftest.$ac_ext <<_ACEOF
13220/* confdefs.h. */
13221_ACEOF
13222cat confdefs.h >>conftest.$ac_ext
13223cat >>conftest.$ac_ext <<_ACEOF
13224/* end confdefs.h. */
13225
13226int
13227main ()
13228{
13229
13230 ;
13231 return 0;
13232}
13233_ACEOF
13234rm -f conftest.$ac_objext conftest$ac_exeext
13235if { (ac_try="$ac_link"
13236case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239esac
13240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13241$as_echo "$ac_try_echo") >&5
13242 (eval "$ac_link") 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && {
13249 test -z "$ac_c_werror_flag" ||
13250 test ! -s conftest.err
13251 } && test -s conftest$ac_exeext && {
13252 test "$cross_compiling" = yes ||
13253 $as_test_x conftest$ac_exeext
13254 }; then
13255
13256lt_aix_libpath_sed='
13257 /Import File Strings/,/^$/ {
13258 /^0/ {
13259 s/^0 *\(.*\)$/\1/
13260 p
13261 }
13262 }'
13263aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13264# Check for a 64-bit object if we didn't find anything.
13265if test -z "$aix_libpath"; then
13266 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13267fi
13268else
13269 $as_echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272
13273fi
13274
13275rm -rf conftest.dSYM
13276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13277 conftest$ac_exeext conftest.$ac_ext
13278if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13279
13280 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13281 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"
13282 else
13283 if test "$host_cpu" = ia64; then
13284 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13285 allow_undefined_flag="-z nodefs"
13286 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"
13287 else
13288 # Determine the default libpath from the value encoded in an
13289 # empty executable.
13290 cat >conftest.$ac_ext <<_ACEOF
13291/* confdefs.h. */
13292_ACEOF
13293cat confdefs.h >>conftest.$ac_ext
13294cat >>conftest.$ac_ext <<_ACEOF
13295/* end confdefs.h. */
13296
13297int
13298main ()
13299{
13300
13301 ;
13302 return 0;
13303}
13304_ACEOF
13305rm -f conftest.$ac_objext conftest$ac_exeext
13306if { (ac_try="$ac_link"
13307case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13310esac
13311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13312$as_echo "$ac_try_echo") >&5
13313 (eval "$ac_link") 2>conftest.er1
13314 ac_status=$?
13315 grep -v '^ *+' conftest.er1 >conftest.err
13316 rm -f conftest.er1
13317 cat conftest.err >&5
13318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } && {
13320 test -z "$ac_c_werror_flag" ||
13321 test ! -s conftest.err
13322 } && test -s conftest$ac_exeext && {
13323 test "$cross_compiling" = yes ||
13324 $as_test_x conftest$ac_exeext
13325 }; then
13326
13327lt_aix_libpath_sed='
13328 /Import File Strings/,/^$/ {
13329 /^0/ {
13330 s/^0 *\(.*\)$/\1/
13331 p
13332 }
13333 }'
13334aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13335# Check for a 64-bit object if we didn't find anything.
13336if test -z "$aix_libpath"; then
13337 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13338fi
13339else
13340 $as_echo "$as_me: failed program was:" >&5
13341sed 's/^/| /' conftest.$ac_ext >&5
13342
13343
13344fi
13345
13346rm -rf conftest.dSYM
13347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13348 conftest$ac_exeext conftest.$ac_ext
13349if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13350
13351 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13352 # Warning - without using the other run time loading flags,
13353 # -berok will link without error, but may produce a broken library.
13354 no_undefined_flag=' ${wl}-bernotok'
13355 allow_undefined_flag=' ${wl}-berok'
13356 # Exported symbols can be pulled into shared objects from archives
13357 whole_archive_flag_spec='$convenience'
13358 archive_cmds_need_lc=yes
13359 # This is similar to how AIX traditionally builds its shared libraries.
13360 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'
13361 fi
13362 fi
13363 ;;
13364
13365 amigaos*)
13366 case $host_cpu in
13367 powerpc)
13368 # see comment about AmigaOS4 .so support
13369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370 archive_expsym_cmds=''
13371 ;;
13372 m68k)
13373 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)'
13374 hardcode_libdir_flag_spec='-L$libdir'
13375 hardcode_minus_L=yes
13376 ;;
13377 esac
13378 ;;
13379
13380 bsdi[45]*)
13381 export_dynamic_flag_spec=-rdynamic
13382 ;;
13383
13384 cygwin* | mingw* | pw32* | cegcc*)
13385 # When not using gcc, we currently assume that we are using
13386 # Microsoft Visual C++.
13387 # hardcode_libdir_flag_spec is actually meaningless, as there is
13388 # no search path for DLLs.
13389 hardcode_libdir_flag_spec=' '
13390 allow_undefined_flag=unsupported
13391 # Tell ltmain to make .lib files, not .a files.
13392 libext=lib
13393 # Tell ltmain to make .dll files, not .so files.
13394 shrext_cmds=".dll"
13395 # FIXME: Setting linknames here is a bad hack.
13396 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13397 # The linker will automatically build a .lib file if we build a DLL.
13398 old_archive_from_new_cmds='true'
13399 # FIXME: Should let the user specify the lib program.
13400 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13401 fix_srcfile_path='`cygpath -w "$srcfile"`'
13402 enable_shared_with_static_runtimes=yes
13403 ;;
13404
13405 darwin* | rhapsody*)
13406
13407
13408 archive_cmds_need_lc=no
13409 hardcode_direct=no
13410 hardcode_automatic=yes
13411 hardcode_shlibpath_var=unsupported
13412 whole_archive_flag_spec=''
13413 link_all_deplibs=yes
13414 allow_undefined_flag="$_lt_dar_allow_undefined"
13415 case $cc_basename in
13416 ifort*) _lt_dar_can_shared=yes ;;
13417 *) _lt_dar_can_shared=$GCC ;;
13418 esac
13419 if test "$_lt_dar_can_shared" = "yes"; then
13420 output_verbose_link_cmd=echo
13421 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13422 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13423 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}"
13424 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}"
13425
13426 else
13427 ld_shlibs=no
13428 fi
13429
13430 ;;
13431
13432 dgux*)
13433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13434 hardcode_libdir_flag_spec='-L$libdir'
13435 hardcode_shlibpath_var=no
13436 ;;
13437
13438 freebsd1*)
13439 ld_shlibs=no
13440 ;;
13441
13442 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13443 # support. Future versions do this automatically, but an explicit c++rt0.o
13444 # does not break anything, and helps significantly (at the cost of a little
13445 # extra space).
13446 freebsd2.2*)
13447 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13448 hardcode_libdir_flag_spec='-R$libdir'
13449 hardcode_direct=yes
13450 hardcode_shlibpath_var=no
13451 ;;
13452
13453 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13454 freebsd2*)
13455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13456 hardcode_direct=yes
13457 hardcode_minus_L=yes
13458 hardcode_shlibpath_var=no
13459 ;;
13460
13461 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13462 freebsd* | dragonfly*)
13463 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13464 hardcode_libdir_flag_spec='-R$libdir'
13465 hardcode_direct=yes
13466 hardcode_shlibpath_var=no
13467 ;;
13468
13469 hpux9*)
13470 if test "$GCC" = yes; then
13471 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'
13472 else
13473 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'
13474 fi
13475 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13476 hardcode_libdir_separator=:
13477 hardcode_direct=yes
13478
13479 # hardcode_minus_L: Not really in the search PATH,
13480 # but as the default location of the library.
13481 hardcode_minus_L=yes
13482 export_dynamic_flag_spec='${wl}-E'
13483 ;;
13484
13485 hpux10*)
13486 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13487 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13488 else
13489 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13490 fi
13491 if test "$with_gnu_ld" = no; then
13492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13493 hardcode_libdir_flag_spec_ld='+b $libdir'
13494 hardcode_libdir_separator=:
13495 hardcode_direct=yes
13496 hardcode_direct_absolute=yes
13497 export_dynamic_flag_spec='${wl}-E'
13498 # hardcode_minus_L: Not really in the search PATH,
13499 # but as the default location of the library.
13500 hardcode_minus_L=yes
13501 fi
13502 ;;
13503
13504 hpux11*)
13505 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13506 case $host_cpu in
13507 hppa*64*)
13508 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13509 ;;
13510 ia64*)
13511 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13512 ;;
13513 *)
13514 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13515 ;;
13516 esac
13517 else
13518 case $host_cpu in
13519 hppa*64*)
13520 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13521 ;;
13522 ia64*)
13523 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13524 ;;
13525 *)
13526 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13527 ;;
13528 esac
13529 fi
13530 if test "$with_gnu_ld" = no; then
13531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13532 hardcode_libdir_separator=:
13533
13534 case $host_cpu in
13535 hppa*64*|ia64*)
13536 hardcode_direct=no
13537 hardcode_shlibpath_var=no
13538 ;;
13539 *)
13540 hardcode_direct=yes
13541 hardcode_direct_absolute=yes
13542 export_dynamic_flag_spec='${wl}-E'
13543
13544 # hardcode_minus_L: Not really in the search PATH,
13545 # but as the default location of the library.
13546 hardcode_minus_L=yes
13547 ;;
13548 esac
13549 fi
13550 ;;
13551
13552 irix5* | irix6* | nonstopux*)
13553 if test "$GCC" = yes; then
13554 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'
13555 # Try to use the -exported_symbol ld option, if it does not
13556 # work, assume that -exports_file does not work either and
13557 # implicitly export all symbols.
13558 save_LDFLAGS="$LDFLAGS"
13559 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13560 cat >conftest.$ac_ext <<_ACEOF
13561int foo(void) {}
13562_ACEOF
13563rm -f conftest.$ac_objext conftest$ac_exeext
13564if { (ac_try="$ac_link"
13565case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568esac
13569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13570$as_echo "$ac_try_echo") >&5
13571 (eval "$ac_link") 2>conftest.er1
13572 ac_status=$?
13573 grep -v '^ *+' conftest.er1 >conftest.err
13574 rm -f conftest.er1
13575 cat conftest.err >&5
13576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } && {
13578 test -z "$ac_c_werror_flag" ||
13579 test ! -s conftest.err
13580 } && test -s conftest$ac_exeext && {
13581 test "$cross_compiling" = yes ||
13582 $as_test_x conftest$ac_exeext
13583 }; then
13584 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'
13585
13586else
13587 $as_echo "$as_me: failed program was:" >&5
13588sed 's/^/| /' conftest.$ac_ext >&5
13589
13590
13591fi
13592
13593rm -rf conftest.dSYM
13594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LDFLAGS="$save_LDFLAGS"
13597 else
13598 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'
13599 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'
13600 fi
13601 archive_cmds_need_lc='no'
13602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13603 hardcode_libdir_separator=:
13604 inherit_rpath=yes
13605 link_all_deplibs=yes
13606 ;;
13607
13608 netbsd*)
13609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13611 else
13612 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13613 fi
13614 hardcode_libdir_flag_spec='-R$libdir'
13615 hardcode_direct=yes
13616 hardcode_shlibpath_var=no
13617 ;;
13618
13619 newsos6)
13620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13621 hardcode_direct=yes
13622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13623 hardcode_libdir_separator=:
13624 hardcode_shlibpath_var=no
13625 ;;
13626
13627 *nto* | *qnx*)
13628 ;;
13629
13630 openbsd*)
13631 if test -f /usr/libexec/ld.so; then
13632 hardcode_direct=yes
13633 hardcode_shlibpath_var=no
13634 hardcode_direct_absolute=yes
13635 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13637 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13638 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13639 export_dynamic_flag_spec='${wl}-E'
13640 else
13641 case $host_os in
13642 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13644 hardcode_libdir_flag_spec='-R$libdir'
13645 ;;
13646 *)
13647 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13648 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13649 ;;
13650 esac
13651 fi
13652 else
13653 ld_shlibs=no
13654 fi
13655 ;;
13656
13657 os2*)
13658 hardcode_libdir_flag_spec='-L$libdir'
13659 hardcode_minus_L=yes
13660 allow_undefined_flag=unsupported
13661 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'
13662 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13663 ;;
13664
13665 osf3*)
13666 if test "$GCC" = yes; then
13667 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13668 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'
13669 else
13670 allow_undefined_flag=' -expect_unresolved \*'
13671 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'
13672 fi
13673 archive_cmds_need_lc='no'
13674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13675 hardcode_libdir_separator=:
13676 ;;
13677
13678 osf4* | osf5*) # as osf3* with the addition of -msym flag
13679 if test "$GCC" = yes; then
13680 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13681 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'
13682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13683 else
13684 allow_undefined_flag=' -expect_unresolved \*'
13685 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'
13686 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~
13687 $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'
13688
13689 # Both c and cxx compiler support -rpath directly
13690 hardcode_libdir_flag_spec='-rpath $libdir'
13691 fi
13692 archive_cmds_need_lc='no'
13693 hardcode_libdir_separator=:
13694 ;;
13695
13696 solaris*)
13697 no_undefined_flag=' -z defs'
13698 if test "$GCC" = yes; then
13699 wlarc='${wl}'
13700 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13701 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13702 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13703 else
13704 case `$CC -V 2>&1` in
13705 *"Compilers 5.0"*)
13706 wlarc=''
13707 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13708 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13709 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13710 ;;
13711 *)
13712 wlarc='${wl}'
13713 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13714 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13715 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13716 ;;
13717 esac
13718 fi
13719 hardcode_libdir_flag_spec='-R$libdir'
13720 hardcode_shlibpath_var=no
13721 case $host_os in
13722 solaris2.[0-5] | solaris2.[0-5].*) ;;
13723 *)
13724 # The compiler driver will combine and reorder linker options,
13725 # but understands `-z linker_flag'. GCC discards it without `$wl',
13726 # but is careful enough not to reorder.
13727 # Supported since Solaris 2.6 (maybe 2.5.1?)
13728 if test "$GCC" = yes; then
13729 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13730 else
13731 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13732 fi
13733 ;;
13734 esac
13735 link_all_deplibs=yes
13736 ;;
13737
13738 sunos4*)
13739 if test "x$host_vendor" = xsequent; then
13740 # Use $CC to link under sequent, because it throws in some extra .o
13741 # files that make .init and .fini sections work.
13742 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13743 else
13744 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13745 fi
13746 hardcode_libdir_flag_spec='-L$libdir'
13747 hardcode_direct=yes
13748 hardcode_minus_L=yes
13749 hardcode_shlibpath_var=no
13750 ;;
13751
13752 sysv4)
13753 case $host_vendor in
13754 sni)
13755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13756 hardcode_direct=yes # is this really true???
13757 ;;
13758 siemens)
13759 ## LD is ld it makes a PLAMLIB
13760 ## CC just makes a GrossModule.
13761 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13762 reload_cmds='$CC -r -o $output$reload_objs'
13763 hardcode_direct=no
13764 ;;
13765 motorola)
13766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13767 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13768 ;;
13769 esac
13770 runpath_var='LD_RUN_PATH'
13771 hardcode_shlibpath_var=no
13772 ;;
13773
13774 sysv4.3*)
13775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13776 hardcode_shlibpath_var=no
13777 export_dynamic_flag_spec='-Bexport'
13778 ;;
13779
13780 sysv4*MP*)
13781 if test -d /usr/nec; then
13782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13783 hardcode_shlibpath_var=no
13784 runpath_var=LD_RUN_PATH
13785 hardcode_runpath_var=yes
13786 ld_shlibs=yes
13787 fi
13788 ;;
13789
13790 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13791 no_undefined_flag='${wl}-z,text'
13792 archive_cmds_need_lc=no
13793 hardcode_shlibpath_var=no
13794 runpath_var='LD_RUN_PATH'
13795
13796 if test "$GCC" = yes; then
13797 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13798 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13799 else
13800 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13802 fi
13803 ;;
13804
13805 sysv5* | sco3.2v5* | sco5v6*)
13806 # Note: We can NOT use -z defs as we might desire, because we do not
13807 # link with -lc, and that would cause any symbols used from libc to
13808 # always be unresolved, which means just about no library would
13809 # ever link correctly. If we're not using GNU ld we use -z text
13810 # though, which does catch some bad symbols but isn't as heavy-handed
13811 # as -z defs.
13812 no_undefined_flag='${wl}-z,text'
13813 allow_undefined_flag='${wl}-z,nodefs'
13814 archive_cmds_need_lc=no
13815 hardcode_shlibpath_var=no
13816 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13817 hardcode_libdir_separator=':'
13818 link_all_deplibs=yes
13819 export_dynamic_flag_spec='${wl}-Bexport'
13820 runpath_var='LD_RUN_PATH'
13821
13822 if test "$GCC" = yes; then
13823 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13824 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13825 else
13826 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13827 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828 fi
13829 ;;
13830
13831 uts4*)
13832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13833 hardcode_libdir_flag_spec='-L$libdir'
13834 hardcode_shlibpath_var=no
13835 ;;
13836
13837 *)
13838 ld_shlibs=no
13839 ;;
13840 esac
13841
13842 if test x$host_vendor = xsni; then
13843 case $host in
13844 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13845 export_dynamic_flag_spec='${wl}-Blargedynsym'
13846 ;;
13847 esac
13848 fi
13849 fi
13850
13851{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13852$as_echo "$ld_shlibs" >&6; }
13853test "$ld_shlibs" = no && can_build_shared=no
13854
13855with_gnu_ld=$with_gnu_ld
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871#
13872# Do we need to explicitly link libc?
13873#
13874case "x$archive_cmds_need_lc" in
13875x|xyes)
13876 # Assume -lc should be added
13877 archive_cmds_need_lc=yes
13878
13879 if test "$enable_shared" = yes && test "$GCC" = yes; then
13880 case $archive_cmds in
13881 *'~'*)
13882 # FIXME: we may have to deal with multi-command sequences.
13883 ;;
13884 '$CC '*)
13885 # Test whether the compiler implicitly links with -lc since on some
13886 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13887 # to ld, don't add -lc before -lgcc.
13888 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13889$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13890 $RM conftest*
13891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13892
13893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13894 (eval $ac_compile) 2>&5
13895 ac_status=$?
13896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } 2>conftest.err; then
13898 soname=conftest
13899 lib=conftest
13900 libobjs=conftest.$ac_objext
13901 deplibs=
13902 wl=$lt_prog_compiler_wl
13903 pic_flag=$lt_prog_compiler_pic
13904 compiler_flags=-v
13905 linker_flags=-v
13906 verstring=
13907 output_objdir=.
13908 libname=conftest
13909 lt_save_allow_undefined_flag=$allow_undefined_flag
13910 allow_undefined_flag=
13911 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
13912 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13913 ac_status=$?
13914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }
13916 then
13917 archive_cmds_need_lc=no
13918 else
13919 archive_cmds_need_lc=yes
13920 fi
13921 allow_undefined_flag=$lt_save_allow_undefined_flag
13922 else
13923 cat conftest.err 1>&5
13924 fi
13925 $RM conftest*
13926 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13927$as_echo "$archive_cmds_need_lc" >&6; }
13928 ;;
13929 esac
13930 fi
13931 ;;
13932esac
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14091$as_echo_n "checking dynamic linker characteristics... " >&6; }
14092
14093if test "$GCC" = yes; then
14094 case $host_os in
14095 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14096 *) lt_awk_arg="/^libraries:/" ;;
14097 esac
14098 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14099 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14100 # if the path contains ";" then we assume it to be the separator
14101 # otherwise default to the standard path separator (i.e. ":") - it is
14102 # assumed that no part of a normal pathname contains ";" but that should
14103 # okay in the real world where ";" in dirpaths is itself problematic.
14104 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14105 else
14106 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14107 fi
14108 # Ok, now we have the path, separated by spaces, we can step through it
14109 # and add multilib dir if necessary.
14110 lt_tmp_lt_search_path_spec=
14111 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14112 for lt_sys_path in $lt_search_path_spec; do
14113 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14114 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14115 else
14116 test -d "$lt_sys_path" && \
14117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14118 fi
14119 done
14120 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14121BEGIN {RS=" "; FS="/|\n";} {
14122 lt_foo="";
14123 lt_count=0;
14124 for (lt_i = NF; lt_i > 0; lt_i--) {
14125 if ($lt_i != "" && $lt_i != ".") {
14126 if ($lt_i == "..") {
14127 lt_count++;
14128 } else {
14129 if (lt_count == 0) {
14130 lt_foo="/" $lt_i lt_foo;
14131 } else {
14132 lt_count--;
14133 }
14134 }
14135 }
14136 }
14137 if (lt_foo != "") { lt_freq[lt_foo]++; }
14138 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14139}'`
14140 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14141else
14142 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14143fi
14144library_names_spec=
14145libname_spec='lib$name'
14146soname_spec=
14147shrext_cmds=".so"
14148postinstall_cmds=
14149postuninstall_cmds=
14150finish_cmds=
14151finish_eval=
14152shlibpath_var=
14153shlibpath_overrides_runpath=unknown
14154version_type=none
14155dynamic_linker="$host_os ld.so"
14156sys_lib_dlsearch_path_spec="/lib /usr/lib"
14157need_lib_prefix=unknown
14158hardcode_into_libs=no
14159
14160# when you set need_version to no, make sure it does not cause -set_version
14161# flags to be left without arguments
14162need_version=unknown
14163
14164case $host_os in
14165aix3*)
14166 version_type=linux
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14168 shlibpath_var=LIBPATH
14169
14170 # AIX 3 has no versioning support, so we append a major version to the name.
14171 soname_spec='${libname}${release}${shared_ext}$major'
14172 ;;
14173
14174aix[4-9]*)
14175 version_type=linux
14176 need_lib_prefix=no
14177 need_version=no
14178 hardcode_into_libs=yes
14179 if test "$host_cpu" = ia64; then
14180 # AIX 5 supports IA64
14181 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14182 shlibpath_var=LD_LIBRARY_PATH
14183 else
14184 # With GCC up to 2.95.x, collect2 would create an import file
14185 # for dependence libraries. The import file would start with
14186 # the line `#! .'. This would cause the generated library to
14187 # depend on `.', always an invalid library. This was fixed in
14188 # development snapshots of GCC prior to 3.0.
14189 case $host_os in
14190 aix4 | aix4.[01] | aix4.[01].*)
14191 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14192 echo ' yes '
14193 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14194 :
14195 else
14196 can_build_shared=no
14197 fi
14198 ;;
14199 esac
14200 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14201 # soname into executable. Probably we can add versioning support to
14202 # collect2, so additional links can be useful in future.
14203 if test "$aix_use_runtimelinking" = yes; then
14204 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14205 # instead of lib<name>.a to let people know that these are not
14206 # typical AIX shared libraries.
14207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14208 else
14209 # We preserve .a as extension for shared libraries through AIX4.2
14210 # and later when we are not doing run time linking.
14211 library_names_spec='${libname}${release}.a $libname.a'
14212 soname_spec='${libname}${release}${shared_ext}$major'
14213 fi
14214 shlibpath_var=LIBPATH
14215 fi
14216 ;;
14217
14218amigaos*)
14219 case $host_cpu in
14220 powerpc)
14221 # Since July 2007 AmigaOS4 officially supports .so libraries.
14222 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14224 ;;
14225 m68k)
14226 library_names_spec='$libname.ixlibrary $libname.a'
14227 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14228 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'
14229 ;;
14230 esac
14231 ;;
14232
14233beos*)
14234 library_names_spec='${libname}${shared_ext}'
14235 dynamic_linker="$host_os ld.so"
14236 shlibpath_var=LIBRARY_PATH
14237 ;;
14238
14239bsdi[45]*)
14240 version_type=linux
14241 need_version=no
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14243 soname_spec='${libname}${release}${shared_ext}$major'
14244 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14245 shlibpath_var=LD_LIBRARY_PATH
14246 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14247 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14248 # the default ld.so.conf also contains /usr/contrib/lib and
14249 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14250 # libtool to hard-code these into programs
14251 ;;
14252
14253cygwin* | mingw* | pw32* | cegcc*)
14254 version_type=windows
14255 shrext_cmds=".dll"
14256 need_version=no
14257 need_lib_prefix=no
14258
14259 case $GCC,$host_os in
14260 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14261 library_names_spec='$libname.dll.a'
14262 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14263 postinstall_cmds='base_file=`basename \${file}`~
14264 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14265 dldir=$destdir/`dirname \$dlpath`~
14266 test -d \$dldir || mkdir -p \$dldir~
14267 $install_prog $dir/$dlname \$dldir/$dlname~
14268 chmod a+x \$dldir/$dlname~
14269 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14270 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14271 fi'
14272 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14273 dlpath=$dir/\$dldll~
14274 $RM \$dlpath'
14275 shlibpath_overrides_runpath=yes
14276
14277 case $host_os in
14278 cygwin*)
14279 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14280 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14281 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14282 ;;
14283 mingw* | cegcc*)
14284 # MinGW DLLs use traditional 'lib' prefix
14285 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14286 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14287 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14288 # It is most probably a Windows format PATH printed by
14289 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14290 # path with ; separators, and with drive letters. We can handle the
14291 # drive letters (cygwin fileutils understands them), so leave them,
14292 # especially as we might pass files found there to a mingw objdump,
14293 # which wouldn't understand a cygwinified path. Ahh.
14294 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14295 else
14296 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14297 fi
14298 ;;
14299 pw32*)
14300 # pw32 DLLs use 'pw' prefix rather than 'lib'
14301 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14302 ;;
14303 esac
14304 ;;
14305
14306 *)
14307 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14308 ;;
14309 esac
14310 dynamic_linker='Win32 ld.exe'
14311 # FIXME: first we should search . and the directory the executable is in
14312 shlibpath_var=PATH
14313 ;;
14314
14315darwin* | rhapsody*)
14316 dynamic_linker="$host_os dyld"
14317 version_type=darwin
14318 need_lib_prefix=no
14319 need_version=no
14320 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14321 soname_spec='${libname}${release}${major}$shared_ext'
14322 shlibpath_overrides_runpath=yes
14323 shlibpath_var=DYLD_LIBRARY_PATH
14324 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14325
14326 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14327 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14328 ;;
14329
14330dgux*)
14331 version_type=linux
14332 need_lib_prefix=no
14333 need_version=no
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14335 soname_spec='${libname}${release}${shared_ext}$major'
14336 shlibpath_var=LD_LIBRARY_PATH
14337 ;;
14338
14339freebsd1*)
14340 dynamic_linker=no
14341 ;;
14342
14343freebsd* | dragonfly*)
14344 # DragonFly does not have aout. When/if they implement a new
14345 # versioning mechanism, adjust this.
14346 if test -x /usr/bin/objformat; then
14347 objformat=`/usr/bin/objformat`
14348 else
14349 case $host_os in
14350 freebsd[123]*) objformat=aout ;;
14351 *) objformat=elf ;;
14352 esac
14353 fi
14354 version_type=freebsd-$objformat
14355 case $version_type in
14356 freebsd-elf*)
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14358 need_version=no
14359 need_lib_prefix=no
14360 ;;
14361 freebsd-*)
14362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14363 need_version=yes
14364 ;;
14365 esac
14366 shlibpath_var=LD_LIBRARY_PATH
14367 case $host_os in
14368 freebsd2*)
14369 shlibpath_overrides_runpath=yes
14370 ;;
14371 freebsd3.[01]* | freebsdelf3.[01]*)
14372 shlibpath_overrides_runpath=yes
14373 hardcode_into_libs=yes
14374 ;;
14375 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14376 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14377 shlibpath_overrides_runpath=no
14378 hardcode_into_libs=yes
14379 ;;
14380 *) # from 4.6 on, and DragonFly
14381 shlibpath_overrides_runpath=yes
14382 hardcode_into_libs=yes
14383 ;;
14384 esac
14385 ;;
14386
14387gnu*)
14388 version_type=linux
14389 need_lib_prefix=no
14390 need_version=no
14391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14392 soname_spec='${libname}${release}${shared_ext}$major'
14393 shlibpath_var=LD_LIBRARY_PATH
14394 hardcode_into_libs=yes
14395 ;;
14396
14397hpux9* | hpux10* | hpux11*)
14398 # Give a soname corresponding to the major version so that dld.sl refuses to
14399 # link against other versions.
14400 version_type=sunos
14401 need_lib_prefix=no
14402 need_version=no
14403 case $host_cpu in
14404 ia64*)
14405 shrext_cmds='.so'
14406 hardcode_into_libs=yes
14407 dynamic_linker="$host_os dld.so"
14408 shlibpath_var=LD_LIBRARY_PATH
14409 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14411 soname_spec='${libname}${release}${shared_ext}$major'
14412 if test "X$HPUX_IA64_MODE" = X32; then
14413 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14414 else
14415 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14416 fi
14417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14418 ;;
14419 hppa*64*)
14420 shrext_cmds='.sl'
14421 hardcode_into_libs=yes
14422 dynamic_linker="$host_os dld.sl"
14423 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14424 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14426 soname_spec='${libname}${release}${shared_ext}$major'
14427 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14428 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14429 ;;
14430 *)
14431 shrext_cmds='.sl'
14432 dynamic_linker="$host_os dld.sl"
14433 shlibpath_var=SHLIB_PATH
14434 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436 soname_spec='${libname}${release}${shared_ext}$major'
14437 ;;
14438 esac
14439 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14440 postinstall_cmds='chmod 555 $lib'
14441 ;;
14442
14443interix[3-9]*)
14444 version_type=linux
14445 need_lib_prefix=no
14446 need_version=no
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14448 soname_spec='${libname}${release}${shared_ext}$major'
14449 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14450 shlibpath_var=LD_LIBRARY_PATH
14451 shlibpath_overrides_runpath=no
14452 hardcode_into_libs=yes
14453 ;;
14454
14455irix5* | irix6* | nonstopux*)
14456 case $host_os in
14457 nonstopux*) version_type=nonstopux ;;
14458 *)
14459 if test "$lt_cv_prog_gnu_ld" = yes; then
14460 version_type=linux
14461 else
14462 version_type=irix
14463 fi ;;
14464 esac
14465 need_lib_prefix=no
14466 need_version=no
14467 soname_spec='${libname}${release}${shared_ext}$major'
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14469 case $host_os in
14470 irix5* | nonstopux*)
14471 libsuff= shlibsuff=
14472 ;;
14473 *)
14474 case $LD in # libtool.m4 will add one of these switches to LD
14475 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14476 libsuff= shlibsuff= libmagic=32-bit;;
14477 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14478 libsuff=32 shlibsuff=N32 libmagic=N32;;
14479 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14480 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14481 *) libsuff= shlibsuff= libmagic=never-match;;
14482 esac
14483 ;;
14484 esac
14485 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14486 shlibpath_overrides_runpath=no
14487 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14488 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14489 hardcode_into_libs=yes
14490 ;;
14491
14492# No shared lib support for Linux oldld, aout, or coff.
14493linux*oldld* | linux*aout* | linux*coff*)
14494 dynamic_linker=no
14495 ;;
14496
14497# This must be Linux ELF.
14498linux* | k*bsd*-gnu)
14499 version_type=linux
14500 need_lib_prefix=no
14501 need_version=no
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 soname_spec='${libname}${release}${shared_ext}$major'
14504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 shlibpath_overrides_runpath=no
14507 # Some binutils ld are patched to set DT_RUNPATH
14508 save_LDFLAGS=$LDFLAGS
14509 save_libdir=$libdir
14510 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14511 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14512 cat >conftest.$ac_ext <<_ACEOF
14513/* confdefs.h. */
14514_ACEOF
14515cat confdefs.h >>conftest.$ac_ext
14516cat >>conftest.$ac_ext <<_ACEOF
14517/* end confdefs.h. */
14518
14519int
14520main ()
14521{
14522
14523 ;
14524 return 0;
14525}
14526_ACEOF
14527rm -f conftest.$ac_objext conftest$ac_exeext
14528if { (ac_try="$ac_link"
14529case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532esac
14533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14534$as_echo "$ac_try_echo") >&5
14535 (eval "$ac_link") 2>conftest.er1
14536 ac_status=$?
14537 grep -v '^ *+' conftest.er1 >conftest.err
14538 rm -f conftest.er1
14539 cat conftest.err >&5
14540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } && {
14542 test -z "$ac_c_werror_flag" ||
14543 test ! -s conftest.err
14544 } && test -s conftest$ac_exeext && {
14545 test "$cross_compiling" = yes ||
14546 $as_test_x conftest$ac_exeext
14547 }; then
14548 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14549 shlibpath_overrides_runpath=yes
14550fi
14551
14552else
14553 $as_echo "$as_me: failed program was:" >&5
14554sed 's/^/| /' conftest.$ac_ext >&5
14555
14556
14557fi
14558
14559rm -rf conftest.dSYM
14560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14561 conftest$ac_exeext conftest.$ac_ext
14562 LDFLAGS=$save_LDFLAGS
14563 libdir=$save_libdir
14564
14565 # This implies no fast_install, which is unacceptable.
14566 # Some rework will be needed to allow for fast_install
14567 # before this can be enabled.
14568 hardcode_into_libs=yes
14569
14570 # Add ABI-specific directories to the system library path.
14571 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14572
14573 # Append ld.so.conf contents to the search path
14574 if test -f /etc/ld.so.conf; then
14575 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' ' '`
14576 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14577 fi
14578
14579 # We used to test for /lib/ld.so.1 and disable shared libraries on
14580 # powerpc, because MkLinux only supported shared libraries with the
14581 # GNU dynamic linker. Since this was broken with cross compilers,
14582 # most powerpc-linux boxes support dynamic linking these days and
14583 # people can always --disable-shared, the test was removed, and we
14584 # assume the GNU/Linux dynamic linker is in use.
14585 dynamic_linker='GNU/Linux ld.so'
14586 ;;
14587
14588netbsd*)
14589 version_type=sunos
14590 need_lib_prefix=no
14591 need_version=no
14592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14595 dynamic_linker='NetBSD (a.out) ld.so'
14596 else
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14598 soname_spec='${libname}${release}${shared_ext}$major'
14599 dynamic_linker='NetBSD ld.elf_so'
14600 fi
14601 shlibpath_var=LD_LIBRARY_PATH
14602 shlibpath_overrides_runpath=yes
14603 hardcode_into_libs=yes
14604 ;;
14605
14606newsos6)
14607 version_type=linux
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609 shlibpath_var=LD_LIBRARY_PATH
14610 shlibpath_overrides_runpath=yes
14611 ;;
14612
14613*nto* | *qnx*)
14614 version_type=qnx
14615 need_lib_prefix=no
14616 need_version=no
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14618 soname_spec='${libname}${release}${shared_ext}$major'
14619 shlibpath_var=LD_LIBRARY_PATH
14620 shlibpath_overrides_runpath=no
14621 hardcode_into_libs=yes
14622 dynamic_linker='ldqnx.so'
14623 ;;
14624
14625openbsd*)
14626 version_type=sunos
14627 sys_lib_dlsearch_path_spec="/usr/lib"
14628 need_lib_prefix=no
14629 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14630 case $host_os in
14631 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14632 *) need_version=no ;;
14633 esac
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14638 case $host_os in
14639 openbsd2.[89] | openbsd2.[89].*)
14640 shlibpath_overrides_runpath=no
14641 ;;
14642 *)
14643 shlibpath_overrides_runpath=yes
14644 ;;
14645 esac
14646 else
14647 shlibpath_overrides_runpath=yes
14648 fi
14649 ;;
14650
14651os2*)
14652 libname_spec='$name'
14653 shrext_cmds=".dll"
14654 need_lib_prefix=no
14655 library_names_spec='$libname${shared_ext} $libname.a'
14656 dynamic_linker='OS/2 ld.exe'
14657 shlibpath_var=LIBPATH
14658 ;;
14659
14660osf3* | osf4* | osf5*)
14661 version_type=osf
14662 need_lib_prefix=no
14663 need_version=no
14664 soname_spec='${libname}${release}${shared_ext}$major'
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666 shlibpath_var=LD_LIBRARY_PATH
14667 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14668 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14669 ;;
14670
14671rdos*)
14672 dynamic_linker=no
14673 ;;
14674
14675solaris*)
14676 version_type=linux
14677 need_lib_prefix=no
14678 need_version=no
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 shlibpath_overrides_runpath=yes
14683 hardcode_into_libs=yes
14684 # ldd complains unless libraries are executable
14685 postinstall_cmds='chmod +x $lib'
14686 ;;
14687
14688sunos4*)
14689 version_type=sunos
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14691 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 shlibpath_overrides_runpath=yes
14694 if test "$with_gnu_ld" = yes; then
14695 need_lib_prefix=no
14696 fi
14697 need_version=yes
14698 ;;
14699
14700sysv4 | sysv4.3*)
14701 version_type=linux
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 case $host_vendor in
14706 sni)
14707 shlibpath_overrides_runpath=no
14708 need_lib_prefix=no
14709 runpath_var=LD_RUN_PATH
14710 ;;
14711 siemens)
14712 need_lib_prefix=no
14713 ;;
14714 motorola)
14715 need_lib_prefix=no
14716 need_version=no
14717 shlibpath_overrides_runpath=no
14718 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14719 ;;
14720 esac
14721 ;;
14722
14723sysv4*MP*)
14724 if test -d /usr/nec ;then
14725 version_type=linux
14726 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14727 soname_spec='$libname${shared_ext}.$major'
14728 shlibpath_var=LD_LIBRARY_PATH
14729 fi
14730 ;;
14731
14732sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14733 version_type=freebsd-elf
14734 need_lib_prefix=no
14735 need_version=no
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 shlibpath_var=LD_LIBRARY_PATH
14739 shlibpath_overrides_runpath=yes
14740 hardcode_into_libs=yes
14741 if test "$with_gnu_ld" = yes; then
14742 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14743 else
14744 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14745 case $host_os in
14746 sco3.2v5*)
14747 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14748 ;;
14749 esac
14750 fi
14751 sys_lib_dlsearch_path_spec='/usr/lib'
14752 ;;
14753
14754tpf*)
14755 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14756 version_type=linux
14757 need_lib_prefix=no
14758 need_version=no
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760 shlibpath_var=LD_LIBRARY_PATH
14761 shlibpath_overrides_runpath=no
14762 hardcode_into_libs=yes
14763 ;;
14764
14765uts4*)
14766 version_type=linux
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768 soname_spec='${libname}${release}${shared_ext}$major'
14769 shlibpath_var=LD_LIBRARY_PATH
14770 ;;
14771
14772*)
14773 dynamic_linker=no
14774 ;;
14775esac
14776{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14777$as_echo "$dynamic_linker" >&6; }
14778test "$dynamic_linker" = no && can_build_shared=no
14779
14780variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14781if test "$GCC" = yes; then
14782 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14783fi
14784
14785if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14786 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14787fi
14788if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14789 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14790fi
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14879$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14880hardcode_action=
14881if test -n "$hardcode_libdir_flag_spec" ||
14882 test -n "$runpath_var" ||
14883 test "X$hardcode_automatic" = "Xyes" ; then
14884
14885 # We can hardcode non-existent directories.
14886 if test "$hardcode_direct" != no &&
14887 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14888 # have to relink, otherwise we might link with an installed library
14889 # when we should be linking with a yet-to-be-installed one
14890 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14891 test "$hardcode_minus_L" != no; then
14892 # Linking always hardcodes the temporary library directory.
14893 hardcode_action=relink
14894 else
14895 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14896 hardcode_action=immediate
14897 fi
14898else
14899 # We cannot hardcode anything, or else we can only hardcode existing
14900 # directories.
14901 hardcode_action=unsupported
14902fi
14903{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
14904$as_echo "$hardcode_action" >&6; }
14905
14906if test "$hardcode_action" = relink ||
14907 test "$inherit_rpath" = yes; then
14908 # Fast installation is not supported
14909 enable_fast_install=no
14910elif test "$shlibpath_overrides_runpath" = yes ||
14911 test "$enable_shared" = no; then
14912 # Fast installation is not necessary
14913 enable_fast_install=needless
14914fi
14915
14916
14917
14918
14919
14920
14921 if test "x$enable_dlopen" != xyes; then
14922 enable_dlopen=unknown
14923 enable_dlopen_self=unknown
14924 enable_dlopen_self_static=unknown
14925else
14926 lt_cv_dlopen=no
14927 lt_cv_dlopen_libs=
14928
14929 case $host_os in
14930 beos*)
14931 lt_cv_dlopen="load_add_on"
14932 lt_cv_dlopen_libs=
14933 lt_cv_dlopen_self=yes
14934 ;;
14935
14936 mingw* | pw32* | cegcc*)
14937 lt_cv_dlopen="LoadLibrary"
14938 lt_cv_dlopen_libs=
14939 ;;
14940
14941 cygwin*)
14942 lt_cv_dlopen="dlopen"
14943 lt_cv_dlopen_libs=
14944 ;;
14945
14946 darwin*)
14947 # if libdl is installed we need to link against it
14948 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14949$as_echo_n "checking for dlopen in -ldl... " >&6; }
14950if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14951 $as_echo_n "(cached) " >&6
14952else
14953 ac_check_lib_save_LIBS=$LIBS
14954LIBS="-ldl $LIBS"
14955cat >conftest.$ac_ext <<_ACEOF
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
14961
14962/* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14965#ifdef __cplusplus
14966extern "C"
14967#endif
14968char dlopen ();
14969int
14970main ()
14971{
14972return dlopen ();
14973 ;
14974 return 0;
14975}
14976_ACEOF
14977rm -f conftest.$ac_objext conftest$ac_exeext
14978if { (ac_try="$ac_link"
14979case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14982esac
14983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14984$as_echo "$ac_try_echo") >&5
14985 (eval "$ac_link") 2>conftest.er1
14986 ac_status=$?
14987 grep -v '^ *+' conftest.er1 >conftest.err
14988 rm -f conftest.er1
14989 cat conftest.err >&5
14990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } && {
14992 test -z "$ac_c_werror_flag" ||
14993 test ! -s conftest.err
14994 } && test -s conftest$ac_exeext && {
14995 test "$cross_compiling" = yes ||
14996 $as_test_x conftest$ac_exeext
14997 }; then
14998 ac_cv_lib_dl_dlopen=yes
14999else
15000 $as_echo "$as_me: failed program was:" >&5
15001sed 's/^/| /' conftest.$ac_ext >&5
15002
15003 ac_cv_lib_dl_dlopen=no
15004fi
15005
15006rm -rf conftest.dSYM
15007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15008 conftest$ac_exeext conftest.$ac_ext
15009LIBS=$ac_check_lib_save_LIBS
15010fi
15011{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15012$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15013if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15015else
15016
15017 lt_cv_dlopen="dyld"
15018 lt_cv_dlopen_libs=
15019 lt_cv_dlopen_self=yes
15020
15021fi
15022
15023 ;;
15024
15025 *)
15026 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
15027$as_echo_n "checking for shl_load... " >&6; }
15028if test "${ac_cv_func_shl_load+set}" = set; then
15029 $as_echo_n "(cached) " >&6
15030else
15031 cat >conftest.$ac_ext <<_ACEOF
15032/* confdefs.h. */
15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
15036/* end confdefs.h. */
15037/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15039#define shl_load innocuous_shl_load
15040
15041/* System header to define __stub macros and hopefully few prototypes,
15042 which can conflict with char shl_load (); below.
15043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15044 <limits.h> exists even on freestanding compilers. */
15045
15046#ifdef __STDC__
15047# include <limits.h>
15048#else
15049# include <assert.h>
15050#endif
15051
15052#undef shl_load
15053
15054/* Override any GCC internal prototype to avoid an error.
15055 Use char because int might match the return type of a GCC
15056 builtin and then its argument prototype would still apply. */
15057#ifdef __cplusplus
15058extern "C"
15059#endif
15060char shl_load ();
15061/* The GNU C library defines this for functions which it implements
15062 to always fail with ENOSYS. Some functions are actually named
15063 something starting with __ and the normal name is an alias. */
15064#if defined __stub_shl_load || defined __stub___shl_load
15065choke me
15066#endif
15067
15068int
15069main ()
15070{
15071return shl_load ();
15072 ;
15073 return 0;
15074}
15075_ACEOF
15076rm -f conftest.$ac_objext conftest$ac_exeext
15077if { (ac_try="$ac_link"
15078case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15081esac
15082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15083$as_echo "$ac_try_echo") >&5
15084 (eval "$ac_link") 2>conftest.er1
15085 ac_status=$?
15086 grep -v '^ *+' conftest.er1 >conftest.err
15087 rm -f conftest.er1
15088 cat conftest.err >&5
15089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } && {
15091 test -z "$ac_c_werror_flag" ||
15092 test ! -s conftest.err
15093 } && test -s conftest$ac_exeext && {
15094 test "$cross_compiling" = yes ||
15095 $as_test_x conftest$ac_exeext
15096 }; then
15097 ac_cv_func_shl_load=yes
15098else
15099 $as_echo "$as_me: failed program was:" >&5
15100sed 's/^/| /' conftest.$ac_ext >&5
15101
15102 ac_cv_func_shl_load=no
15103fi
15104
15105rm -rf conftest.dSYM
15106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15107 conftest$ac_exeext conftest.$ac_ext
15108fi
15109{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15110$as_echo "$ac_cv_func_shl_load" >&6; }
15111if test "x$ac_cv_func_shl_load" = x""yes; then
15112 lt_cv_dlopen="shl_load"
15113else
15114 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15115$as_echo_n "checking for shl_load in -ldld... " >&6; }
15116if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15117 $as_echo_n "(cached) " >&6
15118else
15119 ac_check_lib_save_LIBS=$LIBS
15120LIBS="-ldld $LIBS"
15121cat >conftest.$ac_ext <<_ACEOF
15122/* confdefs.h. */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h. */
15127
15128/* Override any GCC internal prototype to avoid an error.
15129 Use char because int might match the return type of a GCC
15130 builtin and then its argument prototype would still apply. */
15131#ifdef __cplusplus
15132extern "C"
15133#endif
15134char shl_load ();
15135int
15136main ()
15137{
15138return shl_load ();
15139 ;
15140 return 0;
15141}
15142_ACEOF
15143rm -f conftest.$ac_objext conftest$ac_exeext
15144if { (ac_try="$ac_link"
15145case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15148esac
15149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15150$as_echo "$ac_try_echo") >&5
15151 (eval "$ac_link") 2>conftest.er1
15152 ac_status=$?
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
15156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } && {
15158 test -z "$ac_c_werror_flag" ||
15159 test ! -s conftest.err
15160 } && test -s conftest$ac_exeext && {
15161 test "$cross_compiling" = yes ||
15162 $as_test_x conftest$ac_exeext
15163 }; then
15164 ac_cv_lib_dld_shl_load=yes
15165else
15166 $as_echo "$as_me: failed program was:" >&5
15167sed 's/^/| /' conftest.$ac_ext >&5
15168
15169 ac_cv_lib_dld_shl_load=no
15170fi
15171
15172rm -rf conftest.dSYM
15173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15174 conftest$ac_exeext conftest.$ac_ext
15175LIBS=$ac_check_lib_save_LIBS
15176fi
15177{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15178$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15179if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
15180 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15181else
15182 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
15183$as_echo_n "checking for dlopen... " >&6; }
15184if test "${ac_cv_func_dlopen+set}" = set; then
15185 $as_echo_n "(cached) " >&6
15186else
15187 cat >conftest.$ac_ext <<_ACEOF
15188/* confdefs.h. */
15189_ACEOF
15190cat confdefs.h >>conftest.$ac_ext
15191cat >>conftest.$ac_ext <<_ACEOF
15192/* end confdefs.h. */
15193/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15195#define dlopen innocuous_dlopen
15196
15197/* System header to define __stub macros and hopefully few prototypes,
15198 which can conflict with char dlopen (); below.
15199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15200 <limits.h> exists even on freestanding compilers. */
15201
15202#ifdef __STDC__
15203# include <limits.h>
15204#else
15205# include <assert.h>
15206#endif
15207
15208#undef dlopen
15209
15210/* Override any GCC internal prototype to avoid an error.
15211 Use char because int might match the return type of a GCC
15212 builtin and then its argument prototype would still apply. */
15213#ifdef __cplusplus
15214extern "C"
15215#endif
15216char dlopen ();
15217/* The GNU C library defines this for functions which it implements
15218 to always fail with ENOSYS. Some functions are actually named
15219 something starting with __ and the normal name is an alias. */
15220#if defined __stub_dlopen || defined __stub___dlopen
15221choke me
15222#endif
15223
15224int
15225main ()
15226{
15227return dlopen ();
15228 ;
15229 return 0;
15230}
15231_ACEOF
15232rm -f conftest.$ac_objext conftest$ac_exeext
15233if { (ac_try="$ac_link"
15234case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15237esac
15238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15239$as_echo "$ac_try_echo") >&5
15240 (eval "$ac_link") 2>conftest.er1
15241 ac_status=$?
15242 grep -v '^ *+' conftest.er1 >conftest.err
15243 rm -f conftest.er1
15244 cat conftest.err >&5
15245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } && {
15247 test -z "$ac_c_werror_flag" ||
15248 test ! -s conftest.err
15249 } && test -s conftest$ac_exeext && {
15250 test "$cross_compiling" = yes ||
15251 $as_test_x conftest$ac_exeext
15252 }; then
15253 ac_cv_func_dlopen=yes
15254else
15255 $as_echo "$as_me: failed program was:" >&5
15256sed 's/^/| /' conftest.$ac_ext >&5
15257
15258 ac_cv_func_dlopen=no
15259fi
15260
15261rm -rf conftest.dSYM
15262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15263 conftest$ac_exeext conftest.$ac_ext
15264fi
15265{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15266$as_echo "$ac_cv_func_dlopen" >&6; }
15267if test "x$ac_cv_func_dlopen" = x""yes; then
15268 lt_cv_dlopen="dlopen"
15269else
15270 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15271$as_echo_n "checking for dlopen in -ldl... " >&6; }
15272if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15273 $as_echo_n "(cached) " >&6
15274else
15275 ac_check_lib_save_LIBS=$LIBS
15276LIBS="-ldl $LIBS"
15277cat >conftest.$ac_ext <<_ACEOF
15278/* confdefs.h. */
15279_ACEOF
15280cat confdefs.h >>conftest.$ac_ext
15281cat >>conftest.$ac_ext <<_ACEOF
15282/* end confdefs.h. */
15283
15284/* Override any GCC internal prototype to avoid an error.
15285 Use char because int might match the return type of a GCC
15286 builtin and then its argument prototype would still apply. */
15287#ifdef __cplusplus
15288extern "C"
15289#endif
15290char dlopen ();
15291int
15292main ()
15293{
15294return dlopen ();
15295 ;
15296 return 0;
15297}
15298_ACEOF
15299rm -f conftest.$ac_objext conftest$ac_exeext
15300if { (ac_try="$ac_link"
15301case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15304esac
15305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15306$as_echo "$ac_try_echo") >&5
15307 (eval "$ac_link") 2>conftest.er1
15308 ac_status=$?
15309 grep -v '^ *+' conftest.er1 >conftest.err
15310 rm -f conftest.er1
15311 cat conftest.err >&5
15312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } && {
15314 test -z "$ac_c_werror_flag" ||
15315 test ! -s conftest.err
15316 } && test -s conftest$ac_exeext && {
15317 test "$cross_compiling" = yes ||
15318 $as_test_x conftest$ac_exeext
15319 }; then
15320 ac_cv_lib_dl_dlopen=yes
15321else
15322 $as_echo "$as_me: failed program was:" >&5
15323sed 's/^/| /' conftest.$ac_ext >&5
15324
15325 ac_cv_lib_dl_dlopen=no
15326fi
15327
15328rm -rf conftest.dSYM
15329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15330 conftest$ac_exeext conftest.$ac_ext
15331LIBS=$ac_check_lib_save_LIBS
15332fi
15333{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15334$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15335if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15336 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15337else
15338 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15339$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15340if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15341 $as_echo_n "(cached) " >&6
15342else
15343 ac_check_lib_save_LIBS=$LIBS
15344LIBS="-lsvld $LIBS"
15345cat >conftest.$ac_ext <<_ACEOF
15346/* confdefs.h. */
15347_ACEOF
15348cat confdefs.h >>conftest.$ac_ext
15349cat >>conftest.$ac_ext <<_ACEOF
15350/* end confdefs.h. */
15351
15352/* Override any GCC internal prototype to avoid an error.
15353 Use char because int might match the return type of a GCC
15354 builtin and then its argument prototype would still apply. */
15355#ifdef __cplusplus
15356extern "C"
15357#endif
15358char dlopen ();
15359int
15360main ()
15361{
15362return dlopen ();
15363 ;
15364 return 0;
15365}
15366_ACEOF
15367rm -f conftest.$ac_objext conftest$ac_exeext
15368if { (ac_try="$ac_link"
15369case "(($ac_try" in
15370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371 *) ac_try_echo=$ac_try;;
15372esac
15373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15374$as_echo "$ac_try_echo") >&5
15375 (eval "$ac_link") 2>conftest.er1
15376 ac_status=$?
15377 grep -v '^ *+' conftest.er1 >conftest.err
15378 rm -f conftest.er1
15379 cat conftest.err >&5
15380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } && {
15382 test -z "$ac_c_werror_flag" ||
15383 test ! -s conftest.err
15384 } && test -s conftest$ac_exeext && {
15385 test "$cross_compiling" = yes ||
15386 $as_test_x conftest$ac_exeext
15387 }; then
15388 ac_cv_lib_svld_dlopen=yes
15389else
15390 $as_echo "$as_me: failed program was:" >&5
15391sed 's/^/| /' conftest.$ac_ext >&5
15392
15393 ac_cv_lib_svld_dlopen=no
15394fi
15395
15396rm -rf conftest.dSYM
15397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15398 conftest$ac_exeext conftest.$ac_ext
15399LIBS=$ac_check_lib_save_LIBS
15400fi
15401{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15402$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15403if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
15404 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15405else
15406 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15407$as_echo_n "checking for dld_link in -ldld... " >&6; }
15408if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15409 $as_echo_n "(cached) " >&6
15410else
15411 ac_check_lib_save_LIBS=$LIBS
15412LIBS="-ldld $LIBS"
15413cat >conftest.$ac_ext <<_ACEOF
15414/* confdefs.h. */
15415_ACEOF
15416cat confdefs.h >>conftest.$ac_ext
15417cat >>conftest.$ac_ext <<_ACEOF
15418/* end confdefs.h. */
15419
15420/* Override any GCC internal prototype to avoid an error.
15421 Use char because int might match the return type of a GCC
15422 builtin and then its argument prototype would still apply. */
15423#ifdef __cplusplus
15424extern "C"
15425#endif
15426char dld_link ();
15427int
15428main ()
15429{
15430return dld_link ();
15431 ;
15432 return 0;
15433}
15434_ACEOF
15435rm -f conftest.$ac_objext conftest$ac_exeext
15436if { (ac_try="$ac_link"
15437case "(($ac_try" in
15438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439 *) ac_try_echo=$ac_try;;
15440esac
15441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15442$as_echo "$ac_try_echo") >&5
15443 (eval "$ac_link") 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } && {
15450 test -z "$ac_c_werror_flag" ||
15451 test ! -s conftest.err
15452 } && test -s conftest$ac_exeext && {
15453 test "$cross_compiling" = yes ||
15454 $as_test_x conftest$ac_exeext
15455 }; then
15456 ac_cv_lib_dld_dld_link=yes
15457else
15458 $as_echo "$as_me: failed program was:" >&5
15459sed 's/^/| /' conftest.$ac_ext >&5
15460
15461 ac_cv_lib_dld_dld_link=no
15462fi
15463
15464rm -rf conftest.dSYM
15465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15466 conftest$ac_exeext conftest.$ac_ext
15467LIBS=$ac_check_lib_save_LIBS
15468fi
15469{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15470$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15471if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
15472 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15473fi
15474
15475
15476fi
15477
15478
15479fi
15480
15481
15482fi
15483
15484
15485fi
15486
15487
15488fi
15489
15490 ;;
15491 esac
15492
15493 if test "x$lt_cv_dlopen" != xno; then
15494 enable_dlopen=yes
15495 else
15496 enable_dlopen=no
15497 fi
15498
15499 case $lt_cv_dlopen in
15500 dlopen)
15501 save_CPPFLAGS="$CPPFLAGS"
15502 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15503
15504 save_LDFLAGS="$LDFLAGS"
15505 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15506
15507 save_LIBS="$LIBS"
15508 LIBS="$lt_cv_dlopen_libs $LIBS"
15509
15510 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15511$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15512if test "${lt_cv_dlopen_self+set}" = set; then
15513 $as_echo_n "(cached) " >&6
15514else
15515 if test "$cross_compiling" = yes; then :
15516 lt_cv_dlopen_self=cross
15517else
15518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15519 lt_status=$lt_dlunknown
15520 cat > conftest.$ac_ext <<_LT_EOF
15521#line 15521 "configure"
15522#include "confdefs.h"
15523
15524#if HAVE_DLFCN_H
15525#include <dlfcn.h>
15526#endif
15527
15528#include <stdio.h>
15529
15530#ifdef RTLD_GLOBAL
15531# define LT_DLGLOBAL RTLD_GLOBAL
15532#else
15533# ifdef DL_GLOBAL
15534# define LT_DLGLOBAL DL_GLOBAL
15535# else
15536# define LT_DLGLOBAL 0
15537# endif
15538#endif
15539
15540/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15541 find out it does not work in some platform. */
15542#ifndef LT_DLLAZY_OR_NOW
15543# ifdef RTLD_LAZY
15544# define LT_DLLAZY_OR_NOW RTLD_LAZY
15545# else
15546# ifdef DL_LAZY
15547# define LT_DLLAZY_OR_NOW DL_LAZY
15548# else
15549# ifdef RTLD_NOW
15550# define LT_DLLAZY_OR_NOW RTLD_NOW
15551# else
15552# ifdef DL_NOW
15553# define LT_DLLAZY_OR_NOW DL_NOW
15554# else
15555# define LT_DLLAZY_OR_NOW 0
15556# endif
15557# endif
15558# endif
15559# endif
15560#endif
15561
15562void fnord() { int i=42;}
15563int main ()
15564{
15565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15566 int status = $lt_dlunknown;
15567
15568 if (self)
15569 {
15570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15571 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15572 /* dlclose (self); */
15573 }
15574 else
15575 puts (dlerror ());
15576
15577 return status;
15578}
15579_LT_EOF
15580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15581 (eval $ac_link) 2>&5
15582 ac_status=$?
15583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15585 (./conftest; exit; ) >&5 2>/dev/null
15586 lt_status=$?
15587 case x$lt_status in
15588 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15589 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15590 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15591 esac
15592 else :
15593 # compilation failed
15594 lt_cv_dlopen_self=no
15595 fi
15596fi
15597rm -fr conftest*
15598
15599
15600fi
15601{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15602$as_echo "$lt_cv_dlopen_self" >&6; }
15603
15604 if test "x$lt_cv_dlopen_self" = xyes; then
15605 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15606 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15607$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15608if test "${lt_cv_dlopen_self_static+set}" = set; then
15609 $as_echo_n "(cached) " >&6
15610else
15611 if test "$cross_compiling" = yes; then :
15612 lt_cv_dlopen_self_static=cross
15613else
15614 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15615 lt_status=$lt_dlunknown
15616 cat > conftest.$ac_ext <<_LT_EOF
15617#line 15617 "configure"
15618#include "confdefs.h"
15619
15620#if HAVE_DLFCN_H
15621#include <dlfcn.h>
15622#endif
15623
15624#include <stdio.h>
15625
15626#ifdef RTLD_GLOBAL
15627# define LT_DLGLOBAL RTLD_GLOBAL
15628#else
15629# ifdef DL_GLOBAL
15630# define LT_DLGLOBAL DL_GLOBAL
15631# else
15632# define LT_DLGLOBAL 0
15633# endif
15634#endif
15635
15636/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15637 find out it does not work in some platform. */
15638#ifndef LT_DLLAZY_OR_NOW
15639# ifdef RTLD_LAZY
15640# define LT_DLLAZY_OR_NOW RTLD_LAZY
15641# else
15642# ifdef DL_LAZY
15643# define LT_DLLAZY_OR_NOW DL_LAZY
15644# else
15645# ifdef RTLD_NOW
15646# define LT_DLLAZY_OR_NOW RTLD_NOW
15647# else
15648# ifdef DL_NOW
15649# define LT_DLLAZY_OR_NOW DL_NOW
15650# else
15651# define LT_DLLAZY_OR_NOW 0
15652# endif
15653# endif
15654# endif
15655# endif
15656#endif
15657
15658void fnord() { int i=42;}
15659int main ()
15660{
15661 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15662 int status = $lt_dlunknown;
15663
15664 if (self)
15665 {
15666 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15667 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15668 /* dlclose (self); */
15669 }
15670 else
15671 puts (dlerror ());
15672
15673 return status;
15674}
15675_LT_EOF
15676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15677 (eval $ac_link) 2>&5
15678 ac_status=$?
15679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15681 (./conftest; exit; ) >&5 2>/dev/null
15682 lt_status=$?
15683 case x$lt_status in
15684 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15685 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15686 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15687 esac
15688 else :
15689 # compilation failed
15690 lt_cv_dlopen_self_static=no
15691 fi
15692fi
15693rm -fr conftest*
15694
15695
15696fi
15697{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15698$as_echo "$lt_cv_dlopen_self_static" >&6; }
15699 fi
15700
15701 CPPFLAGS="$save_CPPFLAGS"
15702 LDFLAGS="$save_LDFLAGS"
15703 LIBS="$save_LIBS"
15704 ;;
15705 esac
15706
15707 case $lt_cv_dlopen_self in
15708 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15709 *) enable_dlopen_self=unknown ;;
15710 esac
15711
15712 case $lt_cv_dlopen_self_static in
15713 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15714 *) enable_dlopen_self_static=unknown ;;
15715 esac
15716fi
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734striplib=
15735old_striplib=
15736{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15737$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15738if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15739 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15740 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15741 { $as_echo "$as_me:$LINENO: result: yes" >&5
15742$as_echo "yes" >&6; }
15743else
15744# FIXME - insert some real tests, host_os isn't really good enough
15745 case $host_os in
15746 darwin*)
15747 if test -n "$STRIP" ; then
15748 striplib="$STRIP -x"
15749 old_striplib="$STRIP -S"
15750 { $as_echo "$as_me:$LINENO: result: yes" >&5
15751$as_echo "yes" >&6; }
15752 else
15753 { $as_echo "$as_me:$LINENO: result: no" >&5
15754$as_echo "no" >&6; }
15755 fi
15756 ;;
15757 *)
15758 { $as_echo "$as_me:$LINENO: result: no" >&5
15759$as_echo "no" >&6; }
15760 ;;
15761 esac
15762fi
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775 # Report which library types will actually be built
15776 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15777$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15778 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
15779$as_echo "$can_build_shared" >&6; }
15780
15781 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15782$as_echo_n "checking whether to build shared libraries... " >&6; }
15783 test "$can_build_shared" = "no" && enable_shared=no
15784
15785 # On AIX, shared libraries and static libraries use the same namespace, and
15786 # are all built from PIC.
15787 case $host_os in
15788 aix3*)
15789 test "$enable_shared" = yes && enable_static=no
15790 if test -n "$RANLIB"; then
15791 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15792 postinstall_cmds='$RANLIB $lib'
15793 fi
15794 ;;
15795
15796 aix[4-9]*)
15797 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15798 test "$enable_shared" = yes && enable_static=no
15799 fi
15800 ;;
15801 esac
15802 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15803$as_echo "$enable_shared" >&6; }
15804
15805 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15806$as_echo_n "checking whether to build static libraries... " >&6; }
15807 # Make sure either enable_shared or enable_static is yes.
15808 test "$enable_shared" = yes || enable_static=yes
15809 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15810$as_echo "$enable_static" >&6; }
15811
15812
15813
15814
15815fi
15816ac_ext=c
15817ac_cpp='$CPP $CPPFLAGS'
15818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15820ac_compiler_gnu=$ac_cv_c_compiler_gnu
15821
15822CC="$lt_save_CC"
15823
15824
15825ac_ext=cpp
15826ac_cpp='$CXXCPP $CPPFLAGS'
15827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15830
15831archive_cmds_need_lc_CXX=no
15832allow_undefined_flag_CXX=
15833always_export_symbols_CXX=no
15834archive_expsym_cmds_CXX=
15835compiler_needs_object_CXX=no
15836export_dynamic_flag_spec_CXX=
15837hardcode_direct_CXX=no
15838hardcode_direct_absolute_CXX=no
15839hardcode_libdir_flag_spec_CXX=
15840hardcode_libdir_flag_spec_ld_CXX=
15841hardcode_libdir_separator_CXX=
15842hardcode_minus_L_CXX=no
15843hardcode_shlibpath_var_CXX=unsupported
15844hardcode_automatic_CXX=no
15845inherit_rpath_CXX=no
15846module_cmds_CXX=
15847module_expsym_cmds_CXX=
15848link_all_deplibs_CXX=unknown
15849old_archive_cmds_CXX=$old_archive_cmds
15850no_undefined_flag_CXX=
15851whole_archive_flag_spec_CXX=
15852enable_shared_with_static_runtimes_CXX=no
15853
15854# Source file extension for C++ test sources.
15855ac_ext=cpp
15856
15857# Object file extension for compiled C++ test sources.
15858objext=o
15859objext_CXX=$objext
15860
15861# No sense in running all these tests if we already determined that
15862# the CXX compiler isn't working. Some variables (like enable_shared)
15863# are currently assumed to apply to all compilers on this platform,
15864# and will be corrupted by setting them based on a non-working compiler.
15865if test "$_lt_caught_CXX_error" != yes; then
15866 # Code to be used in simple compile tests
15867 lt_simple_compile_test_code="int some_variable = 0;"
15868
15869 # Code to be used in simple link tests
15870 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15871
15872 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15873
15874
15875
15876
15877
15878
15879# If no C compiler was specified, use CC.
15880LTCC=${LTCC-"$CC"}
15881
15882# If no C compiler flags were specified, use CFLAGS.
15883LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15884
15885# Allow CC to be a program name with arguments.
15886compiler=$CC
15887
15888
15889 # save warnings/boilerplate of simple test code
15890 ac_outfile=conftest.$ac_objext
15891echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15892eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15893_lt_compiler_boilerplate=`cat conftest.err`
15894$RM conftest*
15895
15896 ac_outfile=conftest.$ac_objext
15897echo "$lt_simple_link_test_code" >conftest.$ac_ext
15898eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15899_lt_linker_boilerplate=`cat conftest.err`
15900$RM -r conftest*
15901
15902
15903 # Allow CC to be a program name with arguments.
15904 lt_save_CC=$CC
15905 lt_save_LD=$LD
15906 lt_save_GCC=$GCC
15907 GCC=$GXX
15908 lt_save_with_gnu_ld=$with_gnu_ld
15909 lt_save_path_LD=$lt_cv_path_LD
15910 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15911 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15912 else
15913 $as_unset lt_cv_prog_gnu_ld
15914 fi
15915 if test -n "${lt_cv_path_LDCXX+set}"; then
15916 lt_cv_path_LD=$lt_cv_path_LDCXX
15917 else
15918 $as_unset lt_cv_path_LD
15919 fi
15920 test -z "${LDCXX+set}" || LD=$LDCXX
15921 CC=${CXX-"c++"}
15922 compiler=$CC
15923 compiler_CXX=$CC
15924 for cc_temp in $compiler""; do
15925 case $cc_temp in
15926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15928 \-*) ;;
15929 *) break;;
15930 esac
15931done
15932cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15933
15934
15935 if test -n "$compiler"; then
15936 # We don't want -fno-exception when compiling C++ code, so set the
15937 # no_builtin_flag separately
15938 if test "$GXX" = yes; then
15939 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15940 else
15941 lt_prog_compiler_no_builtin_flag_CXX=
15942 fi
15943
15944 if test "$GXX" = yes; then
15945 # Set up default GNU C++ configuration
15946
15947
15948
15949# Check whether --with-gnu-ld was given.
15950if test "${with_gnu_ld+set}" = set; then
15951 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15952else
15953 with_gnu_ld=no
15954fi
15955
15956ac_prog=ld
15957if test "$GCC" = yes; then
15958 # Check if gcc -print-prog-name=ld gives a path.
15959 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15960$as_echo_n "checking for ld used by $CC... " >&6; }
15961 case $host in
15962 *-*-mingw*)
15963 # gcc leaves a trailing carriage return which upsets mingw
15964 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15965 *)
15966 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15967 esac
15968 case $ac_prog in
15969 # Accept absolute paths.
15970 [\\/]* | ?:[\\/]*)
15971 re_direlt='/[^/][^/]*/\.\./'
15972 # Canonicalize the pathname of ld
15973 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15974 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15975 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15976 done
15977 test -z "$LD" && LD="$ac_prog"
15978 ;;
15979 "")
15980 # If it fails, then pretend we aren't using GCC.
15981 ac_prog=ld
15982 ;;
15983 *)
15984 # If it is relative, then search for the first ld in PATH.
15985 with_gnu_ld=unknown
15986 ;;
15987 esac
15988elif test "$with_gnu_ld" = yes; then
15989 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
15990$as_echo_n "checking for GNU ld... " >&6; }
15991else
15992 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15993$as_echo_n "checking for non-GNU ld... " >&6; }
15994fi
15995if test "${lt_cv_path_LD+set}" = set; then
15996 $as_echo_n "(cached) " >&6
15997else
15998 if test -z "$LD"; then
15999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16000 for ac_dir in $PATH; do
16001 IFS="$lt_save_ifs"
16002 test -z "$ac_dir" && ac_dir=.
16003 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16004 lt_cv_path_LD="$ac_dir/$ac_prog"
16005 # Check to see if the program is GNU ld. I'd rather use --version,
16006 # but apparently some variants of GNU ld only accept -v.
16007 # Break only if it was the GNU/non-GNU ld that we prefer.
16008 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16009 *GNU* | *'with BFD'*)
16010 test "$with_gnu_ld" != no && break
16011 ;;
16012 *)
16013 test "$with_gnu_ld" != yes && break
16014 ;;
16015 esac
16016 fi
16017 done
16018 IFS="$lt_save_ifs"
16019else
16020 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16021fi
16022fi
16023
16024LD="$lt_cv_path_LD"
16025if test -n "$LD"; then
16026 { $as_echo "$as_me:$LINENO: result: $LD" >&5
16027$as_echo "$LD" >&6; }
16028else
16029 { $as_echo "$as_me:$LINENO: result: no" >&5
16030$as_echo "no" >&6; }
16031fi
16032test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16033$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16034 { (exit 1); exit 1; }; }
16035{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16036$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16037if test "${lt_cv_prog_gnu_ld+set}" = set; then
16038 $as_echo_n "(cached) " >&6
16039else
16040 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16041case `$LD -v 2>&1 </dev/null` in
16042*GNU* | *'with BFD'*)
16043 lt_cv_prog_gnu_ld=yes
16044 ;;
16045*)
16046 lt_cv_prog_gnu_ld=no
16047 ;;
16048esac
16049fi
16050{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16051$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16052with_gnu_ld=$lt_cv_prog_gnu_ld
16053
16054
16055
16056
16057
16058
16059
16060 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16061 # archiving commands below assume that GNU ld is being used.
16062 if test "$with_gnu_ld" = yes; then
16063 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16064 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16065
16066 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16067 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16068
16069 # If archive_cmds runs LD, not CC, wlarc should be empty
16070 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16071 # investigate it a little bit more. (MM)
16072 wlarc='${wl}'
16073
16074 # ancient GNU ld didn't support --whole-archive et. al.
16075 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16076 $GREP 'no-whole-archive' > /dev/null; then
16077 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16078 else
16079 whole_archive_flag_spec_CXX=
16080 fi
16081 else
16082 with_gnu_ld=no
16083 wlarc=
16084
16085 # A generic and very simple default shared library creation
16086 # command for GNU C++ for the case where it uses the native
16087 # linker, instead of GNU ld. If possible, this setting should
16088 # overridden to take advantage of the native linker features on
16089 # the platform it is being used on.
16090 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16091 fi
16092
16093 # Commands to make compiler produce verbose output that lists
16094 # what "hidden" libraries, object files and flags are used when
16095 # linking a shared library.
16096 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16097
16098 else
16099 GXX=no
16100 with_gnu_ld=no
16101 wlarc=
16102 fi
16103
16104 # PORTME: fill in a description of your system's C++ link characteristics
16105 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16106$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16107 ld_shlibs_CXX=yes
16108 case $host_os in
16109 aix3*)
16110 # FIXME: insert proper C++ library support
16111 ld_shlibs_CXX=no
16112 ;;
16113 aix[4-9]*)
16114 if test "$host_cpu" = ia64; then
16115 # On IA64, the linker does run time linking by default, so we don't
16116 # have to do anything special.
16117 aix_use_runtimelinking=no
16118 exp_sym_flag='-Bexport'
16119 no_entry_flag=""
16120 else
16121 aix_use_runtimelinking=no
16122
16123 # Test if we are trying to use run time linking or normal
16124 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16125 # need to do runtime linking.
16126 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16127 for ld_flag in $LDFLAGS; do
16128 case $ld_flag in
16129 *-brtl*)
16130 aix_use_runtimelinking=yes
16131 break
16132 ;;
16133 esac
16134 done
16135 ;;
16136 esac
16137
16138 exp_sym_flag='-bexport'
16139 no_entry_flag='-bnoentry'
16140 fi
16141
16142 # When large executables or shared objects are built, AIX ld can
16143 # have problems creating the table of contents. If linking a library
16144 # or program results in "error TOC overflow" add -mminimal-toc to
16145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16147
16148 archive_cmds_CXX=''
16149 hardcode_direct_CXX=yes
16150 hardcode_direct_absolute_CXX=yes
16151 hardcode_libdir_separator_CXX=':'
16152 link_all_deplibs_CXX=yes
16153 file_list_spec_CXX='${wl}-f,'
16154
16155 if test "$GXX" = yes; then
16156 case $host_os in aix4.[012]|aix4.[012].*)
16157 # We only want to do this on AIX 4.2 and lower, the check
16158 # below for broken collect2 doesn't work under 4.3+
16159 collect2name=`${CC} -print-prog-name=collect2`
16160 if test -f "$collect2name" &&
16161 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16162 then
16163 # We have reworked collect2
16164 :
16165 else
16166 # We have old collect2
16167 hardcode_direct_CXX=unsupported
16168 # It fails to find uninstalled libraries when the uninstalled
16169 # path is not listed in the libpath. Setting hardcode_minus_L
16170 # to unsupported forces relinking
16171 hardcode_minus_L_CXX=yes
16172 hardcode_libdir_flag_spec_CXX='-L$libdir'
16173 hardcode_libdir_separator_CXX=
16174 fi
16175 esac
16176 shared_flag='-shared'
16177 if test "$aix_use_runtimelinking" = yes; then
16178 shared_flag="$shared_flag "'${wl}-G'
16179 fi
16180 else
16181 # not using gcc
16182 if test "$host_cpu" = ia64; then
16183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16184 # chokes on -Wl,-G. The following line is correct:
16185 shared_flag='-G'
16186 else
16187 if test "$aix_use_runtimelinking" = yes; then
16188 shared_flag='${wl}-G'
16189 else
16190 shared_flag='${wl}-bM:SRE'
16191 fi
16192 fi
16193 fi
16194
16195 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16196 # It seems that -bexpall does not export symbols beginning with
16197 # underscore (_), so it is better to generate a list of symbols to
16198 # export.
16199 always_export_symbols_CXX=yes
16200 if test "$aix_use_runtimelinking" = yes; then
16201 # Warning - without using the other runtime loading flags (-brtl),
16202 # -berok will link without error, but may produce a broken library.
16203 allow_undefined_flag_CXX='-berok'
16204 # Determine the default libpath from the value encoded in an empty
16205 # executable.
16206 cat >conftest.$ac_ext <<_ACEOF
16207/* confdefs.h. */
16208_ACEOF
16209cat confdefs.h >>conftest.$ac_ext
16210cat >>conftest.$ac_ext <<_ACEOF
16211/* end confdefs.h. */
16212
16213int
16214main ()
16215{
16216
16217 ;
16218 return 0;
16219}
16220_ACEOF
16221rm -f conftest.$ac_objext conftest$ac_exeext
16222if { (ac_try="$ac_link"
16223case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16226esac
16227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16228$as_echo "$ac_try_echo") >&5
16229 (eval "$ac_link") 2>conftest.er1
16230 ac_status=$?
16231 grep -v '^ *+' conftest.er1 >conftest.err
16232 rm -f conftest.er1
16233 cat conftest.err >&5
16234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } && {
16236 test -z "$ac_cxx_werror_flag" ||
16237 test ! -s conftest.err
16238 } && test -s conftest$ac_exeext && {
16239 test "$cross_compiling" = yes ||
16240 $as_test_x conftest$ac_exeext
16241 }; then
16242
16243lt_aix_libpath_sed='
16244 /Import File Strings/,/^$/ {
16245 /^0/ {
16246 s/^0 *\(.*\)$/\1/
16247 p
16248 }
16249 }'
16250aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16251# Check for a 64-bit object if we didn't find anything.
16252if test -z "$aix_libpath"; then
16253 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16254fi
16255else
16256 $as_echo "$as_me: failed program was:" >&5
16257sed 's/^/| /' conftest.$ac_ext >&5
16258
16259
16260fi
16261
16262rm -rf conftest.dSYM
16263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16264 conftest$ac_exeext conftest.$ac_ext
16265if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16266
16267 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16268
16269 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16270 else
16271 if test "$host_cpu" = ia64; then
16272 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16273 allow_undefined_flag_CXX="-z nodefs"
16274 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16275 else
16276 # Determine the default libpath from the value encoded in an
16277 # empty executable.
16278 cat >conftest.$ac_ext <<_ACEOF
16279/* confdefs.h. */
16280_ACEOF
16281cat confdefs.h >>conftest.$ac_ext
16282cat >>conftest.$ac_ext <<_ACEOF
16283/* end confdefs.h. */
16284
16285int
16286main ()
16287{
16288
16289 ;
16290 return 0;
16291}
16292_ACEOF
16293rm -f conftest.$ac_objext conftest$ac_exeext
16294if { (ac_try="$ac_link"
16295case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16298esac
16299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16300$as_echo "$ac_try_echo") >&5
16301 (eval "$ac_link") 2>conftest.er1
16302 ac_status=$?
16303 grep -v '^ *+' conftest.er1 >conftest.err
16304 rm -f conftest.er1
16305 cat conftest.err >&5
16306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } && {
16308 test -z "$ac_cxx_werror_flag" ||
16309 test ! -s conftest.err
16310 } && test -s conftest$ac_exeext && {
16311 test "$cross_compiling" = yes ||
16312 $as_test_x conftest$ac_exeext
16313 }; then
16314
16315lt_aix_libpath_sed='
16316 /Import File Strings/,/^$/ {
16317 /^0/ {
16318 s/^0 *\(.*\)$/\1/
16319 p
16320 }
16321 }'
16322aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16323# Check for a 64-bit object if we didn't find anything.
16324if test -z "$aix_libpath"; then
16325 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16326fi
16327else
16328 $as_echo "$as_me: failed program was:" >&5
16329sed 's/^/| /' conftest.$ac_ext >&5
16330
16331
16332fi
16333
16334rm -rf conftest.dSYM
16335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16336 conftest$ac_exeext conftest.$ac_ext
16337if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16338
16339 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16340 # Warning - without using the other run time loading flags,
16341 # -berok will link without error, but may produce a broken library.
16342 no_undefined_flag_CXX=' ${wl}-bernotok'
16343 allow_undefined_flag_CXX=' ${wl}-berok'
16344 # Exported symbols can be pulled into shared objects from archives
16345 whole_archive_flag_spec_CXX='$convenience'
16346 archive_cmds_need_lc_CXX=yes
16347 # This is similar to how AIX traditionally builds its shared
16348 # libraries.
16349 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16350 fi
16351 fi
16352 ;;
16353
16354 beos*)
16355 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16356 allow_undefined_flag_CXX=unsupported
16357 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16358 # support --undefined. This deserves some investigation. FIXME
16359 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16360 else
16361 ld_shlibs_CXX=no
16362 fi
16363 ;;
16364
16365 chorus*)
16366 case $cc_basename in
16367 *)
16368 # FIXME: insert proper C++ library support
16369 ld_shlibs_CXX=no
16370 ;;
16371 esac
16372 ;;
16373
16374 cygwin* | mingw* | pw32* | cegcc*)
16375 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16376 # as there is no search path for DLLs.
16377 hardcode_libdir_flag_spec_CXX='-L$libdir'
16378 allow_undefined_flag_CXX=unsupported
16379 always_export_symbols_CXX=no
16380 enable_shared_with_static_runtimes_CXX=yes
16381
16382 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16383 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16384 # If the export-symbols file already is a .def file (1st line
16385 # is EXPORTS), use it as is; otherwise, prepend...
16386 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16387 cp $export_symbols $output_objdir/$soname.def;
16388 else
16389 echo EXPORTS > $output_objdir/$soname.def;
16390 cat $export_symbols >> $output_objdir/$soname.def;
16391 fi~
16392 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16393 else
16394 ld_shlibs_CXX=no
16395 fi
16396 ;;
16397 darwin* | rhapsody*)
16398
16399
16400 archive_cmds_need_lc_CXX=no
16401 hardcode_direct_CXX=no
16402 hardcode_automatic_CXX=yes
16403 hardcode_shlibpath_var_CXX=unsupported
16404 whole_archive_flag_spec_CXX=''
16405 link_all_deplibs_CXX=yes
16406 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16407 case $cc_basename in
16408 ifort*) _lt_dar_can_shared=yes ;;
16409 *) _lt_dar_can_shared=$GCC ;;
16410 esac
16411 if test "$_lt_dar_can_shared" = "yes"; then
16412 output_verbose_link_cmd=echo
16413 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16414 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16415 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16416 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16417 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16418 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
16419 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
16420 fi
16421
16422 else
16423 ld_shlibs_CXX=no
16424 fi
16425
16426 ;;
16427
16428 dgux*)
16429 case $cc_basename in
16430 ec++*)
16431 # FIXME: insert proper C++ library support
16432 ld_shlibs_CXX=no
16433 ;;
16434 ghcx*)
16435 # Green Hills C++ Compiler
16436 # FIXME: insert proper C++ library support
16437 ld_shlibs_CXX=no
16438 ;;
16439 *)
16440 # FIXME: insert proper C++ library support
16441 ld_shlibs_CXX=no
16442 ;;
16443 esac
16444 ;;
16445
16446 freebsd[12]*)
16447 # C++ shared libraries reported to be fairly broken before
16448 # switch to ELF
16449 ld_shlibs_CXX=no
16450 ;;
16451
16452 freebsd-elf*)
16453 archive_cmds_need_lc_CXX=no
16454 ;;
16455
16456 freebsd* | dragonfly*)
16457 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16458 # conventions
16459 ld_shlibs_CXX=yes
16460 ;;
16461
16462 gnu*)
16463 ;;
16464
16465 hpux9*)
16466 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16467 hardcode_libdir_separator_CXX=:
16468 export_dynamic_flag_spec_CXX='${wl}-E'
16469 hardcode_direct_CXX=yes
16470 hardcode_minus_L_CXX=yes # Not in the search PATH,
16471 # but as the default
16472 # location of the library.
16473
16474 case $cc_basename in
16475 CC*)
16476 # FIXME: insert proper C++ library support
16477 ld_shlibs_CXX=no
16478 ;;
16479 aCC*)
16480 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16481 # Commands to make compiler produce verbose output that lists
16482 # what "hidden" libraries, object files and flags are used when
16483 # linking a shared library.
16484 #
16485 # There doesn't appear to be a way to prevent this compiler from
16486 # explicitly linking system object files so we need to strip them
16487 # from the output so that they don't get included in the library
16488 # dependencies.
16489 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16490 ;;
16491 *)
16492 if test "$GXX" = yes; then
16493 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16494 else
16495 # FIXME: insert proper C++ library support
16496 ld_shlibs_CXX=no
16497 fi
16498 ;;
16499 esac
16500 ;;
16501
16502 hpux10*|hpux11*)
16503 if test $with_gnu_ld = no; then
16504 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16505 hardcode_libdir_separator_CXX=:
16506
16507 case $host_cpu in
16508 hppa*64*|ia64*)
16509 ;;
16510 *)
16511 export_dynamic_flag_spec_CXX='${wl}-E'
16512 ;;
16513 esac
16514 fi
16515 case $host_cpu in
16516 hppa*64*|ia64*)
16517 hardcode_direct_CXX=no
16518 hardcode_shlibpath_var_CXX=no
16519 ;;
16520 *)
16521 hardcode_direct_CXX=yes
16522 hardcode_direct_absolute_CXX=yes
16523 hardcode_minus_L_CXX=yes # Not in the search PATH,
16524 # but as the default
16525 # location of the library.
16526 ;;
16527 esac
16528
16529 case $cc_basename in
16530 CC*)
16531 # FIXME: insert proper C++ library support
16532 ld_shlibs_CXX=no
16533 ;;
16534 aCC*)
16535 case $host_cpu in
16536 hppa*64*)
16537 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16538 ;;
16539 ia64*)
16540 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16541 ;;
16542 *)
16543 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16544 ;;
16545 esac
16546 # Commands to make compiler produce verbose output that lists
16547 # what "hidden" libraries, object files and flags are used when
16548 # linking a shared library.
16549 #
16550 # There doesn't appear to be a way to prevent this compiler from
16551 # explicitly linking system object files so we need to strip them
16552 # from the output so that they don't get included in the library
16553 # dependencies.
16554 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16555 ;;
16556 *)
16557 if test "$GXX" = yes; then
16558 if test $with_gnu_ld = no; then
16559 case $host_cpu in
16560 hppa*64*)
16561 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16562 ;;
16563 ia64*)
16564 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16565 ;;
16566 *)
16567 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16568 ;;
16569 esac
16570 fi
16571 else
16572 # FIXME: insert proper C++ library support
16573 ld_shlibs_CXX=no
16574 fi
16575 ;;
16576 esac
16577 ;;
16578
16579 interix[3-9]*)
16580 hardcode_direct_CXX=no
16581 hardcode_shlibpath_var_CXX=no
16582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16583 export_dynamic_flag_spec_CXX='${wl}-E'
16584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16585 # Instead, shared libraries are loaded at an image base (0x10000000 by
16586 # default) and relocated if they conflict, which is a slow very memory
16587 # consuming and fragmenting process. To avoid this, we pick a random,
16588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16590 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16591 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16592 ;;
16593 irix5* | irix6*)
16594 case $cc_basename in
16595 CC*)
16596 # SGI C++
16597 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16598
16599 # Archives containing C++ object files must be created using
16600 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16601 # necessary to make sure instantiated templates are included
16602 # in the archive.
16603 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16604 ;;
16605 *)
16606 if test "$GXX" = yes; then
16607 if test "$with_gnu_ld" = no; then
16608 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16609 else
16610 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
16611 fi
16612 fi
16613 link_all_deplibs_CXX=yes
16614 ;;
16615 esac
16616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16617 hardcode_libdir_separator_CXX=:
16618 inherit_rpath_CXX=yes
16619 ;;
16620
16621 linux* | k*bsd*-gnu)
16622 case $cc_basename in
16623 KCC*)
16624 # Kuck and Associates, Inc. (KAI) C++ Compiler
16625
16626 # KCC will only create a shared library if the output file
16627 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16628 # to its proper name (with version) after linking.
16629 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16630 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
16631 # Commands to make compiler produce verbose output that lists
16632 # what "hidden" libraries, object files and flags are used when
16633 # linking a shared library.
16634 #
16635 # There doesn't appear to be a way to prevent this compiler from
16636 # explicitly linking system object files so we need to strip them
16637 # from the output so that they don't get included in the library
16638 # dependencies.
16639 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16640
16641 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16642 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16643
16644 # Archives containing C++ object files must be created using
16645 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16646 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16647 ;;
16648 icpc* | ecpc* )
16649 # Intel C++
16650 with_gnu_ld=yes
16651 # version 8.0 and above of icpc choke on multiply defined symbols
16652 # if we add $predep_objects and $postdep_objects, however 7.1 and
16653 # earlier do not add the objects themselves.
16654 case `$CC -V 2>&1` in
16655 *"Version 7."*)
16656 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16657 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16658 ;;
16659 *) # Version 8.0 or newer
16660 tmp_idyn=
16661 case $host_cpu in
16662 ia64*) tmp_idyn=' -i_dynamic';;
16663 esac
16664 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16665 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16666 ;;
16667 esac
16668 archive_cmds_need_lc_CXX=no
16669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16670 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16671 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16672 ;;
16673 pgCC* | pgcpp*)
16674 # Portland Group C++ compiler
16675 case `$CC -V` in
16676 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16677 prelink_cmds_CXX='tpldir=Template.dir~
16678 rm -rf $tpldir~
16679 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16680 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16681 old_archive_cmds_CXX='tpldir=Template.dir~
16682 rm -rf $tpldir~
16683 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16684 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16685 $RANLIB $oldlib'
16686 archive_cmds_CXX='tpldir=Template.dir~
16687 rm -rf $tpldir~
16688 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16689 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16690 archive_expsym_cmds_CXX='tpldir=Template.dir~
16691 rm -rf $tpldir~
16692 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16693 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16694 ;;
16695 *) # Version 6 will use weak symbols
16696 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16697 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16698 ;;
16699 esac
16700
16701 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16703 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16704 ;;
16705 cxx*)
16706 # Compaq C++
16707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16708 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
16709
16710 runpath_var=LD_RUN_PATH
16711 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16712 hardcode_libdir_separator_CXX=:
16713
16714 # Commands to make compiler produce verbose output that lists
16715 # what "hidden" libraries, object files and flags are used when
16716 # linking a shared library.
16717 #
16718 # There doesn't appear to be a way to prevent this compiler from
16719 # explicitly linking system object files so we need to strip them
16720 # from the output so that they don't get included in the library
16721 # dependencies.
16722 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16723 ;;
16724 xl*)
16725 # IBM XL 8.0 on PPC, with GNU ld
16726 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16727 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16728 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16729 if test "x$supports_anon_versioning" = xyes; then
16730 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16732 echo "local: *; };" >> $output_objdir/$libname.ver~
16733 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16734 fi
16735 ;;
16736 *)
16737 case `$CC -V 2>&1 | sed 5q` in
16738 *Sun\ C*)
16739 # Sun C++ 5.9
16740 no_undefined_flag_CXX=' -zdefs'
16741 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16742 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
16743 hardcode_libdir_flag_spec_CXX='-R$libdir'
16744 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16745 compiler_needs_object_CXX=yes
16746
16747 # Not sure whether something based on
16748 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16749 # would be better.
16750 output_verbose_link_cmd='echo'
16751
16752 # Archives containing C++ object files must be created using
16753 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16754 # necessary to make sure instantiated templates are included
16755 # in the archive.
16756 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16757 ;;
16758 esac
16759 ;;
16760 esac
16761 ;;
16762
16763 lynxos*)
16764 # FIXME: insert proper C++ library support
16765 ld_shlibs_CXX=no
16766 ;;
16767
16768 m88k*)
16769 # FIXME: insert proper C++ library support
16770 ld_shlibs_CXX=no
16771 ;;
16772
16773 mvs*)
16774 case $cc_basename in
16775 cxx*)
16776 # FIXME: insert proper C++ library support
16777 ld_shlibs_CXX=no
16778 ;;
16779 *)
16780 # FIXME: insert proper C++ library support
16781 ld_shlibs_CXX=no
16782 ;;
16783 esac
16784 ;;
16785
16786 netbsd*)
16787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16788 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16789 wlarc=
16790 hardcode_libdir_flag_spec_CXX='-R$libdir'
16791 hardcode_direct_CXX=yes
16792 hardcode_shlibpath_var_CXX=no
16793 fi
16794 # Workaround some broken pre-1.5 toolchains
16795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16796 ;;
16797
16798 *nto* | *qnx*)
16799 ld_shlibs_CXX=yes
16800 ;;
16801
16802 openbsd2*)
16803 # C++ shared libraries are fairly broken
16804 ld_shlibs_CXX=no
16805 ;;
16806
16807 openbsd*)
16808 if test -f /usr/libexec/ld.so; then
16809 hardcode_direct_CXX=yes
16810 hardcode_shlibpath_var_CXX=no
16811 hardcode_direct_absolute_CXX=yes
16812 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16814 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16815 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16816 export_dynamic_flag_spec_CXX='${wl}-E'
16817 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16818 fi
16819 output_verbose_link_cmd=echo
16820 else
16821 ld_shlibs_CXX=no
16822 fi
16823 ;;
16824
16825 osf3* | osf4* | osf5*)
16826 case $cc_basename in
16827 KCC*)
16828 # Kuck and Associates, Inc. (KAI) C++ Compiler
16829
16830 # KCC will only create a shared library if the output file
16831 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16832 # to its proper name (with version) after linking.
16833 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16834
16835 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16836 hardcode_libdir_separator_CXX=:
16837
16838 # Archives containing C++ object files must be created using
16839 # the KAI C++ compiler.
16840 case $host in
16841 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16842 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16843 esac
16844 ;;
16845 RCC*)
16846 # Rational C++ 2.4.1
16847 # FIXME: insert proper C++ library support
16848 ld_shlibs_CXX=no
16849 ;;
16850 cxx*)
16851 case $host in
16852 osf3*)
16853 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16854 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16856 ;;
16857 *)
16858 allow_undefined_flag_CXX=' -expect_unresolved \*'
16859 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16860 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16861 echo "-hidden">> $lib.exp~
16862 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
16863 $RM $lib.exp'
16864 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16865 ;;
16866 esac
16867
16868 hardcode_libdir_separator_CXX=:
16869
16870 # Commands to make compiler produce verbose output that lists
16871 # what "hidden" libraries, object files and flags are used when
16872 # linking a shared library.
16873 #
16874 # There doesn't appear to be a way to prevent this compiler from
16875 # explicitly linking system object files so we need to strip them
16876 # from the output so that they don't get included in the library
16877 # dependencies.
16878 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16879 ;;
16880 *)
16881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16883 case $host in
16884 osf3*)
16885 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16886 ;;
16887 *)
16888 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16889 ;;
16890 esac
16891
16892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16893 hardcode_libdir_separator_CXX=:
16894
16895 # Commands to make compiler produce verbose output that lists
16896 # what "hidden" libraries, object files and flags are used when
16897 # linking a shared library.
16898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16899
16900 else
16901 # FIXME: insert proper C++ library support
16902 ld_shlibs_CXX=no
16903 fi
16904 ;;
16905 esac
16906 ;;
16907
16908 psos*)
16909 # FIXME: insert proper C++ library support
16910 ld_shlibs_CXX=no
16911 ;;
16912
16913 sunos4*)
16914 case $cc_basename in
16915 CC*)
16916 # Sun C++ 4.x
16917 # FIXME: insert proper C++ library support
16918 ld_shlibs_CXX=no
16919 ;;
16920 lcc*)
16921 # Lucid
16922 # FIXME: insert proper C++ library support
16923 ld_shlibs_CXX=no
16924 ;;
16925 *)
16926 # FIXME: insert proper C++ library support
16927 ld_shlibs_CXX=no
16928 ;;
16929 esac
16930 ;;
16931
16932 solaris*)
16933 case $cc_basename in
16934 CC*)
16935 # Sun C++ 4.2, 5.x and Centerline C++
16936 archive_cmds_need_lc_CXX=yes
16937 no_undefined_flag_CXX=' -zdefs'
16938 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16939 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16940 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16941
16942 hardcode_libdir_flag_spec_CXX='-R$libdir'
16943 hardcode_shlibpath_var_CXX=no
16944 case $host_os in
16945 solaris2.[0-5] | solaris2.[0-5].*) ;;
16946 *)
16947 # The compiler driver will combine and reorder linker options,
16948 # but understands `-z linker_flag'.
16949 # Supported since Solaris 2.6 (maybe 2.5.1?)
16950 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16951 ;;
16952 esac
16953 link_all_deplibs_CXX=yes
16954
16955 output_verbose_link_cmd='echo'
16956
16957 # Archives containing C++ object files must be created using
16958 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16959 # necessary to make sure instantiated templates are included
16960 # in the archive.
16961 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16962 ;;
16963 gcx*)
16964 # Green Hills C++ Compiler
16965 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16966
16967 # The C++ compiler must be used to create the archive.
16968 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16969 ;;
16970 *)
16971 # GNU C++ compiler with Solaris linker
16972 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16973 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16974 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16975 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16976 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16977 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16978
16979 # Commands to make compiler produce verbose output that lists
16980 # what "hidden" libraries, object files and flags are used when
16981 # linking a shared library.
16982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16983 else
16984 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16985 # platform.
16986 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16987 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16988 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16989
16990 # Commands to make compiler produce verbose output that lists
16991 # what "hidden" libraries, object files and flags are used when
16992 # linking a shared library.
16993 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16994 fi
16995
16996 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16997 case $host_os in
16998 solaris2.[0-5] | solaris2.[0-5].*) ;;
16999 *)
17000 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17001 ;;
17002 esac
17003 fi
17004 ;;
17005 esac
17006 ;;
17007
17008 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17009 no_undefined_flag_CXX='${wl}-z,text'
17010 archive_cmds_need_lc_CXX=no
17011 hardcode_shlibpath_var_CXX=no
17012 runpath_var='LD_RUN_PATH'
17013
17014 case $cc_basename in
17015 CC*)
17016 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17017 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17018 ;;
17019 *)
17020 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17021 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17022 ;;
17023 esac
17024 ;;
17025
17026 sysv5* | sco3.2v5* | sco5v6*)
17027 # Note: We can NOT use -z defs as we might desire, because we do not
17028 # link with -lc, and that would cause any symbols used from libc to
17029 # always be unresolved, which means just about no library would
17030 # ever link correctly. If we're not using GNU ld we use -z text
17031 # though, which does catch some bad symbols but isn't as heavy-handed
17032 # as -z defs.
17033 no_undefined_flag_CXX='${wl}-z,text'
17034 allow_undefined_flag_CXX='${wl}-z,nodefs'
17035 archive_cmds_need_lc_CXX=no
17036 hardcode_shlibpath_var_CXX=no
17037 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17038 hardcode_libdir_separator_CXX=':'
17039 link_all_deplibs_CXX=yes
17040 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17041 runpath_var='LD_RUN_PATH'
17042
17043 case $cc_basename in
17044 CC*)
17045 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17046 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17047 ;;
17048 *)
17049 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17050 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17051 ;;
17052 esac
17053 ;;
17054
17055 tandem*)
17056 case $cc_basename in
17057 NCC*)
17058 # NonStop-UX NCC 3.20
17059 # FIXME: insert proper C++ library support
17060 ld_shlibs_CXX=no
17061 ;;
17062 *)
17063 # FIXME: insert proper C++ library support
17064 ld_shlibs_CXX=no
17065 ;;
17066 esac
17067 ;;
17068
17069 vxworks*)
17070 # FIXME: insert proper C++ library support
17071 ld_shlibs_CXX=no
17072 ;;
17073
17074 *)
17075 # FIXME: insert proper C++ library support
17076 ld_shlibs_CXX=no
17077 ;;
17078 esac
17079
17080 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17081$as_echo "$ld_shlibs_CXX" >&6; }
17082 test "$ld_shlibs_CXX" = no && can_build_shared=no
17083
17084 GCC_CXX="$GXX"
17085 LD_CXX="$LD"
17086
17087 ## CAVEAT EMPTOR:
17088 ## There is no encapsulation within the following macros, do not change
17089 ## the running order or otherwise move them around unless you know exactly
17090 ## what you are doing...
17091 # Dependencies to place before and after the object being linked:
17092predep_objects_CXX=
17093postdep_objects_CXX=
17094predeps_CXX=
17095postdeps_CXX=
17096compiler_lib_search_path_CXX=
17097
17098cat > conftest.$ac_ext <<_LT_EOF
17099class Foo
17100{
17101public:
17102 Foo (void) { a = 0; }
17103private:
17104 int a;
17105};
17106_LT_EOF
17107
17108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17109 (eval $ac_compile) 2>&5
17110 ac_status=$?
17111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; then
17113 # Parse the compiler output and extract the necessary
17114 # objects, libraries and library flags.
17115
17116 # Sentinel used to keep track of whether or not we are before
17117 # the conftest object file.
17118 pre_test_object_deps_done=no
17119
17120 for p in `eval "$output_verbose_link_cmd"`; do
17121 case $p in
17122
17123 -L* | -R* | -l*)
17124 # Some compilers place space between "-{L,R}" and the path.
17125 # Remove the space.
17126 if test $p = "-L" ||
17127 test $p = "-R"; then
17128 prev=$p
17129 continue
17130 else
17131 prev=
17132 fi
17133
17134 if test "$pre_test_object_deps_done" = no; then
17135 case $p in
17136 -L* | -R*)
17137 # Internal compiler library paths should come after those
17138 # provided the user. The postdeps already come after the
17139 # user supplied libs so there is no need to process them.
17140 if test -z "$compiler_lib_search_path_CXX"; then
17141 compiler_lib_search_path_CXX="${prev}${p}"
17142 else
17143 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17144 fi
17145 ;;
17146 # The "-l" case would never come before the object being
17147 # linked, so don't bother handling this case.
17148 esac
17149 else
17150 if test -z "$postdeps_CXX"; then
17151 postdeps_CXX="${prev}${p}"
17152 else
17153 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17154 fi
17155 fi
17156 ;;
17157
17158 *.$objext)
17159 # This assumes that the test object file only shows up
17160 # once in the compiler output.
17161 if test "$p" = "conftest.$objext"; then
17162 pre_test_object_deps_done=yes
17163 continue
17164 fi
17165
17166 if test "$pre_test_object_deps_done" = no; then
17167 if test -z "$predep_objects_CXX"; then
17168 predep_objects_CXX="$p"
17169 else
17170 predep_objects_CXX="$predep_objects_CXX $p"
17171 fi
17172 else
17173 if test -z "$postdep_objects_CXX"; then
17174 postdep_objects_CXX="$p"
17175 else
17176 postdep_objects_CXX="$postdep_objects_CXX $p"
17177 fi
17178 fi
17179 ;;
17180
17181 *) ;; # Ignore the rest.
17182
17183 esac
17184 done
17185
17186 # Clean up.
17187 rm -f a.out a.exe
17188else
17189 echo "libtool.m4: error: problem compiling CXX test program"
17190fi
17191
17192$RM -f confest.$objext
17193
17194# PORTME: override above test on systems where it is broken
17195case $host_os in
17196interix[3-9]*)
17197 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17198 # hack all around it, let's just trust "g++" to DTRT.
17199 predep_objects_CXX=
17200 postdep_objects_CXX=
17201 postdeps_CXX=
17202 ;;
17203
17204linux*)
17205 case `$CC -V 2>&1 | sed 5q` in
17206 *Sun\ C*)
17207 # Sun C++ 5.9
17208
17209 # The more standards-conforming stlport4 library is
17210 # incompatible with the Cstd library. Avoid specifying
17211 # it if it's in CXXFLAGS. Ignore libCrun as
17212 # -library=stlport4 depends on it.
17213 case " $CXX $CXXFLAGS " in
17214 *" -library=stlport4 "*)
17215 solaris_use_stlport4=yes
17216 ;;
17217 esac
17218
17219 if test "$solaris_use_stlport4" != yes; then
17220 postdeps_CXX='-library=Cstd -library=Crun'
17221 fi
17222 ;;
17223 esac
17224 ;;
17225
17226solaris*)
17227 case $cc_basename in
17228 CC*)
17229 # The more standards-conforming stlport4 library is
17230 # incompatible with the Cstd library. Avoid specifying
17231 # it if it's in CXXFLAGS. Ignore libCrun as
17232 # -library=stlport4 depends on it.
17233 case " $CXX $CXXFLAGS " in
17234 *" -library=stlport4 "*)
17235 solaris_use_stlport4=yes
17236 ;;
17237 esac
17238
17239 # Adding this requires a known-good setup of shared libraries for
17240 # Sun compiler versions before 5.6, else PIC objects from an old
17241 # archive will be linked into the output, leading to subtle bugs.
17242 if test "$solaris_use_stlport4" != yes; then
17243 postdeps_CXX='-library=Cstd -library=Crun'
17244 fi
17245 ;;
17246 esac
17247 ;;
17248esac
17249
17250
17251case " $postdeps_CXX " in
17252*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17253esac
17254 compiler_lib_search_dirs_CXX=
17255if test -n "${compiler_lib_search_path_CXX}"; then
17256 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17257fi
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289 lt_prog_compiler_wl_CXX=
17290lt_prog_compiler_pic_CXX=
17291lt_prog_compiler_static_CXX=
17292
17293{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17294$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17295
17296 # C++ specific cases for pic, static, wl, etc.
17297 if test "$GXX" = yes; then
17298 lt_prog_compiler_wl_CXX='-Wl,'
17299 lt_prog_compiler_static_CXX='-static'
17300
17301 case $host_os in
17302 aix*)
17303 # All AIX code is PIC.
17304 if test "$host_cpu" = ia64; then
17305 # AIX 5 now supports IA64 processor
17306 lt_prog_compiler_static_CXX='-Bstatic'
17307 fi
17308 ;;
17309
17310 amigaos*)
17311 case $host_cpu in
17312 powerpc)
17313 # see comment about AmigaOS4 .so support
17314 lt_prog_compiler_pic_CXX='-fPIC'
17315 ;;
17316 m68k)
17317 # FIXME: we need at least 68020 code to build shared libraries, but
17318 # adding the `-m68020' flag to GCC prevents building anything better,
17319 # like `-m68040'.
17320 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17321 ;;
17322 esac
17323 ;;
17324
17325 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17326 # PIC is the default for these OSes.
17327 ;;
17328 mingw* | cygwin* | os2* | pw32* | cegcc*)
17329 # This hack is so that the source file can tell whether it is being
17330 # built for inclusion in a dll (and should export symbols for example).
17331 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17332 # (--disable-auto-import) libraries
17333 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17334 ;;
17335 darwin* | rhapsody*)
17336 # PIC is the default on this platform
17337 # Common symbols not allowed in MH_DYLIB files
17338 lt_prog_compiler_pic_CXX='-fno-common'
17339 ;;
17340 *djgpp*)
17341 # DJGPP does not support shared libraries at all
17342 lt_prog_compiler_pic_CXX=
17343 ;;
17344 interix[3-9]*)
17345 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17346 # Instead, we relocate shared libraries at runtime.
17347 ;;
17348 sysv4*MP*)
17349 if test -d /usr/nec; then
17350 lt_prog_compiler_pic_CXX=-Kconform_pic
17351 fi
17352 ;;
17353 hpux*)
17354 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17355 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17356 # sets the default TLS model and affects inlining.
17357 case $host_cpu in
17358 hppa*64*)
17359 ;;
17360 *)
17361 lt_prog_compiler_pic_CXX='-fPIC'
17362 ;;
17363 esac
17364 ;;
17365 *qnx* | *nto*)
17366 # QNX uses GNU C++, but need to define -shared option too, otherwise
17367 # it will coredump.
17368 lt_prog_compiler_pic_CXX='-fPIC -shared'
17369 ;;
17370 *)
17371 lt_prog_compiler_pic_CXX='-fPIC'
17372 ;;
17373 esac
17374 else
17375 case $host_os in
17376 aix[4-9]*)
17377 # All AIX code is PIC.
17378 if test "$host_cpu" = ia64; then
17379 # AIX 5 now supports IA64 processor
17380 lt_prog_compiler_static_CXX='-Bstatic'
17381 else
17382 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17383 fi
17384 ;;
17385 chorus*)
17386 case $cc_basename in
17387 cxch68*)
17388 # Green Hills C++ Compiler
17389 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17390 ;;
17391 esac
17392 ;;
17393 dgux*)
17394 case $cc_basename in
17395 ec++*)
17396 lt_prog_compiler_pic_CXX='-KPIC'
17397 ;;
17398 ghcx*)
17399 # Green Hills C++ Compiler
17400 lt_prog_compiler_pic_CXX='-pic'
17401 ;;
17402 *)
17403 ;;
17404 esac
17405 ;;
17406 freebsd* | dragonfly*)
17407 # FreeBSD uses GNU C++
17408 ;;
17409 hpux9* | hpux10* | hpux11*)
17410 case $cc_basename in
17411 CC*)
17412 lt_prog_compiler_wl_CXX='-Wl,'
17413 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17414 if test "$host_cpu" != ia64; then
17415 lt_prog_compiler_pic_CXX='+Z'
17416 fi
17417 ;;
17418 aCC*)
17419 lt_prog_compiler_wl_CXX='-Wl,'
17420 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17421 case $host_cpu in
17422 hppa*64*|ia64*)
17423 # +Z the default
17424 ;;
17425 *)
17426 lt_prog_compiler_pic_CXX='+Z'
17427 ;;
17428 esac
17429 ;;
17430 *)
17431 ;;
17432 esac
17433 ;;
17434 interix*)
17435 # This is c89, which is MS Visual C++ (no shared libs)
17436 # Anyone wants to do a port?
17437 ;;
17438 irix5* | irix6* | nonstopux*)
17439 case $cc_basename in
17440 CC*)
17441 lt_prog_compiler_wl_CXX='-Wl,'
17442 lt_prog_compiler_static_CXX='-non_shared'
17443 # CC pic flag -KPIC is the default.
17444 ;;
17445 *)
17446 ;;
17447 esac
17448 ;;
17449 linux* | k*bsd*-gnu)
17450 case $cc_basename in
17451 KCC*)
17452 # KAI C++ Compiler
17453 lt_prog_compiler_wl_CXX='--backend -Wl,'
17454 lt_prog_compiler_pic_CXX='-fPIC'
17455 ;;
17456 ecpc* )
17457 # old Intel C++ for x86_64 which still supported -KPIC.
17458 lt_prog_compiler_wl_CXX='-Wl,'
17459 lt_prog_compiler_pic_CXX='-KPIC'
17460 lt_prog_compiler_static_CXX='-static'
17461 ;;
17462 icpc* )
17463 # Intel C++, used to be incompatible with GCC.
17464 # ICC 10 doesn't accept -KPIC any more.
17465 lt_prog_compiler_wl_CXX='-Wl,'
17466 lt_prog_compiler_pic_CXX='-fPIC'
17467 lt_prog_compiler_static_CXX='-static'
17468 ;;
17469 pgCC* | pgcpp*)
17470 # Portland Group C++ compiler
17471 lt_prog_compiler_wl_CXX='-Wl,'
17472 lt_prog_compiler_pic_CXX='-fpic'
17473 lt_prog_compiler_static_CXX='-Bstatic'
17474 ;;
17475 cxx*)
17476 # Compaq C++
17477 # Make sure the PIC flag is empty. It appears that all Alpha
17478 # Linux and Compaq Tru64 Unix objects are PIC.
17479 lt_prog_compiler_pic_CXX=
17480 lt_prog_compiler_static_CXX='-non_shared'
17481 ;;
17482 xlc* | xlC*)
17483 # IBM XL 8.0 on PPC
17484 lt_prog_compiler_wl_CXX='-Wl,'
17485 lt_prog_compiler_pic_CXX='-qpic'
17486 lt_prog_compiler_static_CXX='-qstaticlink'
17487 ;;
17488 *)
17489 case `$CC -V 2>&1 | sed 5q` in
17490 *Sun\ C*)
17491 # Sun C++ 5.9
17492 lt_prog_compiler_pic_CXX='-KPIC'
17493 lt_prog_compiler_static_CXX='-Bstatic'
17494 lt_prog_compiler_wl_CXX='-Qoption ld '
17495 ;;
17496 esac
17497 ;;
17498 esac
17499 ;;
17500 lynxos*)
17501 ;;
17502 m88k*)
17503 ;;
17504 mvs*)
17505 case $cc_basename in
17506 cxx*)
17507 lt_prog_compiler_pic_CXX='-W c,exportall'
17508 ;;
17509 *)
17510 ;;
17511 esac
17512 ;;
17513 netbsd*)
17514 ;;
17515 *qnx* | *nto*)
17516 # QNX uses GNU C++, but need to define -shared option too, otherwise
17517 # it will coredump.
17518 lt_prog_compiler_pic_CXX='-fPIC -shared'
17519 ;;
17520 osf3* | osf4* | osf5*)
17521 case $cc_basename in
17522 KCC*)
17523 lt_prog_compiler_wl_CXX='--backend -Wl,'
17524 ;;
17525 RCC*)
17526 # Rational C++ 2.4.1
17527 lt_prog_compiler_pic_CXX='-pic'
17528 ;;
17529 cxx*)
17530 # Digital/Compaq C++
17531 lt_prog_compiler_wl_CXX='-Wl,'
17532 # Make sure the PIC flag is empty. It appears that all Alpha
17533 # Linux and Compaq Tru64 Unix objects are PIC.
17534 lt_prog_compiler_pic_CXX=
17535 lt_prog_compiler_static_CXX='-non_shared'
17536 ;;
17537 *)
17538 ;;
17539 esac
17540 ;;
17541 psos*)
17542 ;;
17543 solaris*)
17544 case $cc_basename in
17545 CC*)
17546 # Sun C++ 4.2, 5.x and Centerline C++
17547 lt_prog_compiler_pic_CXX='-KPIC'
17548 lt_prog_compiler_static_CXX='-Bstatic'
17549 lt_prog_compiler_wl_CXX='-Qoption ld '
17550 ;;
17551 gcx*)
17552 # Green Hills C++ Compiler
17553 lt_prog_compiler_pic_CXX='-PIC'
17554 ;;
17555 *)
17556 ;;
17557 esac
17558 ;;
17559 sunos4*)
17560 case $cc_basename in
17561 CC*)
17562 # Sun C++ 4.x
17563 lt_prog_compiler_pic_CXX='-pic'
17564 lt_prog_compiler_static_CXX='-Bstatic'
17565 ;;
17566 lcc*)
17567 # Lucid
17568 lt_prog_compiler_pic_CXX='-pic'
17569 ;;
17570 *)
17571 ;;
17572 esac
17573 ;;
17574 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17575 case $cc_basename in
17576 CC*)
17577 lt_prog_compiler_wl_CXX='-Wl,'
17578 lt_prog_compiler_pic_CXX='-KPIC'
17579 lt_prog_compiler_static_CXX='-Bstatic'
17580 ;;
17581 esac
17582 ;;
17583 tandem*)
17584 case $cc_basename in
17585 NCC*)
17586 # NonStop-UX NCC 3.20
17587 lt_prog_compiler_pic_CXX='-KPIC'
17588 ;;
17589 *)
17590 ;;
17591 esac
17592 ;;
17593 vxworks*)
17594 ;;
17595 *)
17596 lt_prog_compiler_can_build_shared_CXX=no
17597 ;;
17598 esac
17599 fi
17600
17601case $host_os in
17602 # For platforms which do not support PIC, -DPIC is meaningless:
17603 *djgpp*)
17604 lt_prog_compiler_pic_CXX=
17605 ;;
17606 *)
17607 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17608 ;;
17609esac
17610{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17611$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17612
17613
17614
17615#
17616# Check to make sure the PIC flag actually works.
17617#
17618if test -n "$lt_prog_compiler_pic_CXX"; then
17619 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17620$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17621if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
17622 $as_echo_n "(cached) " >&6
17623else
17624 lt_cv_prog_compiler_pic_works_CXX=no
17625 ac_outfile=conftest.$ac_objext
17626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17627 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17628 # Insert the option either (1) after the last *FLAGS variable, or
17629 # (2) before a word containing "conftest.", or (3) at the end.
17630 # Note that $ac_compile itself does not contain backslashes and begins
17631 # with a dollar sign (not a hyphen), so the echo should work correctly.
17632 # The option is referenced via a variable to avoid confusing sed.
17633 lt_compile=`echo "$ac_compile" | $SED \
17634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17636 -e 's:$: $lt_compiler_flag:'`
17637 (eval echo "\"\$as_me:17637: $lt_compile\"" >&5)
17638 (eval "$lt_compile" 2>conftest.err)
17639 ac_status=$?
17640 cat conftest.err >&5
17641 echo "$as_me:17641: \$? = $ac_status" >&5
17642 if (exit $ac_status) && test -s "$ac_outfile"; then
17643 # The compiler can only warn and ignore the option if not recognized
17644 # So say no if there are warnings other than the usual output.
17645 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17648 lt_cv_prog_compiler_pic_works_CXX=yes
17649 fi
17650 fi
17651 $RM conftest*
17652
17653fi
17654{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17655$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17656
17657if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17658 case $lt_prog_compiler_pic_CXX in
17659 "" | " "*) ;;
17660 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17661 esac
17662else
17663 lt_prog_compiler_pic_CXX=
17664 lt_prog_compiler_can_build_shared_CXX=no
17665fi
17666
17667fi
17668
17669
17670
17671#
17672# Check to make sure the static flag actually works.
17673#
17674wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17675{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17676$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17677if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
17678 $as_echo_n "(cached) " >&6
17679else
17680 lt_cv_prog_compiler_static_works_CXX=no
17681 save_LDFLAGS="$LDFLAGS"
17682 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17683 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17684 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17685 # The linker can only warn and ignore the option if not recognized
17686 # So say no if there are warnings
17687 if test -s conftest.err; then
17688 # Append any errors to the config.log.
17689 cat conftest.err 1>&5
17690 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17691 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17692 if diff conftest.exp conftest.er2 >/dev/null; then
17693 lt_cv_prog_compiler_static_works_CXX=yes
17694 fi
17695 else
17696 lt_cv_prog_compiler_static_works_CXX=yes
17697 fi
17698 fi
17699 $RM -r conftest*
17700 LDFLAGS="$save_LDFLAGS"
17701
17702fi
17703{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17704$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17705
17706if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17707 :
17708else
17709 lt_prog_compiler_static_CXX=
17710fi
17711
17712
17713
17714
17715 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17716$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17717if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17718 $as_echo_n "(cached) " >&6
17719else
17720 lt_cv_prog_compiler_c_o_CXX=no
17721 $RM -r conftest 2>/dev/null
17722 mkdir conftest
17723 cd conftest
17724 mkdir out
17725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17726
17727 lt_compiler_flag="-o out/conftest2.$ac_objext"
17728 # Insert the option either (1) after the last *FLAGS variable, or
17729 # (2) before a word containing "conftest.", or (3) at the end.
17730 # Note that $ac_compile itself does not contain backslashes and begins
17731 # with a dollar sign (not a hyphen), so the echo should work correctly.
17732 lt_compile=`echo "$ac_compile" | $SED \
17733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17735 -e 's:$: $lt_compiler_flag:'`
17736 (eval echo "\"\$as_me:17736: $lt_compile\"" >&5)
17737 (eval "$lt_compile" 2>out/conftest.err)
17738 ac_status=$?
17739 cat out/conftest.err >&5
17740 echo "$as_me:17740: \$? = $ac_status" >&5
17741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17742 then
17743 # The compiler can only warn and ignore the option if not recognized
17744 # So say no if there are warnings
17745 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17748 lt_cv_prog_compiler_c_o_CXX=yes
17749 fi
17750 fi
17751 chmod u+w . 2>&5
17752 $RM conftest*
17753 # SGI C++ compiler will create directory out/ii_files/ for
17754 # template instantiation
17755 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17756 $RM out/* && rmdir out
17757 cd ..
17758 $RM -r conftest
17759 $RM conftest*
17760
17761fi
17762{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17763$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17764
17765
17766
17767 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17768$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17769if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17770 $as_echo_n "(cached) " >&6
17771else
17772 lt_cv_prog_compiler_c_o_CXX=no
17773 $RM -r conftest 2>/dev/null
17774 mkdir conftest
17775 cd conftest
17776 mkdir out
17777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17778
17779 lt_compiler_flag="-o out/conftest2.$ac_objext"
17780 # Insert the option either (1) after the last *FLAGS variable, or
17781 # (2) before a word containing "conftest.", or (3) at the end.
17782 # Note that $ac_compile itself does not contain backslashes and begins
17783 # with a dollar sign (not a hyphen), so the echo should work correctly.
17784 lt_compile=`echo "$ac_compile" | $SED \
17785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17787 -e 's:$: $lt_compiler_flag:'`
17788 (eval echo "\"\$as_me:17788: $lt_compile\"" >&5)
17789 (eval "$lt_compile" 2>out/conftest.err)
17790 ac_status=$?
17791 cat out/conftest.err >&5
17792 echo "$as_me:17792: \$? = $ac_status" >&5
17793 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17794 then
17795 # The compiler can only warn and ignore the option if not recognized
17796 # So say no if there are warnings
17797 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17798 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17799 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17800 lt_cv_prog_compiler_c_o_CXX=yes
17801 fi
17802 fi
17803 chmod u+w . 2>&5
17804 $RM conftest*
17805 # SGI C++ compiler will create directory out/ii_files/ for
17806 # template instantiation
17807 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17808 $RM out/* && rmdir out
17809 cd ..
17810 $RM -r conftest
17811 $RM conftest*
17812
17813fi
17814{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17815$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17816
17817
17818
17819
17820hard_links="nottested"
17821if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17822 # do not overwrite the value of need_locks provided by the user
17823 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17824$as_echo_n "checking if we can lock with hard links... " >&6; }
17825 hard_links=yes
17826 $RM conftest*
17827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17828 touch conftest.a
17829 ln conftest.a conftest.b 2>&5 || hard_links=no
17830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17831 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17832$as_echo "$hard_links" >&6; }
17833 if test "$hard_links" = no; then
17834 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17835$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17836 need_locks=warn
17837 fi
17838else
17839 need_locks=no
17840fi
17841
17842
17843
17844 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17845$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17846
17847 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17848 case $host_os in
17849 aix[4-9]*)
17850 # If we're using GNU nm, then we don't want the "-C" option.
17851 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17852 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17853 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17854 else
17855 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17856 fi
17857 ;;
17858 pw32*)
17859 export_symbols_cmds_CXX="$ltdll_cmds"
17860 ;;
17861 cygwin* | mingw* | cegcc*)
17862 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17863 ;;
17864 *)
17865 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17866 ;;
17867 esac
17868 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17869
17870{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17871$as_echo "$ld_shlibs_CXX" >&6; }
17872test "$ld_shlibs_CXX" = no && can_build_shared=no
17873
17874with_gnu_ld_CXX=$with_gnu_ld
17875
17876
17877
17878
17879
17880
17881#
17882# Do we need to explicitly link libc?
17883#
17884case "x$archive_cmds_need_lc_CXX" in
17885x|xyes)
17886 # Assume -lc should be added
17887 archive_cmds_need_lc_CXX=yes
17888
17889 if test "$enable_shared" = yes && test "$GCC" = yes; then
17890 case $archive_cmds_CXX in
17891 *'~'*)
17892 # FIXME: we may have to deal with multi-command sequences.
17893 ;;
17894 '$CC '*)
17895 # Test whether the compiler implicitly links with -lc since on some
17896 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17897 # to ld, don't add -lc before -lgcc.
17898 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17899$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17900 $RM conftest*
17901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17902
17903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17904 (eval $ac_compile) 2>&5
17905 ac_status=$?
17906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } 2>conftest.err; then
17908 soname=conftest
17909 lib=conftest
17910 libobjs=conftest.$ac_objext
17911 deplibs=
17912 wl=$lt_prog_compiler_wl_CXX
17913 pic_flag=$lt_prog_compiler_pic_CXX
17914 compiler_flags=-v
17915 linker_flags=-v
17916 verstring=
17917 output_objdir=.
17918 libname=conftest
17919 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17920 allow_undefined_flag_CXX=
17921 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17922 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17923 ac_status=$?
17924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }
17926 then
17927 archive_cmds_need_lc_CXX=no
17928 else
17929 archive_cmds_need_lc_CXX=yes
17930 fi
17931 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17932 else
17933 cat conftest.err 1>&5
17934 fi
17935 $RM conftest*
17936 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17937$as_echo "$archive_cmds_need_lc_CXX" >&6; }
17938 ;;
17939 esac
17940 fi
17941 ;;
17942esac
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18008$as_echo_n "checking dynamic linker characteristics... " >&6; }
18009
18010library_names_spec=
18011libname_spec='lib$name'
18012soname_spec=
18013shrext_cmds=".so"
18014postinstall_cmds=
18015postuninstall_cmds=
18016finish_cmds=
18017finish_eval=
18018shlibpath_var=
18019shlibpath_overrides_runpath=unknown
18020version_type=none
18021dynamic_linker="$host_os ld.so"
18022sys_lib_dlsearch_path_spec="/lib /usr/lib"
18023need_lib_prefix=unknown
18024hardcode_into_libs=no
18025
18026# when you set need_version to no, make sure it does not cause -set_version
18027# flags to be left without arguments
18028need_version=unknown
18029
18030case $host_os in
18031aix3*)
18032 version_type=linux
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18034 shlibpath_var=LIBPATH
18035
18036 # AIX 3 has no versioning support, so we append a major version to the name.
18037 soname_spec='${libname}${release}${shared_ext}$major'
18038 ;;
18039
18040aix[4-9]*)
18041 version_type=linux
18042 need_lib_prefix=no
18043 need_version=no
18044 hardcode_into_libs=yes
18045 if test "$host_cpu" = ia64; then
18046 # AIX 5 supports IA64
18047 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18048 shlibpath_var=LD_LIBRARY_PATH
18049 else
18050 # With GCC up to 2.95.x, collect2 would create an import file
18051 # for dependence libraries. The import file would start with
18052 # the line `#! .'. This would cause the generated library to
18053 # depend on `.', always an invalid library. This was fixed in
18054 # development snapshots of GCC prior to 3.0.
18055 case $host_os in
18056 aix4 | aix4.[01] | aix4.[01].*)
18057 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18058 echo ' yes '
18059 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18060 :
18061 else
18062 can_build_shared=no
18063 fi
18064 ;;
18065 esac
18066 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18067 # soname into executable. Probably we can add versioning support to
18068 # collect2, so additional links can be useful in future.
18069 if test "$aix_use_runtimelinking" = yes; then
18070 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18071 # instead of lib<name>.a to let people know that these are not
18072 # typical AIX shared libraries.
18073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18074 else
18075 # We preserve .a as extension for shared libraries through AIX4.2
18076 # and later when we are not doing run time linking.
18077 library_names_spec='${libname}${release}.a $libname.a'
18078 soname_spec='${libname}${release}${shared_ext}$major'
18079 fi
18080 shlibpath_var=LIBPATH
18081 fi
18082 ;;
18083
18084amigaos*)
18085 case $host_cpu in
18086 powerpc)
18087 # Since July 2007 AmigaOS4 officially supports .so libraries.
18088 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18090 ;;
18091 m68k)
18092 library_names_spec='$libname.ixlibrary $libname.a'
18093 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18094 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'
18095 ;;
18096 esac
18097 ;;
18098
18099beos*)
18100 library_names_spec='${libname}${shared_ext}'
18101 dynamic_linker="$host_os ld.so"
18102 shlibpath_var=LIBRARY_PATH
18103 ;;
18104
18105bsdi[45]*)
18106 version_type=linux
18107 need_version=no
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109 soname_spec='${libname}${release}${shared_ext}$major'
18110 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18111 shlibpath_var=LD_LIBRARY_PATH
18112 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18113 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18114 # the default ld.so.conf also contains /usr/contrib/lib and
18115 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18116 # libtool to hard-code these into programs
18117 ;;
18118
18119cygwin* | mingw* | pw32* | cegcc*)
18120 version_type=windows
18121 shrext_cmds=".dll"
18122 need_version=no
18123 need_lib_prefix=no
18124
18125 case $GCC,$host_os in
18126 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18127 library_names_spec='$libname.dll.a'
18128 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18129 postinstall_cmds='base_file=`basename \${file}`~
18130 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18131 dldir=$destdir/`dirname \$dlpath`~
18132 test -d \$dldir || mkdir -p \$dldir~
18133 $install_prog $dir/$dlname \$dldir/$dlname~
18134 chmod a+x \$dldir/$dlname~
18135 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18136 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18137 fi'
18138 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18139 dlpath=$dir/\$dldll~
18140 $RM \$dlpath'
18141 shlibpath_overrides_runpath=yes
18142
18143 case $host_os in
18144 cygwin*)
18145 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18146 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18147 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18148 ;;
18149 mingw* | cegcc*)
18150 # MinGW DLLs use traditional 'lib' prefix
18151 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18152 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18153 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18154 # It is most probably a Windows format PATH printed by
18155 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18156 # path with ; separators, and with drive letters. We can handle the
18157 # drive letters (cygwin fileutils understands them), so leave them,
18158 # especially as we might pass files found there to a mingw objdump,
18159 # which wouldn't understand a cygwinified path. Ahh.
18160 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18161 else
18162 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18163 fi
18164 ;;
18165 pw32*)
18166 # pw32 DLLs use 'pw' prefix rather than 'lib'
18167 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18168 ;;
18169 esac
18170 ;;
18171
18172 *)
18173 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18174 ;;
18175 esac
18176 dynamic_linker='Win32 ld.exe'
18177 # FIXME: first we should search . and the directory the executable is in
18178 shlibpath_var=PATH
18179 ;;
18180
18181darwin* | rhapsody*)
18182 dynamic_linker="$host_os dyld"
18183 version_type=darwin
18184 need_lib_prefix=no
18185 need_version=no
18186 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18187 soname_spec='${libname}${release}${major}$shared_ext'
18188 shlibpath_overrides_runpath=yes
18189 shlibpath_var=DYLD_LIBRARY_PATH
18190 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18191
18192 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18193 ;;
18194
18195dgux*)
18196 version_type=linux
18197 need_lib_prefix=no
18198 need_version=no
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18200 soname_spec='${libname}${release}${shared_ext}$major'
18201 shlibpath_var=LD_LIBRARY_PATH
18202 ;;
18203
18204freebsd1*)
18205 dynamic_linker=no
18206 ;;
18207
18208freebsd* | dragonfly*)
18209 # DragonFly does not have aout. When/if they implement a new
18210 # versioning mechanism, adjust this.
18211 if test -x /usr/bin/objformat; then
18212 objformat=`/usr/bin/objformat`
18213 else
18214 case $host_os in
18215 freebsd[123]*) objformat=aout ;;
18216 *) objformat=elf ;;
18217 esac
18218 fi
18219 version_type=freebsd-$objformat
18220 case $version_type in
18221 freebsd-elf*)
18222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18223 need_version=no
18224 need_lib_prefix=no
18225 ;;
18226 freebsd-*)
18227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18228 need_version=yes
18229 ;;
18230 esac
18231 shlibpath_var=LD_LIBRARY_PATH
18232 case $host_os in
18233 freebsd2*)
18234 shlibpath_overrides_runpath=yes
18235 ;;
18236 freebsd3.[01]* | freebsdelf3.[01]*)
18237 shlibpath_overrides_runpath=yes
18238 hardcode_into_libs=yes
18239 ;;
18240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18242 shlibpath_overrides_runpath=no
18243 hardcode_into_libs=yes
18244 ;;
18245 *) # from 4.6 on, and DragonFly
18246 shlibpath_overrides_runpath=yes
18247 hardcode_into_libs=yes
18248 ;;
18249 esac
18250 ;;
18251
18252gnu*)
18253 version_type=linux
18254 need_lib_prefix=no
18255 need_version=no
18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18257 soname_spec='${libname}${release}${shared_ext}$major'
18258 shlibpath_var=LD_LIBRARY_PATH
18259 hardcode_into_libs=yes
18260 ;;
18261
18262hpux9* | hpux10* | hpux11*)
18263 # Give a soname corresponding to the major version so that dld.sl refuses to
18264 # link against other versions.
18265 version_type=sunos
18266 need_lib_prefix=no
18267 need_version=no
18268 case $host_cpu in
18269 ia64*)
18270 shrext_cmds='.so'
18271 hardcode_into_libs=yes
18272 dynamic_linker="$host_os dld.so"
18273 shlibpath_var=LD_LIBRARY_PATH
18274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18276 soname_spec='${libname}${release}${shared_ext}$major'
18277 if test "X$HPUX_IA64_MODE" = X32; then
18278 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18279 else
18280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18281 fi
18282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18283 ;;
18284 hppa*64*)
18285 shrext_cmds='.sl'
18286 hardcode_into_libs=yes
18287 dynamic_linker="$host_os dld.sl"
18288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291 soname_spec='${libname}${release}${shared_ext}$major'
18292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18294 ;;
18295 *)
18296 shrext_cmds='.sl'
18297 dynamic_linker="$host_os dld.sl"
18298 shlibpath_var=SHLIB_PATH
18299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18301 soname_spec='${libname}${release}${shared_ext}$major'
18302 ;;
18303 esac
18304 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18305 postinstall_cmds='chmod 555 $lib'
18306 ;;
18307
18308interix[3-9]*)
18309 version_type=linux
18310 need_lib_prefix=no
18311 need_version=no
18312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18313 soname_spec='${libname}${release}${shared_ext}$major'
18314 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18315 shlibpath_var=LD_LIBRARY_PATH
18316 shlibpath_overrides_runpath=no
18317 hardcode_into_libs=yes
18318 ;;
18319
18320irix5* | irix6* | nonstopux*)
18321 case $host_os in
18322 nonstopux*) version_type=nonstopux ;;
18323 *)
18324 if test "$lt_cv_prog_gnu_ld" = yes; then
18325 version_type=linux
18326 else
18327 version_type=irix
18328 fi ;;
18329 esac
18330 need_lib_prefix=no
18331 need_version=no
18332 soname_spec='${libname}${release}${shared_ext}$major'
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18334 case $host_os in
18335 irix5* | nonstopux*)
18336 libsuff= shlibsuff=
18337 ;;
18338 *)
18339 case $LD in # libtool.m4 will add one of these switches to LD
18340 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18341 libsuff= shlibsuff= libmagic=32-bit;;
18342 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18343 libsuff=32 shlibsuff=N32 libmagic=N32;;
18344 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18345 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18346 *) libsuff= shlibsuff= libmagic=never-match;;
18347 esac
18348 ;;
18349 esac
18350 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18351 shlibpath_overrides_runpath=no
18352 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18353 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18354 hardcode_into_libs=yes
18355 ;;
18356
18357# No shared lib support for Linux oldld, aout, or coff.
18358linux*oldld* | linux*aout* | linux*coff*)
18359 dynamic_linker=no
18360 ;;
18361
18362# This must be Linux ELF.
18363linux* | k*bsd*-gnu)
18364 version_type=linux
18365 need_lib_prefix=no
18366 need_version=no
18367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368 soname_spec='${libname}${release}${shared_ext}$major'
18369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18370 shlibpath_var=LD_LIBRARY_PATH
18371 shlibpath_overrides_runpath=no
18372 # Some binutils ld are patched to set DT_RUNPATH
18373 save_LDFLAGS=$LDFLAGS
18374 save_libdir=$libdir
18375 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18376 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18377 cat >conftest.$ac_ext <<_ACEOF
18378/* confdefs.h. */
18379_ACEOF
18380cat confdefs.h >>conftest.$ac_ext
18381cat >>conftest.$ac_ext <<_ACEOF
18382/* end confdefs.h. */
18383
18384int
18385main ()
18386{
18387
18388 ;
18389 return 0;
18390}
18391_ACEOF
18392rm -f conftest.$ac_objext conftest$ac_exeext
18393if { (ac_try="$ac_link"
18394case "(($ac_try" in
18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396 *) ac_try_echo=$ac_try;;
18397esac
18398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18399$as_echo "$ac_try_echo") >&5
18400 (eval "$ac_link") 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } && {
18407 test -z "$ac_cxx_werror_flag" ||
18408 test ! -s conftest.err
18409 } && test -s conftest$ac_exeext && {
18410 test "$cross_compiling" = yes ||
18411 $as_test_x conftest$ac_exeext
18412 }; then
18413 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
18414 shlibpath_overrides_runpath=yes
18415fi
18416
18417else
18418 $as_echo "$as_me: failed program was:" >&5
18419sed 's/^/| /' conftest.$ac_ext >&5
18420
18421
18422fi
18423
18424rm -rf conftest.dSYM
18425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18426 conftest$ac_exeext conftest.$ac_ext
18427 LDFLAGS=$save_LDFLAGS
18428 libdir=$save_libdir
18429
18430 # This implies no fast_install, which is unacceptable.
18431 # Some rework will be needed to allow for fast_install
18432 # before this can be enabled.
18433 hardcode_into_libs=yes
18434
18435 # Add ABI-specific directories to the system library path.
18436 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18437
18438 # Append ld.so.conf contents to the search path
18439 if test -f /etc/ld.so.conf; then
18440 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' ' '`
18441 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18442 fi
18443
18444 # We used to test for /lib/ld.so.1 and disable shared libraries on
18445 # powerpc, because MkLinux only supported shared libraries with the
18446 # GNU dynamic linker. Since this was broken with cross compilers,
18447 # most powerpc-linux boxes support dynamic linking these days and
18448 # people can always --disable-shared, the test was removed, and we
18449 # assume the GNU/Linux dynamic linker is in use.
18450 dynamic_linker='GNU/Linux ld.so'
18451 ;;
18452
18453netbsd*)
18454 version_type=sunos
18455 need_lib_prefix=no
18456 need_version=no
18457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18460 dynamic_linker='NetBSD (a.out) ld.so'
18461 else
18462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18463 soname_spec='${libname}${release}${shared_ext}$major'
18464 dynamic_linker='NetBSD ld.elf_so'
18465 fi
18466 shlibpath_var=LD_LIBRARY_PATH
18467 shlibpath_overrides_runpath=yes
18468 hardcode_into_libs=yes
18469 ;;
18470
18471newsos6)
18472 version_type=linux
18473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18474 shlibpath_var=LD_LIBRARY_PATH
18475 shlibpath_overrides_runpath=yes
18476 ;;
18477
18478*nto* | *qnx*)
18479 version_type=qnx
18480 need_lib_prefix=no
18481 need_version=no
18482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18483 soname_spec='${libname}${release}${shared_ext}$major'
18484 shlibpath_var=LD_LIBRARY_PATH
18485 shlibpath_overrides_runpath=no
18486 hardcode_into_libs=yes
18487 dynamic_linker='ldqnx.so'
18488 ;;
18489
18490openbsd*)
18491 version_type=sunos
18492 sys_lib_dlsearch_path_spec="/usr/lib"
18493 need_lib_prefix=no
18494 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18495 case $host_os in
18496 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18497 *) need_version=no ;;
18498 esac
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18501 shlibpath_var=LD_LIBRARY_PATH
18502 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18503 case $host_os in
18504 openbsd2.[89] | openbsd2.[89].*)
18505 shlibpath_overrides_runpath=no
18506 ;;
18507 *)
18508 shlibpath_overrides_runpath=yes
18509 ;;
18510 esac
18511 else
18512 shlibpath_overrides_runpath=yes
18513 fi
18514 ;;
18515
18516os2*)
18517 libname_spec='$name'
18518 shrext_cmds=".dll"
18519 need_lib_prefix=no
18520 library_names_spec='$libname${shared_ext} $libname.a'
18521 dynamic_linker='OS/2 ld.exe'
18522 shlibpath_var=LIBPATH
18523 ;;
18524
18525osf3* | osf4* | osf5*)
18526 version_type=osf
18527 need_lib_prefix=no
18528 need_version=no
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18531 shlibpath_var=LD_LIBRARY_PATH
18532 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18533 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18534 ;;
18535
18536rdos*)
18537 dynamic_linker=no
18538 ;;
18539
18540solaris*)
18541 version_type=linux
18542 need_lib_prefix=no
18543 need_version=no
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545 soname_spec='${libname}${release}${shared_ext}$major'
18546 shlibpath_var=LD_LIBRARY_PATH
18547 shlibpath_overrides_runpath=yes
18548 hardcode_into_libs=yes
18549 # ldd complains unless libraries are executable
18550 postinstall_cmds='chmod +x $lib'
18551 ;;
18552
18553sunos4*)
18554 version_type=sunos
18555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18557 shlibpath_var=LD_LIBRARY_PATH
18558 shlibpath_overrides_runpath=yes
18559 if test "$with_gnu_ld" = yes; then
18560 need_lib_prefix=no
18561 fi
18562 need_version=yes
18563 ;;
18564
18565sysv4 | sysv4.3*)
18566 version_type=linux
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568 soname_spec='${libname}${release}${shared_ext}$major'
18569 shlibpath_var=LD_LIBRARY_PATH
18570 case $host_vendor in
18571 sni)
18572 shlibpath_overrides_runpath=no
18573 need_lib_prefix=no
18574 runpath_var=LD_RUN_PATH
18575 ;;
18576 siemens)
18577 need_lib_prefix=no
18578 ;;
18579 motorola)
18580 need_lib_prefix=no
18581 need_version=no
18582 shlibpath_overrides_runpath=no
18583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18584 ;;
18585 esac
18586 ;;
18587
18588sysv4*MP*)
18589 if test -d /usr/nec ;then
18590 version_type=linux
18591 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18592 soname_spec='$libname${shared_ext}.$major'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 fi
18595 ;;
18596
18597sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18598 version_type=freebsd-elf
18599 need_lib_prefix=no
18600 need_version=no
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 shlibpath_var=LD_LIBRARY_PATH
18604 shlibpath_overrides_runpath=yes
18605 hardcode_into_libs=yes
18606 if test "$with_gnu_ld" = yes; then
18607 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18608 else
18609 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18610 case $host_os in
18611 sco3.2v5*)
18612 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18613 ;;
18614 esac
18615 fi
18616 sys_lib_dlsearch_path_spec='/usr/lib'
18617 ;;
18618
18619tpf*)
18620 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18621 version_type=linux
18622 need_lib_prefix=no
18623 need_version=no
18624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625 shlibpath_var=LD_LIBRARY_PATH
18626 shlibpath_overrides_runpath=no
18627 hardcode_into_libs=yes
18628 ;;
18629
18630uts4*)
18631 version_type=linux
18632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633 soname_spec='${libname}${release}${shared_ext}$major'
18634 shlibpath_var=LD_LIBRARY_PATH
18635 ;;
18636
18637*)
18638 dynamic_linker=no
18639 ;;
18640esac
18641{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18642$as_echo "$dynamic_linker" >&6; }
18643test "$dynamic_linker" = no && can_build_shared=no
18644
18645variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18646if test "$GCC" = yes; then
18647 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18648fi
18649
18650if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18651 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18652fi
18653if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18654 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18655fi
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18693$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18694hardcode_action_CXX=
18695if test -n "$hardcode_libdir_flag_spec_CXX" ||
18696 test -n "$runpath_var_CXX" ||
18697 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18698
18699 # We can hardcode non-existent directories.
18700 if test "$hardcode_direct_CXX" != no &&
18701 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18702 # have to relink, otherwise we might link with an installed library
18703 # when we should be linking with a yet-to-be-installed one
18704 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18705 test "$hardcode_minus_L_CXX" != no; then
18706 # Linking always hardcodes the temporary library directory.
18707 hardcode_action_CXX=relink
18708 else
18709 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18710 hardcode_action_CXX=immediate
18711 fi
18712else
18713 # We cannot hardcode anything, or else we can only hardcode existing
18714 # directories.
18715 hardcode_action_CXX=unsupported
18716fi
18717{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18718$as_echo "$hardcode_action_CXX" >&6; }
18719
18720if test "$hardcode_action_CXX" = relink ||
18721 test "$inherit_rpath_CXX" = yes; then
18722 # Fast installation is not supported
18723 enable_fast_install=no
18724elif test "$shlibpath_overrides_runpath" = yes ||
18725 test "$enable_shared" = no; then
18726 # Fast installation is not necessary
18727 enable_fast_install=needless
18728fi
18729
18730
18731
18732
18733
18734
18735
18736 fi # test -n "$compiler"
18737
18738 CC=$lt_save_CC
18739 LDCXX=$LD
18740 LD=$lt_save_LD
18741 GCC=$lt_save_GCC
18742 with_gnu_ld=$lt_save_with_gnu_ld
18743 lt_cv_path_LDCXX=$lt_cv_path_LD
18744 lt_cv_path_LD=$lt_save_path_LD
18745 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18746 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18747fi # test "$_lt_caught_CXX_error" != yes
18748
18749ac_ext=c
18750ac_cpp='$CPP $CPPFLAGS'
18751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18753ac_compiler_gnu=$ac_cv_c_compiler_gnu
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767 ac_config_commands="$ac_config_commands libtool"
18768
18769
18770
18771
18772# Only expand once:
18773
18774
18775
18776
18777
18778# Configure libltdl
18779
18780
18781
18782
18783
18784
18785
18786
18787{ $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
18788$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
18789if test "${libltdl_cv_shlibext+set}" = set; then
18790 $as_echo_n "(cached) " >&6
18791else
18792
18793module=yes
18794eval libltdl_cv_shlibext=$shrext_cmds
18795
18796fi
18797{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
18798$as_echo "$libltdl_cv_shlibext" >&6; }
18799if test -n "$libltdl_cv_shlibext"; then
18800
18801cat >>confdefs.h <<_ACEOF
18802#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18803_ACEOF
18804
18805fi
18806
18807{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
18808$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
18809if test "${lt_cv_module_path_var+set}" = set; then
18810 $as_echo_n "(cached) " >&6
18811else
18812 lt_cv_module_path_var="$shlibpath_var"
18813fi
18814{ $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
18815$as_echo "$lt_cv_module_path_var" >&6; }
18816if test -n "$lt_cv_module_path_var"; then
18817
18818cat >>confdefs.h <<_ACEOF
18819#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18820_ACEOF
18821
18822fi
18823
18824{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
18825$as_echo_n "checking for the default library search path... " >&6; }
18826if test "${lt_cv_sys_dlsearch_path+set}" = set; then
18827 $as_echo_n "(cached) " >&6
18828else
18829 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18830fi
18831{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
18832$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18833if test -n "$lt_cv_sys_dlsearch_path"; then
18834 sys_dlsearch_path=
18835 for dir in $lt_cv_sys_dlsearch_path; do
18836 if test -z "$sys_dlsearch_path"; then
18837 sys_dlsearch_path="$dir"
18838 else
18839 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18840 fi
18841 done
18842
18843cat >>confdefs.h <<_ACEOF
18844#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18845_ACEOF
18846
18847fi
18848
18849
18850LT_DLLOADERS=
18851
18852
18853ac_ext=c
18854ac_cpp='$CPP $CPPFLAGS'
18855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857ac_compiler_gnu=$ac_cv_c_compiler_gnu
18858
18859
18860LIBADD_DLOPEN=
18861{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18862$as_echo_n "checking for library containing dlopen... " >&6; }
18863if test "${ac_cv_search_dlopen+set}" = set; then
18864 $as_echo_n "(cached) " >&6
18865else
18866 ac_func_search_save_LIBS=$LIBS
18867cat >conftest.$ac_ext <<_ACEOF
18868/* confdefs.h. */
18869_ACEOF
18870cat confdefs.h >>conftest.$ac_ext
18871cat >>conftest.$ac_ext <<_ACEOF
18872/* end confdefs.h. */
18873
18874/* Override any GCC internal prototype to avoid an error.
18875 Use char because int might match the return type of a GCC
18876 builtin and then its argument prototype would still apply. */
18877#ifdef __cplusplus
18878extern "C"
18879#endif
18880char dlopen ();
18881int
18882main ()
18883{
18884return dlopen ();
18885 ;
18886 return 0;
18887}
18888_ACEOF
18889for ac_lib in '' dl; do
18890 if test -z "$ac_lib"; then
18891 ac_res="none required"
18892 else
18893 ac_res=-l$ac_lib
18894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18895 fi
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897if { (ac_try="$ac_link"
18898case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18901esac
18902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18903$as_echo "$ac_try_echo") >&5
18904 (eval "$ac_link") 2>conftest.er1
18905 ac_status=$?
18906 grep -v '^ *+' conftest.er1 >conftest.err
18907 rm -f conftest.er1
18908 cat conftest.err >&5
18909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } && {
18911 test -z "$ac_c_werror_flag" ||
18912 test ! -s conftest.err
18913 } && test -s conftest$ac_exeext && {
18914 test "$cross_compiling" = yes ||
18915 $as_test_x conftest$ac_exeext
18916 }; then
18917 ac_cv_search_dlopen=$ac_res
18918else
18919 $as_echo "$as_me: failed program was:" >&5
18920sed 's/^/| /' conftest.$ac_ext >&5
18921
18922
18923fi
18924
18925rm -rf conftest.dSYM
18926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18927 conftest$ac_exeext
18928 if test "${ac_cv_search_dlopen+set}" = set; then
18929 break
18930fi
18931done
18932if test "${ac_cv_search_dlopen+set}" = set; then
18933 :
18934else
18935 ac_cv_search_dlopen=no
18936fi
18937rm conftest.$ac_ext
18938LIBS=$ac_func_search_save_LIBS
18939fi
18940{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18941$as_echo "$ac_cv_search_dlopen" >&6; }
18942ac_res=$ac_cv_search_dlopen
18943if test "$ac_res" != no; then
18944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18945
18946cat >>confdefs.h <<\_ACEOF
18947#define HAVE_LIBDL 1
18948_ACEOF
18949
18950 if test "$ac_cv_search_dlopen" != "none required" ; then
18951 LIBADD_DLOPEN="-ldl"
18952 fi
18953 libltdl_cv_lib_dl_dlopen="yes"
18954 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18955else
18956 cat >conftest.$ac_ext <<_ACEOF
18957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
18962#if HAVE_DLFCN_H
18963# include <dlfcn.h>
18964#endif
18965
18966int
18967main ()
18968{
18969dlopen(0, 0);
18970 ;
18971 return 0;
18972}
18973_ACEOF
18974rm -f conftest.$ac_objext conftest$ac_exeext
18975if { (ac_try="$ac_link"
18976case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18979esac
18980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18981$as_echo "$ac_try_echo") >&5
18982 (eval "$ac_link") 2>conftest.er1
18983 ac_status=$?
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
18987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } && {
18989 test -z "$ac_c_werror_flag" ||
18990 test ! -s conftest.err
18991 } && test -s conftest$ac_exeext && {
18992 test "$cross_compiling" = yes ||
18993 $as_test_x conftest$ac_exeext
18994 }; then
18995
18996cat >>confdefs.h <<\_ACEOF
18997#define HAVE_LIBDL 1
18998_ACEOF
18999
19000 libltdl_cv_func_dlopen="yes"
19001 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19002else
19003 $as_echo "$as_me: failed program was:" >&5
19004sed 's/^/| /' conftest.$ac_ext >&5
19005
19006 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19007$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19008if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19009 $as_echo_n "(cached) " >&6
19010else
19011 ac_check_lib_save_LIBS=$LIBS
19012LIBS="-lsvld $LIBS"
19013cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h. */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h. */
19019
19020/* Override any GCC internal prototype to avoid an error.
19021 Use char because int might match the return type of a GCC
19022 builtin and then its argument prototype would still apply. */
19023#ifdef __cplusplus
19024extern "C"
19025#endif
19026char dlopen ();
19027int
19028main ()
19029{
19030return dlopen ();
19031 ;
19032 return 0;
19033}
19034_ACEOF
19035rm -f conftest.$ac_objext conftest$ac_exeext
19036if { (ac_try="$ac_link"
19037case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040esac
19041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19042$as_echo "$ac_try_echo") >&5
19043 (eval "$ac_link") 2>conftest.er1
19044 ac_status=$?
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -f conftest.er1
19047 cat conftest.err >&5
19048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } && {
19050 test -z "$ac_c_werror_flag" ||
19051 test ! -s conftest.err
19052 } && test -s conftest$ac_exeext && {
19053 test "$cross_compiling" = yes ||
19054 $as_test_x conftest$ac_exeext
19055 }; then
19056 ac_cv_lib_svld_dlopen=yes
19057else
19058 $as_echo "$as_me: failed program was:" >&5
19059sed 's/^/| /' conftest.$ac_ext >&5
19060
19061 ac_cv_lib_svld_dlopen=no
19062fi
19063
19064rm -rf conftest.dSYM
19065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19066 conftest$ac_exeext conftest.$ac_ext
19067LIBS=$ac_check_lib_save_LIBS
19068fi
19069{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19070$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19071if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
19072
19073cat >>confdefs.h <<\_ACEOF
19074#define HAVE_LIBDL 1
19075_ACEOF
19076
19077 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19078 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19079fi
19080
19081fi
19082
19083rm -rf conftest.dSYM
19084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19085 conftest$ac_exeext conftest.$ac_ext
19086fi
19087
19088if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19089then
19090 lt_save_LIBS="$LIBS"
19091 LIBS="$LIBS $LIBADD_DLOPEN"
19092
19093for ac_func in dlerror
19094do
19095as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19096{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19097$as_echo_n "checking for $ac_func... " >&6; }
19098if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19099 $as_echo_n "(cached) " >&6
19100else
19101 cat >conftest.$ac_ext <<_ACEOF
19102/* confdefs.h. */
19103_ACEOF
19104cat confdefs.h >>conftest.$ac_ext
19105cat >>conftest.$ac_ext <<_ACEOF
19106/* end confdefs.h. */
19107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19109#define $ac_func innocuous_$ac_func
19110
19111/* System header to define __stub macros and hopefully few prototypes,
19112 which can conflict with char $ac_func (); below.
19113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19114 <limits.h> exists even on freestanding compilers. */
19115
19116#ifdef __STDC__
19117# include <limits.h>
19118#else
19119# include <assert.h>
19120#endif
19121
19122#undef $ac_func
19123
19124/* Override any GCC internal prototype to avoid an error.
19125 Use char because int might match the return type of a GCC
19126 builtin and then its argument prototype would still apply. */
19127#ifdef __cplusplus
19128extern "C"
19129#endif
19130char $ac_func ();
19131/* The GNU C library defines this for functions which it implements
19132 to always fail with ENOSYS. Some functions are actually named
19133 something starting with __ and the normal name is an alias. */
19134#if defined __stub_$ac_func || defined __stub___$ac_func
19135choke me
19136#endif
19137
19138int
19139main ()
19140{
19141return $ac_func ();
19142 ;
19143 return 0;
19144}
19145_ACEOF
19146rm -f conftest.$ac_objext conftest$ac_exeext
19147if { (ac_try="$ac_link"
19148case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19151esac
19152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19153$as_echo "$ac_try_echo") >&5
19154 (eval "$ac_link") 2>conftest.er1
19155 ac_status=$?
19156 grep -v '^ *+' conftest.er1 >conftest.err
19157 rm -f conftest.er1
19158 cat conftest.err >&5
19159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } && {
19161 test -z "$ac_c_werror_flag" ||
19162 test ! -s conftest.err
19163 } && test -s conftest$ac_exeext && {
19164 test "$cross_compiling" = yes ||
19165 $as_test_x conftest$ac_exeext
19166 }; then
19167 eval "$as_ac_var=yes"
19168else
19169 $as_echo "$as_me: failed program was:" >&5
19170sed 's/^/| /' conftest.$ac_ext >&5
19171
19172 eval "$as_ac_var=no"
19173fi
19174
19175rm -rf conftest.dSYM
19176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19177 conftest$ac_exeext conftest.$ac_ext
19178fi
19179ac_res=`eval 'as_val=${'$as_ac_var'}
19180 $as_echo "$as_val"'`
19181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19182$as_echo "$ac_res" >&6; }
19183as_val=`eval 'as_val=${'$as_ac_var'}
19184 $as_echo "$as_val"'`
19185 if test "x$as_val" = x""yes; then
19186 cat >>confdefs.h <<_ACEOF
19187#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19188_ACEOF
19189
19190fi
19191done
19192
19193 LIBS="$lt_save_LIBS"
19194fi
19195
19196
19197LIBADD_SHL_LOAD=
19198{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
19199$as_echo_n "checking for shl_load... " >&6; }
19200if test "${ac_cv_func_shl_load+set}" = set; then
19201 $as_echo_n "(cached) " >&6
19202else
19203 cat >conftest.$ac_ext <<_ACEOF
19204/* confdefs.h. */
19205_ACEOF
19206cat confdefs.h >>conftest.$ac_ext
19207cat >>conftest.$ac_ext <<_ACEOF
19208/* end confdefs.h. */
19209/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19211#define shl_load innocuous_shl_load
19212
19213/* System header to define __stub macros and hopefully few prototypes,
19214 which can conflict with char shl_load (); below.
19215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19216 <limits.h> exists even on freestanding compilers. */
19217
19218#ifdef __STDC__
19219# include <limits.h>
19220#else
19221# include <assert.h>
19222#endif
19223
19224#undef shl_load
19225
19226/* Override any GCC internal prototype to avoid an error.
19227 Use char because int might match the return type of a GCC
19228 builtin and then its argument prototype would still apply. */
19229#ifdef __cplusplus
19230extern "C"
19231#endif
19232char shl_load ();
19233/* The GNU C library defines this for functions which it implements
19234 to always fail with ENOSYS. Some functions are actually named
19235 something starting with __ and the normal name is an alias. */
19236#if defined __stub_shl_load || defined __stub___shl_load
19237choke me
19238#endif
19239
19240int
19241main ()
19242{
19243return shl_load ();
19244 ;
19245 return 0;
19246}
19247_ACEOF
19248rm -f conftest.$ac_objext conftest$ac_exeext
19249if { (ac_try="$ac_link"
19250case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253esac
19254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19255$as_echo "$ac_try_echo") >&5
19256 (eval "$ac_link") 2>conftest.er1
19257 ac_status=$?
19258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
19261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } && {
19263 test -z "$ac_c_werror_flag" ||
19264 test ! -s conftest.err
19265 } && test -s conftest$ac_exeext && {
19266 test "$cross_compiling" = yes ||
19267 $as_test_x conftest$ac_exeext
19268 }; then
19269 ac_cv_func_shl_load=yes
19270else
19271 $as_echo "$as_me: failed program was:" >&5
19272sed 's/^/| /' conftest.$ac_ext >&5
19273
19274 ac_cv_func_shl_load=no
19275fi
19276
19277rm -rf conftest.dSYM
19278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19279 conftest$ac_exeext conftest.$ac_ext
19280fi
19281{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19282$as_echo "$ac_cv_func_shl_load" >&6; }
19283if test "x$ac_cv_func_shl_load" = x""yes; then
19284
19285cat >>confdefs.h <<\_ACEOF
19286#define HAVE_SHL_LOAD 1
19287_ACEOF
19288
19289 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19290else
19291 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19292$as_echo_n "checking for shl_load in -ldld... " >&6; }
19293if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19294 $as_echo_n "(cached) " >&6
19295else
19296 ac_check_lib_save_LIBS=$LIBS
19297LIBS="-ldld $LIBS"
19298cat >conftest.$ac_ext <<_ACEOF
19299/* confdefs.h. */
19300_ACEOF
19301cat confdefs.h >>conftest.$ac_ext
19302cat >>conftest.$ac_ext <<_ACEOF
19303/* end confdefs.h. */
19304
19305/* Override any GCC internal prototype to avoid an error.
19306 Use char because int might match the return type of a GCC
19307 builtin and then its argument prototype would still apply. */
19308#ifdef __cplusplus
19309extern "C"
19310#endif
19311char shl_load ();
19312int
19313main ()
19314{
19315return shl_load ();
19316 ;
19317 return 0;
19318}
19319_ACEOF
19320rm -f conftest.$ac_objext conftest$ac_exeext
19321if { (ac_try="$ac_link"
19322case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19325esac
19326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19327$as_echo "$ac_try_echo") >&5
19328 (eval "$ac_link") 2>conftest.er1
19329 ac_status=$?
19330 grep -v '^ *+' conftest.er1 >conftest.err
19331 rm -f conftest.er1
19332 cat conftest.err >&5
19333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } && {
19335 test -z "$ac_c_werror_flag" ||
19336 test ! -s conftest.err
19337 } && test -s conftest$ac_exeext && {
19338 test "$cross_compiling" = yes ||
19339 $as_test_x conftest$ac_exeext
19340 }; then
19341 ac_cv_lib_dld_shl_load=yes
19342else
19343 $as_echo "$as_me: failed program was:" >&5
19344sed 's/^/| /' conftest.$ac_ext >&5
19345
19346 ac_cv_lib_dld_shl_load=no
19347fi
19348
19349rm -rf conftest.dSYM
19350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19351 conftest$ac_exeext conftest.$ac_ext
19352LIBS=$ac_check_lib_save_LIBS
19353fi
19354{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19355$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19356if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
19357
19358cat >>confdefs.h <<\_ACEOF
19359#define HAVE_SHL_LOAD 1
19360_ACEOF
19361
19362 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19363 LIBADD_SHL_LOAD="-ldld"
19364fi
19365
19366fi
19367
19368
19369
19370case $host_os in
19371darwin[1567].*)
19372# We only want this for pre-Mac OS X 10.4.
19373 { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
19374$as_echo_n "checking for _dyld_func_lookup... " >&6; }
19375if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
19376 $as_echo_n "(cached) " >&6
19377else
19378 cat >conftest.$ac_ext <<_ACEOF
19379/* confdefs.h. */
19380_ACEOF
19381cat confdefs.h >>conftest.$ac_ext
19382cat >>conftest.$ac_ext <<_ACEOF
19383/* end confdefs.h. */
19384/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
19385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19386#define _dyld_func_lookup innocuous__dyld_func_lookup
19387
19388/* System header to define __stub macros and hopefully few prototypes,
19389 which can conflict with char _dyld_func_lookup (); below.
19390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19391 <limits.h> exists even on freestanding compilers. */
19392
19393#ifdef __STDC__
19394# include <limits.h>
19395#else
19396# include <assert.h>
19397#endif
19398
19399#undef _dyld_func_lookup
19400
19401/* Override any GCC internal prototype to avoid an error.
19402 Use char because int might match the return type of a GCC
19403 builtin and then its argument prototype would still apply. */
19404#ifdef __cplusplus
19405extern "C"
19406#endif
19407char _dyld_func_lookup ();
19408/* The GNU C library defines this for functions which it implements
19409 to always fail with ENOSYS. Some functions are actually named
19410 something starting with __ and the normal name is an alias. */
19411#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
19412choke me
19413#endif
19414
19415int
19416main ()
19417{
19418return _dyld_func_lookup ();
19419 ;
19420 return 0;
19421}
19422_ACEOF
19423rm -f conftest.$ac_objext conftest$ac_exeext
19424if { (ac_try="$ac_link"
19425case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428esac
19429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19430$as_echo "$ac_try_echo") >&5
19431 (eval "$ac_link") 2>conftest.er1
19432 ac_status=$?
19433 grep -v '^ *+' conftest.er1 >conftest.err
19434 rm -f conftest.er1
19435 cat conftest.err >&5
19436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } && {
19438 test -z "$ac_c_werror_flag" ||
19439 test ! -s conftest.err
19440 } && test -s conftest$ac_exeext && {
19441 test "$cross_compiling" = yes ||
19442 $as_test_x conftest$ac_exeext
19443 }; then
19444 ac_cv_func__dyld_func_lookup=yes
19445else
19446 $as_echo "$as_me: failed program was:" >&5
19447sed 's/^/| /' conftest.$ac_ext >&5
19448
19449 ac_cv_func__dyld_func_lookup=no
19450fi
19451
19452rm -rf conftest.dSYM
19453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19454 conftest$ac_exeext conftest.$ac_ext
19455fi
19456{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
19457$as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
19458if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
19459
19460cat >>confdefs.h <<\_ACEOF
19461#define HAVE_DYLD 1
19462_ACEOF
19463
19464 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19465fi
19466
19467 ;;
19468beos*)
19469 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19470 ;;
19471cygwin* | mingw* | os2* | pw32*)
19472 { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
19473$as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
19474if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
19475 $as_echo_n "(cached) " >&6
19476else
19477 cat >conftest.$ac_ext <<_ACEOF
19478/* confdefs.h. */
19479_ACEOF
19480cat confdefs.h >>conftest.$ac_ext
19481cat >>conftest.$ac_ext <<_ACEOF
19482/* end confdefs.h. */
19483#include <sys/cygwin.h>
19484
19485int
19486main ()
19487{
19488#ifndef cygwin_conv_path
19489 (void) cygwin_conv_path;
19490#endif
19491
19492 ;
19493 return 0;
19494}
19495_ACEOF
19496rm -f conftest.$ac_objext
19497if { (ac_try="$ac_compile"
19498case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19501esac
19502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19503$as_echo "$ac_try_echo") >&5
19504 (eval "$ac_compile") 2>conftest.er1
19505 ac_status=$?
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
19509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } && {
19511 test -z "$ac_c_werror_flag" ||
19512 test ! -s conftest.err
19513 } && test -s conftest.$ac_objext; then
19514 ac_cv_have_decl_cygwin_conv_path=yes
19515else
19516 $as_echo "$as_me: failed program was:" >&5
19517sed 's/^/| /' conftest.$ac_ext >&5
19518
19519 ac_cv_have_decl_cygwin_conv_path=no
19520fi
19521
19522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19523fi
19524{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
19525$as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
19526if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
19527
19528cat >>confdefs.h <<_ACEOF
19529#define HAVE_DECL_CYGWIN_CONV_PATH 1
19530_ACEOF
19531
19532
19533else
19534 cat >>confdefs.h <<_ACEOF
19535#define HAVE_DECL_CYGWIN_CONV_PATH 0
19536_ACEOF
19537
19538
19539fi
19540
19541
19542 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19543 ;;
19544esac
19545
19546{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19547$as_echo_n "checking for dld_link in -ldld... " >&6; }
19548if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19549 $as_echo_n "(cached) " >&6
19550else
19551 ac_check_lib_save_LIBS=$LIBS
19552LIBS="-ldld $LIBS"
19553cat >conftest.$ac_ext <<_ACEOF
19554/* confdefs.h. */
19555_ACEOF
19556cat confdefs.h >>conftest.$ac_ext
19557cat >>conftest.$ac_ext <<_ACEOF
19558/* end confdefs.h. */
19559
19560/* Override any GCC internal prototype to avoid an error.
19561 Use char because int might match the return type of a GCC
19562 builtin and then its argument prototype would still apply. */
19563#ifdef __cplusplus
19564extern "C"
19565#endif
19566char dld_link ();
19567int
19568main ()
19569{
19570return dld_link ();
19571 ;
19572 return 0;
19573}
19574_ACEOF
19575rm -f conftest.$ac_objext conftest$ac_exeext
19576if { (ac_try="$ac_link"
19577case "(($ac_try" in
19578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19579 *) ac_try_echo=$ac_try;;
19580esac
19581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19582$as_echo "$ac_try_echo") >&5
19583 (eval "$ac_link") 2>conftest.er1
19584 ac_status=$?
19585 grep -v '^ *+' conftest.er1 >conftest.err
19586 rm -f conftest.er1
19587 cat conftest.err >&5
19588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } && {
19590 test -z "$ac_c_werror_flag" ||
19591 test ! -s conftest.err
19592 } && test -s conftest$ac_exeext && {
19593 test "$cross_compiling" = yes ||
19594 $as_test_x conftest$ac_exeext
19595 }; then
19596 ac_cv_lib_dld_dld_link=yes
19597else
19598 $as_echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601 ac_cv_lib_dld_dld_link=no
19602fi
19603
19604rm -rf conftest.dSYM
19605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19606 conftest$ac_exeext conftest.$ac_ext
19607LIBS=$ac_check_lib_save_LIBS
19608fi
19609{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19610$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19611if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
19612
19613cat >>confdefs.h <<\_ACEOF
19614#define HAVE_DLD 1
19615_ACEOF
19616
19617 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19618fi
19619
19620
19621
19622
19623LT_DLPREOPEN=
19624if test -n "$LT_DLLOADERS"
19625then
19626 for lt_loader in $LT_DLLOADERS; do
19627 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19628 done
19629
19630cat >>confdefs.h <<\_ACEOF
19631#define HAVE_LIBDLLOADER 1
19632_ACEOF
19633
19634fi
19635
19636
19637LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19638
19639
19640ac_ext=c
19641ac_cpp='$CPP $CPPFLAGS'
19642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19644ac_compiler_gnu=$ac_cv_c_compiler_gnu
19645
19646
19647{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
19648$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19649if test "${lt_cv_sys_symbol_underscore+set}" = set; then
19650 $as_echo_n "(cached) " >&6
19651else
19652 lt_cv_sys_symbol_underscore=no
19653 cat > conftest.$ac_ext <<_LT_EOF
19654void nm_test_func(){}
19655int main(){nm_test_func;return 0;}
19656_LT_EOF
19657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19658 (eval $ac_compile) 2>&5
19659 ac_status=$?
19660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; then
19662 # Now try to grab the symbols.
19663 ac_nlist=conftest.nm
19664 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
19665 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19666 ac_status=$?
19667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } && test -s "$ac_nlist"; then
19669 # See whether the symbols have a leading underscore.
19670 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19671 lt_cv_sys_symbol_underscore=yes
19672 else
19673 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19674 :
19675 else
19676 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19677 fi
19678 fi
19679 else
19680 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19681 fi
19682 else
19683 echo "configure: failed program was:" >&5
19684 cat conftest.c >&5
19685 fi
19686 rm -rf conftest*
19687
19688fi
19689{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
19690$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19691 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19692
19693
19694if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19695 if test x"$libltdl_cv_func_dlopen" = xyes ||
19696 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19697 { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
19698$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19699if test "${libltdl_cv_need_uscore+set}" = set; then
19700 $as_echo_n "(cached) " >&6
19701else
19702 libltdl_cv_need_uscore=unknown
19703 save_LIBS="$LIBS"
19704 LIBS="$LIBS $LIBADD_DLOPEN"
19705 if test "$cross_compiling" = yes; then :
19706 libltdl_cv_need_uscore=cross
19707else
19708 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19709 lt_status=$lt_dlunknown
19710 cat > conftest.$ac_ext <<_LT_EOF
19711#line 19711 "configure"
19712#include "confdefs.h"
19713
19714#if HAVE_DLFCN_H
19715#include <dlfcn.h>
19716#endif
19717
19718#include <stdio.h>
19719
19720#ifdef RTLD_GLOBAL
19721# define LT_DLGLOBAL RTLD_GLOBAL
19722#else
19723# ifdef DL_GLOBAL
19724# define LT_DLGLOBAL DL_GLOBAL
19725# else
19726# define LT_DLGLOBAL 0
19727# endif
19728#endif
19729
19730/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19731 find out it does not work in some platform. */
19732#ifndef LT_DLLAZY_OR_NOW
19733# ifdef RTLD_LAZY
19734# define LT_DLLAZY_OR_NOW RTLD_LAZY
19735# else
19736# ifdef DL_LAZY
19737# define LT_DLLAZY_OR_NOW DL_LAZY
19738# else
19739# ifdef RTLD_NOW
19740# define LT_DLLAZY_OR_NOW RTLD_NOW
19741# else
19742# ifdef DL_NOW
19743# define LT_DLLAZY_OR_NOW DL_NOW
19744# else
19745# define LT_DLLAZY_OR_NOW 0
19746# endif
19747# endif
19748# endif
19749# endif
19750#endif
19751
19752void fnord() { int i=42;}
19753int main ()
19754{
19755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19756 int status = $lt_dlunknown;
19757
19758 if (self)
19759 {
19760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19761 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19762 /* dlclose (self); */
19763 }
19764 else
19765 puts (dlerror ());
19766
19767 return status;
19768}
19769_LT_EOF
19770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19771 (eval $ac_link) 2>&5
19772 ac_status=$?
19773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19775 (./conftest; exit; ) >&5 2>/dev/null
19776 lt_status=$?
19777 case x$lt_status in
19778 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19779 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19780 x$lt_dlunknown|x*) ;;
19781 esac
19782 else :
19783 # compilation failed
19784
19785 fi
19786fi
19787rm -fr conftest*
19788
19789 LIBS="$save_LIBS"
19790
19791fi
19792{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
19793$as_echo "$libltdl_cv_need_uscore" >&6; }
19794 fi
19795fi
19796
19797if test x"$libltdl_cv_need_uscore" = xyes; then
19798
19799cat >>confdefs.h <<\_ACEOF
19800#define NEED_USCORE 1
19801_ACEOF
19802
19803fi
19804
19805{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
19806$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19807if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
19808 $as_echo_n "(cached) " >&6
19809else
19810 # PORTME does your system automatically load deplibs for dlopen?
19811 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19812 # For now, we just catch OSes we know something about -- in the
19813 # future, we'll try test this programmatically.
19814 lt_cv_sys_dlopen_deplibs=unknown
19815 case $host_os in
19816 aix3*|aix4.1.*|aix4.2.*)
19817 # Unknown whether this is true for these versions of AIX, but
19818 # we want this `case' here to explicitly catch those versions.
19819 lt_cv_sys_dlopen_deplibs=unknown
19820 ;;
19821 aix[4-9]*)
19822 lt_cv_sys_dlopen_deplibs=yes
19823 ;;
19824 amigaos*)
19825 case $host_cpu in
19826 powerpc)
19827 lt_cv_sys_dlopen_deplibs=no
19828 ;;
19829 esac
19830 ;;
19831 darwin*)
19832 # Assuming the user has installed a libdl from somewhere, this is true
19833 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19834 lt_cv_sys_dlopen_deplibs=yes
19835 ;;
19836 freebsd* | dragonfly*)
19837 lt_cv_sys_dlopen_deplibs=yes
19838 ;;
19839 gnu* | linux* | k*bsd*-gnu)
19840 # GNU and its variants, using gnu ld.so (Glibc)
19841 lt_cv_sys_dlopen_deplibs=yes
19842 ;;
19843 hpux10*|hpux11*)
19844 lt_cv_sys_dlopen_deplibs=yes
19845 ;;
19846 interix*)
19847 lt_cv_sys_dlopen_deplibs=yes
19848 ;;
19849 irix[12345]*|irix6.[01]*)
19850 # Catch all versions of IRIX before 6.2, and indicate that we don't
19851 # know how it worked for any of those versions.
19852 lt_cv_sys_dlopen_deplibs=unknown
19853 ;;
19854 irix*)
19855 # The case above catches anything before 6.2, and it's known that
19856 # at 6.2 and later dlopen does load deplibs.
19857 lt_cv_sys_dlopen_deplibs=yes
19858 ;;
19859 netbsd*)
19860 lt_cv_sys_dlopen_deplibs=yes
19861 ;;
19862 openbsd*)
19863 lt_cv_sys_dlopen_deplibs=yes
19864 ;;
19865 osf[1234]*)
19866 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19867 # it did *not* use an RPATH in a shared library to find objects the
19868 # library depends on, so we explicitly say `no'.
19869 lt_cv_sys_dlopen_deplibs=no
19870 ;;
19871 osf5.0|osf5.0a|osf5.1)
19872 # dlopen *does* load deplibs and with the right loader patch applied
19873 # it even uses RPATH in a shared library to search for shared objects
19874 # that the library depends on, but there's no easy way to know if that
19875 # patch is installed. Since this is the case, all we can really
19876 # say is unknown -- it depends on the patch being installed. If
19877 # it is, this changes to `yes'. Without it, it would be `no'.
19878 lt_cv_sys_dlopen_deplibs=unknown
19879 ;;
19880 osf*)
19881 # the two cases above should catch all versions of osf <= 5.1. Read
19882 # the comments above for what we know about them.
19883 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19884 # is used to find them so we can finally say `yes'.
19885 lt_cv_sys_dlopen_deplibs=yes
19886 ;;
19887 qnx*)
19888 lt_cv_sys_dlopen_deplibs=yes
19889 ;;
19890 solaris*)
19891 lt_cv_sys_dlopen_deplibs=yes
19892 ;;
19893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19894 libltdl_cv_sys_dlopen_deplibs=yes
19895 ;;
19896 esac
19897
19898fi
19899{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
19900$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19901if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19902
19903cat >>confdefs.h <<\_ACEOF
19904#define LTDL_DLOPEN_DEPLIBS 1
19905_ACEOF
19906
19907fi
19908
19909:
19910
19911
19912for ac_header in argz.h
19913do
19914as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19915{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19916$as_echo_n "checking for $ac_header... " >&6; }
19917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19918 $as_echo_n "(cached) " >&6
19919else
19920 cat >conftest.$ac_ext <<_ACEOF
19921/* confdefs.h. */
19922_ACEOF
19923cat confdefs.h >>conftest.$ac_ext
19924cat >>conftest.$ac_ext <<_ACEOF
19925/* end confdefs.h. */
19926$ac_includes_default
19927
19928#include <$ac_header>
19929_ACEOF
19930rm -f conftest.$ac_objext
19931if { (ac_try="$ac_compile"
19932case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19935esac
19936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19937$as_echo "$ac_try_echo") >&5
19938 (eval "$ac_compile") 2>conftest.er1
19939 ac_status=$?
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
19943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } && {
19945 test -z "$ac_c_werror_flag" ||
19946 test ! -s conftest.err
19947 } && test -s conftest.$ac_objext; then
19948 eval "$as_ac_Header=yes"
19949else
19950 $as_echo "$as_me: failed program was:" >&5
19951sed 's/^/| /' conftest.$ac_ext >&5
19952
19953 eval "$as_ac_Header=no"
19954fi
19955
19956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19957fi
19958ac_res=`eval 'as_val=${'$as_ac_Header'}
19959 $as_echo "$as_val"'`
19960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19961$as_echo "$ac_res" >&6; }
19962as_val=`eval 'as_val=${'$as_ac_Header'}
19963 $as_echo "$as_val"'`
19964 if test "x$as_val" = x""yes; then
19965 cat >>confdefs.h <<_ACEOF
19966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19967_ACEOF
19968
19969fi
19970
19971done
19972
19973
19974{ $as_echo "$as_me:$LINENO: checking for error_t" >&5
19975$as_echo_n "checking for error_t... " >&6; }
19976if test "${ac_cv_type_error_t+set}" = set; then
19977 $as_echo_n "(cached) " >&6
19978else
19979 ac_cv_type_error_t=no
19980cat >conftest.$ac_ext <<_ACEOF
19981/* confdefs.h. */
19982_ACEOF
19983cat confdefs.h >>conftest.$ac_ext
19984cat >>conftest.$ac_ext <<_ACEOF
19985/* end confdefs.h. */
19986#if defined(HAVE_ARGZ_H)
19987# include <argz.h>
19988#endif
19989
19990int
19991main ()
19992{
19993if (sizeof (error_t))
19994 return 0;
19995 ;
19996 return 0;
19997}
19998_ACEOF
19999rm -f conftest.$ac_objext
20000if { (ac_try="$ac_compile"
20001case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004esac
20005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20006$as_echo "$ac_try_echo") >&5
20007 (eval "$ac_compile") 2>conftest.er1
20008 ac_status=$?
20009 grep -v '^ *+' conftest.er1 >conftest.err
20010 rm -f conftest.er1
20011 cat conftest.err >&5
20012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } && {
20014 test -z "$ac_c_werror_flag" ||
20015 test ! -s conftest.err
20016 } && test -s conftest.$ac_objext; then
20017 cat >conftest.$ac_ext <<_ACEOF
20018/* confdefs.h. */
20019_ACEOF
20020cat confdefs.h >>conftest.$ac_ext
20021cat >>conftest.$ac_ext <<_ACEOF
20022/* end confdefs.h. */
20023#if defined(HAVE_ARGZ_H)
20024# include <argz.h>
20025#endif
20026
20027int
20028main ()
20029{
20030if (sizeof ((error_t)))
20031 return 0;
20032 ;
20033 return 0;
20034}
20035_ACEOF
20036rm -f conftest.$ac_objext
20037if { (ac_try="$ac_compile"
20038case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041esac
20042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20043$as_echo "$ac_try_echo") >&5
20044 (eval "$ac_compile") 2>conftest.er1
20045 ac_status=$?
20046 grep -v '^ *+' conftest.er1 >conftest.err
20047 rm -f conftest.er1
20048 cat conftest.err >&5
20049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } && {
20051 test -z "$ac_c_werror_flag" ||
20052 test ! -s conftest.err
20053 } && test -s conftest.$ac_objext; then
20054 :
20055else
20056 $as_echo "$as_me: failed program was:" >&5
20057sed 's/^/| /' conftest.$ac_ext >&5
20058
20059 ac_cv_type_error_t=yes
20060fi
20061
20062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20063else
20064 $as_echo "$as_me: failed program was:" >&5
20065sed 's/^/| /' conftest.$ac_ext >&5
20066
20067
20068fi
20069
20070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20071fi
20072{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20073$as_echo "$ac_cv_type_error_t" >&6; }
20074if test "x$ac_cv_type_error_t" = x""yes; then
20075
20076cat >>confdefs.h <<_ACEOF
20077#define HAVE_ERROR_T 1
20078_ACEOF
20079
20080
20081else
20082
20083cat >>confdefs.h <<\_ACEOF
20084#define error_t int
20085_ACEOF
20086
20087
20088cat >>confdefs.h <<\_ACEOF
20089#define __error_t_defined 1
20090_ACEOF
20091
20092fi
20093
20094
20095ARGZ_H=
20096
20097
20098
20099
20100
20101
20102
20103for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20104 argz_next argz_stringify
20105do
20106as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20107{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20108$as_echo_n "checking for $ac_func... " >&6; }
20109if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20110 $as_echo_n "(cached) " >&6
20111else
20112 cat >conftest.$ac_ext <<_ACEOF
20113/* confdefs.h. */
20114_ACEOF
20115cat confdefs.h >>conftest.$ac_ext
20116cat >>conftest.$ac_ext <<_ACEOF
20117/* end confdefs.h. */
20118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20120#define $ac_func innocuous_$ac_func
20121
20122/* System header to define __stub macros and hopefully few prototypes,
20123 which can conflict with char $ac_func (); below.
20124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20125 <limits.h> exists even on freestanding compilers. */
20126
20127#ifdef __STDC__
20128# include <limits.h>
20129#else
20130# include <assert.h>
20131#endif
20132
20133#undef $ac_func
20134
20135/* Override any GCC internal prototype to avoid an error.
20136 Use char because int might match the return type of a GCC
20137 builtin and then its argument prototype would still apply. */
20138#ifdef __cplusplus
20139extern "C"
20140#endif
20141char $ac_func ();
20142/* The GNU C library defines this for functions which it implements
20143 to always fail with ENOSYS. Some functions are actually named
20144 something starting with __ and the normal name is an alias. */
20145#if defined __stub_$ac_func || defined __stub___$ac_func
20146choke me
20147#endif
20148
20149int
20150main ()
20151{
20152return $ac_func ();
20153 ;
20154 return 0;
20155}
20156_ACEOF
20157rm -f conftest.$ac_objext conftest$ac_exeext
20158if { (ac_try="$ac_link"
20159case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20162esac
20163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20164$as_echo "$ac_try_echo") >&5
20165 (eval "$ac_link") 2>conftest.er1
20166 ac_status=$?
20167 grep -v '^ *+' conftest.er1 >conftest.err
20168 rm -f conftest.er1
20169 cat conftest.err >&5
20170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } && {
20172 test -z "$ac_c_werror_flag" ||
20173 test ! -s conftest.err
20174 } && test -s conftest$ac_exeext && {
20175 test "$cross_compiling" = yes ||
20176 $as_test_x conftest$ac_exeext
20177 }; then
20178 eval "$as_ac_var=yes"
20179else
20180 $as_echo "$as_me: failed program was:" >&5
20181sed 's/^/| /' conftest.$ac_ext >&5
20182
20183 eval "$as_ac_var=no"
20184fi
20185
20186rm -rf conftest.dSYM
20187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20188 conftest$ac_exeext conftest.$ac_ext
20189fi
20190ac_res=`eval 'as_val=${'$as_ac_var'}
20191 $as_echo "$as_val"'`
20192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20193$as_echo "$ac_res" >&6; }
20194as_val=`eval 'as_val=${'$as_ac_var'}
20195 $as_echo "$as_val"'`
20196 if test "x$as_val" = x""yes; then
20197 cat >>confdefs.h <<_ACEOF
20198#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20199_ACEOF
20200
20201else
20202 ARGZ_H=argz.h;
20203
20204 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20205
20206fi
20207done
20208
20209
20210if test -z "$ARGZ_H"; then
20211 { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
20212$as_echo_n "checking if argz actually works... " >&6; }
20213if test "${lt_cv_sys_argz_works+set}" = set; then
20214 $as_echo_n "(cached) " >&6
20215else
20216 case $host_os in #(
20217 *cygwin*)
20218 lt_cv_sys_argz_works=no
20219 if test "$cross_compiling" != no; then
20220 lt_cv_sys_argz_works="guessing no"
20221 else
20222 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20223 save_IFS=$IFS
20224 IFS=-.
20225 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20226 IFS=$save_IFS
20227 lt_os_major=${2-0}
20228 lt_os_minor=${3-0}
20229 lt_os_micro=${4-0}
20230 if test "$lt_os_major" -gt 1 \
20231 || { test "$lt_os_major" -eq 1 \
20232 && { test "$lt_os_minor" -gt 5 \
20233 || { test "$lt_os_minor" -eq 5 \
20234 && test "$lt_os_micro" -gt 24; }; }; }; then
20235 lt_cv_sys_argz_works=yes
20236 fi
20237 fi
20238 ;; #(
20239 *) lt_cv_sys_argz_works=yes ;;
20240 esac
20241fi
20242{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
20243$as_echo "$lt_cv_sys_argz_works" >&6; }
20244 if test $lt_cv_sys_argz_works = yes; then
20245
20246cat >>confdefs.h <<\_ACEOF
20247#define HAVE_WORKING_ARGZ 1
20248_ACEOF
20249
20250else
20251 ARGZ_H=argz.h
20252
20253
20254 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20255
20256fi
20257
20258fi
20259
20260
20261
20262
20263{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20264$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20265if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20266 $as_echo_n "(cached) " >&6
20267else
20268 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20269 libltdl_cv_preloaded_symbols=yes
20270 else
20271 libltdl_cv_preloaded_symbols=no
20272 fi
20273
20274fi
20275{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20276$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20277if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20278
20279cat >>confdefs.h <<\_ACEOF
20280#define HAVE_PRELOADED_SYMBOLS 1
20281_ACEOF
20282
20283fi
20284
20285# Set options
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297# Check whether --with-included_ltdl was given.
20298if test "${with_included_ltdl+set}" = set; then
20299 withval=$with_included_ltdl;
20300fi
20301
20302
20303if test "x$with_included_ltdl" != xyes; then
20304 # We are not being forced to use the included libltdl sources, so
20305 # decide whether there is a useful installed version we can use.
20306 { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
20307$as_echo_n "checking for ltdl.h... " >&6; }
20308if test "${ac_cv_header_ltdl_h+set}" = set; then
20309 $as_echo_n "(cached) " >&6
20310else
20311 cat >conftest.$ac_ext <<_ACEOF
20312/* confdefs.h. */
20313_ACEOF
20314cat confdefs.h >>conftest.$ac_ext
20315cat >>conftest.$ac_ext <<_ACEOF
20316/* end confdefs.h. */
20317$ac_includes_default
20318
20319
20320#include <ltdl.h>
20321_ACEOF
20322rm -f conftest.$ac_objext
20323if { (ac_try="$ac_compile"
20324case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327esac
20328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20329$as_echo "$ac_try_echo") >&5
20330 (eval "$ac_compile") 2>conftest.er1
20331 ac_status=$?
20332 grep -v '^ *+' conftest.er1 >conftest.err
20333 rm -f conftest.er1
20334 cat conftest.err >&5
20335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && {
20337 test -z "$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20339 } && test -s conftest.$ac_objext; then
20340 ac_cv_header_ltdl_h=yes
20341else
20342 $as_echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 ac_cv_header_ltdl_h=no
20346fi
20347
20348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20349fi
20350{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20351$as_echo "$ac_cv_header_ltdl_h" >&6; }
20352if test "x$ac_cv_header_ltdl_h" = x""yes; then
20353 { $as_echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
20354$as_echo_n "checking whether lt_dlinterface_register is declared... " >&6; }
20355if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
20356 $as_echo_n "(cached) " >&6
20357else
20358 cat >conftest.$ac_ext <<_ACEOF
20359/* confdefs.h. */
20360_ACEOF
20361cat confdefs.h >>conftest.$ac_ext
20362cat >>conftest.$ac_ext <<_ACEOF
20363/* end confdefs.h. */
20364$ac_includes_default
20365 #include <ltdl.h>
20366
20367int
20368main ()
20369{
20370#ifndef lt_dlinterface_register
20371 (void) lt_dlinterface_register;
20372#endif
20373
20374 ;
20375 return 0;
20376}
20377_ACEOF
20378rm -f conftest.$ac_objext
20379if { (ac_try="$ac_compile"
20380case "(($ac_try" in
20381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20382 *) ac_try_echo=$ac_try;;
20383esac
20384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20385$as_echo "$ac_try_echo") >&5
20386 (eval "$ac_compile") 2>conftest.er1
20387 ac_status=$?
20388 grep -v '^ *+' conftest.er1 >conftest.err
20389 rm -f conftest.er1
20390 cat conftest.err >&5
20391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } && {
20393 test -z "$ac_c_werror_flag" ||
20394 test ! -s conftest.err
20395 } && test -s conftest.$ac_objext; then
20396 ac_cv_have_decl_lt_dlinterface_register=yes
20397else
20398 $as_echo "$as_me: failed program was:" >&5
20399sed 's/^/| /' conftest.$ac_ext >&5
20400
20401 ac_cv_have_decl_lt_dlinterface_register=no
20402fi
20403
20404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20405fi
20406{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
20407$as_echo "$ac_cv_have_decl_lt_dlinterface_register" >&6; }
20408if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then
20409 { $as_echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
20410$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20411if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
20412 $as_echo_n "(cached) " >&6
20413else
20414 ac_check_lib_save_LIBS=$LIBS
20415LIBS="-lltdl $LIBS"
20416cat >conftest.$ac_ext <<_ACEOF
20417/* confdefs.h. */
20418_ACEOF
20419cat confdefs.h >>conftest.$ac_ext
20420cat >>conftest.$ac_ext <<_ACEOF
20421/* end confdefs.h. */
20422
20423/* Override any GCC internal prototype to avoid an error.
20424 Use char because int might match the return type of a GCC
20425 builtin and then its argument prototype would still apply. */
20426#ifdef __cplusplus
20427extern "C"
20428#endif
20429char lt_dladvise_preload ();
20430int
20431main ()
20432{
20433return lt_dladvise_preload ();
20434 ;
20435 return 0;
20436}
20437_ACEOF
20438rm -f conftest.$ac_objext conftest$ac_exeext
20439if { (ac_try="$ac_link"
20440case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20443esac
20444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20445$as_echo "$ac_try_echo") >&5
20446 (eval "$ac_link") 2>conftest.er1
20447 ac_status=$?
20448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
20451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } && {
20453 test -z "$ac_c_werror_flag" ||
20454 test ! -s conftest.err
20455 } && test -s conftest$ac_exeext && {
20456 test "$cross_compiling" = yes ||
20457 $as_test_x conftest$ac_exeext
20458 }; then
20459 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20460else
20461 $as_echo "$as_me: failed program was:" >&5
20462sed 's/^/| /' conftest.$ac_ext >&5
20463
20464 ac_cv_lib_ltdl_lt_dladvise_preload=no
20465fi
20466
20467rm -rf conftest.dSYM
20468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20469 conftest$ac_exeext conftest.$ac_ext
20470LIBS=$ac_check_lib_save_LIBS
20471fi
20472{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20473$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
20474if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then
20475 with_included_ltdl=no
20476else
20477 with_included_ltdl=yes
20478fi
20479
20480else
20481 with_included_ltdl=yes
20482fi
20483
20484else
20485 with_included_ltdl=yes
20486fi
20487
20488
20489fi
20490
20491
20492
20493
20494# Check whether --with-ltdl_include was given.
20495if test "${with_ltdl_include+set}" = set; then
20496 withval=$with_ltdl_include;
20497fi
20498
20499
20500if test -n "$with_ltdl_include"; then
20501 if test -f "$with_ltdl_include/ltdl.h"; then :
20502 else
20503 { { $as_echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
20504$as_echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
20505 { (exit 1); exit 1; }; }
20506 fi
20507else
20508 with_ltdl_include=no
20509fi
20510
20511
20512# Check whether --with-ltdl_lib was given.
20513if test "${with_ltdl_lib+set}" = set; then
20514 withval=$with_ltdl_lib;
20515fi
20516
20517
20518if test -n "$with_ltdl_lib"; then
20519 if test -f "$with_ltdl_lib/libltdl.la"; then :
20520 else
20521 { { $as_echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
20522$as_echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
20523 { (exit 1); exit 1; }; }
20524 fi
20525else
20526 with_ltdl_lib=no
20527fi
20528
20529case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20530 ,yes,no,no,)
20531 case $enable_ltdl_convenience in
20532 no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
20533$as_echo "$as_me: error: this package needs a convenience libltdl" >&2;}
20534 { (exit 1); exit 1; }; } ;;
20535 "") enable_ltdl_convenience=yes
20536 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20537esac
20538LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20539LTDLDEPS=$LIBLTDL
20540LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20541
20542
20543
20544
20545
20546# For backwards non-gettext consistent compatibility...
20547INCLTDL="$LTDLINCL"
20548
20549
20550 ;;
20551 ,no,no,no,)
20552 # If the included ltdl is not to be used, then use the
20553 # preinstalled libltdl we found.
20554
20555cat >>confdefs.h <<\_ACEOF
20556#define HAVE_LTDL 1
20557_ACEOF
20558
20559 LIBLTDL=-lltdl
20560 LTDLDEPS=
20561 LTDLINCL=
20562 ;;
20563 ,no*,no,*)
20564 { { $as_echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
20565$as_echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
20566 { (exit 1); exit 1; }; }
20567 ;;
20568 *) with_included_ltdl=no
20569 LIBLTDL="-L$with_ltdl_lib -lltdl"
20570 LTDLDEPS=
20571 LTDLINCL="-I$with_ltdl_include"
20572 ;;
20573esac
20574INCLTDL="$LTDLINCL"
20575
20576# Report our decision...
20577{ $as_echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
20578$as_echo_n "checking where to find libltdl headers... " >&6; }
20579{ $as_echo "$as_me:$LINENO: result: $LTDLINCL" >&5
20580$as_echo "$LTDLINCL" >&6; }
20581{ $as_echo "$as_me:$LINENO: checking where to find libltdl library" >&5
20582$as_echo_n "checking where to find libltdl library... " >&6; }
20583{ $as_echo "$as_me:$LINENO: result: $LIBLTDL" >&5
20584$as_echo "$LIBLTDL" >&6; }
20585
20586
20587
20588# Check whether --enable-ltdl-install was given.
20589if test "${enable_ltdl_install+set}" = set; then
20590 enableval=$enable_ltdl_install;
20591fi
20592
20593
20594case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20595 *yes*) ;;
20596 *) enable_ltdl_convenience=yes ;;
20597esac
20598
20599 if test x"${enable_ltdl_install-no}" != xno; then
20600 INSTALL_LTDL_TRUE=
20601 INSTALL_LTDL_FALSE='#'
20602else
20603 INSTALL_LTDL_TRUE='#'
20604 INSTALL_LTDL_FALSE=
20605fi
20606
20607 if test x"${enable_ltdl_convenience-no}" != xno; then
20608 CONVENIENCE_LTDL_TRUE=
20609 CONVENIENCE_LTDL_FALSE='#'
20610else
20611 CONVENIENCE_LTDL_TRUE='#'
20612 CONVENIENCE_LTDL_FALSE=
20613fi
20614
20615
20616
20617
20618
20619
20620
20621# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20622# the user used. This is so that ltdl.h can pick up the parent projects
20623# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20624# definitions required by ltdl.c.
20625# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20636do
20637as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20638{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20639$as_echo_n "checking for $ac_header... " >&6; }
20640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20641 $as_echo_n "(cached) " >&6
20642else
20643 cat >conftest.$ac_ext <<_ACEOF
20644/* confdefs.h. */
20645_ACEOF
20646cat confdefs.h >>conftest.$ac_ext
20647cat >>conftest.$ac_ext <<_ACEOF
20648/* end confdefs.h. */
20649$ac_includes_default
20650
20651#include <$ac_header>
20652_ACEOF
20653rm -f conftest.$ac_objext
20654if { (ac_try="$ac_compile"
20655case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20658esac
20659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20660$as_echo "$ac_try_echo") >&5
20661 (eval "$ac_compile") 2>conftest.er1
20662 ac_status=$?
20663 grep -v '^ *+' conftest.er1 >conftest.err
20664 rm -f conftest.er1
20665 cat conftest.err >&5
20666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } && {
20668 test -z "$ac_c_werror_flag" ||
20669 test ! -s conftest.err
20670 } && test -s conftest.$ac_objext; then
20671 eval "$as_ac_Header=yes"
20672else
20673 $as_echo "$as_me: failed program was:" >&5
20674sed 's/^/| /' conftest.$ac_ext >&5
20675
20676 eval "$as_ac_Header=no"
20677fi
20678
20679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20680fi
20681ac_res=`eval 'as_val=${'$as_ac_Header'}
20682 $as_echo "$as_val"'`
20683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20684$as_echo "$ac_res" >&6; }
20685as_val=`eval 'as_val=${'$as_ac_Header'}
20686 $as_echo "$as_val"'`
20687 if test "x$as_val" = x""yes; then
20688 cat >>confdefs.h <<_ACEOF
20689#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20690_ACEOF
20691
20692fi
20693
20694done
20695
20696
20697
20698
20699
20700for ac_func in closedir opendir readdir
20701do
20702as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20703{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20704$as_echo_n "checking for $ac_func... " >&6; }
20705if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20706 $as_echo_n "(cached) " >&6
20707else
20708 cat >conftest.$ac_ext <<_ACEOF
20709/* confdefs.h. */
20710_ACEOF
20711cat confdefs.h >>conftest.$ac_ext
20712cat >>conftest.$ac_ext <<_ACEOF
20713/* end confdefs.h. */
20714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20716#define $ac_func innocuous_$ac_func
20717
20718/* System header to define __stub macros and hopefully few prototypes,
20719 which can conflict with char $ac_func (); below.
20720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20721 <limits.h> exists even on freestanding compilers. */
20722
20723#ifdef __STDC__
20724# include <limits.h>
20725#else
20726# include <assert.h>
20727#endif
20728
20729#undef $ac_func
20730
20731/* Override any GCC internal prototype to avoid an error.
20732 Use char because int might match the return type of a GCC
20733 builtin and then its argument prototype would still apply. */
20734#ifdef __cplusplus
20735extern "C"
20736#endif
20737char $ac_func ();
20738/* The GNU C library defines this for functions which it implements
20739 to always fail with ENOSYS. Some functions are actually named
20740 something starting with __ and the normal name is an alias. */
20741#if defined __stub_$ac_func || defined __stub___$ac_func
20742choke me
20743#endif
20744
20745int
20746main ()
20747{
20748return $ac_func ();
20749 ;
20750 return 0;
20751}
20752_ACEOF
20753rm -f conftest.$ac_objext conftest$ac_exeext
20754if { (ac_try="$ac_link"
20755case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758esac
20759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20760$as_echo "$ac_try_echo") >&5
20761 (eval "$ac_link") 2>conftest.er1
20762 ac_status=$?
20763 grep -v '^ *+' conftest.er1 >conftest.err
20764 rm -f conftest.er1
20765 cat conftest.err >&5
20766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } && {
20768 test -z "$ac_c_werror_flag" ||
20769 test ! -s conftest.err
20770 } && test -s conftest$ac_exeext && {
20771 test "$cross_compiling" = yes ||
20772 $as_test_x conftest$ac_exeext
20773 }; then
20774 eval "$as_ac_var=yes"
20775else
20776 $as_echo "$as_me: failed program was:" >&5
20777sed 's/^/| /' conftest.$ac_ext >&5
20778
20779 eval "$as_ac_var=no"
20780fi
20781
20782rm -rf conftest.dSYM
20783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20784 conftest$ac_exeext conftest.$ac_ext
20785fi
20786ac_res=`eval 'as_val=${'$as_ac_var'}
20787 $as_echo "$as_val"'`
20788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20789$as_echo "$ac_res" >&6; }
20790as_val=`eval 'as_val=${'$as_ac_var'}
20791 $as_echo "$as_val"'`
20792 if test "x$as_val" = x""yes; then
20793 cat >>confdefs.h <<_ACEOF
20794#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20795_ACEOF
20796
20797else
20798
20799
20800 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20801
20802fi
20803done
20804
20805
20806
20807for ac_func in strlcat strlcpy
20808do
20809as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20810{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20811$as_echo_n "checking for $ac_func... " >&6; }
20812if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20813 $as_echo_n "(cached) " >&6
20814else
20815 cat >conftest.$ac_ext <<_ACEOF
20816/* confdefs.h. */
20817_ACEOF
20818cat confdefs.h >>conftest.$ac_ext
20819cat >>conftest.$ac_ext <<_ACEOF
20820/* end confdefs.h. */
20821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20823#define $ac_func innocuous_$ac_func
20824
20825/* System header to define __stub macros and hopefully few prototypes,
20826 which can conflict with char $ac_func (); below.
20827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20828 <limits.h> exists even on freestanding compilers. */
20829
20830#ifdef __STDC__
20831# include <limits.h>
20832#else
20833# include <assert.h>
20834#endif
20835
20836#undef $ac_func
20837
20838/* Override any GCC internal prototype to avoid an error.
20839 Use char because int might match the return type of a GCC
20840 builtin and then its argument prototype would still apply. */
20841#ifdef __cplusplus
20842extern "C"
20843#endif
20844char $ac_func ();
20845/* The GNU C library defines this for functions which it implements
20846 to always fail with ENOSYS. Some functions are actually named
20847 something starting with __ and the normal name is an alias. */
20848#if defined __stub_$ac_func || defined __stub___$ac_func
20849choke me
20850#endif
20851
20852int
20853main ()
20854{
20855return $ac_func ();
20856 ;
20857 return 0;
20858}
20859_ACEOF
20860rm -f conftest.$ac_objext conftest$ac_exeext
20861if { (ac_try="$ac_link"
20862case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20865esac
20866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20867$as_echo "$ac_try_echo") >&5
20868 (eval "$ac_link") 2>conftest.er1
20869 ac_status=$?
20870 grep -v '^ *+' conftest.er1 >conftest.err
20871 rm -f conftest.er1
20872 cat conftest.err >&5
20873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } && {
20875 test -z "$ac_c_werror_flag" ||
20876 test ! -s conftest.err
20877 } && test -s conftest$ac_exeext && {
20878 test "$cross_compiling" = yes ||
20879 $as_test_x conftest$ac_exeext
20880 }; then
20881 eval "$as_ac_var=yes"
20882else
20883 $as_echo "$as_me: failed program was:" >&5
20884sed 's/^/| /' conftest.$ac_ext >&5
20885
20886 eval "$as_ac_var=no"
20887fi
20888
20889rm -rf conftest.dSYM
20890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20891 conftest$ac_exeext conftest.$ac_ext
20892fi
20893ac_res=`eval 'as_val=${'$as_ac_var'}
20894 $as_echo "$as_val"'`
20895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20896$as_echo "$ac_res" >&6; }
20897as_val=`eval 'as_val=${'$as_ac_var'}
20898 $as_echo "$as_val"'`
20899 if test "x$as_val" = x""yes; then
20900 cat >>confdefs.h <<_ACEOF
20901#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20902_ACEOF
20903
20904else
20905
20906
20907 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20908
20909fi
20910done
20911
20912
20913
20914cat >>confdefs.h <<_ACEOF
20915#define LT_LIBEXT "$libext"
20916_ACEOF
20917
20918
20919name=ltdl
20920LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20921
20922
20923
20924
20925
20926
20927
20928
20929# Only expand once:
20930
20931
20932
20933# Check to see if building shared libraries
20934libtool_build_shared_libs='no'
20935if test "$enable_shared" = 'yes'; then
20936 libtool_build_shared_libs='yes'
20937fi
20938
20939# Check to see if building static libraries
20940libtool_build_static_libs='no'
20941if test "$enable_static" = 'yes'; then
20942 libtool_build_static_libs='yes'
20943fi
20944
20945# MinGW and Cygwin can't build C++ DLLs which support exceptions.
20946if test "${StaticCplusPlusLibraries}" = 'yes'; then
20947 LTCXXLIBOPTS='--static'
20948
20949fi
20950
20951#
20952# Enable support for building loadable modules
20953#
20954
20955# Check whether --with-modules was given.
20956if test "${with_modules+set}" = set; then
20957 withval=$with_modules; with_modules=$withval
20958else
20959 with_modules=$libtool_build_shared_libs
20960fi
20961
20962
20963# Only allow building loadable modules if we are building shared libraries
20964if test "$with_modules" != 'no' ; then
20965 if test "$libtool_build_shared_libs" = 'no'; then
20966 { $as_echo "$as_me:$LINENO: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20967$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20968 with_modules='no'
20969 fi
20970fi
20971if test "$with_modules" != 'no'; then
20972
20973cat >>confdefs.h <<\_ACEOF
20974#define BUILD_MODULES 1
20975_ACEOF
20976
20977fi
20978 if test "$with_modules" != 'no'; then
20979 WITH_MODULES_TRUE=
20980 WITH_MODULES_FALSE='#'
20981else
20982 WITH_MODULES_TRUE='#'
20983 WITH_MODULES_FALSE=
20984fi
20985
20986
20987# Enable building/use of libltdl if we are building shared libraries regardless
20988# of whether modules are built or not.
20989with_ltdl='no'
20990if test "$libtool_build_shared_libs" != 'no'; then
20991 with_ltdl='yes'
20992fi
20993
20994 if test "$with_ltdl" != 'no'; then
20995 WITH_LTDL_TRUE=
20996 WITH_LTDL_FALSE='#'
20997else
20998 WITH_LTDL_TRUE='#'
20999 WITH_LTDL_FALSE=
21000fi
21001
21002if test "$with_ltdl" != 'no'; then
21003
21004cat >>confdefs.h <<\_ACEOF
21005#define LTDL_DELEGATE 1
21006_ACEOF
21007
21008
21009 # Set DLLDFLAGS
21010 if test X"$enable_shared" = Xyes; then
21011 DLLDFLAGS=-export-dynamic
21012
21013 fi
21014fi
21015
21016# Enable build using delegate libraries built in subdirectories rather than installed
21017# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
21018# Check whether --enable-delegate-build was given.
21019if test "${enable_delegate_build+set}" = set; then
21020 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21021else
21022 enable_delegate_build='no'
21023fi
21024
21025
21026# Check whether --enable-deprecated was given.
21027if test "${enable_deprecated+set}" = set; then
21028 enableval=$enable_deprecated; enable_deprecated=$enableval
21029else
21030 enable_deprecated='no'
21031fi
21032
21033
21034if test "$enable_deprecated" = 'yes'; then
21035
21036cat >>confdefs.h <<\_ACEOF
21037#define EXCLUDE_DEPRECATED 1
21038_ACEOF
21039
21040else
21041 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21042fi
21043
21044# Build a version of ImageMagick which operates uninstalled.
21045# Used to build distributions located via MAGICK_HOME / executable path
21046# Check whether --enable-installed was given.
21047if test "${enable_installed+set}" = set; then
21048 enableval=$enable_installed; enable_installed=$enableval
21049else
21050 enable_installed='yes'
21051fi
21052
21053
21054if test "$enable_installed" = 'yes'; then
21055
21056cat >>confdefs.h <<\_ACEOF
21057#define INSTALLED_SUPPORT 1
21058_ACEOF
21059
21060else
21061 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21062fi
21063
21064# Permit enciphering and deciphering image pixels.
21065# Check whether --enable-cipher was given.
21066if test "${enable_cipher+set}" = set; then
21067 enableval=$enable_cipher; enable_cipher=$enableval
21068else
21069 enable_cipher='yes'
21070fi
21071
21072
21073if test "$enable_cipher" = 'yes'; then
21074
21075cat >>confdefs.h <<\_ACEOF
21076#define CIPHER_SUPPORT 1
21077_ACEOF
21078
21079fi
21080
21081# Build an embeddable version of ImageMagick.
21082# Check whether --enable-embeddable was given.
21083if test "${enable_embeddable+set}" = set; then
21084 enableval=$enable_embeddable; enable_embeddable=$enableval
21085else
21086 enable_embeddable='no'
21087fi
21088
21089
21090if test "$enable_embeddable" = 'yes'; then
21091
21092cat >>confdefs.h <<\_ACEOF
21093#define EMBEDDABLE_SUPPORT 1
21094_ACEOF
21095
21096fi
21097
21098# Build a high dynamic range version of ImageMagick.
21099# Check whether --enable-hdri was given.
21100if test "${enable_hdri+set}" = set; then
21101 enableval=$enable_hdri; enable_hdri=$enableval
21102else
21103 enable_hdri='no'
21104fi
21105
21106
21107MAGICK_HDRI=""
21108if test "$enable_hdri" = 'yes'; then
21109 MAGICK_HDRI="HDRI"
21110
21111cat >>confdefs.h <<\_ACEOF
21112#define HDRI_SUPPORT 1
21113_ACEOF
21114
21115fi
21116
21117# Enable verbose output from libtool (enable libtool's default)
21118# Check whether --enable-libtool-verbose was given.
21119if test "${enable_libtool_verbose+set}" = set; then
21120 enableval=$enable_libtool_verbose; enable_libtool_verbose=$enableval
21121else
21122 enable_libtool_verbose='no'
21123fi
21124
21125
21126if test "$enable_libtool_verbose" = 'no'; then
21127 LIBTOOL="$LIBTOOL --silent"
21128fi
21129
21130# Build a version of ImageMagick with assert statements.
21131# Check whether --enable-assert was given.
21132if test "${enable_assert+set}" = set; then
21133 enableval=$enable_assert; enable_assert=$enableval
21134else
21135 enable_assert='yes'
21136fi
21137
21138
21139if test "$enable_assert" = 'no'; then
21140
21141cat >>confdefs.h <<\_ACEOF
21142#define NDEBUG 1
21143_ACEOF
21144
21145fi
21146
21147# Add configure option --enable-maintainer-mode which enables dependency
21148# checking and generation useful to package maintainers. This is made an
21149# option to avoid confusing end users.
21150
21151{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
21152$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21153 # Check whether --enable-maintainer-mode was given.
21154if test "${enable_maintainer_mode+set}" = set; then
21155 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21156else
21157 USE_MAINTAINER_MODE=no
21158fi
21159
21160 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
21161$as_echo "$USE_MAINTAINER_MODE" >&6; }
21162 if test $USE_MAINTAINER_MODE = yes; then
21163 MAINTAINER_MODE_TRUE=
21164 MAINTAINER_MODE_FALSE='#'
21165else
21166 MAINTAINER_MODE_TRUE='#'
21167 MAINTAINER_MODE_FALSE=
21168fi
21169
21170 MAINT=$MAINTAINER_MODE_TRUE
21171
21172
21173
21174
21175# Enable ccmalloc memory debugging support
21176# Check whether --enable-ccmalloc was given.
21177if test "${enable_ccmalloc+set}" = set; then
21178 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21179else
21180 enable_ccmalloc='no'
21181fi
21182
21183
21184# Enable Electric Fence memory debugging support
21185# Check whether --enable-efence was given.
21186if test "${enable_efence+set}" = set; then
21187 enableval=$enable_efence; enable_efence=$enableval
21188else
21189 enable_efence='no'
21190fi
21191
21192
21193# Enable prof-based profiling support
21194# Check whether --enable-prof was given.
21195if test "${enable_prof+set}" = set; then
21196 enableval=$enable_prof; enable_prof=$enableval
21197else
21198 enable_prof='no'
21199fi
21200
21201
21202# Enable gprof-based profiling support
21203# Check whether --enable-gprof was given.
21204if test "${enable_gprof+set}" = set; then
21205 enableval=$enable_gprof; enable_gprof=$enableval
21206else
21207 enable_gprof='no'
21208fi
21209
21210
21211# Enable gcov-based profiling support
21212# Check whether --enable-gcov was given.
21213if test "${enable_gcov+set}" = set; then
21214 enableval=$enable_gcov; enable_gcov=$enableval
21215else
21216 enable_gcov='no'
21217fi
21218
21219
21220enable_profiling='no'
21221if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21222 enable_profiling='yes'
21223 if test "$libtool_build_shared_libs" = 'yes'; then
21224 echo "Warning: Can not profile code using shared libraries"
21225 fi
21226fi
21227
21228# Magick API method prefix
21229
21230# Check whether --with-method-prefix was given.
21231if test "${with_method_prefix+set}" = set; then
21232 withval=$with_method_prefix; with_method_prefix=$enableval
21233else
21234 with_method_prefix=''
21235fi
21236
21237
21238if test "$with_method_prefix" != ''; then
21239
21240cat >>confdefs.h <<_ACEOF
21241#define NAMESPACE_PREFIX $with_method_prefix
21242_ACEOF
21243
21244fi
21245
21246# Number of bits in a Quantum
21247
21248# Check whether --with-quantum-depth was given.
21249if test "${with_quantum_depth+set}" = set; then
21250 withval=$with_quantum_depth; with_quantum_depth=$withval
21251else
21252 with_quantum_depth=16
21253fi
21254
21255
21256if test "$with_quantum_depth" != '8'; then
21257 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21258fi
21259
21260case "${with_quantum_depth}" in
21261 8 ) ;;
21262 16 ) ;;
21263 32 ) ;;
21264 64 ) ;;
21265 * ) { { $as_echo "$as_me:$LINENO: error: \"Pixel quantum depth must have value of 8" >&5
21266$as_echo "$as_me: error: \"Pixel quantum depth must have value of 8" >&2;}
21267 { (exit 16); exit 16; }; } ;;
21268esac
21269QUANTUM_DEPTH="$with_quantum_depth"
21270
21271cat >>confdefs.h <<_ACEOF
21272#define QUANTUM_DEPTH $QUANTUM_DEPTH
21273_ACEOF
21274
21275
21276# Set pixel cache threshold
21277
21278# Check whether --with-cache was given.
21279if test "${with_cache+set}" = set; then
21280 withval=$with_cache; with_cache=$withval
21281else
21282 with_cache=''
21283fi
21284
21285
21286if test "$with_cache" != ''; then
21287
21288cat >>confdefs.h <<_ACEOF
21289#define PixelCacheThreshold $with_cache
21290_ACEOF
21291
21292 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21293fi
21294
21295# Disable/Enable support for full delegate paths
21296
21297# Check whether --with-frozenpaths was given.
21298if test "${with_frozenpaths+set}" = set; then
21299 withval=$with_frozenpaths; with_frozenpaths=$withval
21300else
21301 with_frozenpaths='no'
21302fi
21303
21304
21305# Enable build/install of Magick++
21306
21307# Check whether --with-magick-plus-plus was given.
21308if test "${with_magick_plus_plus+set}" = set; then
21309 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21310else
21311 with_magick_plus_plus='yes'
21312fi
21313
21314
21315# Disable build/install of PerlMagick.
21316
21317# Check whether --with-perl was given.
21318if test "${with_perl+set}" = set; then
21319 withval=$with_perl; with_perl=$withval
21320else
21321 with_perl=$libtool_build_shared_libs
21322fi
21323
21324
21325# Options to pass when configuring PerlMagick
21326
21327# Check whether --with-perl-options was given.
21328if test "${with_perl_options+set}" = set; then
21329 withval=$with_perl_options;
21330fi
21331
21332
21333PERL_MAKE_OPTIONS=$with_perl_options
21334
21335
21336
21337# Enable umem, object-caching memory allocation library.
21338
21339# Check whether --with-umem was given.
21340if test "${with_umem+set}" = set; then
21341 withval=$with_umem; with_umem=$withval
21342else
21343 with_umem='no'
21344fi
21345
21346if test "$with_umem" != 'yes' ; then
21347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21348fi
21349
21350#
21351# Specify path to shared libstdc++ if not in normal location
21352#
21353
21354# Check whether --with-libstdc was given.
21355if test "${with_libstdc+set}" = set; then
21356 withval=$with_libstdc; with_libstdc=$withval
21357else
21358 with_libstdc=''
21359fi
21360
21361
21362if test "$with_libstdc" != ''; then
21363 if test -d "$with_libstdc"; then
21364 LIBSTDCLDFLAGS="-L$with_libstdc"
21365 fi
21366fi
21367
21368
21369# Does gcc required -traditional?
21370if test $ac_cv_c_compiler_gnu = yes; then
21371 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21372$as_echo_n "checking whether $CC needs -traditional... " >&6; }
21373if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21374 $as_echo_n "(cached) " >&6
21375else
21376 ac_pattern="Autoconf.*'x'"
21377 cat >conftest.$ac_ext <<_ACEOF
21378/* confdefs.h. */
21379_ACEOF
21380cat confdefs.h >>conftest.$ac_ext
21381cat >>conftest.$ac_ext <<_ACEOF
21382/* end confdefs.h. */
21383#include <sgtty.h>
21384Autoconf TIOCGETP
21385_ACEOF
21386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21387 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21388 ac_cv_prog_gcc_traditional=yes
21389else
21390 ac_cv_prog_gcc_traditional=no
21391fi
21392rm -f conftest*
21393
21394
21395 if test $ac_cv_prog_gcc_traditional = no; then
21396 cat >conftest.$ac_ext <<_ACEOF
21397/* confdefs.h. */
21398_ACEOF
21399cat confdefs.h >>conftest.$ac_ext
21400cat >>conftest.$ac_ext <<_ACEOF
21401/* end confdefs.h. */
21402#include <termio.h>
21403Autoconf TCGETA
21404_ACEOF
21405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21406 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21407 ac_cv_prog_gcc_traditional=yes
21408fi
21409rm -f conftest*
21410
21411 fi
21412fi
21413{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21414$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21415 if test $ac_cv_prog_gcc_traditional = yes; then
21416 CC="$CC -traditional"
21417 fi
21418fi
21419
21420
21421########
21422#
21423# Set defines required to build DLLs and modules using MinGW
21424#
21425########
21426# These options are set for multi-thread DLL module build
21427# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21428# module: _DLL
21429# executable/Magick++: _DLL _MAGICKMOD_
21430MODULE_EXTRA_CPPFLAGS=''
21431LIBRARY_EXTRA_CPPFLAGS=''
21432if test "${native_win32_build}" = 'yes'; then
21433 if test "${libtool_build_shared_libs}" = 'yes'; then
21434 CPPFLAGS="$CPPFLAGS -D_DLL"
21435 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21436 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21437 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21438 if test "$with_modules" = 'yes'; then
21439 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21440 else
21441 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21442 fi
21443 else
21444 CPPFLAGS="$CPPFLAGS -D_LIB"
21445 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21446 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21447 fi
21448 if test "$with_threads" = 'yes'; then
21449 CPPFLAGS="$CPPFLAGS -D_MT"
21450 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21451 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21452 fi
21453fi
21454
21455
21456
21457# Check standard headers
21458{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21459$as_echo_n "checking for ANSI C header files... " >&6; }
21460if test "${ac_cv_header_stdc+set}" = set; then
21461 $as_echo_n "(cached) " >&6
21462else
21463 cat >conftest.$ac_ext <<_ACEOF
21464/* confdefs.h. */
21465_ACEOF
21466cat confdefs.h >>conftest.$ac_ext
21467cat >>conftest.$ac_ext <<_ACEOF
21468/* end confdefs.h. */
21469#include <stdlib.h>
21470#include <stdarg.h>
21471#include <string.h>
21472#include <float.h>
21473
21474int
21475main ()
21476{
21477
21478 ;
21479 return 0;
21480}
21481_ACEOF
21482rm -f conftest.$ac_objext
21483if { (ac_try="$ac_compile"
21484case "(($ac_try" in
21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21487esac
21488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21489$as_echo "$ac_try_echo") >&5
21490 (eval "$ac_compile") 2>conftest.er1
21491 ac_status=$?
21492 grep -v '^ *+' conftest.er1 >conftest.err
21493 rm -f conftest.er1
21494 cat conftest.err >&5
21495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && {
21497 test -z "$ac_c_werror_flag" ||
21498 test ! -s conftest.err
21499 } && test -s conftest.$ac_objext; then
21500 ac_cv_header_stdc=yes
21501else
21502 $as_echo "$as_me: failed program was:" >&5
21503sed 's/^/| /' conftest.$ac_ext >&5
21504
21505 ac_cv_header_stdc=no
21506fi
21507
21508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21509
21510if test $ac_cv_header_stdc = yes; then
21511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21512 cat >conftest.$ac_ext <<_ACEOF
21513/* confdefs.h. */
21514_ACEOF
21515cat confdefs.h >>conftest.$ac_ext
21516cat >>conftest.$ac_ext <<_ACEOF
21517/* end confdefs.h. */
21518#include <string.h>
21519
21520_ACEOF
21521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21522 $EGREP "memchr" >/dev/null 2>&1; then
21523 :
21524else
21525 ac_cv_header_stdc=no
21526fi
21527rm -f conftest*
21528
21529fi
21530
21531if test $ac_cv_header_stdc = yes; then
21532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21533 cat >conftest.$ac_ext <<_ACEOF
21534/* confdefs.h. */
21535_ACEOF
21536cat confdefs.h >>conftest.$ac_ext
21537cat >>conftest.$ac_ext <<_ACEOF
21538/* end confdefs.h. */
21539#include <stdlib.h>
21540
21541_ACEOF
21542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21543 $EGREP "free" >/dev/null 2>&1; then
21544 :
21545else
21546 ac_cv_header_stdc=no
21547fi
21548rm -f conftest*
21549
21550fi
21551
21552if test $ac_cv_header_stdc = yes; then
21553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21554 if test "$cross_compiling" = yes; then
21555 :
21556else
21557 cat >conftest.$ac_ext <<_ACEOF
21558/* confdefs.h. */
21559_ACEOF
21560cat confdefs.h >>conftest.$ac_ext
21561cat >>conftest.$ac_ext <<_ACEOF
21562/* end confdefs.h. */
21563#include <ctype.h>
21564#include <stdlib.h>
21565#if ((' ' & 0x0FF) == 0x020)
21566# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21567# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21568#else
21569# define ISLOWER(c) \
21570 (('a' <= (c) && (c) <= 'i') \
21571 || ('j' <= (c) && (c) <= 'r') \
21572 || ('s' <= (c) && (c) <= 'z'))
21573# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21574#endif
21575
21576#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21577int
21578main ()
21579{
21580 int i;
21581 for (i = 0; i < 256; i++)
21582 if (XOR (islower (i), ISLOWER (i))
21583 || toupper (i) != TOUPPER (i))
21584 return 2;
21585 return 0;
21586}
21587_ACEOF
21588rm -f conftest$ac_exeext
21589if { (ac_try="$ac_link"
21590case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21593esac
21594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21595$as_echo "$ac_try_echo") >&5
21596 (eval "$ac_link") 2>&5
21597 ac_status=$?
21598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21600 { (case "(($ac_try" in
21601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602 *) ac_try_echo=$ac_try;;
21603esac
21604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21605$as_echo "$ac_try_echo") >&5
21606 (eval "$ac_try") 2>&5
21607 ac_status=$?
21608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; }; then
21610 :
21611else
21612 $as_echo "$as_me: program exited with status $ac_status" >&5
21613$as_echo "$as_me: failed program was:" >&5
21614sed 's/^/| /' conftest.$ac_ext >&5
21615
21616( exit $ac_status )
21617ac_cv_header_stdc=no
21618fi
21619rm -rf conftest.dSYM
21620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21621fi
21622
21623
21624fi
21625fi
21626{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21627$as_echo "$ac_cv_header_stdc" >&6; }
21628if test $ac_cv_header_stdc = yes; then
21629
21630cat >>confdefs.h <<\_ACEOF
21631#define STDC_HEADERS 1
21632_ACEOF
21633
21634fi
21635
21636if ! test x"$ac_cv_header_stdc" = x"yes"; then
21637 { $as_echo "$as_me:$LINENO: WARNING: configure has detected that you do not have the ANSI standard C
21638 header files. Compilation cannot proceed. Please install the ANSI C
21639 headers and rerun this script." >&5
21640$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21641 header files. Compilation cannot proceed. Please install the ANSI C
21642 headers and rerun this script." >&2;};
21643fi
21644
21645
21646
21647
21648
21649ac_header_dirent=no
21650for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21651 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21652{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21653$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21655 $as_echo_n "(cached) " >&6
21656else
21657 cat >conftest.$ac_ext <<_ACEOF
21658/* confdefs.h. */
21659_ACEOF
21660cat confdefs.h >>conftest.$ac_ext
21661cat >>conftest.$ac_ext <<_ACEOF
21662/* end confdefs.h. */
21663#include <sys/types.h>
21664#include <$ac_hdr>
21665
21666int
21667main ()
21668{
21669if ((DIR *) 0)
21670return 0;
21671 ;
21672 return 0;
21673}
21674_ACEOF
21675rm -f conftest.$ac_objext
21676if { (ac_try="$ac_compile"
21677case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21680esac
21681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21682$as_echo "$ac_try_echo") >&5
21683 (eval "$ac_compile") 2>conftest.er1
21684 ac_status=$?
21685 grep -v '^ *+' conftest.er1 >conftest.err
21686 rm -f conftest.er1
21687 cat conftest.err >&5
21688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } && {
21690 test -z "$ac_c_werror_flag" ||
21691 test ! -s conftest.err
21692 } && test -s conftest.$ac_objext; then
21693 eval "$as_ac_Header=yes"
21694else
21695 $as_echo "$as_me: failed program was:" >&5
21696sed 's/^/| /' conftest.$ac_ext >&5
21697
21698 eval "$as_ac_Header=no"
21699fi
21700
21701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702fi
21703ac_res=`eval 'as_val=${'$as_ac_Header'}
21704 $as_echo "$as_val"'`
21705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21706$as_echo "$ac_res" >&6; }
21707as_val=`eval 'as_val=${'$as_ac_Header'}
21708 $as_echo "$as_val"'`
21709 if test "x$as_val" = x""yes; then
21710 cat >>confdefs.h <<_ACEOF
21711#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21712_ACEOF
21713
21714ac_header_dirent=$ac_hdr; break
21715fi
21716
21717done
21718# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21719if test $ac_header_dirent = dirent.h; then
21720 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
21721$as_echo_n "checking for library containing opendir... " >&6; }
21722if test "${ac_cv_search_opendir+set}" = set; then
21723 $as_echo_n "(cached) " >&6
21724else
21725 ac_func_search_save_LIBS=$LIBS
21726cat >conftest.$ac_ext <<_ACEOF
21727/* confdefs.h. */
21728_ACEOF
21729cat confdefs.h >>conftest.$ac_ext
21730cat >>conftest.$ac_ext <<_ACEOF
21731/* end confdefs.h. */
21732
21733/* Override any GCC internal prototype to avoid an error.
21734 Use char because int might match the return type of a GCC
21735 builtin and then its argument prototype would still apply. */
21736#ifdef __cplusplus
21737extern "C"
21738#endif
21739char opendir ();
21740int
21741main ()
21742{
21743return opendir ();
21744 ;
21745 return 0;
21746}
21747_ACEOF
21748for ac_lib in '' dir; do
21749 if test -z "$ac_lib"; then
21750 ac_res="none required"
21751 else
21752 ac_res=-l$ac_lib
21753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21754 fi
21755 rm -f conftest.$ac_objext conftest$ac_exeext
21756if { (ac_try="$ac_link"
21757case "(($ac_try" in
21758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21760esac
21761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21762$as_echo "$ac_try_echo") >&5
21763 (eval "$ac_link") 2>conftest.er1
21764 ac_status=$?
21765 grep -v '^ *+' conftest.er1 >conftest.err
21766 rm -f conftest.er1
21767 cat conftest.err >&5
21768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } && {
21770 test -z "$ac_c_werror_flag" ||
21771 test ! -s conftest.err
21772 } && test -s conftest$ac_exeext && {
21773 test "$cross_compiling" = yes ||
21774 $as_test_x conftest$ac_exeext
21775 }; then
21776 ac_cv_search_opendir=$ac_res
21777else
21778 $as_echo "$as_me: failed program was:" >&5
21779sed 's/^/| /' conftest.$ac_ext >&5
21780
21781
21782fi
21783
21784rm -rf conftest.dSYM
21785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21786 conftest$ac_exeext
21787 if test "${ac_cv_search_opendir+set}" = set; then
21788 break
21789fi
21790done
21791if test "${ac_cv_search_opendir+set}" = set; then
21792 :
21793else
21794 ac_cv_search_opendir=no
21795fi
21796rm conftest.$ac_ext
21797LIBS=$ac_func_search_save_LIBS
21798fi
21799{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21800$as_echo "$ac_cv_search_opendir" >&6; }
21801ac_res=$ac_cv_search_opendir
21802if test "$ac_res" != no; then
21803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21804
21805fi
21806
21807else
21808 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
21809$as_echo_n "checking for library containing opendir... " >&6; }
21810if test "${ac_cv_search_opendir+set}" = set; then
21811 $as_echo_n "(cached) " >&6
21812else
21813 ac_func_search_save_LIBS=$LIBS
21814cat >conftest.$ac_ext <<_ACEOF
21815/* confdefs.h. */
21816_ACEOF
21817cat confdefs.h >>conftest.$ac_ext
21818cat >>conftest.$ac_ext <<_ACEOF
21819/* end confdefs.h. */
21820
21821/* Override any GCC internal prototype to avoid an error.
21822 Use char because int might match the return type of a GCC
21823 builtin and then its argument prototype would still apply. */
21824#ifdef __cplusplus
21825extern "C"
21826#endif
21827char opendir ();
21828int
21829main ()
21830{
21831return opendir ();
21832 ;
21833 return 0;
21834}
21835_ACEOF
21836for ac_lib in '' x; do
21837 if test -z "$ac_lib"; then
21838 ac_res="none required"
21839 else
21840 ac_res=-l$ac_lib
21841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21842 fi
21843 rm -f conftest.$ac_objext conftest$ac_exeext
21844if { (ac_try="$ac_link"
21845case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21848esac
21849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21850$as_echo "$ac_try_echo") >&5
21851 (eval "$ac_link") 2>conftest.er1
21852 ac_status=$?
21853 grep -v '^ *+' conftest.er1 >conftest.err
21854 rm -f conftest.er1
21855 cat conftest.err >&5
21856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } && {
21858 test -z "$ac_c_werror_flag" ||
21859 test ! -s conftest.err
21860 } && test -s conftest$ac_exeext && {
21861 test "$cross_compiling" = yes ||
21862 $as_test_x conftest$ac_exeext
21863 }; then
21864 ac_cv_search_opendir=$ac_res
21865else
21866 $as_echo "$as_me: failed program was:" >&5
21867sed 's/^/| /' conftest.$ac_ext >&5
21868
21869
21870fi
21871
21872rm -rf conftest.dSYM
21873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21874 conftest$ac_exeext
21875 if test "${ac_cv_search_opendir+set}" = set; then
21876 break
21877fi
21878done
21879if test "${ac_cv_search_opendir+set}" = set; then
21880 :
21881else
21882 ac_cv_search_opendir=no
21883fi
21884rm conftest.$ac_ext
21885LIBS=$ac_func_search_save_LIBS
21886fi
21887{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21888$as_echo "$ac_cv_search_opendir" >&6; }
21889ac_res=$ac_cv_search_opendir
21890if test "$ac_res" != no; then
21891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21892
21893fi
21894
21895fi
21896
21897
21898# Check additional headers
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
21925do
21926as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21929$as_echo_n "checking for $ac_header... " >&6; }
21930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21931 $as_echo_n "(cached) " >&6
21932fi
21933ac_res=`eval 'as_val=${'$as_ac_Header'}
21934 $as_echo "$as_val"'`
21935 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21936$as_echo "$ac_res" >&6; }
21937else
21938 # Is the header compilable?
21939{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21940$as_echo_n "checking $ac_header usability... " >&6; }
21941cat >conftest.$ac_ext <<_ACEOF
21942/* confdefs.h. */
21943_ACEOF
21944cat confdefs.h >>conftest.$ac_ext
21945cat >>conftest.$ac_ext <<_ACEOF
21946/* end confdefs.h. */
21947$ac_includes_default
21948#include <$ac_header>
21949_ACEOF
21950rm -f conftest.$ac_objext
21951if { (ac_try="$ac_compile"
21952case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21955esac
21956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21957$as_echo "$ac_try_echo") >&5
21958 (eval "$ac_compile") 2>conftest.er1
21959 ac_status=$?
21960 grep -v '^ *+' conftest.er1 >conftest.err
21961 rm -f conftest.er1
21962 cat conftest.err >&5
21963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } && {
21965 test -z "$ac_c_werror_flag" ||
21966 test ! -s conftest.err
21967 } && test -s conftest.$ac_objext; then
21968 ac_header_compiler=yes
21969else
21970 $as_echo "$as_me: failed program was:" >&5
21971sed 's/^/| /' conftest.$ac_ext >&5
21972
21973 ac_header_compiler=no
21974fi
21975
21976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21977{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21978$as_echo "$ac_header_compiler" >&6; }
21979
21980# Is the header present?
21981{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21982$as_echo_n "checking $ac_header presence... " >&6; }
21983cat >conftest.$ac_ext <<_ACEOF
21984/* confdefs.h. */
21985_ACEOF
21986cat confdefs.h >>conftest.$ac_ext
21987cat >>conftest.$ac_ext <<_ACEOF
21988/* end confdefs.h. */
21989#include <$ac_header>
21990_ACEOF
21991if { (ac_try="$ac_cpp conftest.$ac_ext"
21992case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21995esac
21996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21997$as_echo "$ac_try_echo") >&5
21998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21999 ac_status=$?
22000 grep -v '^ *+' conftest.er1 >conftest.err
22001 rm -f conftest.er1
22002 cat conftest.err >&5
22003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } >/dev/null && {
22005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22006 test ! -s conftest.err
22007 }; then
22008 ac_header_preproc=yes
22009else
22010 $as_echo "$as_me: failed program was:" >&5
22011sed 's/^/| /' conftest.$ac_ext >&5
22012
22013 ac_header_preproc=no
22014fi
22015
22016rm -f conftest.err conftest.$ac_ext
22017{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22018$as_echo "$ac_header_preproc" >&6; }
22019
22020# So? What about this header?
22021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22022 yes:no: )
22023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22024$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22026$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22027 ac_header_preproc=yes
22028 ;;
22029 no:yes:* )
22030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22031$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22033$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22035$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22037$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22039$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22041$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22042 ( cat <<\_ASBOX
22043## ----------------------------------------- ##
22044## Report this to http://www.imagemagick.org ##
22045## ----------------------------------------- ##
22046_ASBOX
22047 ) | sed "s/^/$as_me: WARNING: /" >&2
22048 ;;
22049esac
22050{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22051$as_echo_n "checking for $ac_header... " >&6; }
22052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22053 $as_echo_n "(cached) " >&6
22054else
22055 eval "$as_ac_Header=\$ac_header_preproc"
22056fi
22057ac_res=`eval 'as_val=${'$as_ac_Header'}
22058 $as_echo "$as_val"'`
22059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22060$as_echo "$ac_res" >&6; }
22061
22062fi
22063as_val=`eval 'as_val=${'$as_ac_Header'}
22064 $as_echo "$as_val"'`
22065 if test "x$as_val" = x""yes; then
22066 cat >>confdefs.h <<_ACEOF
22067#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22068_ACEOF
22069
22070fi
22071
22072done
22073
22074
22075########
22076#
22077# Checks for typedefs, structures, and compiler characteristics.
22078#
22079########
22080
22081{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
22082$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
22083if test "${ac_cv_header_stdbool_h+set}" = set; then
22084 $as_echo_n "(cached) " >&6
22085else
22086 cat >conftest.$ac_ext <<_ACEOF
22087/* confdefs.h. */
22088_ACEOF
22089cat confdefs.h >>conftest.$ac_ext
22090cat >>conftest.$ac_ext <<_ACEOF
22091/* end confdefs.h. */
22092
22093#include <stdbool.h>
22094#ifndef bool
22095 "error: bool is not defined"
22096#endif
22097#ifndef false
22098 "error: false is not defined"
22099#endif
22100#if false
22101 "error: false is not 0"
22102#endif
22103#ifndef true
22104 "error: true is not defined"
22105#endif
22106#if true != 1
22107 "error: true is not 1"
22108#endif
22109#ifndef __bool_true_false_are_defined
22110 "error: __bool_true_false_are_defined is not defined"
22111#endif
22112
22113 struct s { _Bool s: 1; _Bool t; } s;
22114
22115 char a[true == 1 ? 1 : -1];
22116 char b[false == 0 ? 1 : -1];
22117 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22118 char d[(bool) 0.5 == true ? 1 : -1];
22119 bool e = &s;
22120 char f[(_Bool) 0.0 == false ? 1 : -1];
22121 char g[true];
22122 char h[sizeof (_Bool)];
22123 char i[sizeof s.t];
22124 enum { j = false, k = true, l = false * true, m = true * 256 };
22125 /* The following fails for
22126 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22127 _Bool n[m];
22128 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22129 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22130# if defined __xlc__ || defined __GNUC__
22131 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
22132 reported by James Lemley on 2005-10-05; see
22133 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
22134 This test is not quite right, since xlc is allowed to
22135 reject this program, as the initializer for xlcbug is
22136 not one of the forms that C requires support for.
22137 However, doing the test right would require a runtime
22138 test, and that would make cross-compilation harder.
22139 Let us hope that IBM fixes the xlc bug, and also adds
22140 support for this kind of constant expression. In the
22141 meantime, this test will reject xlc, which is OK, since
22142 our stdbool.h substitute should suffice. We also test
22143 this with GCC, where it should work, to detect more
22144 quickly whether someone messes up the test in the
22145 future. */
22146 char digs[] = "0123456789";
22147 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
22148# endif
22149 /* Catch a bug in an HP-UX C compiler. See
22150 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22151 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22152 */
22153 _Bool q = true;
22154 _Bool *pq = &q;
22155
22156int
22157main ()
22158{
22159
22160 *pq |= q;
22161 *pq |= ! q;
22162 /* Refer to every declared value, to avoid compiler optimizations. */
22163 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22164 + !m + !n + !o + !p + !q + !pq);
22165
22166 ;
22167 return 0;
22168}
22169_ACEOF
22170rm -f conftest.$ac_objext
22171if { (ac_try="$ac_compile"
22172case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22175esac
22176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22177$as_echo "$ac_try_echo") >&5
22178 (eval "$ac_compile") 2>conftest.er1
22179 ac_status=$?
22180 grep -v '^ *+' conftest.er1 >conftest.err
22181 rm -f conftest.er1
22182 cat conftest.err >&5
22183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } && {
22185 test -z "$ac_c_werror_flag" ||
22186 test ! -s conftest.err
22187 } && test -s conftest.$ac_objext; then
22188 ac_cv_header_stdbool_h=yes
22189else
22190 $as_echo "$as_me: failed program was:" >&5
22191sed 's/^/| /' conftest.$ac_ext >&5
22192
22193 ac_cv_header_stdbool_h=no
22194fi
22195
22196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22197fi
22198{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
22199$as_echo "$ac_cv_header_stdbool_h" >&6; }
22200{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
22201$as_echo_n "checking for _Bool... " >&6; }
22202if test "${ac_cv_type__Bool+set}" = set; then
22203 $as_echo_n "(cached) " >&6
22204else
22205 ac_cv_type__Bool=no
22206cat >conftest.$ac_ext <<_ACEOF
22207/* confdefs.h. */
22208_ACEOF
22209cat confdefs.h >>conftest.$ac_ext
22210cat >>conftest.$ac_ext <<_ACEOF
22211/* end confdefs.h. */
22212$ac_includes_default
22213int
22214main ()
22215{
22216if (sizeof (_Bool))
22217 return 0;
22218 ;
22219 return 0;
22220}
22221_ACEOF
22222rm -f conftest.$ac_objext
22223if { (ac_try="$ac_compile"
22224case "(($ac_try" in
22225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226 *) ac_try_echo=$ac_try;;
22227esac
22228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22229$as_echo "$ac_try_echo") >&5
22230 (eval "$ac_compile") 2>conftest.er1
22231 ac_status=$?
22232 grep -v '^ *+' conftest.er1 >conftest.err
22233 rm -f conftest.er1
22234 cat conftest.err >&5
22235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } && {
22237 test -z "$ac_c_werror_flag" ||
22238 test ! -s conftest.err
22239 } && test -s conftest.$ac_objext; then
22240 cat >conftest.$ac_ext <<_ACEOF
22241/* confdefs.h. */
22242_ACEOF
22243cat confdefs.h >>conftest.$ac_ext
22244cat >>conftest.$ac_ext <<_ACEOF
22245/* end confdefs.h. */
22246$ac_includes_default
22247int
22248main ()
22249{
22250if (sizeof ((_Bool)))
22251 return 0;
22252 ;
22253 return 0;
22254}
22255_ACEOF
22256rm -f conftest.$ac_objext
22257if { (ac_try="$ac_compile"
22258case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22261esac
22262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22263$as_echo "$ac_try_echo") >&5
22264 (eval "$ac_compile") 2>conftest.er1
22265 ac_status=$?
22266 grep -v '^ *+' conftest.er1 >conftest.err
22267 rm -f conftest.er1
22268 cat conftest.err >&5
22269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } && {
22271 test -z "$ac_c_werror_flag" ||
22272 test ! -s conftest.err
22273 } && test -s conftest.$ac_objext; then
22274 :
22275else
22276 $as_echo "$as_me: failed program was:" >&5
22277sed 's/^/| /' conftest.$ac_ext >&5
22278
22279 ac_cv_type__Bool=yes
22280fi
22281
22282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283else
22284 $as_echo "$as_me: failed program was:" >&5
22285sed 's/^/| /' conftest.$ac_ext >&5
22286
22287
22288fi
22289
22290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291fi
22292{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
22293$as_echo "$ac_cv_type__Bool" >&6; }
22294if test "x$ac_cv_type__Bool" = x""yes; then
22295
22296cat >>confdefs.h <<_ACEOF
22297#define HAVE__BOOL 1
22298_ACEOF
22299
22300
22301fi
22302
22303if test $ac_cv_header_stdbool_h = yes; then
22304
22305cat >>confdefs.h <<\_ACEOF
22306#define HAVE_STDBOOL_H 1
22307_ACEOF
22308
22309fi
22310
22311{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
22312$as_echo_n "checking for working volatile... " >&6; }
22313if test "${ac_cv_c_volatile+set}" = set; then
22314 $as_echo_n "(cached) " >&6
22315else
22316 cat >conftest.$ac_ext <<_ACEOF
22317/* confdefs.h. */
22318_ACEOF
22319cat confdefs.h >>conftest.$ac_ext
22320cat >>conftest.$ac_ext <<_ACEOF
22321/* end confdefs.h. */
22322
22323int
22324main ()
22325{
22326
22327volatile int x;
22328int * volatile y = (int *) 0;
22329return !x && !y;
22330 ;
22331 return 0;
22332}
22333_ACEOF
22334rm -f conftest.$ac_objext
22335if { (ac_try="$ac_compile"
22336case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22339esac
22340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22341$as_echo "$ac_try_echo") >&5
22342 (eval "$ac_compile") 2>conftest.er1
22343 ac_status=$?
22344 grep -v '^ *+' conftest.er1 >conftest.err
22345 rm -f conftest.er1
22346 cat conftest.err >&5
22347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest.$ac_objext; then
22352 ac_cv_c_volatile=yes
22353else
22354 $as_echo "$as_me: failed program was:" >&5
22355sed 's/^/| /' conftest.$ac_ext >&5
22356
22357 ac_cv_c_volatile=no
22358fi
22359
22360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361fi
22362{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
22363$as_echo "$ac_cv_c_volatile" >&6; }
22364if test $ac_cv_c_volatile = no; then
22365
22366cat >>confdefs.h <<\_ACEOF
22367#define volatile /**/
22368_ACEOF
22369
22370fi
22371
22372{ $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
22373$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
22374if test "${ac_cv_c_stringize+set}" = set; then
22375 $as_echo_n "(cached) " >&6
22376else
22377 cat >conftest.$ac_ext <<_ACEOF
22378/* confdefs.h. */
22379_ACEOF
22380cat confdefs.h >>conftest.$ac_ext
22381cat >>conftest.$ac_ext <<_ACEOF
22382/* end confdefs.h. */
22383#define x(y) #y
22384
22385char *s = x(teststring);
22386_ACEOF
22387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22388 $EGREP "#teststring" >/dev/null 2>&1; then
22389 ac_cv_c_stringize=no
22390else
22391 ac_cv_c_stringize=yes
22392fi
22393rm -f conftest*
22394
22395fi
22396{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
22397$as_echo "$ac_cv_c_stringize" >&6; }
22398if test $ac_cv_c_stringize = yes; then
22399
22400cat >>confdefs.h <<\_ACEOF
22401#define HAVE_STRINGIZE 1
22402_ACEOF
22403
22404fi
22405
22406{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22407$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22408if test "${ac_cv_header_stat_broken+set}" = set; then
22409 $as_echo_n "(cached) " >&6
22410else
22411 cat >conftest.$ac_ext <<_ACEOF
22412/* confdefs.h. */
22413_ACEOF
22414cat confdefs.h >>conftest.$ac_ext
22415cat >>conftest.$ac_ext <<_ACEOF
22416/* end confdefs.h. */
22417#include <sys/types.h>
22418#include <sys/stat.h>
22419
22420#if defined S_ISBLK && defined S_IFDIR
22421extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22422#endif
22423
22424#if defined S_ISBLK && defined S_IFCHR
22425extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22426#endif
22427
22428#if defined S_ISLNK && defined S_IFREG
22429extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22430#endif
22431
22432#if defined S_ISSOCK && defined S_IFREG
22433extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22434#endif
22435
22436_ACEOF
22437rm -f conftest.$ac_objext
22438if { (ac_try="$ac_compile"
22439case "(($ac_try" in
22440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441 *) ac_try_echo=$ac_try;;
22442esac
22443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22444$as_echo "$ac_try_echo") >&5
22445 (eval "$ac_compile") 2>conftest.er1
22446 ac_status=$?
22447 grep -v '^ *+' conftest.er1 >conftest.err
22448 rm -f conftest.er1
22449 cat conftest.err >&5
22450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); } && {
22452 test -z "$ac_c_werror_flag" ||
22453 test ! -s conftest.err
22454 } && test -s conftest.$ac_objext; then
22455 ac_cv_header_stat_broken=no
22456else
22457 $as_echo "$as_me: failed program was:" >&5
22458sed 's/^/| /' conftest.$ac_ext >&5
22459
22460 ac_cv_header_stat_broken=yes
22461fi
22462
22463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22464fi
22465{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22466$as_echo "$ac_cv_header_stat_broken" >&6; }
22467if test $ac_cv_header_stat_broken = yes; then
22468
22469cat >>confdefs.h <<\_ACEOF
22470#define STAT_MACROS_BROKEN 1
22471_ACEOF
22472
22473fi
22474
22475{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22476$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22477if test "${ac_cv_header_time+set}" = set; then
22478 $as_echo_n "(cached) " >&6
22479else
22480 cat >conftest.$ac_ext <<_ACEOF
22481/* confdefs.h. */
22482_ACEOF
22483cat confdefs.h >>conftest.$ac_ext
22484cat >>conftest.$ac_ext <<_ACEOF
22485/* end confdefs.h. */
22486#include <sys/types.h>
22487#include <sys/time.h>
22488#include <time.h>
22489
22490int
22491main ()
22492{
22493if ((struct tm *) 0)
22494return 0;
22495 ;
22496 return 0;
22497}
22498_ACEOF
22499rm -f conftest.$ac_objext
22500if { (ac_try="$ac_compile"
22501case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22504esac
22505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22506$as_echo "$ac_try_echo") >&5
22507 (eval "$ac_compile") 2>conftest.er1
22508 ac_status=$?
22509 grep -v '^ *+' conftest.er1 >conftest.err
22510 rm -f conftest.er1
22511 cat conftest.err >&5
22512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); } && {
22514 test -z "$ac_c_werror_flag" ||
22515 test ! -s conftest.err
22516 } && test -s conftest.$ac_objext; then
22517 ac_cv_header_time=yes
22518else
22519 $as_echo "$as_me: failed program was:" >&5
22520sed 's/^/| /' conftest.$ac_ext >&5
22521
22522 ac_cv_header_time=no
22523fi
22524
22525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22526fi
22527{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22528$as_echo "$ac_cv_header_time" >&6; }
22529if test $ac_cv_header_time = yes; then
22530
22531cat >>confdefs.h <<\_ACEOF
22532#define TIME_WITH_SYS_TIME 1
22533_ACEOF
22534
22535fi
22536
22537{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22538$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22539if test "${ac_cv_struct_tm+set}" = set; then
22540 $as_echo_n "(cached) " >&6
22541else
22542 cat >conftest.$ac_ext <<_ACEOF
22543/* confdefs.h. */
22544_ACEOF
22545cat confdefs.h >>conftest.$ac_ext
22546cat >>conftest.$ac_ext <<_ACEOF
22547/* end confdefs.h. */
22548#include <sys/types.h>
22549#include <time.h>
22550
22551int
22552main ()
22553{
22554struct tm tm;
22555 int *p = &tm.tm_sec;
22556 return !p;
22557 ;
22558 return 0;
22559}
22560_ACEOF
22561rm -f conftest.$ac_objext
22562if { (ac_try="$ac_compile"
22563case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22566esac
22567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22568$as_echo "$ac_try_echo") >&5
22569 (eval "$ac_compile") 2>conftest.er1
22570 ac_status=$?
22571 grep -v '^ *+' conftest.er1 >conftest.err
22572 rm -f conftest.er1
22573 cat conftest.err >&5
22574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } && {
22576 test -z "$ac_c_werror_flag" ||
22577 test ! -s conftest.err
22578 } && test -s conftest.$ac_objext; then
22579 ac_cv_struct_tm=time.h
22580else
22581 $as_echo "$as_me: failed program was:" >&5
22582sed 's/^/| /' conftest.$ac_ext >&5
22583
22584 ac_cv_struct_tm=sys/time.h
22585fi
22586
22587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22588fi
22589{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22590$as_echo "$ac_cv_struct_tm" >&6; }
22591if test $ac_cv_struct_tm = sys/time.h; then
22592
22593cat >>confdefs.h <<\_ACEOF
22594#define TM_IN_SYS_TIME 1
22595_ACEOF
22596
22597fi
22598
22599{ $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
22600$as_echo_n "checking whether #! works in shell scripts... " >&6; }
22601if test "${ac_cv_sys_interpreter+set}" = set; then
22602 $as_echo_n "(cached) " >&6
22603else
22604 echo '#! /bin/cat
22605exit 69
22606' >conftest
22607chmod u+x conftest
22608(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22609if test $? -ne 69; then
22610 ac_cv_sys_interpreter=yes
22611else
22612 ac_cv_sys_interpreter=no
22613fi
22614rm -f conftest
22615fi
22616{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
22617$as_echo "$ac_cv_sys_interpreter" >&6; }
22618interpval=$ac_cv_sys_interpreter
22619
22620
22621# If the C compiler does not fully support the ANSI C qualifier const,
22622# define const to be empty.
22623{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22624$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22625if test "${ac_cv_c_const+set}" = set; then
22626 $as_echo_n "(cached) " >&6
22627else
22628 cat >conftest.$ac_ext <<_ACEOF
22629/* confdefs.h. */
22630_ACEOF
22631cat confdefs.h >>conftest.$ac_ext
22632cat >>conftest.$ac_ext <<_ACEOF
22633/* end confdefs.h. */
22634
22635int
22636main ()
22637{
22638/* FIXME: Include the comments suggested by Paul. */
22639#ifndef __cplusplus
22640 /* Ultrix mips cc rejects this. */
22641 typedef int charset[2];
22642 const charset cs;
22643 /* SunOS 4.1.1 cc rejects this. */
22644 char const *const *pcpcc;
22645 char **ppc;
22646 /* NEC SVR4.0.2 mips cc rejects this. */
22647 struct point {int x, y;};
22648 static struct point const zero = {0,0};
22649 /* AIX XL C 1.02.0.0 rejects this.
22650 It does not let you subtract one const X* pointer from another in
22651 an arm of an if-expression whose if-part is not a constant
22652 expression */
22653 const char *g = "string";
22654 pcpcc = &g + (g ? g-g : 0);
22655 /* HPUX 7.0 cc rejects these. */
22656 ++pcpcc;
22657 ppc = (char**) pcpcc;
22658 pcpcc = (char const *const *) ppc;
22659 { /* SCO 3.2v4 cc rejects this. */
22660 char *t;
22661 char const *s = 0 ? (char *) 0 : (char const *) 0;
22662
22663 *t++ = 0;
22664 if (s) return 0;
22665 }
22666 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22667 int x[] = {25, 17};
22668 const int *foo = &x[0];
22669 ++foo;
22670 }
22671 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22672 typedef const int *iptr;
22673 iptr p = 0;
22674 ++p;
22675 }
22676 { /* AIX XL C 1.02.0.0 rejects this saying
22677 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22678 struct s { int j; const int *ap[3]; };
22679 struct s *b; b->j = 5;
22680 }
22681 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22682 const int foo = 10;
22683 if (!foo) return 0;
22684 }
22685 return !cs[0] && !zero.x;
22686#endif
22687
22688 ;
22689 return 0;
22690}
22691_ACEOF
22692rm -f conftest.$ac_objext
22693if { (ac_try="$ac_compile"
22694case "(($ac_try" in
22695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22696 *) ac_try_echo=$ac_try;;
22697esac
22698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22699$as_echo "$ac_try_echo") >&5
22700 (eval "$ac_compile") 2>conftest.er1
22701 ac_status=$?
22702 grep -v '^ *+' conftest.er1 >conftest.err
22703 rm -f conftest.er1
22704 cat conftest.err >&5
22705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } && {
22707 test -z "$ac_c_werror_flag" ||
22708 test ! -s conftest.err
22709 } && test -s conftest.$ac_objext; then
22710 ac_cv_c_const=yes
22711else
22712 $as_echo "$as_me: failed program was:" >&5
22713sed 's/^/| /' conftest.$ac_ext >&5
22714
22715 ac_cv_c_const=no
22716fi
22717
22718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22719fi
22720{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22721$as_echo "$ac_cv_c_const" >&6; }
22722if test $ac_cv_c_const = no; then
22723
22724cat >>confdefs.h <<\_ACEOF
22725#define const /**/
22726_ACEOF
22727
22728fi
22729
22730
22731# If the C compiler supports the keyword inline, do nothing. Otherwise
22732# define inline to __inline__ or __inline if it accepts one of those,
22733# otherwise define inline to be empty.
22734{ $as_echo "$as_me:$LINENO: checking for inline" >&5
22735$as_echo_n "checking for inline... " >&6; }
22736if test "${ac_cv_c_inline+set}" = set; then
22737 $as_echo_n "(cached) " >&6
22738else
22739 ac_cv_c_inline=no
22740for ac_kw in inline __inline__ __inline; do
22741 cat >conftest.$ac_ext <<_ACEOF
22742/* confdefs.h. */
22743_ACEOF
22744cat confdefs.h >>conftest.$ac_ext
22745cat >>conftest.$ac_ext <<_ACEOF
22746/* end confdefs.h. */
22747#ifndef __cplusplus
22748typedef int foo_t;
22749static $ac_kw foo_t static_foo () {return 0; }
22750$ac_kw foo_t foo () {return 0; }
22751#endif
22752
22753_ACEOF
22754rm -f conftest.$ac_objext
22755if { (ac_try="$ac_compile"
22756case "(($ac_try" in
22757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22758 *) ac_try_echo=$ac_try;;
22759esac
22760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22761$as_echo "$ac_try_echo") >&5
22762 (eval "$ac_compile") 2>conftest.er1
22763 ac_status=$?
22764 grep -v '^ *+' conftest.er1 >conftest.err
22765 rm -f conftest.er1
22766 cat conftest.err >&5
22767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); } && {
22769 test -z "$ac_c_werror_flag" ||
22770 test ! -s conftest.err
22771 } && test -s conftest.$ac_objext; then
22772 ac_cv_c_inline=$ac_kw
22773else
22774 $as_echo "$as_me: failed program was:" >&5
22775sed 's/^/| /' conftest.$ac_ext >&5
22776
22777
22778fi
22779
22780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22781 test "$ac_cv_c_inline" != no && break
22782done
22783
22784fi
22785{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22786$as_echo "$ac_cv_c_inline" >&6; }
22787
22788
22789case $ac_cv_c_inline in
22790 inline | yes) ;;
22791 *)
22792 case $ac_cv_c_inline in
22793 no) ac_val=;;
22794 *) ac_val=$ac_cv_c_inline;;
22795 esac
22796 cat >>confdefs.h <<_ACEOF
22797#ifndef __cplusplus
22798#define inline $ac_val
22799#endif
22800_ACEOF
22801 ;;
22802esac
22803
22804
22805# If the C compiler supports the keyword restrict, do nothing. Otherwise
22806# define restrict to __restrict__ or __restrict if it accepts one of those,
22807# otherwise define restrict to be empty.
22808{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
22809$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22810if test "${ac_cv_c_restrict+set}" = set; then
22811 $as_echo_n "(cached) " >&6
22812else
22813 ac_cv_c_restrict=no
22814 # The order here caters to the fact that C++ does not require restrict.
22815 for ac_kw in __restrict __restrict__ _Restrict restrict; do
22816 cat >conftest.$ac_ext <<_ACEOF
22817/* confdefs.h. */
22818_ACEOF
22819cat confdefs.h >>conftest.$ac_ext
22820cat >>conftest.$ac_ext <<_ACEOF
22821/* end confdefs.h. */
22822typedef int * int_ptr;
22823 int foo (int_ptr $ac_kw ip) {
22824 return ip[0];
22825 }
22826int
22827main ()
22828{
22829int s[1];
22830 int * $ac_kw t = s;
22831 t[0] = 0;
22832 return foo(t)
22833 ;
22834 return 0;
22835}
22836_ACEOF
22837rm -f conftest.$ac_objext
22838if { (ac_try="$ac_compile"
22839case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22842esac
22843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22844$as_echo "$ac_try_echo") >&5
22845 (eval "$ac_compile") 2>conftest.er1
22846 ac_status=$?
22847 grep -v '^ *+' conftest.er1 >conftest.err
22848 rm -f conftest.er1
22849 cat conftest.err >&5
22850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } && {
22852 test -z "$ac_c_werror_flag" ||
22853 test ! -s conftest.err
22854 } && test -s conftest.$ac_objext; then
22855 ac_cv_c_restrict=$ac_kw
22856else
22857 $as_echo "$as_me: failed program was:" >&5
22858sed 's/^/| /' conftest.$ac_ext >&5
22859
22860
22861fi
22862
22863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22864 test "$ac_cv_c_restrict" != no && break
22865 done
22866
22867fi
22868{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
22869$as_echo "$ac_cv_c_restrict" >&6; }
22870
22871
22872 case $ac_cv_c_restrict in
22873 restrict) ;;
22874 no) cat >>confdefs.h <<\_ACEOF
22875#define restrict /**/
22876_ACEOF
22877 ;;
22878 *) cat >>confdefs.h <<_ACEOF
22879#define restrict $ac_cv_c_restrict
22880_ACEOF
22881 ;;
22882 esac
22883
22884
22885# If words are stored with the most significant byte first (like
22886# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22887
22888 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22889$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22890if test "${ac_cv_c_bigendian+set}" = set; then
22891 $as_echo_n "(cached) " >&6
22892else
22893 ac_cv_c_bigendian=unknown
22894 # See if we're dealing with a universal compiler.
22895 cat >conftest.$ac_ext <<_ACEOF
22896/* confdefs.h. */
22897_ACEOF
22898cat confdefs.h >>conftest.$ac_ext
22899cat >>conftest.$ac_ext <<_ACEOF
22900/* end confdefs.h. */
22901#ifndef __APPLE_CC__
22902 not a universal capable compiler
22903 #endif
22904 typedef int dummy;
22905
22906_ACEOF
22907rm -f conftest.$ac_objext
22908if { (ac_try="$ac_compile"
22909case "(($ac_try" in
22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911 *) ac_try_echo=$ac_try;;
22912esac
22913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22914$as_echo "$ac_try_echo") >&5
22915 (eval "$ac_compile") 2>conftest.er1
22916 ac_status=$?
22917 grep -v '^ *+' conftest.er1 >conftest.err
22918 rm -f conftest.er1
22919 cat conftest.err >&5
22920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } && {
22922 test -z "$ac_c_werror_flag" ||
22923 test ! -s conftest.err
22924 } && test -s conftest.$ac_objext; then
22925
22926 # Check for potential -arch flags. It is not universal unless
22927 # there are some -arch flags. Note that *ppc* also matches
22928 # ppc64. This check is also rather less than ideal.
22929 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
22930 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
22931 esac
22932else
22933 $as_echo "$as_me: failed program was:" >&5
22934sed 's/^/| /' conftest.$ac_ext >&5
22935
22936
22937fi
22938
22939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22940 if test $ac_cv_c_bigendian = unknown; then
22941 # See if sys/param.h defines the BYTE_ORDER macro.
22942 cat >conftest.$ac_ext <<_ACEOF
22943/* confdefs.h. */
22944_ACEOF
22945cat confdefs.h >>conftest.$ac_ext
22946cat >>conftest.$ac_ext <<_ACEOF
22947/* end confdefs.h. */
22948#include <sys/types.h>
22949 #include <sys/param.h>
22950
22951int
22952main ()
22953{
22954#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22955 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22956 && LITTLE_ENDIAN)
22957 bogus endian macros
22958 #endif
22959
22960 ;
22961 return 0;
22962}
22963_ACEOF
22964rm -f conftest.$ac_objext
22965if { (ac_try="$ac_compile"
22966case "(($ac_try" in
22967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22969esac
22970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22971$as_echo "$ac_try_echo") >&5
22972 (eval "$ac_compile") 2>conftest.er1
22973 ac_status=$?
22974 grep -v '^ *+' conftest.er1 >conftest.err
22975 rm -f conftest.er1
22976 cat conftest.err >&5
22977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } && {
22979 test -z "$ac_c_werror_flag" ||
22980 test ! -s conftest.err
22981 } && test -s conftest.$ac_objext; then
22982 # It does; now see whether it defined to BIG_ENDIAN or not.
22983 cat >conftest.$ac_ext <<_ACEOF
22984/* confdefs.h. */
22985_ACEOF
22986cat confdefs.h >>conftest.$ac_ext
22987cat >>conftest.$ac_ext <<_ACEOF
22988/* end confdefs.h. */
22989#include <sys/types.h>
22990 #include <sys/param.h>
22991
22992int
22993main ()
22994{
22995#if BYTE_ORDER != BIG_ENDIAN
22996 not big endian
22997 #endif
22998
22999 ;
23000 return 0;
23001}
23002_ACEOF
23003rm -f conftest.$ac_objext
23004if { (ac_try="$ac_compile"
23005case "(($ac_try" in
23006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23007 *) ac_try_echo=$ac_try;;
23008esac
23009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23010$as_echo "$ac_try_echo") >&5
23011 (eval "$ac_compile") 2>conftest.er1
23012 ac_status=$?
23013 grep -v '^ *+' conftest.er1 >conftest.err
23014 rm -f conftest.er1
23015 cat conftest.err >&5
23016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } && {
23018 test -z "$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 } && test -s conftest.$ac_objext; then
23021 ac_cv_c_bigendian=yes
23022else
23023 $as_echo "$as_me: failed program was:" >&5
23024sed 's/^/| /' conftest.$ac_ext >&5
23025
23026 ac_cv_c_bigendian=no
23027fi
23028
23029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23030else
23031 $as_echo "$as_me: failed program was:" >&5
23032sed 's/^/| /' conftest.$ac_ext >&5
23033
23034
23035fi
23036
23037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23038 fi
23039 if test $ac_cv_c_bigendian = unknown; then
23040 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23041 cat >conftest.$ac_ext <<_ACEOF
23042/* confdefs.h. */
23043_ACEOF
23044cat confdefs.h >>conftest.$ac_ext
23045cat >>conftest.$ac_ext <<_ACEOF
23046/* end confdefs.h. */
23047#include <limits.h>
23048
23049int
23050main ()
23051{
23052#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23053 bogus endian macros
23054 #endif
23055
23056 ;
23057 return 0;
23058}
23059_ACEOF
23060rm -f conftest.$ac_objext
23061if { (ac_try="$ac_compile"
23062case "(($ac_try" in
23063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064 *) ac_try_echo=$ac_try;;
23065esac
23066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23067$as_echo "$ac_try_echo") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23069 ac_status=$?
23070 grep -v '^ *+' conftest.er1 >conftest.err
23071 rm -f conftest.er1
23072 cat conftest.err >&5
23073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } && {
23075 test -z "$ac_c_werror_flag" ||
23076 test ! -s conftest.err
23077 } && test -s conftest.$ac_objext; then
23078 # It does; now see whether it defined to _BIG_ENDIAN or not.
23079 cat >conftest.$ac_ext <<_ACEOF
23080/* confdefs.h. */
23081_ACEOF
23082cat confdefs.h >>conftest.$ac_ext
23083cat >>conftest.$ac_ext <<_ACEOF
23084/* end confdefs.h. */
23085#include <limits.h>
23086
23087int
23088main ()
23089{
23090#ifndef _BIG_ENDIAN
23091 not big endian
23092 #endif
23093
23094 ;
23095 return 0;
23096}
23097_ACEOF
23098rm -f conftest.$ac_objext
23099if { (ac_try="$ac_compile"
23100case "(($ac_try" in
23101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23102 *) ac_try_echo=$ac_try;;
23103esac
23104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23105$as_echo "$ac_try_echo") >&5
23106 (eval "$ac_compile") 2>conftest.er1
23107 ac_status=$?
23108 grep -v '^ *+' conftest.er1 >conftest.err
23109 rm -f conftest.er1
23110 cat conftest.err >&5
23111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } && {
23113 test -z "$ac_c_werror_flag" ||
23114 test ! -s conftest.err
23115 } && test -s conftest.$ac_objext; then
23116 ac_cv_c_bigendian=yes
23117else
23118 $as_echo "$as_me: failed program was:" >&5
23119sed 's/^/| /' conftest.$ac_ext >&5
23120
23121 ac_cv_c_bigendian=no
23122fi
23123
23124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125else
23126 $as_echo "$as_me: failed program was:" >&5
23127sed 's/^/| /' conftest.$ac_ext >&5
23128
23129
23130fi
23131
23132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23133 fi
23134 if test $ac_cv_c_bigendian = unknown; then
23135 # Compile a test program.
23136 if test "$cross_compiling" = yes; then
23137 # Try to guess by grepping values from an object file.
23138 cat >conftest.$ac_ext <<_ACEOF
23139/* confdefs.h. */
23140_ACEOF
23141cat confdefs.h >>conftest.$ac_ext
23142cat >>conftest.$ac_ext <<_ACEOF
23143/* end confdefs.h. */
23144short int ascii_mm[] =
23145 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23146 short int ascii_ii[] =
23147 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23148 int use_ascii (int i) {
23149 return ascii_mm[i] + ascii_ii[i];
23150 }
23151 short int ebcdic_ii[] =
23152 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23153 short int ebcdic_mm[] =
23154 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23155 int use_ebcdic (int i) {
23156 return ebcdic_mm[i] + ebcdic_ii[i];
23157 }
23158 extern int foo;
23159
23160int
23161main ()
23162{
23163return use_ascii (foo) == use_ebcdic (foo);
23164 ;
23165 return 0;
23166}
23167_ACEOF
23168rm -f conftest.$ac_objext
23169if { (ac_try="$ac_compile"
23170case "(($ac_try" in
23171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23172 *) ac_try_echo=$ac_try;;
23173esac
23174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23175$as_echo "$ac_try_echo") >&5
23176 (eval "$ac_compile") 2>conftest.er1
23177 ac_status=$?
23178 grep -v '^ *+' conftest.er1 >conftest.err
23179 rm -f conftest.er1
23180 cat conftest.err >&5
23181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); } && {
23183 test -z "$ac_c_werror_flag" ||
23184 test ! -s conftest.err
23185 } && test -s conftest.$ac_objext; then
23186 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23187 ac_cv_c_bigendian=yes
23188 fi
23189 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23190 if test "$ac_cv_c_bigendian" = unknown; then
23191 ac_cv_c_bigendian=no
23192 else
23193 # finding both strings is unlikely to happen, but who knows?
23194 ac_cv_c_bigendian=unknown
23195 fi
23196 fi
23197else
23198 $as_echo "$as_me: failed program was:" >&5
23199sed 's/^/| /' conftest.$ac_ext >&5
23200
23201
23202fi
23203
23204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205else
23206 cat >conftest.$ac_ext <<_ACEOF
23207/* confdefs.h. */
23208_ACEOF
23209cat confdefs.h >>conftest.$ac_ext
23210cat >>conftest.$ac_ext <<_ACEOF
23211/* end confdefs.h. */
23212$ac_includes_default
23213int
23214main ()
23215{
23216
23217 /* Are we little or big endian? From Harbison&Steele. */
23218 union
23219 {
23220 long int l;
23221 char c[sizeof (long int)];
23222 } u;
23223 u.l = 1;
23224 return u.c[sizeof (long int) - 1] == 1;
23225
23226 ;
23227 return 0;
23228}
23229_ACEOF
23230rm -f conftest$ac_exeext
23231if { (ac_try="$ac_link"
23232case "(($ac_try" in
23233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23234 *) ac_try_echo=$ac_try;;
23235esac
23236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23237$as_echo "$ac_try_echo") >&5
23238 (eval "$ac_link") 2>&5
23239 ac_status=$?
23240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23242 { (case "(($ac_try" in
23243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244 *) ac_try_echo=$ac_try;;
23245esac
23246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23247$as_echo "$ac_try_echo") >&5
23248 (eval "$ac_try") 2>&5
23249 ac_status=$?
23250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); }; }; then
23252 ac_cv_c_bigendian=no
23253else
23254 $as_echo "$as_me: program exited with status $ac_status" >&5
23255$as_echo "$as_me: failed program was:" >&5
23256sed 's/^/| /' conftest.$ac_ext >&5
23257
23258( exit $ac_status )
23259ac_cv_c_bigendian=yes
23260fi
23261rm -rf conftest.dSYM
23262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23263fi
23264
23265
23266 fi
23267fi
23268{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23269$as_echo "$ac_cv_c_bigendian" >&6; }
23270 case $ac_cv_c_bigendian in #(
23271 yes)
23272 cat >>confdefs.h <<\_ACEOF
23273#define WORDS_BIGENDIAN 1
23274_ACEOF
23275;; #(
23276 no)
23277 ;; #(
23278 universal)
23279
23280cat >>confdefs.h <<\_ACEOF
23281#define AC_APPLE_UNIVERSAL_BUILD 1
23282_ACEOF
23283
23284 ;; #(
23285 *)
23286 { { $as_echo "$as_me:$LINENO: error: unknown endianness
23287 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23288$as_echo "$as_me: error: unknown endianness
23289 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23290 { (exit 1); exit 1; }; } ;;
23291 esac
23292
23293
23294# Define mode_t to a suitable type, if standard headers do not define it.
23295{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
23296$as_echo_n "checking for mode_t... " >&6; }
23297if test "${ac_cv_type_mode_t+set}" = set; then
23298 $as_echo_n "(cached) " >&6
23299else
23300 ac_cv_type_mode_t=no
23301cat >conftest.$ac_ext <<_ACEOF
23302/* confdefs.h. */
23303_ACEOF
23304cat confdefs.h >>conftest.$ac_ext
23305cat >>conftest.$ac_ext <<_ACEOF
23306/* end confdefs.h. */
23307$ac_includes_default
23308int
23309main ()
23310{
23311if (sizeof (mode_t))
23312 return 0;
23313 ;
23314 return 0;
23315}
23316_ACEOF
23317rm -f conftest.$ac_objext
23318if { (ac_try="$ac_compile"
23319case "(($ac_try" in
23320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23321 *) ac_try_echo=$ac_try;;
23322esac
23323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23324$as_echo "$ac_try_echo") >&5
23325 (eval "$ac_compile") 2>conftest.er1
23326 ac_status=$?
23327 grep -v '^ *+' conftest.er1 >conftest.err
23328 rm -f conftest.er1
23329 cat conftest.err >&5
23330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } && {
23332 test -z "$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23334 } && test -s conftest.$ac_objext; then
23335 cat >conftest.$ac_ext <<_ACEOF
23336/* confdefs.h. */
23337_ACEOF
23338cat confdefs.h >>conftest.$ac_ext
23339cat >>conftest.$ac_ext <<_ACEOF
23340/* end confdefs.h. */
23341$ac_includes_default
23342int
23343main ()
23344{
23345if (sizeof ((mode_t)))
23346 return 0;
23347 ;
23348 return 0;
23349}
23350_ACEOF
23351rm -f conftest.$ac_objext
23352if { (ac_try="$ac_compile"
23353case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23356esac
23357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23358$as_echo "$ac_try_echo") >&5
23359 (eval "$ac_compile") 2>conftest.er1
23360 ac_status=$?
23361 grep -v '^ *+' conftest.er1 >conftest.err
23362 rm -f conftest.er1
23363 cat conftest.err >&5
23364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } && {
23366 test -z "$ac_c_werror_flag" ||
23367 test ! -s conftest.err
23368 } && test -s conftest.$ac_objext; then
23369 :
23370else
23371 $as_echo "$as_me: failed program was:" >&5
23372sed 's/^/| /' conftest.$ac_ext >&5
23373
23374 ac_cv_type_mode_t=yes
23375fi
23376
23377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23378else
23379 $as_echo "$as_me: failed program was:" >&5
23380sed 's/^/| /' conftest.$ac_ext >&5
23381
23382
23383fi
23384
23385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23386fi
23387{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
23388$as_echo "$ac_cv_type_mode_t" >&6; }
23389if test "x$ac_cv_type_mode_t" = x""yes; then
23390 :
23391else
23392
23393cat >>confdefs.h <<_ACEOF
23394#define mode_t int
23395_ACEOF
23396
23397fi
23398
23399
23400# Define off_t to a suitable type, if standard headers do not define it.
23401{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
23402$as_echo_n "checking for off_t... " >&6; }
23403if test "${ac_cv_type_off_t+set}" = set; then
23404 $as_echo_n "(cached) " >&6
23405else
23406 ac_cv_type_off_t=no
23407cat >conftest.$ac_ext <<_ACEOF
23408/* confdefs.h. */
23409_ACEOF
23410cat confdefs.h >>conftest.$ac_ext
23411cat >>conftest.$ac_ext <<_ACEOF
23412/* end confdefs.h. */
23413$ac_includes_default
23414int
23415main ()
23416{
23417if (sizeof (off_t))
23418 return 0;
23419 ;
23420 return 0;
23421}
23422_ACEOF
23423rm -f conftest.$ac_objext
23424if { (ac_try="$ac_compile"
23425case "(($ac_try" in
23426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23427 *) ac_try_echo=$ac_try;;
23428esac
23429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23430$as_echo "$ac_try_echo") >&5
23431 (eval "$ac_compile") 2>conftest.er1
23432 ac_status=$?
23433 grep -v '^ *+' conftest.er1 >conftest.err
23434 rm -f conftest.er1
23435 cat conftest.err >&5
23436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); } && {
23438 test -z "$ac_c_werror_flag" ||
23439 test ! -s conftest.err
23440 } && test -s conftest.$ac_objext; then
23441 cat >conftest.$ac_ext <<_ACEOF
23442/* confdefs.h. */
23443_ACEOF
23444cat confdefs.h >>conftest.$ac_ext
23445cat >>conftest.$ac_ext <<_ACEOF
23446/* end confdefs.h. */
23447$ac_includes_default
23448int
23449main ()
23450{
23451if (sizeof ((off_t)))
23452 return 0;
23453 ;
23454 return 0;
23455}
23456_ACEOF
23457rm -f conftest.$ac_objext
23458if { (ac_try="$ac_compile"
23459case "(($ac_try" in
23460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461 *) ac_try_echo=$ac_try;;
23462esac
23463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23464$as_echo "$ac_try_echo") >&5
23465 (eval "$ac_compile") 2>conftest.er1
23466 ac_status=$?
23467 grep -v '^ *+' conftest.er1 >conftest.err
23468 rm -f conftest.er1
23469 cat conftest.err >&5
23470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); } && {
23472 test -z "$ac_c_werror_flag" ||
23473 test ! -s conftest.err
23474 } && test -s conftest.$ac_objext; then
23475 :
23476else
23477 $as_echo "$as_me: failed program was:" >&5
23478sed 's/^/| /' conftest.$ac_ext >&5
23479
23480 ac_cv_type_off_t=yes
23481fi
23482
23483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23484else
23485 $as_echo "$as_me: failed program was:" >&5
23486sed 's/^/| /' conftest.$ac_ext >&5
23487
23488
23489fi
23490
23491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23492fi
23493{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23494$as_echo "$ac_cv_type_off_t" >&6; }
23495if test "x$ac_cv_type_off_t" = x""yes; then
23496 :
23497else
23498
23499cat >>confdefs.h <<_ACEOF
23500#define off_t long int
23501_ACEOF
23502
23503fi
23504
23505
23506# Define pid_t to a suitable type, if standard headers do not define it.
23507{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
23508$as_echo_n "checking for pid_t... " >&6; }
23509if test "${ac_cv_type_pid_t+set}" = set; then
23510 $as_echo_n "(cached) " >&6
23511else
23512 ac_cv_type_pid_t=no
23513cat >conftest.$ac_ext <<_ACEOF
23514/* confdefs.h. */
23515_ACEOF
23516cat confdefs.h >>conftest.$ac_ext
23517cat >>conftest.$ac_ext <<_ACEOF
23518/* end confdefs.h. */
23519$ac_includes_default
23520int
23521main ()
23522{
23523if (sizeof (pid_t))
23524 return 0;
23525 ;
23526 return 0;
23527}
23528_ACEOF
23529rm -f conftest.$ac_objext
23530if { (ac_try="$ac_compile"
23531case "(($ac_try" in
23532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533 *) ac_try_echo=$ac_try;;
23534esac
23535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23536$as_echo "$ac_try_echo") >&5
23537 (eval "$ac_compile") 2>conftest.er1
23538 ac_status=$?
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
23542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && {
23544 test -z "$ac_c_werror_flag" ||
23545 test ! -s conftest.err
23546 } && test -s conftest.$ac_objext; then
23547 cat >conftest.$ac_ext <<_ACEOF
23548/* confdefs.h. */
23549_ACEOF
23550cat confdefs.h >>conftest.$ac_ext
23551cat >>conftest.$ac_ext <<_ACEOF
23552/* end confdefs.h. */
23553$ac_includes_default
23554int
23555main ()
23556{
23557if (sizeof ((pid_t)))
23558 return 0;
23559 ;
23560 return 0;
23561}
23562_ACEOF
23563rm -f conftest.$ac_objext
23564if { (ac_try="$ac_compile"
23565case "(($ac_try" in
23566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23567 *) ac_try_echo=$ac_try;;
23568esac
23569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23570$as_echo "$ac_try_echo") >&5
23571 (eval "$ac_compile") 2>conftest.er1
23572 ac_status=$?
23573 grep -v '^ *+' conftest.er1 >conftest.err
23574 rm -f conftest.er1
23575 cat conftest.err >&5
23576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); } && {
23578 test -z "$ac_c_werror_flag" ||
23579 test ! -s conftest.err
23580 } && test -s conftest.$ac_objext; then
23581 :
23582else
23583 $as_echo "$as_me: failed program was:" >&5
23584sed 's/^/| /' conftest.$ac_ext >&5
23585
23586 ac_cv_type_pid_t=yes
23587fi
23588
23589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590else
23591 $as_echo "$as_me: failed program was:" >&5
23592sed 's/^/| /' conftest.$ac_ext >&5
23593
23594
23595fi
23596
23597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23598fi
23599{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23600$as_echo "$ac_cv_type_pid_t" >&6; }
23601if test "x$ac_cv_type_pid_t" = x""yes; then
23602 :
23603else
23604
23605cat >>confdefs.h <<_ACEOF
23606#define pid_t int
23607_ACEOF
23608
23609fi
23610
23611
23612# Define size_t to a suitable type, if standard headers do not define it.
23613{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
23614$as_echo_n "checking for size_t... " >&6; }
23615if test "${ac_cv_type_size_t+set}" = set; then
23616 $as_echo_n "(cached) " >&6
23617else
23618 ac_cv_type_size_t=no
23619cat >conftest.$ac_ext <<_ACEOF
23620/* confdefs.h. */
23621_ACEOF
23622cat confdefs.h >>conftest.$ac_ext
23623cat >>conftest.$ac_ext <<_ACEOF
23624/* end confdefs.h. */
23625$ac_includes_default
23626int
23627main ()
23628{
23629if (sizeof (size_t))
23630 return 0;
23631 ;
23632 return 0;
23633}
23634_ACEOF
23635rm -f conftest.$ac_objext
23636if { (ac_try="$ac_compile"
23637case "(($ac_try" in
23638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639 *) ac_try_echo=$ac_try;;
23640esac
23641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23642$as_echo "$ac_try_echo") >&5
23643 (eval "$ac_compile") 2>conftest.er1
23644 ac_status=$?
23645 grep -v '^ *+' conftest.er1 >conftest.err
23646 rm -f conftest.er1
23647 cat conftest.err >&5
23648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest.$ac_objext; then
23653 cat >conftest.$ac_ext <<_ACEOF
23654/* confdefs.h. */
23655_ACEOF
23656cat confdefs.h >>conftest.$ac_ext
23657cat >>conftest.$ac_ext <<_ACEOF
23658/* end confdefs.h. */
23659$ac_includes_default
23660int
23661main ()
23662{
23663if (sizeof ((size_t)))
23664 return 0;
23665 ;
23666 return 0;
23667}
23668_ACEOF
23669rm -f conftest.$ac_objext
23670if { (ac_try="$ac_compile"
23671case "(($ac_try" in
23672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673 *) ac_try_echo=$ac_try;;
23674esac
23675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23676$as_echo "$ac_try_echo") >&5
23677 (eval "$ac_compile") 2>conftest.er1
23678 ac_status=$?
23679 grep -v '^ *+' conftest.er1 >conftest.err
23680 rm -f conftest.er1
23681 cat conftest.err >&5
23682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); } && {
23684 test -z "$ac_c_werror_flag" ||
23685 test ! -s conftest.err
23686 } && test -s conftest.$ac_objext; then
23687 :
23688else
23689 $as_echo "$as_me: failed program was:" >&5
23690sed 's/^/| /' conftest.$ac_ext >&5
23691
23692 ac_cv_type_size_t=yes
23693fi
23694
23695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23696else
23697 $as_echo "$as_me: failed program was:" >&5
23698sed 's/^/| /' conftest.$ac_ext >&5
23699
23700
23701fi
23702
23703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23704fi
23705{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23706$as_echo "$ac_cv_type_size_t" >&6; }
23707if test "x$ac_cv_type_size_t" = x""yes; then
23708 :
23709else
23710
23711cat >>confdefs.h <<_ACEOF
23712#define size_t unsigned int
23713_ACEOF
23714
23715fi
23716
23717
23718# Define ssize_t to a suitable type, if standard headers do not define it.
23719{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
23720$as_echo_n "checking for ssize_t... " >&6; }
23721if test "${ac_cv_type_ssize_t+set}" = set; then
23722 $as_echo_n "(cached) " >&6
23723else
23724 ac_cv_type_ssize_t=no
23725cat >conftest.$ac_ext <<_ACEOF
23726/* confdefs.h. */
23727_ACEOF
23728cat confdefs.h >>conftest.$ac_ext
23729cat >>conftest.$ac_ext <<_ACEOF
23730/* end confdefs.h. */
23731$ac_includes_default
23732int
23733main ()
23734{
23735if (sizeof (ssize_t))
23736 return 0;
23737 ;
23738 return 0;
23739}
23740_ACEOF
23741rm -f conftest.$ac_objext
23742if { (ac_try="$ac_compile"
23743case "(($ac_try" in
23744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23745 *) ac_try_echo=$ac_try;;
23746esac
23747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23748$as_echo "$ac_try_echo") >&5
23749 (eval "$ac_compile") 2>conftest.er1
23750 ac_status=$?
23751 grep -v '^ *+' conftest.er1 >conftest.err
23752 rm -f conftest.er1
23753 cat conftest.err >&5
23754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } && {
23756 test -z "$ac_c_werror_flag" ||
23757 test ! -s conftest.err
23758 } && test -s conftest.$ac_objext; then
23759 cat >conftest.$ac_ext <<_ACEOF
23760/* confdefs.h. */
23761_ACEOF
23762cat confdefs.h >>conftest.$ac_ext
23763cat >>conftest.$ac_ext <<_ACEOF
23764/* end confdefs.h. */
23765$ac_includes_default
23766int
23767main ()
23768{
23769if (sizeof ((ssize_t)))
23770 return 0;
23771 ;
23772 return 0;
23773}
23774_ACEOF
23775rm -f conftest.$ac_objext
23776if { (ac_try="$ac_compile"
23777case "(($ac_try" in
23778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779 *) ac_try_echo=$ac_try;;
23780esac
23781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23782$as_echo "$ac_try_echo") >&5
23783 (eval "$ac_compile") 2>conftest.er1
23784 ac_status=$?
23785 grep -v '^ *+' conftest.er1 >conftest.err
23786 rm -f conftest.er1
23787 cat conftest.err >&5
23788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } && {
23790 test -z "$ac_c_werror_flag" ||
23791 test ! -s conftest.err
23792 } && test -s conftest.$ac_objext; then
23793 :
23794else
23795 $as_echo "$as_me: failed program was:" >&5
23796sed 's/^/| /' conftest.$ac_ext >&5
23797
23798 ac_cv_type_ssize_t=yes
23799fi
23800
23801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23802else
23803 $as_echo "$as_me: failed program was:" >&5
23804sed 's/^/| /' conftest.$ac_ext >&5
23805
23806
23807fi
23808
23809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23810fi
23811{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23812$as_echo "$ac_cv_type_ssize_t" >&6; }
23813if test "x$ac_cv_type_ssize_t" = x""yes; then
23814 :
23815else
23816
23817cat >>confdefs.h <<_ACEOF
23818#define ssize_t int
23819_ACEOF
23820
23821fi
23822
23823
23824# If the C compiler supports a working long double type with more range
23825# or precision than the double type, define HAVE_LONG_DOUBLE.
23826
23827 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
23828$as_echo_n "checking for long double with more range or precision than double... " >&6; }
23829if test "${ac_cv_type_long_double_wider+set}" = set; then
23830 $as_echo_n "(cached) " >&6
23831else
23832 cat >conftest.$ac_ext <<_ACEOF
23833/* confdefs.h. */
23834_ACEOF
23835cat confdefs.h >>conftest.$ac_ext
23836cat >>conftest.$ac_ext <<_ACEOF
23837/* end confdefs.h. */
23838#include <float.h>
23839 long double const a[] =
23840 {
23841 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23842 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23843 };
23844 long double
23845 f (long double x)
23846 {
23847 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23848 + (x ? f (x) : 'c'));
23849 }
23850
23851int
23852main ()
23853{
23854static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23855 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23856 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23857 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23858 && (int) LDBL_EPSILON == 0
23859 )];
23860test_array [0] = 0
23861
23862 ;
23863 return 0;
23864}
23865_ACEOF
23866rm -f conftest.$ac_objext
23867if { (ac_try="$ac_compile"
23868case "(($ac_try" in
23869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23870 *) ac_try_echo=$ac_try;;
23871esac
23872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23873$as_echo "$ac_try_echo") >&5
23874 (eval "$ac_compile") 2>conftest.er1
23875 ac_status=$?
23876 grep -v '^ *+' conftest.er1 >conftest.err
23877 rm -f conftest.er1
23878 cat conftest.err >&5
23879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); } && {
23881 test -z "$ac_c_werror_flag" ||
23882 test ! -s conftest.err
23883 } && test -s conftest.$ac_objext; then
23884 ac_cv_type_long_double_wider=yes
23885else
23886 $as_echo "$as_me: failed program was:" >&5
23887sed 's/^/| /' conftest.$ac_ext >&5
23888
23889 ac_cv_type_long_double_wider=no
23890fi
23891
23892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23893fi
23894{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
23895$as_echo "$ac_cv_type_long_double_wider" >&6; }
23896 if test $ac_cv_type_long_double_wider = yes; then
23897
23898cat >>confdefs.h <<\_ACEOF
23899#define HAVE_LONG_DOUBLE_WIDER 1
23900_ACEOF
23901
23902 fi
23903
23904
23905# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23906# C compiler predefines it.
23907
23908{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
23909$as_echo_n "checking whether char is unsigned... " >&6; }
23910if test "${ac_cv_c_char_unsigned+set}" = set; then
23911 $as_echo_n "(cached) " >&6
23912else
23913 cat >conftest.$ac_ext <<_ACEOF
23914/* confdefs.h. */
23915_ACEOF
23916cat confdefs.h >>conftest.$ac_ext
23917cat >>conftest.$ac_ext <<_ACEOF
23918/* end confdefs.h. */
23919$ac_includes_default
23920int
23921main ()
23922{
23923static int test_array [1 - 2 * !(((char) -1) < 0)];
23924test_array [0] = 0
23925
23926 ;
23927 return 0;
23928}
23929_ACEOF
23930rm -f conftest.$ac_objext
23931if { (ac_try="$ac_compile"
23932case "(($ac_try" in
23933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23934 *) ac_try_echo=$ac_try;;
23935esac
23936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23937$as_echo "$ac_try_echo") >&5
23938 (eval "$ac_compile") 2>conftest.er1
23939 ac_status=$?
23940 grep -v '^ *+' conftest.er1 >conftest.err
23941 rm -f conftest.er1
23942 cat conftest.err >&5
23943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); } && {
23945 test -z "$ac_c_werror_flag" ||
23946 test ! -s conftest.err
23947 } && test -s conftest.$ac_objext; then
23948 ac_cv_c_char_unsigned=no
23949else
23950 $as_echo "$as_me: failed program was:" >&5
23951sed 's/^/| /' conftest.$ac_ext >&5
23952
23953 ac_cv_c_char_unsigned=yes
23954fi
23955
23956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23957fi
23958{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
23959$as_echo "$ac_cv_c_char_unsigned" >&6; }
23960if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23961 cat >>confdefs.h <<\_ACEOF
23962#define __CHAR_UNSIGNED__ 1
23963_ACEOF
23964
23965fi
23966
23967
23968# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23969# The cast to long int works around a bug in the HP C Compiler
23970# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23971# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23972# This bug is HP SR number 8606223364.
23973{ $as_echo "$as_me:$LINENO: checking size of signed short" >&5
23974$as_echo_n "checking size of signed short... " >&6; }
23975if test "${ac_cv_sizeof_signed_short+set}" = set; then
23976 $as_echo_n "(cached) " >&6
23977else
23978 if test "$cross_compiling" = yes; then
23979 # Depending upon the size, compute the lo and hi bounds.
23980cat >conftest.$ac_ext <<_ACEOF
23981/* confdefs.h. */
23982_ACEOF
23983cat confdefs.h >>conftest.$ac_ext
23984cat >>conftest.$ac_ext <<_ACEOF
23985/* end confdefs.h. */
23986$ac_includes_default
23987int
23988main ()
23989{
23990static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
23991test_array [0] = 0
23992
23993 ;
23994 return 0;
23995}
23996_ACEOF
23997rm -f conftest.$ac_objext
23998if { (ac_try="$ac_compile"
23999case "(($ac_try" in
24000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24001 *) ac_try_echo=$ac_try;;
24002esac
24003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24004$as_echo "$ac_try_echo") >&5
24005 (eval "$ac_compile") 2>conftest.er1
24006 ac_status=$?
24007 grep -v '^ *+' conftest.er1 >conftest.err
24008 rm -f conftest.er1
24009 cat conftest.err >&5
24010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); } && {
24012 test -z "$ac_c_werror_flag" ||
24013 test ! -s conftest.err
24014 } && test -s conftest.$ac_objext; then
24015 ac_lo=0 ac_mid=0
24016 while :; do
24017 cat >conftest.$ac_ext <<_ACEOF
24018/* confdefs.h. */
24019_ACEOF
24020cat confdefs.h >>conftest.$ac_ext
24021cat >>conftest.$ac_ext <<_ACEOF
24022/* end confdefs.h. */
24023$ac_includes_default
24024int
24025main ()
24026{
24027static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
24028test_array [0] = 0
24029
24030 ;
24031 return 0;
24032}
24033_ACEOF
24034rm -f conftest.$ac_objext
24035if { (ac_try="$ac_compile"
24036case "(($ac_try" in
24037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038 *) ac_try_echo=$ac_try;;
24039esac
24040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24041$as_echo "$ac_try_echo") >&5
24042 (eval "$ac_compile") 2>conftest.er1
24043 ac_status=$?
24044 grep -v '^ *+' conftest.er1 >conftest.err
24045 rm -f conftest.er1
24046 cat conftest.err >&5
24047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); } && {
24049 test -z "$ac_c_werror_flag" ||
24050 test ! -s conftest.err
24051 } && test -s conftest.$ac_objext; then
24052 ac_hi=$ac_mid; break
24053else
24054 $as_echo "$as_me: failed program was:" >&5
24055sed 's/^/| /' conftest.$ac_ext >&5
24056
24057 ac_lo=`expr $ac_mid + 1`
24058 if test $ac_lo -le $ac_mid; then
24059 ac_lo= ac_hi=
24060 break
24061 fi
24062 ac_mid=`expr 2 '*' $ac_mid + 1`
24063fi
24064
24065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24066 done
24067else
24068 $as_echo "$as_me: failed program was:" >&5
24069sed 's/^/| /' conftest.$ac_ext >&5
24070
24071 cat >conftest.$ac_ext <<_ACEOF
24072/* confdefs.h. */
24073_ACEOF
24074cat confdefs.h >>conftest.$ac_ext
24075cat >>conftest.$ac_ext <<_ACEOF
24076/* end confdefs.h. */
24077$ac_includes_default
24078int
24079main ()
24080{
24081static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
24082test_array [0] = 0
24083
24084 ;
24085 return 0;
24086}
24087_ACEOF
24088rm -f conftest.$ac_objext
24089if { (ac_try="$ac_compile"
24090case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24093esac
24094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24095$as_echo "$ac_try_echo") >&5
24096 (eval "$ac_compile") 2>conftest.er1
24097 ac_status=$?
24098 grep -v '^ *+' conftest.er1 >conftest.err
24099 rm -f conftest.er1
24100 cat conftest.err >&5
24101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } && {
24103 test -z "$ac_c_werror_flag" ||
24104 test ! -s conftest.err
24105 } && test -s conftest.$ac_objext; then
24106 ac_hi=-1 ac_mid=-1
24107 while :; do
24108 cat >conftest.$ac_ext <<_ACEOF
24109/* confdefs.h. */
24110_ACEOF
24111cat confdefs.h >>conftest.$ac_ext
24112cat >>conftest.$ac_ext <<_ACEOF
24113/* end confdefs.h. */
24114$ac_includes_default
24115int
24116main ()
24117{
24118static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
24119test_array [0] = 0
24120
24121 ;
24122 return 0;
24123}
24124_ACEOF
24125rm -f conftest.$ac_objext
24126if { (ac_try="$ac_compile"
24127case "(($ac_try" in
24128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129 *) ac_try_echo=$ac_try;;
24130esac
24131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24132$as_echo "$ac_try_echo") >&5
24133 (eval "$ac_compile") 2>conftest.er1
24134 ac_status=$?
24135 grep -v '^ *+' conftest.er1 >conftest.err
24136 rm -f conftest.er1
24137 cat conftest.err >&5
24138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } && {
24140 test -z "$ac_c_werror_flag" ||
24141 test ! -s conftest.err
24142 } && test -s conftest.$ac_objext; then
24143 ac_lo=$ac_mid; break
24144else
24145 $as_echo "$as_me: failed program was:" >&5
24146sed 's/^/| /' conftest.$ac_ext >&5
24147
24148 ac_hi=`expr '(' $ac_mid ')' - 1`
24149 if test $ac_mid -le $ac_hi; then
24150 ac_lo= ac_hi=
24151 break
24152 fi
24153 ac_mid=`expr 2 '*' $ac_mid`
24154fi
24155
24156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24157 done
24158else
24159 $as_echo "$as_me: failed program was:" >&5
24160sed 's/^/| /' conftest.$ac_ext >&5
24161
24162 ac_lo= ac_hi=
24163fi
24164
24165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24166fi
24167
24168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24169# Binary search between lo and hi bounds.
24170while test "x$ac_lo" != "x$ac_hi"; do
24171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24172 cat >conftest.$ac_ext <<_ACEOF
24173/* confdefs.h. */
24174_ACEOF
24175cat confdefs.h >>conftest.$ac_ext
24176cat >>conftest.$ac_ext <<_ACEOF
24177/* end confdefs.h. */
24178$ac_includes_default
24179int
24180main ()
24181{
24182static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
24183test_array [0] = 0
24184
24185 ;
24186 return 0;
24187}
24188_ACEOF
24189rm -f conftest.$ac_objext
24190if { (ac_try="$ac_compile"
24191case "(($ac_try" in
24192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193 *) ac_try_echo=$ac_try;;
24194esac
24195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24196$as_echo "$ac_try_echo") >&5
24197 (eval "$ac_compile") 2>conftest.er1
24198 ac_status=$?
24199 grep -v '^ *+' conftest.er1 >conftest.err
24200 rm -f conftest.er1
24201 cat conftest.err >&5
24202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); } && {
24204 test -z "$ac_c_werror_flag" ||
24205 test ! -s conftest.err
24206 } && test -s conftest.$ac_objext; then
24207 ac_hi=$ac_mid
24208else
24209 $as_echo "$as_me: failed program was:" >&5
24210sed 's/^/| /' conftest.$ac_ext >&5
24211
24212 ac_lo=`expr '(' $ac_mid ')' + 1`
24213fi
24214
24215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24216done
24217case $ac_lo in
24218?*) ac_cv_sizeof_signed_short=$ac_lo;;
24219'') if test "$ac_cv_type_signed_short" = yes; then
24220 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24222{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
24223See \`config.log' for more details." >&5
24224$as_echo "$as_me: error: cannot compute sizeof (signed short)
24225See \`config.log' for more details." >&2;}
24226 { (exit 77); exit 77; }; }; }
24227 else
24228 ac_cv_sizeof_signed_short=0
24229 fi ;;
24230esac
24231else
24232 cat >conftest.$ac_ext <<_ACEOF
24233/* confdefs.h. */
24234_ACEOF
24235cat confdefs.h >>conftest.$ac_ext
24236cat >>conftest.$ac_ext <<_ACEOF
24237/* end confdefs.h. */
24238$ac_includes_default
24239static long int longval () { return (long int) (sizeof (signed short)); }
24240static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
24241#include <stdio.h>
24242#include <stdlib.h>
24243int
24244main ()
24245{
24246
24247 FILE *f = fopen ("conftest.val", "w");
24248 if (! f)
24249 return 1;
24250 if (((long int) (sizeof (signed short))) < 0)
24251 {
24252 long int i = longval ();
24253 if (i != ((long int) (sizeof (signed short))))
24254 return 1;
24255 fprintf (f, "%ld", i);
24256 }
24257 else
24258 {
24259 unsigned long int i = ulongval ();
24260 if (i != ((long int) (sizeof (signed short))))
24261 return 1;
24262 fprintf (f, "%lu", i);
24263 }
24264 /* Do not output a trailing newline, as this causes \r\n confusion
24265 on some platforms. */
24266 return ferror (f) || fclose (f) != 0;
24267
24268 ;
24269 return 0;
24270}
24271_ACEOF
24272rm -f conftest$ac_exeext
24273if { (ac_try="$ac_link"
24274case "(($ac_try" in
24275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24276 *) ac_try_echo=$ac_try;;
24277esac
24278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24279$as_echo "$ac_try_echo") >&5
24280 (eval "$ac_link") 2>&5
24281 ac_status=$?
24282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24284 { (case "(($ac_try" in
24285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24286 *) ac_try_echo=$ac_try;;
24287esac
24288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24289$as_echo "$ac_try_echo") >&5
24290 (eval "$ac_try") 2>&5
24291 ac_status=$?
24292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293 (exit $ac_status); }; }; then
24294 ac_cv_sizeof_signed_short=`cat conftest.val`
24295else
24296 $as_echo "$as_me: program exited with status $ac_status" >&5
24297$as_echo "$as_me: failed program was:" >&5
24298sed 's/^/| /' conftest.$ac_ext >&5
24299
24300( exit $ac_status )
24301if test "$ac_cv_type_signed_short" = yes; then
24302 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24304{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
24305See \`config.log' for more details." >&5
24306$as_echo "$as_me: error: cannot compute sizeof (signed short)
24307See \`config.log' for more details." >&2;}
24308 { (exit 77); exit 77; }; }; }
24309 else
24310 ac_cv_sizeof_signed_short=0
24311 fi
24312fi
24313rm -rf conftest.dSYM
24314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24315fi
24316rm -f conftest.val
24317fi
24318{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
24319$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24320
24321
24322
24323cat >>confdefs.h <<_ACEOF
24324#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24325_ACEOF
24326
24327
24328
24329# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24330# The cast to long int works around a bug in the HP C Compiler
24331# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24332# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24333# This bug is HP SR number 8606223364.
24334{ $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
24335$as_echo_n "checking size of unsigned short... " >&6; }
24336if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
24337 $as_echo_n "(cached) " >&6
24338else
24339 if test "$cross_compiling" = yes; then
24340 # Depending upon the size, compute the lo and hi bounds.
24341cat >conftest.$ac_ext <<_ACEOF
24342/* confdefs.h. */
24343_ACEOF
24344cat confdefs.h >>conftest.$ac_ext
24345cat >>conftest.$ac_ext <<_ACEOF
24346/* end confdefs.h. */
24347$ac_includes_default
24348int
24349main ()
24350{
24351static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
24352test_array [0] = 0
24353
24354 ;
24355 return 0;
24356}
24357_ACEOF
24358rm -f conftest.$ac_objext
24359if { (ac_try="$ac_compile"
24360case "(($ac_try" in
24361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24362 *) ac_try_echo=$ac_try;;
24363esac
24364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24365$as_echo "$ac_try_echo") >&5
24366 (eval "$ac_compile") 2>conftest.er1
24367 ac_status=$?
24368 grep -v '^ *+' conftest.er1 >conftest.err
24369 rm -f conftest.er1
24370 cat conftest.err >&5
24371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); } && {
24373 test -z "$ac_c_werror_flag" ||
24374 test ! -s conftest.err
24375 } && test -s conftest.$ac_objext; then
24376 ac_lo=0 ac_mid=0
24377 while :; do
24378 cat >conftest.$ac_ext <<_ACEOF
24379/* confdefs.h. */
24380_ACEOF
24381cat confdefs.h >>conftest.$ac_ext
24382cat >>conftest.$ac_ext <<_ACEOF
24383/* end confdefs.h. */
24384$ac_includes_default
24385int
24386main ()
24387{
24388static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
24389test_array [0] = 0
24390
24391 ;
24392 return 0;
24393}
24394_ACEOF
24395rm -f conftest.$ac_objext
24396if { (ac_try="$ac_compile"
24397case "(($ac_try" in
24398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24399 *) ac_try_echo=$ac_try;;
24400esac
24401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24402$as_echo "$ac_try_echo") >&5
24403 (eval "$ac_compile") 2>conftest.er1
24404 ac_status=$?
24405 grep -v '^ *+' conftest.er1 >conftest.err
24406 rm -f conftest.er1
24407 cat conftest.err >&5
24408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); } && {
24410 test -z "$ac_c_werror_flag" ||
24411 test ! -s conftest.err
24412 } && test -s conftest.$ac_objext; then
24413 ac_hi=$ac_mid; break
24414else
24415 $as_echo "$as_me: failed program was:" >&5
24416sed 's/^/| /' conftest.$ac_ext >&5
24417
24418 ac_lo=`expr $ac_mid + 1`
24419 if test $ac_lo -le $ac_mid; then
24420 ac_lo= ac_hi=
24421 break
24422 fi
24423 ac_mid=`expr 2 '*' $ac_mid + 1`
24424fi
24425
24426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24427 done
24428else
24429 $as_echo "$as_me: failed program was:" >&5
24430sed 's/^/| /' conftest.$ac_ext >&5
24431
24432 cat >conftest.$ac_ext <<_ACEOF
24433/* confdefs.h. */
24434_ACEOF
24435cat confdefs.h >>conftest.$ac_ext
24436cat >>conftest.$ac_ext <<_ACEOF
24437/* end confdefs.h. */
24438$ac_includes_default
24439int
24440main ()
24441{
24442static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
24443test_array [0] = 0
24444
24445 ;
24446 return 0;
24447}
24448_ACEOF
24449rm -f conftest.$ac_objext
24450if { (ac_try="$ac_compile"
24451case "(($ac_try" in
24452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24453 *) ac_try_echo=$ac_try;;
24454esac
24455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24456$as_echo "$ac_try_echo") >&5
24457 (eval "$ac_compile") 2>conftest.er1
24458 ac_status=$?
24459 grep -v '^ *+' conftest.er1 >conftest.err
24460 rm -f conftest.er1
24461 cat conftest.err >&5
24462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); } && {
24464 test -z "$ac_c_werror_flag" ||
24465 test ! -s conftest.err
24466 } && test -s conftest.$ac_objext; then
24467 ac_hi=-1 ac_mid=-1
24468 while :; do
24469 cat >conftest.$ac_ext <<_ACEOF
24470/* confdefs.h. */
24471_ACEOF
24472cat confdefs.h >>conftest.$ac_ext
24473cat >>conftest.$ac_ext <<_ACEOF
24474/* end confdefs.h. */
24475$ac_includes_default
24476int
24477main ()
24478{
24479static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
24480test_array [0] = 0
24481
24482 ;
24483 return 0;
24484}
24485_ACEOF
24486rm -f conftest.$ac_objext
24487if { (ac_try="$ac_compile"
24488case "(($ac_try" in
24489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24490 *) ac_try_echo=$ac_try;;
24491esac
24492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24493$as_echo "$ac_try_echo") >&5
24494 (eval "$ac_compile") 2>conftest.er1
24495 ac_status=$?
24496 grep -v '^ *+' conftest.er1 >conftest.err
24497 rm -f conftest.er1
24498 cat conftest.err >&5
24499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); } && {
24501 test -z "$ac_c_werror_flag" ||
24502 test ! -s conftest.err
24503 } && test -s conftest.$ac_objext; then
24504 ac_lo=$ac_mid; break
24505else
24506 $as_echo "$as_me: failed program was:" >&5
24507sed 's/^/| /' conftest.$ac_ext >&5
24508
24509 ac_hi=`expr '(' $ac_mid ')' - 1`
24510 if test $ac_mid -le $ac_hi; then
24511 ac_lo= ac_hi=
24512 break
24513 fi
24514 ac_mid=`expr 2 '*' $ac_mid`
24515fi
24516
24517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24518 done
24519else
24520 $as_echo "$as_me: failed program was:" >&5
24521sed 's/^/| /' conftest.$ac_ext >&5
24522
24523 ac_lo= ac_hi=
24524fi
24525
24526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24527fi
24528
24529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530# Binary search between lo and hi bounds.
24531while test "x$ac_lo" != "x$ac_hi"; do
24532 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24533 cat >conftest.$ac_ext <<_ACEOF
24534/* confdefs.h. */
24535_ACEOF
24536cat confdefs.h >>conftest.$ac_ext
24537cat >>conftest.$ac_ext <<_ACEOF
24538/* end confdefs.h. */
24539$ac_includes_default
24540int
24541main ()
24542{
24543static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
24544test_array [0] = 0
24545
24546 ;
24547 return 0;
24548}
24549_ACEOF
24550rm -f conftest.$ac_objext
24551if { (ac_try="$ac_compile"
24552case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24555esac
24556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24557$as_echo "$ac_try_echo") >&5
24558 (eval "$ac_compile") 2>conftest.er1
24559 ac_status=$?
24560 grep -v '^ *+' conftest.er1 >conftest.err
24561 rm -f conftest.er1
24562 cat conftest.err >&5
24563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); } && {
24565 test -z "$ac_c_werror_flag" ||
24566 test ! -s conftest.err
24567 } && test -s conftest.$ac_objext; then
24568 ac_hi=$ac_mid
24569else
24570 $as_echo "$as_me: failed program was:" >&5
24571sed 's/^/| /' conftest.$ac_ext >&5
24572
24573 ac_lo=`expr '(' $ac_mid ')' + 1`
24574fi
24575
24576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24577done
24578case $ac_lo in
24579?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
24580'') if test "$ac_cv_type_unsigned_short" = yes; then
24581 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24583{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24584See \`config.log' for more details." >&5
24585$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
24586See \`config.log' for more details." >&2;}
24587 { (exit 77); exit 77; }; }; }
24588 else
24589 ac_cv_sizeof_unsigned_short=0
24590 fi ;;
24591esac
24592else
24593 cat >conftest.$ac_ext <<_ACEOF
24594/* confdefs.h. */
24595_ACEOF
24596cat confdefs.h >>conftest.$ac_ext
24597cat >>conftest.$ac_ext <<_ACEOF
24598/* end confdefs.h. */
24599$ac_includes_default
24600static long int longval () { return (long int) (sizeof (unsigned short)); }
24601static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
24602#include <stdio.h>
24603#include <stdlib.h>
24604int
24605main ()
24606{
24607
24608 FILE *f = fopen ("conftest.val", "w");
24609 if (! f)
24610 return 1;
24611 if (((long int) (sizeof (unsigned short))) < 0)
24612 {
24613 long int i = longval ();
24614 if (i != ((long int) (sizeof (unsigned short))))
24615 return 1;
24616 fprintf (f, "%ld", i);
24617 }
24618 else
24619 {
24620 unsigned long int i = ulongval ();
24621 if (i != ((long int) (sizeof (unsigned short))))
24622 return 1;
24623 fprintf (f, "%lu", i);
24624 }
24625 /* Do not output a trailing newline, as this causes \r\n confusion
24626 on some platforms. */
24627 return ferror (f) || fclose (f) != 0;
24628
24629 ;
24630 return 0;
24631}
24632_ACEOF
24633rm -f conftest$ac_exeext
24634if { (ac_try="$ac_link"
24635case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24638esac
24639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24640$as_echo "$ac_try_echo") >&5
24641 (eval "$ac_link") 2>&5
24642 ac_status=$?
24643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24645 { (case "(($ac_try" in
24646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24647 *) ac_try_echo=$ac_try;;
24648esac
24649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24650$as_echo "$ac_try_echo") >&5
24651 (eval "$ac_try") 2>&5
24652 ac_status=$?
24653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); }; }; then
24655 ac_cv_sizeof_unsigned_short=`cat conftest.val`
24656else
24657 $as_echo "$as_me: program exited with status $ac_status" >&5
24658$as_echo "$as_me: failed program was:" >&5
24659sed 's/^/| /' conftest.$ac_ext >&5
24660
24661( exit $ac_status )
24662if test "$ac_cv_type_unsigned_short" = yes; then
24663 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24665{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24666See \`config.log' for more details." >&5
24667$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
24668See \`config.log' for more details." >&2;}
24669 { (exit 77); exit 77; }; }; }
24670 else
24671 ac_cv_sizeof_unsigned_short=0
24672 fi
24673fi
24674rm -rf conftest.dSYM
24675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24676fi
24677rm -f conftest.val
24678fi
24679{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
24680$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24681
24682
24683
24684cat >>confdefs.h <<_ACEOF
24685#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24686_ACEOF
24687
24688
24689
24690# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24691# The cast to long int works around a bug in the HP C Compiler
24692# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24693# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24694# This bug is HP SR number 8606223364.
24695{ $as_echo "$as_me:$LINENO: checking size of signed int" >&5
24696$as_echo_n "checking size of signed int... " >&6; }
24697if test "${ac_cv_sizeof_signed_int+set}" = set; then
24698 $as_echo_n "(cached) " >&6
24699else
24700 if test "$cross_compiling" = yes; then
24701 # Depending upon the size, compute the lo and hi bounds.
24702cat >conftest.$ac_ext <<_ACEOF
24703/* confdefs.h. */
24704_ACEOF
24705cat confdefs.h >>conftest.$ac_ext
24706cat >>conftest.$ac_ext <<_ACEOF
24707/* end confdefs.h. */
24708$ac_includes_default
24709int
24710main ()
24711{
24712static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= 0)];
24713test_array [0] = 0
24714
24715 ;
24716 return 0;
24717}
24718_ACEOF
24719rm -f conftest.$ac_objext
24720if { (ac_try="$ac_compile"
24721case "(($ac_try" in
24722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723 *) ac_try_echo=$ac_try;;
24724esac
24725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24726$as_echo "$ac_try_echo") >&5
24727 (eval "$ac_compile") 2>conftest.er1
24728 ac_status=$?
24729 grep -v '^ *+' conftest.er1 >conftest.err
24730 rm -f conftest.er1
24731 cat conftest.err >&5
24732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); } && {
24734 test -z "$ac_c_werror_flag" ||
24735 test ! -s conftest.err
24736 } && test -s conftest.$ac_objext; then
24737 ac_lo=0 ac_mid=0
24738 while :; do
24739 cat >conftest.$ac_ext <<_ACEOF
24740/* confdefs.h. */
24741_ACEOF
24742cat confdefs.h >>conftest.$ac_ext
24743cat >>conftest.$ac_ext <<_ACEOF
24744/* end confdefs.h. */
24745$ac_includes_default
24746int
24747main ()
24748{
24749static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
24750test_array [0] = 0
24751
24752 ;
24753 return 0;
24754}
24755_ACEOF
24756rm -f conftest.$ac_objext
24757if { (ac_try="$ac_compile"
24758case "(($ac_try" in
24759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760 *) ac_try_echo=$ac_try;;
24761esac
24762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24763$as_echo "$ac_try_echo") >&5
24764 (eval "$ac_compile") 2>conftest.er1
24765 ac_status=$?
24766 grep -v '^ *+' conftest.er1 >conftest.err
24767 rm -f conftest.er1
24768 cat conftest.err >&5
24769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } && {
24771 test -z "$ac_c_werror_flag" ||
24772 test ! -s conftest.err
24773 } && test -s conftest.$ac_objext; then
24774 ac_hi=$ac_mid; break
24775else
24776 $as_echo "$as_me: failed program was:" >&5
24777sed 's/^/| /' conftest.$ac_ext >&5
24778
24779 ac_lo=`expr $ac_mid + 1`
24780 if test $ac_lo -le $ac_mid; then
24781 ac_lo= ac_hi=
24782 break
24783 fi
24784 ac_mid=`expr 2 '*' $ac_mid + 1`
24785fi
24786
24787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24788 done
24789else
24790 $as_echo "$as_me: failed program was:" >&5
24791sed 's/^/| /' conftest.$ac_ext >&5
24792
24793 cat >conftest.$ac_ext <<_ACEOF
24794/* confdefs.h. */
24795_ACEOF
24796cat confdefs.h >>conftest.$ac_ext
24797cat >>conftest.$ac_ext <<_ACEOF
24798/* end confdefs.h. */
24799$ac_includes_default
24800int
24801main ()
24802{
24803static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) < 0)];
24804test_array [0] = 0
24805
24806 ;
24807 return 0;
24808}
24809_ACEOF
24810rm -f conftest.$ac_objext
24811if { (ac_try="$ac_compile"
24812case "(($ac_try" in
24813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814 *) ac_try_echo=$ac_try;;
24815esac
24816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24817$as_echo "$ac_try_echo") >&5
24818 (eval "$ac_compile") 2>conftest.er1
24819 ac_status=$?
24820 grep -v '^ *+' conftest.er1 >conftest.err
24821 rm -f conftest.er1
24822 cat conftest.err >&5
24823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); } && {
24825 test -z "$ac_c_werror_flag" ||
24826 test ! -s conftest.err
24827 } && test -s conftest.$ac_objext; then
24828 ac_hi=-1 ac_mid=-1
24829 while :; do
24830 cat >conftest.$ac_ext <<_ACEOF
24831/* confdefs.h. */
24832_ACEOF
24833cat confdefs.h >>conftest.$ac_ext
24834cat >>conftest.$ac_ext <<_ACEOF
24835/* end confdefs.h. */
24836$ac_includes_default
24837int
24838main ()
24839{
24840static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= $ac_mid)];
24841test_array [0] = 0
24842
24843 ;
24844 return 0;
24845}
24846_ACEOF
24847rm -f conftest.$ac_objext
24848if { (ac_try="$ac_compile"
24849case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24852esac
24853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24854$as_echo "$ac_try_echo") >&5
24855 (eval "$ac_compile") 2>conftest.er1
24856 ac_status=$?
24857 grep -v '^ *+' conftest.er1 >conftest.err
24858 rm -f conftest.er1
24859 cat conftest.err >&5
24860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } && {
24862 test -z "$ac_c_werror_flag" ||
24863 test ! -s conftest.err
24864 } && test -s conftest.$ac_objext; then
24865 ac_lo=$ac_mid; break
24866else
24867 $as_echo "$as_me: failed program was:" >&5
24868sed 's/^/| /' conftest.$ac_ext >&5
24869
24870 ac_hi=`expr '(' $ac_mid ')' - 1`
24871 if test $ac_mid -le $ac_hi; then
24872 ac_lo= ac_hi=
24873 break
24874 fi
24875 ac_mid=`expr 2 '*' $ac_mid`
24876fi
24877
24878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24879 done
24880else
24881 $as_echo "$as_me: failed program was:" >&5
24882sed 's/^/| /' conftest.$ac_ext >&5
24883
24884 ac_lo= ac_hi=
24885fi
24886
24887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24888fi
24889
24890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891# Binary search between lo and hi bounds.
24892while test "x$ac_lo" != "x$ac_hi"; do
24893 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24894 cat >conftest.$ac_ext <<_ACEOF
24895/* confdefs.h. */
24896_ACEOF
24897cat confdefs.h >>conftest.$ac_ext
24898cat >>conftest.$ac_ext <<_ACEOF
24899/* end confdefs.h. */
24900$ac_includes_default
24901int
24902main ()
24903{
24904static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
24905test_array [0] = 0
24906
24907 ;
24908 return 0;
24909}
24910_ACEOF
24911rm -f conftest.$ac_objext
24912if { (ac_try="$ac_compile"
24913case "(($ac_try" in
24914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24916esac
24917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24918$as_echo "$ac_try_echo") >&5
24919 (eval "$ac_compile") 2>conftest.er1
24920 ac_status=$?
24921 grep -v '^ *+' conftest.er1 >conftest.err
24922 rm -f conftest.er1
24923 cat conftest.err >&5
24924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } && {
24926 test -z "$ac_c_werror_flag" ||
24927 test ! -s conftest.err
24928 } && test -s conftest.$ac_objext; then
24929 ac_hi=$ac_mid
24930else
24931 $as_echo "$as_me: failed program was:" >&5
24932sed 's/^/| /' conftest.$ac_ext >&5
24933
24934 ac_lo=`expr '(' $ac_mid ')' + 1`
24935fi
24936
24937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24938done
24939case $ac_lo in
24940?*) ac_cv_sizeof_signed_int=$ac_lo;;
24941'') if test "$ac_cv_type_signed_int" = yes; then
24942 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24944{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
24945See \`config.log' for more details." >&5
24946$as_echo "$as_me: error: cannot compute sizeof (signed int)
24947See \`config.log' for more details." >&2;}
24948 { (exit 77); exit 77; }; }; }
24949 else
24950 ac_cv_sizeof_signed_int=0
24951 fi ;;
24952esac
24953else
24954 cat >conftest.$ac_ext <<_ACEOF
24955/* confdefs.h. */
24956_ACEOF
24957cat confdefs.h >>conftest.$ac_ext
24958cat >>conftest.$ac_ext <<_ACEOF
24959/* end confdefs.h. */
24960$ac_includes_default
24961static long int longval () { return (long int) (sizeof (signed int)); }
24962static unsigned long int ulongval () { return (long int) (sizeof (signed int)); }
24963#include <stdio.h>
24964#include <stdlib.h>
24965int
24966main ()
24967{
24968
24969 FILE *f = fopen ("conftest.val", "w");
24970 if (! f)
24971 return 1;
24972 if (((long int) (sizeof (signed int))) < 0)
24973 {
24974 long int i = longval ();
24975 if (i != ((long int) (sizeof (signed int))))
24976 return 1;
24977 fprintf (f, "%ld", i);
24978 }
24979 else
24980 {
24981 unsigned long int i = ulongval ();
24982 if (i != ((long int) (sizeof (signed int))))
24983 return 1;
24984 fprintf (f, "%lu", i);
24985 }
24986 /* Do not output a trailing newline, as this causes \r\n confusion
24987 on some platforms. */
24988 return ferror (f) || fclose (f) != 0;
24989
24990 ;
24991 return 0;
24992}
24993_ACEOF
24994rm -f conftest$ac_exeext
24995if { (ac_try="$ac_link"
24996case "(($ac_try" in
24997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998 *) ac_try_echo=$ac_try;;
24999esac
25000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25001$as_echo "$ac_try_echo") >&5
25002 (eval "$ac_link") 2>&5
25003 ac_status=$?
25004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25006 { (case "(($ac_try" in
25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25009esac
25010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25011$as_echo "$ac_try_echo") >&5
25012 (eval "$ac_try") 2>&5
25013 ac_status=$?
25014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; }; then
25016 ac_cv_sizeof_signed_int=`cat conftest.val`
25017else
25018 $as_echo "$as_me: program exited with status $ac_status" >&5
25019$as_echo "$as_me: failed program was:" >&5
25020sed 's/^/| /' conftest.$ac_ext >&5
25021
25022( exit $ac_status )
25023if test "$ac_cv_type_signed_int" = yes; then
25024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25026{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
25027See \`config.log' for more details." >&5
25028$as_echo "$as_me: error: cannot compute sizeof (signed int)
25029See \`config.log' for more details." >&2;}
25030 { (exit 77); exit 77; }; }; }
25031 else
25032 ac_cv_sizeof_signed_int=0
25033 fi
25034fi
25035rm -rf conftest.dSYM
25036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25037fi
25038rm -f conftest.val
25039fi
25040{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_int" >&5
25041$as_echo "$ac_cv_sizeof_signed_int" >&6; }
25042
25043
25044
25045cat >>confdefs.h <<_ACEOF
25046#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
25047_ACEOF
25048
25049
25050
25051# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
25052# The cast to long int works around a bug in the HP C Compiler
25053# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25054# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25055# This bug is HP SR number 8606223364.
25056{ $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
25057$as_echo_n "checking size of unsigned int... " >&6; }
25058if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
25059 $as_echo_n "(cached) " >&6
25060else
25061 if test "$cross_compiling" = yes; then
25062 # Depending upon the size, compute the lo and hi bounds.
25063cat >conftest.$ac_ext <<_ACEOF
25064/* confdefs.h. */
25065_ACEOF
25066cat confdefs.h >>conftest.$ac_ext
25067cat >>conftest.$ac_ext <<_ACEOF
25068/* end confdefs.h. */
25069$ac_includes_default
25070int
25071main ()
25072{
25073static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
25074test_array [0] = 0
25075
25076 ;
25077 return 0;
25078}
25079_ACEOF
25080rm -f conftest.$ac_objext
25081if { (ac_try="$ac_compile"
25082case "(($ac_try" in
25083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25084 *) ac_try_echo=$ac_try;;
25085esac
25086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25087$as_echo "$ac_try_echo") >&5
25088 (eval "$ac_compile") 2>conftest.er1
25089 ac_status=$?
25090 grep -v '^ *+' conftest.er1 >conftest.err
25091 rm -f conftest.er1
25092 cat conftest.err >&5
25093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); } && {
25095 test -z "$ac_c_werror_flag" ||
25096 test ! -s conftest.err
25097 } && test -s conftest.$ac_objext; then
25098 ac_lo=0 ac_mid=0
25099 while :; do
25100 cat >conftest.$ac_ext <<_ACEOF
25101/* confdefs.h. */
25102_ACEOF
25103cat confdefs.h >>conftest.$ac_ext
25104cat >>conftest.$ac_ext <<_ACEOF
25105/* end confdefs.h. */
25106$ac_includes_default
25107int
25108main ()
25109{
25110static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
25111test_array [0] = 0
25112
25113 ;
25114 return 0;
25115}
25116_ACEOF
25117rm -f conftest.$ac_objext
25118if { (ac_try="$ac_compile"
25119case "(($ac_try" in
25120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121 *) ac_try_echo=$ac_try;;
25122esac
25123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25124$as_echo "$ac_try_echo") >&5
25125 (eval "$ac_compile") 2>conftest.er1
25126 ac_status=$?
25127 grep -v '^ *+' conftest.er1 >conftest.err
25128 rm -f conftest.er1
25129 cat conftest.err >&5
25130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } && {
25132 test -z "$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25134 } && test -s conftest.$ac_objext; then
25135 ac_hi=$ac_mid; break
25136else
25137 $as_echo "$as_me: failed program was:" >&5
25138sed 's/^/| /' conftest.$ac_ext >&5
25139
25140 ac_lo=`expr $ac_mid + 1`
25141 if test $ac_lo -le $ac_mid; then
25142 ac_lo= ac_hi=
25143 break
25144 fi
25145 ac_mid=`expr 2 '*' $ac_mid + 1`
25146fi
25147
25148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25149 done
25150else
25151 $as_echo "$as_me: failed program was:" >&5
25152sed 's/^/| /' conftest.$ac_ext >&5
25153
25154 cat >conftest.$ac_ext <<_ACEOF
25155/* confdefs.h. */
25156_ACEOF
25157cat confdefs.h >>conftest.$ac_ext
25158cat >>conftest.$ac_ext <<_ACEOF
25159/* end confdefs.h. */
25160$ac_includes_default
25161int
25162main ()
25163{
25164static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
25165test_array [0] = 0
25166
25167 ;
25168 return 0;
25169}
25170_ACEOF
25171rm -f conftest.$ac_objext
25172if { (ac_try="$ac_compile"
25173case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25176esac
25177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25178$as_echo "$ac_try_echo") >&5
25179 (eval "$ac_compile") 2>conftest.er1
25180 ac_status=$?
25181 grep -v '^ *+' conftest.er1 >conftest.err
25182 rm -f conftest.er1
25183 cat conftest.err >&5
25184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } && {
25186 test -z "$ac_c_werror_flag" ||
25187 test ! -s conftest.err
25188 } && test -s conftest.$ac_objext; then
25189 ac_hi=-1 ac_mid=-1
25190 while :; do
25191 cat >conftest.$ac_ext <<_ACEOF
25192/* confdefs.h. */
25193_ACEOF
25194cat confdefs.h >>conftest.$ac_ext
25195cat >>conftest.$ac_ext <<_ACEOF
25196/* end confdefs.h. */
25197$ac_includes_default
25198int
25199main ()
25200{
25201static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
25202test_array [0] = 0
25203
25204 ;
25205 return 0;
25206}
25207_ACEOF
25208rm -f conftest.$ac_objext
25209if { (ac_try="$ac_compile"
25210case "(($ac_try" in
25211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212 *) ac_try_echo=$ac_try;;
25213esac
25214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25215$as_echo "$ac_try_echo") >&5
25216 (eval "$ac_compile") 2>conftest.er1
25217 ac_status=$?
25218 grep -v '^ *+' conftest.er1 >conftest.err
25219 rm -f conftest.er1
25220 cat conftest.err >&5
25221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); } && {
25223 test -z "$ac_c_werror_flag" ||
25224 test ! -s conftest.err
25225 } && test -s conftest.$ac_objext; then
25226 ac_lo=$ac_mid; break
25227else
25228 $as_echo "$as_me: failed program was:" >&5
25229sed 's/^/| /' conftest.$ac_ext >&5
25230
25231 ac_hi=`expr '(' $ac_mid ')' - 1`
25232 if test $ac_mid -le $ac_hi; then
25233 ac_lo= ac_hi=
25234 break
25235 fi
25236 ac_mid=`expr 2 '*' $ac_mid`
25237fi
25238
25239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25240 done
25241else
25242 $as_echo "$as_me: failed program was:" >&5
25243sed 's/^/| /' conftest.$ac_ext >&5
25244
25245 ac_lo= ac_hi=
25246fi
25247
25248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25249fi
25250
25251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25252# Binary search between lo and hi bounds.
25253while test "x$ac_lo" != "x$ac_hi"; do
25254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25255 cat >conftest.$ac_ext <<_ACEOF
25256/* confdefs.h. */
25257_ACEOF
25258cat confdefs.h >>conftest.$ac_ext
25259cat >>conftest.$ac_ext <<_ACEOF
25260/* end confdefs.h. */
25261$ac_includes_default
25262int
25263main ()
25264{
25265static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
25266test_array [0] = 0
25267
25268 ;
25269 return 0;
25270}
25271_ACEOF
25272rm -f conftest.$ac_objext
25273if { (ac_try="$ac_compile"
25274case "(($ac_try" in
25275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25276 *) ac_try_echo=$ac_try;;
25277esac
25278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25279$as_echo "$ac_try_echo") >&5
25280 (eval "$ac_compile") 2>conftest.er1
25281 ac_status=$?
25282 grep -v '^ *+' conftest.er1 >conftest.err
25283 rm -f conftest.er1
25284 cat conftest.err >&5
25285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); } && {
25287 test -z "$ac_c_werror_flag" ||
25288 test ! -s conftest.err
25289 } && test -s conftest.$ac_objext; then
25290 ac_hi=$ac_mid
25291else
25292 $as_echo "$as_me: failed program was:" >&5
25293sed 's/^/| /' conftest.$ac_ext >&5
25294
25295 ac_lo=`expr '(' $ac_mid ')' + 1`
25296fi
25297
25298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25299done
25300case $ac_lo in
25301?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
25302'') if test "$ac_cv_type_unsigned_int" = yes; then
25303 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25305{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
25306See \`config.log' for more details." >&5
25307$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
25308See \`config.log' for more details." >&2;}
25309 { (exit 77); exit 77; }; }; }
25310 else
25311 ac_cv_sizeof_unsigned_int=0
25312 fi ;;
25313esac
25314else
25315 cat >conftest.$ac_ext <<_ACEOF
25316/* confdefs.h. */
25317_ACEOF
25318cat confdefs.h >>conftest.$ac_ext
25319cat >>conftest.$ac_ext <<_ACEOF
25320/* end confdefs.h. */
25321$ac_includes_default
25322static long int longval () { return (long int) (sizeof (unsigned int)); }
25323static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
25324#include <stdio.h>
25325#include <stdlib.h>
25326int
25327main ()
25328{
25329
25330 FILE *f = fopen ("conftest.val", "w");
25331 if (! f)
25332 return 1;
25333 if (((long int) (sizeof (unsigned int))) < 0)
25334 {
25335 long int i = longval ();
25336 if (i != ((long int) (sizeof (unsigned int))))
25337 return 1;
25338 fprintf (f, "%ld", i);
25339 }
25340 else
25341 {
25342 unsigned long int i = ulongval ();
25343 if (i != ((long int) (sizeof (unsigned int))))
25344 return 1;
25345 fprintf (f, "%lu", i);
25346 }
25347 /* Do not output a trailing newline, as this causes \r\n confusion
25348 on some platforms. */
25349 return ferror (f) || fclose (f) != 0;
25350
25351 ;
25352 return 0;
25353}
25354_ACEOF
25355rm -f conftest$ac_exeext
25356if { (ac_try="$ac_link"
25357case "(($ac_try" in
25358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25359 *) ac_try_echo=$ac_try;;
25360esac
25361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25362$as_echo "$ac_try_echo") >&5
25363 (eval "$ac_link") 2>&5
25364 ac_status=$?
25365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25367 { (case "(($ac_try" in
25368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25369 *) ac_try_echo=$ac_try;;
25370esac
25371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25372$as_echo "$ac_try_echo") >&5
25373 (eval "$ac_try") 2>&5
25374 ac_status=$?
25375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); }; }; then
25377 ac_cv_sizeof_unsigned_int=`cat conftest.val`
25378else
25379 $as_echo "$as_me: program exited with status $ac_status" >&5
25380$as_echo "$as_me: failed program was:" >&5
25381sed 's/^/| /' conftest.$ac_ext >&5
25382
25383( exit $ac_status )
25384if test "$ac_cv_type_unsigned_int" = yes; then
25385 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25387{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
25388See \`config.log' for more details." >&5
25389$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
25390See \`config.log' for more details." >&2;}
25391 { (exit 77); exit 77; }; }; }
25392 else
25393 ac_cv_sizeof_unsigned_int=0
25394 fi
25395fi
25396rm -rf conftest.dSYM
25397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25398fi
25399rm -f conftest.val
25400fi
25401{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
25402$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
25403
25404
25405
25406cat >>confdefs.h <<_ACEOF
25407#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
25408_ACEOF
25409
25410
25411
25412# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
25413# The cast to long int works around a bug in the HP C Compiler
25414# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25415# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25416# This bug is HP SR number 8606223364.
25417{ $as_echo "$as_me:$LINENO: checking size of signed long" >&5
25418$as_echo_n "checking size of signed long... " >&6; }
25419if test "${ac_cv_sizeof_signed_long+set}" = set; then
25420 $as_echo_n "(cached) " >&6
25421else
25422 if test "$cross_compiling" = yes; then
25423 # Depending upon the size, compute the lo and hi bounds.
25424cat >conftest.$ac_ext <<_ACEOF
25425/* confdefs.h. */
25426_ACEOF
25427cat confdefs.h >>conftest.$ac_ext
25428cat >>conftest.$ac_ext <<_ACEOF
25429/* end confdefs.h. */
25430$ac_includes_default
25431int
25432main ()
25433{
25434static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= 0)];
25435test_array [0] = 0
25436
25437 ;
25438 return 0;
25439}
25440_ACEOF
25441rm -f conftest.$ac_objext
25442if { (ac_try="$ac_compile"
25443case "(($ac_try" in
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25446esac
25447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25448$as_echo "$ac_try_echo") >&5
25449 (eval "$ac_compile") 2>conftest.er1
25450 ac_status=$?
25451 grep -v '^ *+' conftest.er1 >conftest.err
25452 rm -f conftest.er1
25453 cat conftest.err >&5
25454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } && {
25456 test -z "$ac_c_werror_flag" ||
25457 test ! -s conftest.err
25458 } && test -s conftest.$ac_objext; then
25459 ac_lo=0 ac_mid=0
25460 while :; do
25461 cat >conftest.$ac_ext <<_ACEOF
25462/* confdefs.h. */
25463_ACEOF
25464cat confdefs.h >>conftest.$ac_ext
25465cat >>conftest.$ac_ext <<_ACEOF
25466/* end confdefs.h. */
25467$ac_includes_default
25468int
25469main ()
25470{
25471static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)];
25472test_array [0] = 0
25473
25474 ;
25475 return 0;
25476}
25477_ACEOF
25478rm -f conftest.$ac_objext
25479if { (ac_try="$ac_compile"
25480case "(($ac_try" in
25481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25482 *) ac_try_echo=$ac_try;;
25483esac
25484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25485$as_echo "$ac_try_echo") >&5
25486 (eval "$ac_compile") 2>conftest.er1
25487 ac_status=$?
25488 grep -v '^ *+' conftest.er1 >conftest.err
25489 rm -f conftest.er1
25490 cat conftest.err >&5
25491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } && {
25493 test -z "$ac_c_werror_flag" ||
25494 test ! -s conftest.err
25495 } && test -s conftest.$ac_objext; then
25496 ac_hi=$ac_mid; break
25497else
25498 $as_echo "$as_me: failed program was:" >&5
25499sed 's/^/| /' conftest.$ac_ext >&5
25500
25501 ac_lo=`expr $ac_mid + 1`
25502 if test $ac_lo -le $ac_mid; then
25503 ac_lo= ac_hi=
25504 break
25505 fi
25506 ac_mid=`expr 2 '*' $ac_mid + 1`
25507fi
25508
25509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25510 done
25511else
25512 $as_echo "$as_me: failed program was:" >&5
25513sed 's/^/| /' conftest.$ac_ext >&5
25514
25515 cat >conftest.$ac_ext <<_ACEOF
25516/* confdefs.h. */
25517_ACEOF
25518cat confdefs.h >>conftest.$ac_ext
25519cat >>conftest.$ac_ext <<_ACEOF
25520/* end confdefs.h. */
25521$ac_includes_default
25522int
25523main ()
25524{
25525static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) < 0)];
25526test_array [0] = 0
25527
25528 ;
25529 return 0;
25530}
25531_ACEOF
25532rm -f conftest.$ac_objext
25533if { (ac_try="$ac_compile"
25534case "(($ac_try" in
25535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25536 *) ac_try_echo=$ac_try;;
25537esac
25538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25539$as_echo "$ac_try_echo") >&5
25540 (eval "$ac_compile") 2>conftest.er1
25541 ac_status=$?
25542 grep -v '^ *+' conftest.er1 >conftest.err
25543 rm -f conftest.er1
25544 cat conftest.err >&5
25545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546 (exit $ac_status); } && {
25547 test -z "$ac_c_werror_flag" ||
25548 test ! -s conftest.err
25549 } && test -s conftest.$ac_objext; then
25550 ac_hi=-1 ac_mid=-1
25551 while :; do
25552 cat >conftest.$ac_ext <<_ACEOF
25553/* confdefs.h. */
25554_ACEOF
25555cat confdefs.h >>conftest.$ac_ext
25556cat >>conftest.$ac_ext <<_ACEOF
25557/* end confdefs.h. */
25558$ac_includes_default
25559int
25560main ()
25561{
25562static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= $ac_mid)];
25563test_array [0] = 0
25564
25565 ;
25566 return 0;
25567}
25568_ACEOF
25569rm -f conftest.$ac_objext
25570if { (ac_try="$ac_compile"
25571case "(($ac_try" in
25572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573 *) ac_try_echo=$ac_try;;
25574esac
25575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25576$as_echo "$ac_try_echo") >&5
25577 (eval "$ac_compile") 2>conftest.er1
25578 ac_status=$?
25579 grep -v '^ *+' conftest.er1 >conftest.err
25580 rm -f conftest.er1
25581 cat conftest.err >&5
25582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } && {
25584 test -z "$ac_c_werror_flag" ||
25585 test ! -s conftest.err
25586 } && test -s conftest.$ac_objext; then
25587 ac_lo=$ac_mid; break
25588else
25589 $as_echo "$as_me: failed program was:" >&5
25590sed 's/^/| /' conftest.$ac_ext >&5
25591
25592 ac_hi=`expr '(' $ac_mid ')' - 1`
25593 if test $ac_mid -le $ac_hi; then
25594 ac_lo= ac_hi=
25595 break
25596 fi
25597 ac_mid=`expr 2 '*' $ac_mid`
25598fi
25599
25600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25601 done
25602else
25603 $as_echo "$as_me: failed program was:" >&5
25604sed 's/^/| /' conftest.$ac_ext >&5
25605
25606 ac_lo= ac_hi=
25607fi
25608
25609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25610fi
25611
25612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25613# Binary search between lo and hi bounds.
25614while test "x$ac_lo" != "x$ac_hi"; do
25615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25616 cat >conftest.$ac_ext <<_ACEOF
25617/* confdefs.h. */
25618_ACEOF
25619cat confdefs.h >>conftest.$ac_ext
25620cat >>conftest.$ac_ext <<_ACEOF
25621/* end confdefs.h. */
25622$ac_includes_default
25623int
25624main ()
25625{
25626static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)];
25627test_array [0] = 0
25628
25629 ;
25630 return 0;
25631}
25632_ACEOF
25633rm -f conftest.$ac_objext
25634if { (ac_try="$ac_compile"
25635case "(($ac_try" in
25636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637 *) ac_try_echo=$ac_try;;
25638esac
25639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25640$as_echo "$ac_try_echo") >&5
25641 (eval "$ac_compile") 2>conftest.er1
25642 ac_status=$?
25643 grep -v '^ *+' conftest.er1 >conftest.err
25644 rm -f conftest.er1
25645 cat conftest.err >&5
25646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } && {
25648 test -z "$ac_c_werror_flag" ||
25649 test ! -s conftest.err
25650 } && test -s conftest.$ac_objext; then
25651 ac_hi=$ac_mid
25652else
25653 $as_echo "$as_me: failed program was:" >&5
25654sed 's/^/| /' conftest.$ac_ext >&5
25655
25656 ac_lo=`expr '(' $ac_mid ')' + 1`
25657fi
25658
25659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25660done
25661case $ac_lo in
25662?*) ac_cv_sizeof_signed_long=$ac_lo;;
25663'') if test "$ac_cv_type_signed_long" = yes; then
25664 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25666{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
25667See \`config.log' for more details." >&5
25668$as_echo "$as_me: error: cannot compute sizeof (signed long)
25669See \`config.log' for more details." >&2;}
25670 { (exit 77); exit 77; }; }; }
25671 else
25672 ac_cv_sizeof_signed_long=0
25673 fi ;;
25674esac
25675else
25676 cat >conftest.$ac_ext <<_ACEOF
25677/* confdefs.h. */
25678_ACEOF
25679cat confdefs.h >>conftest.$ac_ext
25680cat >>conftest.$ac_ext <<_ACEOF
25681/* end confdefs.h. */
25682$ac_includes_default
25683static long int longval () { return (long int) (sizeof (signed long)); }
25684static unsigned long int ulongval () { return (long int) (sizeof (signed long)); }
25685#include <stdio.h>
25686#include <stdlib.h>
25687int
25688main ()
25689{
25690
25691 FILE *f = fopen ("conftest.val", "w");
25692 if (! f)
25693 return 1;
25694 if (((long int) (sizeof (signed long))) < 0)
25695 {
25696 long int i = longval ();
25697 if (i != ((long int) (sizeof (signed long))))
25698 return 1;
25699 fprintf (f, "%ld", i);
25700 }
25701 else
25702 {
25703 unsigned long int i = ulongval ();
25704 if (i != ((long int) (sizeof (signed long))))
25705 return 1;
25706 fprintf (f, "%lu", i);
25707 }
25708 /* Do not output a trailing newline, as this causes \r\n confusion
25709 on some platforms. */
25710 return ferror (f) || fclose (f) != 0;
25711
25712 ;
25713 return 0;
25714}
25715_ACEOF
25716rm -f conftest$ac_exeext
25717if { (ac_try="$ac_link"
25718case "(($ac_try" in
25719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720 *) ac_try_echo=$ac_try;;
25721esac
25722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25723$as_echo "$ac_try_echo") >&5
25724 (eval "$ac_link") 2>&5
25725 ac_status=$?
25726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25728 { (case "(($ac_try" in
25729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25730 *) ac_try_echo=$ac_try;;
25731esac
25732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25733$as_echo "$ac_try_echo") >&5
25734 (eval "$ac_try") 2>&5
25735 ac_status=$?
25736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); }; }; then
25738 ac_cv_sizeof_signed_long=`cat conftest.val`
25739else
25740 $as_echo "$as_me: program exited with status $ac_status" >&5
25741$as_echo "$as_me: failed program was:" >&5
25742sed 's/^/| /' conftest.$ac_ext >&5
25743
25744( exit $ac_status )
25745if test "$ac_cv_type_signed_long" = yes; then
25746 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25748{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
25749See \`config.log' for more details." >&5
25750$as_echo "$as_me: error: cannot compute sizeof (signed long)
25751See \`config.log' for more details." >&2;}
25752 { (exit 77); exit 77; }; }; }
25753 else
25754 ac_cv_sizeof_signed_long=0
25755 fi
25756fi
25757rm -rf conftest.dSYM
25758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25759fi
25760rm -f conftest.val
25761fi
25762{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
25763$as_echo "$ac_cv_sizeof_signed_long" >&6; }
25764
25765
25766
25767cat >>confdefs.h <<_ACEOF
25768#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
25769_ACEOF
25770
25771
25772
25773# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
25774# The cast to long int works around a bug in the HP C Compiler
25775# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25776# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25777# This bug is HP SR number 8606223364.
25778{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
25779$as_echo_n "checking size of unsigned long... " >&6; }
25780if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
25781 $as_echo_n "(cached) " >&6
25782else
25783 if test "$cross_compiling" = yes; then
25784 # Depending upon the size, compute the lo and hi bounds.
25785cat >conftest.$ac_ext <<_ACEOF
25786/* confdefs.h. */
25787_ACEOF
25788cat confdefs.h >>conftest.$ac_ext
25789cat >>conftest.$ac_ext <<_ACEOF
25790/* end confdefs.h. */
25791$ac_includes_default
25792int
25793main ()
25794{
25795static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
25796test_array [0] = 0
25797
25798 ;
25799 return 0;
25800}
25801_ACEOF
25802rm -f conftest.$ac_objext
25803if { (ac_try="$ac_compile"
25804case "(($ac_try" in
25805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25806 *) ac_try_echo=$ac_try;;
25807esac
25808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25809$as_echo "$ac_try_echo") >&5
25810 (eval "$ac_compile") 2>conftest.er1
25811 ac_status=$?
25812 grep -v '^ *+' conftest.er1 >conftest.err
25813 rm -f conftest.er1
25814 cat conftest.err >&5
25815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); } && {
25817 test -z "$ac_c_werror_flag" ||
25818 test ! -s conftest.err
25819 } && test -s conftest.$ac_objext; then
25820 ac_lo=0 ac_mid=0
25821 while :; do
25822 cat >conftest.$ac_ext <<_ACEOF
25823/* confdefs.h. */
25824_ACEOF
25825cat confdefs.h >>conftest.$ac_ext
25826cat >>conftest.$ac_ext <<_ACEOF
25827/* end confdefs.h. */
25828$ac_includes_default
25829int
25830main ()
25831{
25832static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
25833test_array [0] = 0
25834
25835 ;
25836 return 0;
25837}
25838_ACEOF
25839rm -f conftest.$ac_objext
25840if { (ac_try="$ac_compile"
25841case "(($ac_try" in
25842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25843 *) ac_try_echo=$ac_try;;
25844esac
25845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25846$as_echo "$ac_try_echo") >&5
25847 (eval "$ac_compile") 2>conftest.er1
25848 ac_status=$?
25849 grep -v '^ *+' conftest.er1 >conftest.err
25850 rm -f conftest.er1
25851 cat conftest.err >&5
25852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); } && {
25854 test -z "$ac_c_werror_flag" ||
25855 test ! -s conftest.err
25856 } && test -s conftest.$ac_objext; then
25857 ac_hi=$ac_mid; break
25858else
25859 $as_echo "$as_me: failed program was:" >&5
25860sed 's/^/| /' conftest.$ac_ext >&5
25861
25862 ac_lo=`expr $ac_mid + 1`
25863 if test $ac_lo -le $ac_mid; then
25864 ac_lo= ac_hi=
25865 break
25866 fi
25867 ac_mid=`expr 2 '*' $ac_mid + 1`
25868fi
25869
25870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25871 done
25872else
25873 $as_echo "$as_me: failed program was:" >&5
25874sed 's/^/| /' conftest.$ac_ext >&5
25875
25876 cat >conftest.$ac_ext <<_ACEOF
25877/* confdefs.h. */
25878_ACEOF
25879cat confdefs.h >>conftest.$ac_ext
25880cat >>conftest.$ac_ext <<_ACEOF
25881/* end confdefs.h. */
25882$ac_includes_default
25883int
25884main ()
25885{
25886static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
25887test_array [0] = 0
25888
25889 ;
25890 return 0;
25891}
25892_ACEOF
25893rm -f conftest.$ac_objext
25894if { (ac_try="$ac_compile"
25895case "(($ac_try" in
25896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25897 *) ac_try_echo=$ac_try;;
25898esac
25899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25900$as_echo "$ac_try_echo") >&5
25901 (eval "$ac_compile") 2>conftest.er1
25902 ac_status=$?
25903 grep -v '^ *+' conftest.er1 >conftest.err
25904 rm -f conftest.er1
25905 cat conftest.err >&5
25906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); } && {
25908 test -z "$ac_c_werror_flag" ||
25909 test ! -s conftest.err
25910 } && test -s conftest.$ac_objext; then
25911 ac_hi=-1 ac_mid=-1
25912 while :; do
25913 cat >conftest.$ac_ext <<_ACEOF
25914/* confdefs.h. */
25915_ACEOF
25916cat confdefs.h >>conftest.$ac_ext
25917cat >>conftest.$ac_ext <<_ACEOF
25918/* end confdefs.h. */
25919$ac_includes_default
25920int
25921main ()
25922{
25923static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
25924test_array [0] = 0
25925
25926 ;
25927 return 0;
25928}
25929_ACEOF
25930rm -f conftest.$ac_objext
25931if { (ac_try="$ac_compile"
25932case "(($ac_try" in
25933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25934 *) ac_try_echo=$ac_try;;
25935esac
25936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25937$as_echo "$ac_try_echo") >&5
25938 (eval "$ac_compile") 2>conftest.er1
25939 ac_status=$?
25940 grep -v '^ *+' conftest.er1 >conftest.err
25941 rm -f conftest.er1
25942 cat conftest.err >&5
25943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); } && {
25945 test -z "$ac_c_werror_flag" ||
25946 test ! -s conftest.err
25947 } && test -s conftest.$ac_objext; then
25948 ac_lo=$ac_mid; break
25949else
25950 $as_echo "$as_me: failed program was:" >&5
25951sed 's/^/| /' conftest.$ac_ext >&5
25952
25953 ac_hi=`expr '(' $ac_mid ')' - 1`
25954 if test $ac_mid -le $ac_hi; then
25955 ac_lo= ac_hi=
25956 break
25957 fi
25958 ac_mid=`expr 2 '*' $ac_mid`
25959fi
25960
25961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25962 done
25963else
25964 $as_echo "$as_me: failed program was:" >&5
25965sed 's/^/| /' conftest.$ac_ext >&5
25966
25967 ac_lo= ac_hi=
25968fi
25969
25970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25971fi
25972
25973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25974# Binary search between lo and hi bounds.
25975while test "x$ac_lo" != "x$ac_hi"; do
25976 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25977 cat >conftest.$ac_ext <<_ACEOF
25978/* confdefs.h. */
25979_ACEOF
25980cat confdefs.h >>conftest.$ac_ext
25981cat >>conftest.$ac_ext <<_ACEOF
25982/* end confdefs.h. */
25983$ac_includes_default
25984int
25985main ()
25986{
25987static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
25988test_array [0] = 0
25989
25990 ;
25991 return 0;
25992}
25993_ACEOF
25994rm -f conftest.$ac_objext
25995if { (ac_try="$ac_compile"
25996case "(($ac_try" in
25997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25998 *) ac_try_echo=$ac_try;;
25999esac
26000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26001$as_echo "$ac_try_echo") >&5
26002 (eval "$ac_compile") 2>conftest.er1
26003 ac_status=$?
26004 grep -v '^ *+' conftest.er1 >conftest.err
26005 rm -f conftest.er1
26006 cat conftest.err >&5
26007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); } && {
26009 test -z "$ac_c_werror_flag" ||
26010 test ! -s conftest.err
26011 } && test -s conftest.$ac_objext; then
26012 ac_hi=$ac_mid
26013else
26014 $as_echo "$as_me: failed program was:" >&5
26015sed 's/^/| /' conftest.$ac_ext >&5
26016
26017 ac_lo=`expr '(' $ac_mid ')' + 1`
26018fi
26019
26020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26021done
26022case $ac_lo in
26023?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
26024'') if test "$ac_cv_type_unsigned_long" = yes; then
26025 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26027{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26028See \`config.log' for more details." >&5
26029$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26030See \`config.log' for more details." >&2;}
26031 { (exit 77); exit 77; }; }; }
26032 else
26033 ac_cv_sizeof_unsigned_long=0
26034 fi ;;
26035esac
26036else
26037 cat >conftest.$ac_ext <<_ACEOF
26038/* confdefs.h. */
26039_ACEOF
26040cat confdefs.h >>conftest.$ac_ext
26041cat >>conftest.$ac_ext <<_ACEOF
26042/* end confdefs.h. */
26043$ac_includes_default
26044static long int longval () { return (long int) (sizeof (unsigned long)); }
26045static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
26046#include <stdio.h>
26047#include <stdlib.h>
26048int
26049main ()
26050{
26051
26052 FILE *f = fopen ("conftest.val", "w");
26053 if (! f)
26054 return 1;
26055 if (((long int) (sizeof (unsigned long))) < 0)
26056 {
26057 long int i = longval ();
26058 if (i != ((long int) (sizeof (unsigned long))))
26059 return 1;
26060 fprintf (f, "%ld", i);
26061 }
26062 else
26063 {
26064 unsigned long int i = ulongval ();
26065 if (i != ((long int) (sizeof (unsigned long))))
26066 return 1;
26067 fprintf (f, "%lu", i);
26068 }
26069 /* Do not output a trailing newline, as this causes \r\n confusion
26070 on some platforms. */
26071 return ferror (f) || fclose (f) != 0;
26072
26073 ;
26074 return 0;
26075}
26076_ACEOF
26077rm -f conftest$ac_exeext
26078if { (ac_try="$ac_link"
26079case "(($ac_try" in
26080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26081 *) ac_try_echo=$ac_try;;
26082esac
26083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26084$as_echo "$ac_try_echo") >&5
26085 (eval "$ac_link") 2>&5
26086 ac_status=$?
26087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26089 { (case "(($ac_try" in
26090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26091 *) ac_try_echo=$ac_try;;
26092esac
26093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26094$as_echo "$ac_try_echo") >&5
26095 (eval "$ac_try") 2>&5
26096 ac_status=$?
26097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); }; }; then
26099 ac_cv_sizeof_unsigned_long=`cat conftest.val`
26100else
26101 $as_echo "$as_me: program exited with status $ac_status" >&5
26102$as_echo "$as_me: failed program was:" >&5
26103sed 's/^/| /' conftest.$ac_ext >&5
26104
26105( exit $ac_status )
26106if test "$ac_cv_type_unsigned_long" = yes; then
26107 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26109{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26110See \`config.log' for more details." >&5
26111$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26112See \`config.log' for more details." >&2;}
26113 { (exit 77); exit 77; }; }; }
26114 else
26115 ac_cv_sizeof_unsigned_long=0
26116 fi
26117fi
26118rm -rf conftest.dSYM
26119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26120fi
26121rm -f conftest.val
26122fi
26123{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
26124$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
26125
26126
26127
26128cat >>confdefs.h <<_ACEOF
26129#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26130_ACEOF
26131
26132
26133
26134# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
26135# 'signed long long' is not supported then the value defined is zero.
26136# The cast to long int works around a bug in the HP C Compiler
26137# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26138# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26139# This bug is HP SR number 8606223364.
26140{ $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
26141$as_echo_n "checking size of signed long long... " >&6; }
26142if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
26143 $as_echo_n "(cached) " >&6
26144else
26145 if test "$cross_compiling" = yes; then
26146 # Depending upon the size, compute the lo and hi bounds.
26147cat >conftest.$ac_ext <<_ACEOF
26148/* confdefs.h. */
26149_ACEOF
26150cat confdefs.h >>conftest.$ac_ext
26151cat >>conftest.$ac_ext <<_ACEOF
26152/* end confdefs.h. */
26153$ac_includes_default
26154int
26155main ()
26156{
26157static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
26158test_array [0] = 0
26159
26160 ;
26161 return 0;
26162}
26163_ACEOF
26164rm -f conftest.$ac_objext
26165if { (ac_try="$ac_compile"
26166case "(($ac_try" in
26167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26168 *) ac_try_echo=$ac_try;;
26169esac
26170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26171$as_echo "$ac_try_echo") >&5
26172 (eval "$ac_compile") 2>conftest.er1
26173 ac_status=$?
26174 grep -v '^ *+' conftest.er1 >conftest.err
26175 rm -f conftest.er1
26176 cat conftest.err >&5
26177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } && {
26179 test -z "$ac_c_werror_flag" ||
26180 test ! -s conftest.err
26181 } && test -s conftest.$ac_objext; then
26182 ac_lo=0 ac_mid=0
26183 while :; do
26184 cat >conftest.$ac_ext <<_ACEOF
26185/* confdefs.h. */
26186_ACEOF
26187cat confdefs.h >>conftest.$ac_ext
26188cat >>conftest.$ac_ext <<_ACEOF
26189/* end confdefs.h. */
26190$ac_includes_default
26191int
26192main ()
26193{
26194static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
26195test_array [0] = 0
26196
26197 ;
26198 return 0;
26199}
26200_ACEOF
26201rm -f conftest.$ac_objext
26202if { (ac_try="$ac_compile"
26203case "(($ac_try" in
26204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26205 *) ac_try_echo=$ac_try;;
26206esac
26207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26208$as_echo "$ac_try_echo") >&5
26209 (eval "$ac_compile") 2>conftest.er1
26210 ac_status=$?
26211 grep -v '^ *+' conftest.er1 >conftest.err
26212 rm -f conftest.er1
26213 cat conftest.err >&5
26214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215 (exit $ac_status); } && {
26216 test -z "$ac_c_werror_flag" ||
26217 test ! -s conftest.err
26218 } && test -s conftest.$ac_objext; then
26219 ac_hi=$ac_mid; break
26220else
26221 $as_echo "$as_me: failed program was:" >&5
26222sed 's/^/| /' conftest.$ac_ext >&5
26223
26224 ac_lo=`expr $ac_mid + 1`
26225 if test $ac_lo -le $ac_mid; then
26226 ac_lo= ac_hi=
26227 break
26228 fi
26229 ac_mid=`expr 2 '*' $ac_mid + 1`
26230fi
26231
26232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26233 done
26234else
26235 $as_echo "$as_me: failed program was:" >&5
26236sed 's/^/| /' conftest.$ac_ext >&5
26237
26238 cat >conftest.$ac_ext <<_ACEOF
26239/* confdefs.h. */
26240_ACEOF
26241cat confdefs.h >>conftest.$ac_ext
26242cat >>conftest.$ac_ext <<_ACEOF
26243/* end confdefs.h. */
26244$ac_includes_default
26245int
26246main ()
26247{
26248static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
26249test_array [0] = 0
26250
26251 ;
26252 return 0;
26253}
26254_ACEOF
26255rm -f conftest.$ac_objext
26256if { (ac_try="$ac_compile"
26257case "(($ac_try" in
26258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26259 *) ac_try_echo=$ac_try;;
26260esac
26261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26262$as_echo "$ac_try_echo") >&5
26263 (eval "$ac_compile") 2>conftest.er1
26264 ac_status=$?
26265 grep -v '^ *+' conftest.er1 >conftest.err
26266 rm -f conftest.er1
26267 cat conftest.err >&5
26268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); } && {
26270 test -z "$ac_c_werror_flag" ||
26271 test ! -s conftest.err
26272 } && test -s conftest.$ac_objext; then
26273 ac_hi=-1 ac_mid=-1
26274 while :; do
26275 cat >conftest.$ac_ext <<_ACEOF
26276/* confdefs.h. */
26277_ACEOF
26278cat confdefs.h >>conftest.$ac_ext
26279cat >>conftest.$ac_ext <<_ACEOF
26280/* end confdefs.h. */
26281$ac_includes_default
26282int
26283main ()
26284{
26285static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
26286test_array [0] = 0
26287
26288 ;
26289 return 0;
26290}
26291_ACEOF
26292rm -f conftest.$ac_objext
26293if { (ac_try="$ac_compile"
26294case "(($ac_try" in
26295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26296 *) ac_try_echo=$ac_try;;
26297esac
26298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26299$as_echo "$ac_try_echo") >&5
26300 (eval "$ac_compile") 2>conftest.er1
26301 ac_status=$?
26302 grep -v '^ *+' conftest.er1 >conftest.err
26303 rm -f conftest.er1
26304 cat conftest.err >&5
26305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } && {
26307 test -z "$ac_c_werror_flag" ||
26308 test ! -s conftest.err
26309 } && test -s conftest.$ac_objext; then
26310 ac_lo=$ac_mid; break
26311else
26312 $as_echo "$as_me: failed program was:" >&5
26313sed 's/^/| /' conftest.$ac_ext >&5
26314
26315 ac_hi=`expr '(' $ac_mid ')' - 1`
26316 if test $ac_mid -le $ac_hi; then
26317 ac_lo= ac_hi=
26318 break
26319 fi
26320 ac_mid=`expr 2 '*' $ac_mid`
26321fi
26322
26323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26324 done
26325else
26326 $as_echo "$as_me: failed program was:" >&5
26327sed 's/^/| /' conftest.$ac_ext >&5
26328
26329 ac_lo= ac_hi=
26330fi
26331
26332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26333fi
26334
26335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26336# Binary search between lo and hi bounds.
26337while test "x$ac_lo" != "x$ac_hi"; do
26338 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26339 cat >conftest.$ac_ext <<_ACEOF
26340/* confdefs.h. */
26341_ACEOF
26342cat confdefs.h >>conftest.$ac_ext
26343cat >>conftest.$ac_ext <<_ACEOF
26344/* end confdefs.h. */
26345$ac_includes_default
26346int
26347main ()
26348{
26349static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
26350test_array [0] = 0
26351
26352 ;
26353 return 0;
26354}
26355_ACEOF
26356rm -f conftest.$ac_objext
26357if { (ac_try="$ac_compile"
26358case "(($ac_try" in
26359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 *) ac_try_echo=$ac_try;;
26361esac
26362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26363$as_echo "$ac_try_echo") >&5
26364 (eval "$ac_compile") 2>conftest.er1
26365 ac_status=$?
26366 grep -v '^ *+' conftest.er1 >conftest.err
26367 rm -f conftest.er1
26368 cat conftest.err >&5
26369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); } && {
26371 test -z "$ac_c_werror_flag" ||
26372 test ! -s conftest.err
26373 } && test -s conftest.$ac_objext; then
26374 ac_hi=$ac_mid
26375else
26376 $as_echo "$as_me: failed program was:" >&5
26377sed 's/^/| /' conftest.$ac_ext >&5
26378
26379 ac_lo=`expr '(' $ac_mid ')' + 1`
26380fi
26381
26382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26383done
26384case $ac_lo in
26385?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
26386'') if test "$ac_cv_type_signed_long_long" = yes; then
26387 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26389{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
26390See \`config.log' for more details." >&5
26391$as_echo "$as_me: error: cannot compute sizeof (signed long long)
26392See \`config.log' for more details." >&2;}
26393 { (exit 77); exit 77; }; }; }
26394 else
26395 ac_cv_sizeof_signed_long_long=0
26396 fi ;;
26397esac
26398else
26399 cat >conftest.$ac_ext <<_ACEOF
26400/* confdefs.h. */
26401_ACEOF
26402cat confdefs.h >>conftest.$ac_ext
26403cat >>conftest.$ac_ext <<_ACEOF
26404/* end confdefs.h. */
26405$ac_includes_default
26406static long int longval () { return (long int) (sizeof (signed long long)); }
26407static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
26408#include <stdio.h>
26409#include <stdlib.h>
26410int
26411main ()
26412{
26413
26414 FILE *f = fopen ("conftest.val", "w");
26415 if (! f)
26416 return 1;
26417 if (((long int) (sizeof (signed long long))) < 0)
26418 {
26419 long int i = longval ();
26420 if (i != ((long int) (sizeof (signed long long))))
26421 return 1;
26422 fprintf (f, "%ld", i);
26423 }
26424 else
26425 {
26426 unsigned long int i = ulongval ();
26427 if (i != ((long int) (sizeof (signed long long))))
26428 return 1;
26429 fprintf (f, "%lu", i);
26430 }
26431 /* Do not output a trailing newline, as this causes \r\n confusion
26432 on some platforms. */
26433 return ferror (f) || fclose (f) != 0;
26434
26435 ;
26436 return 0;
26437}
26438_ACEOF
26439rm -f conftest$ac_exeext
26440if { (ac_try="$ac_link"
26441case "(($ac_try" in
26442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26443 *) ac_try_echo=$ac_try;;
26444esac
26445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26446$as_echo "$ac_try_echo") >&5
26447 (eval "$ac_link") 2>&5
26448 ac_status=$?
26449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26451 { (case "(($ac_try" in
26452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26453 *) ac_try_echo=$ac_try;;
26454esac
26455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26456$as_echo "$ac_try_echo") >&5
26457 (eval "$ac_try") 2>&5
26458 ac_status=$?
26459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); }; }; then
26461 ac_cv_sizeof_signed_long_long=`cat conftest.val`
26462else
26463 $as_echo "$as_me: program exited with status $ac_status" >&5
26464$as_echo "$as_me: failed program was:" >&5
26465sed 's/^/| /' conftest.$ac_ext >&5
26466
26467( exit $ac_status )
26468if test "$ac_cv_type_signed_long_long" = yes; then
26469 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26471{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
26472See \`config.log' for more details." >&5
26473$as_echo "$as_me: error: cannot compute sizeof (signed long long)
26474See \`config.log' for more details." >&2;}
26475 { (exit 77); exit 77; }; }; }
26476 else
26477 ac_cv_sizeof_signed_long_long=0
26478 fi
26479fi
26480rm -rf conftest.dSYM
26481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26482fi
26483rm -f conftest.val
26484fi
26485{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
26486$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
26487
26488
26489
26490cat >>confdefs.h <<_ACEOF
26491#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
26492_ACEOF
26493
26494
26495
26496# Obtain size of a 'unsigned long long' and define as
26497# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
26498# supported then the value defined is zero.
26499# The cast to long int works around a bug in the HP C Compiler
26500# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26501# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26502# This bug is HP SR number 8606223364.
26503{ $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
26504$as_echo_n "checking size of unsigned long long... " >&6; }
26505if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
26506 $as_echo_n "(cached) " >&6
26507else
26508 if test "$cross_compiling" = yes; then
26509 # Depending upon the size, compute the lo and hi bounds.
26510cat >conftest.$ac_ext <<_ACEOF
26511/* confdefs.h. */
26512_ACEOF
26513cat confdefs.h >>conftest.$ac_ext
26514cat >>conftest.$ac_ext <<_ACEOF
26515/* end confdefs.h. */
26516$ac_includes_default
26517int
26518main ()
26519{
26520static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
26521test_array [0] = 0
26522
26523 ;
26524 return 0;
26525}
26526_ACEOF
26527rm -f conftest.$ac_objext
26528if { (ac_try="$ac_compile"
26529case "(($ac_try" in
26530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26531 *) ac_try_echo=$ac_try;;
26532esac
26533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26534$as_echo "$ac_try_echo") >&5
26535 (eval "$ac_compile") 2>conftest.er1
26536 ac_status=$?
26537 grep -v '^ *+' conftest.er1 >conftest.err
26538 rm -f conftest.er1
26539 cat conftest.err >&5
26540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); } && {
26542 test -z "$ac_c_werror_flag" ||
26543 test ! -s conftest.err
26544 } && test -s conftest.$ac_objext; then
26545 ac_lo=0 ac_mid=0
26546 while :; do
26547 cat >conftest.$ac_ext <<_ACEOF
26548/* confdefs.h. */
26549_ACEOF
26550cat confdefs.h >>conftest.$ac_ext
26551cat >>conftest.$ac_ext <<_ACEOF
26552/* end confdefs.h. */
26553$ac_includes_default
26554int
26555main ()
26556{
26557static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
26558test_array [0] = 0
26559
26560 ;
26561 return 0;
26562}
26563_ACEOF
26564rm -f conftest.$ac_objext
26565if { (ac_try="$ac_compile"
26566case "(($ac_try" in
26567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568 *) ac_try_echo=$ac_try;;
26569esac
26570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26571$as_echo "$ac_try_echo") >&5
26572 (eval "$ac_compile") 2>conftest.er1
26573 ac_status=$?
26574 grep -v '^ *+' conftest.er1 >conftest.err
26575 rm -f conftest.er1
26576 cat conftest.err >&5
26577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578 (exit $ac_status); } && {
26579 test -z "$ac_c_werror_flag" ||
26580 test ! -s conftest.err
26581 } && test -s conftest.$ac_objext; then
26582 ac_hi=$ac_mid; break
26583else
26584 $as_echo "$as_me: failed program was:" >&5
26585sed 's/^/| /' conftest.$ac_ext >&5
26586
26587 ac_lo=`expr $ac_mid + 1`
26588 if test $ac_lo -le $ac_mid; then
26589 ac_lo= ac_hi=
26590 break
26591 fi
26592 ac_mid=`expr 2 '*' $ac_mid + 1`
26593fi
26594
26595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26596 done
26597else
26598 $as_echo "$as_me: failed program was:" >&5
26599sed 's/^/| /' conftest.$ac_ext >&5
26600
26601 cat >conftest.$ac_ext <<_ACEOF
26602/* confdefs.h. */
26603_ACEOF
26604cat confdefs.h >>conftest.$ac_ext
26605cat >>conftest.$ac_ext <<_ACEOF
26606/* end confdefs.h. */
26607$ac_includes_default
26608int
26609main ()
26610{
26611static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
26612test_array [0] = 0
26613
26614 ;
26615 return 0;
26616}
26617_ACEOF
26618rm -f conftest.$ac_objext
26619if { (ac_try="$ac_compile"
26620case "(($ac_try" in
26621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26622 *) ac_try_echo=$ac_try;;
26623esac
26624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26625$as_echo "$ac_try_echo") >&5
26626 (eval "$ac_compile") 2>conftest.er1
26627 ac_status=$?
26628 grep -v '^ *+' conftest.er1 >conftest.err
26629 rm -f conftest.er1
26630 cat conftest.err >&5
26631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); } && {
26633 test -z "$ac_c_werror_flag" ||
26634 test ! -s conftest.err
26635 } && test -s conftest.$ac_objext; then
26636 ac_hi=-1 ac_mid=-1
26637 while :; do
26638 cat >conftest.$ac_ext <<_ACEOF
26639/* confdefs.h. */
26640_ACEOF
26641cat confdefs.h >>conftest.$ac_ext
26642cat >>conftest.$ac_ext <<_ACEOF
26643/* end confdefs.h. */
26644$ac_includes_default
26645int
26646main ()
26647{
26648static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
26649test_array [0] = 0
26650
26651 ;
26652 return 0;
26653}
26654_ACEOF
26655rm -f conftest.$ac_objext
26656if { (ac_try="$ac_compile"
26657case "(($ac_try" in
26658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26659 *) ac_try_echo=$ac_try;;
26660esac
26661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26662$as_echo "$ac_try_echo") >&5
26663 (eval "$ac_compile") 2>conftest.er1
26664 ac_status=$?
26665 grep -v '^ *+' conftest.er1 >conftest.err
26666 rm -f conftest.er1
26667 cat conftest.err >&5
26668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); } && {
26670 test -z "$ac_c_werror_flag" ||
26671 test ! -s conftest.err
26672 } && test -s conftest.$ac_objext; then
26673 ac_lo=$ac_mid; break
26674else
26675 $as_echo "$as_me: failed program was:" >&5
26676sed 's/^/| /' conftest.$ac_ext >&5
26677
26678 ac_hi=`expr '(' $ac_mid ')' - 1`
26679 if test $ac_mid -le $ac_hi; then
26680 ac_lo= ac_hi=
26681 break
26682 fi
26683 ac_mid=`expr 2 '*' $ac_mid`
26684fi
26685
26686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26687 done
26688else
26689 $as_echo "$as_me: failed program was:" >&5
26690sed 's/^/| /' conftest.$ac_ext >&5
26691
26692 ac_lo= ac_hi=
26693fi
26694
26695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26696fi
26697
26698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26699# Binary search between lo and hi bounds.
26700while test "x$ac_lo" != "x$ac_hi"; do
26701 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26702 cat >conftest.$ac_ext <<_ACEOF
26703/* confdefs.h. */
26704_ACEOF
26705cat confdefs.h >>conftest.$ac_ext
26706cat >>conftest.$ac_ext <<_ACEOF
26707/* end confdefs.h. */
26708$ac_includes_default
26709int
26710main ()
26711{
26712static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
26713test_array [0] = 0
26714
26715 ;
26716 return 0;
26717}
26718_ACEOF
26719rm -f conftest.$ac_objext
26720if { (ac_try="$ac_compile"
26721case "(($ac_try" in
26722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723 *) ac_try_echo=$ac_try;;
26724esac
26725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26726$as_echo "$ac_try_echo") >&5
26727 (eval "$ac_compile") 2>conftest.er1
26728 ac_status=$?
26729 grep -v '^ *+' conftest.er1 >conftest.err
26730 rm -f conftest.er1
26731 cat conftest.err >&5
26732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 (exit $ac_status); } && {
26734 test -z "$ac_c_werror_flag" ||
26735 test ! -s conftest.err
26736 } && test -s conftest.$ac_objext; then
26737 ac_hi=$ac_mid
26738else
26739 $as_echo "$as_me: failed program was:" >&5
26740sed 's/^/| /' conftest.$ac_ext >&5
26741
26742 ac_lo=`expr '(' $ac_mid ')' + 1`
26743fi
26744
26745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26746done
26747case $ac_lo in
26748?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
26749'') if test "$ac_cv_type_unsigned_long_long" = yes; then
26750 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26752{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
26753See \`config.log' for more details." >&5
26754$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
26755See \`config.log' for more details." >&2;}
26756 { (exit 77); exit 77; }; }; }
26757 else
26758 ac_cv_sizeof_unsigned_long_long=0
26759 fi ;;
26760esac
26761else
26762 cat >conftest.$ac_ext <<_ACEOF
26763/* confdefs.h. */
26764_ACEOF
26765cat confdefs.h >>conftest.$ac_ext
26766cat >>conftest.$ac_ext <<_ACEOF
26767/* end confdefs.h. */
26768$ac_includes_default
26769static long int longval () { return (long int) (sizeof (unsigned long long)); }
26770static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
26771#include <stdio.h>
26772#include <stdlib.h>
26773int
26774main ()
26775{
26776
26777 FILE *f = fopen ("conftest.val", "w");
26778 if (! f)
26779 return 1;
26780 if (((long int) (sizeof (unsigned long long))) < 0)
26781 {
26782 long int i = longval ();
26783 if (i != ((long int) (sizeof (unsigned long long))))
26784 return 1;
26785 fprintf (f, "%ld", i);
26786 }
26787 else
26788 {
26789 unsigned long int i = ulongval ();
26790 if (i != ((long int) (sizeof (unsigned long long))))
26791 return 1;
26792 fprintf (f, "%lu", i);
26793 }
26794 /* Do not output a trailing newline, as this causes \r\n confusion
26795 on some platforms. */
26796 return ferror (f) || fclose (f) != 0;
26797
26798 ;
26799 return 0;
26800}
26801_ACEOF
26802rm -f conftest$ac_exeext
26803if { (ac_try="$ac_link"
26804case "(($ac_try" in
26805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26806 *) ac_try_echo=$ac_try;;
26807esac
26808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26809$as_echo "$ac_try_echo") >&5
26810 (eval "$ac_link") 2>&5
26811 ac_status=$?
26812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26814 { (case "(($ac_try" in
26815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26816 *) ac_try_echo=$ac_try;;
26817esac
26818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26819$as_echo "$ac_try_echo") >&5
26820 (eval "$ac_try") 2>&5
26821 ac_status=$?
26822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; }; then
26824 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
26825else
26826 $as_echo "$as_me: program exited with status $ac_status" >&5
26827$as_echo "$as_me: failed program was:" >&5
26828sed 's/^/| /' conftest.$ac_ext >&5
26829
26830( exit $ac_status )
26831if test "$ac_cv_type_unsigned_long_long" = yes; then
26832 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26834{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
26835See \`config.log' for more details." >&5
26836$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
26837See \`config.log' for more details." >&2;}
26838 { (exit 77); exit 77; }; }; }
26839 else
26840 ac_cv_sizeof_unsigned_long_long=0
26841 fi
26842fi
26843rm -rf conftest.dSYM
26844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26845fi
26846rm -f conftest.val
26847fi
26848{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
26849$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
26850
26851
26852
26853cat >>confdefs.h <<_ACEOF
26854#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
26855_ACEOF
26856
26857
26858
26859# Obtain size of off_t and define as SIZEOF_OFF_T
26860# The cast to long int works around a bug in the HP C Compiler
26861# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26862# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26863# This bug is HP SR number 8606223364.
26864{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
26865$as_echo_n "checking size of off_t... " >&6; }
26866if test "${ac_cv_sizeof_off_t+set}" = set; then
26867 $as_echo_n "(cached) " >&6
26868else
26869 if test "$cross_compiling" = yes; then
26870 # Depending upon the size, compute the lo and hi bounds.
26871cat >conftest.$ac_ext <<_ACEOF
26872/* confdefs.h. */
26873_ACEOF
26874cat confdefs.h >>conftest.$ac_ext
26875cat >>conftest.$ac_ext <<_ACEOF
26876/* end confdefs.h. */
26877$ac_includes_default
26878int
26879main ()
26880{
26881static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
26882test_array [0] = 0
26883
26884 ;
26885 return 0;
26886}
26887_ACEOF
26888rm -f conftest.$ac_objext
26889if { (ac_try="$ac_compile"
26890case "(($ac_try" in
26891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26892 *) ac_try_echo=$ac_try;;
26893esac
26894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26895$as_echo "$ac_try_echo") >&5
26896 (eval "$ac_compile") 2>conftest.er1
26897 ac_status=$?
26898 grep -v '^ *+' conftest.er1 >conftest.err
26899 rm -f conftest.er1
26900 cat conftest.err >&5
26901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); } && {
26903 test -z "$ac_c_werror_flag" ||
26904 test ! -s conftest.err
26905 } && test -s conftest.$ac_objext; then
26906 ac_lo=0 ac_mid=0
26907 while :; do
26908 cat >conftest.$ac_ext <<_ACEOF
26909/* confdefs.h. */
26910_ACEOF
26911cat confdefs.h >>conftest.$ac_ext
26912cat >>conftest.$ac_ext <<_ACEOF
26913/* end confdefs.h. */
26914$ac_includes_default
26915int
26916main ()
26917{
26918static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26919test_array [0] = 0
26920
26921 ;
26922 return 0;
26923}
26924_ACEOF
26925rm -f conftest.$ac_objext
26926if { (ac_try="$ac_compile"
26927case "(($ac_try" in
26928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26929 *) ac_try_echo=$ac_try;;
26930esac
26931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26932$as_echo "$ac_try_echo") >&5
26933 (eval "$ac_compile") 2>conftest.er1
26934 ac_status=$?
26935 grep -v '^ *+' conftest.er1 >conftest.err
26936 rm -f conftest.er1
26937 cat conftest.err >&5
26938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } && {
26940 test -z "$ac_c_werror_flag" ||
26941 test ! -s conftest.err
26942 } && test -s conftest.$ac_objext; then
26943 ac_hi=$ac_mid; break
26944else
26945 $as_echo "$as_me: failed program was:" >&5
26946sed 's/^/| /' conftest.$ac_ext >&5
26947
26948 ac_lo=`expr $ac_mid + 1`
26949 if test $ac_lo -le $ac_mid; then
26950 ac_lo= ac_hi=
26951 break
26952 fi
26953 ac_mid=`expr 2 '*' $ac_mid + 1`
26954fi
26955
26956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26957 done
26958else
26959 $as_echo "$as_me: failed program was:" >&5
26960sed 's/^/| /' conftest.$ac_ext >&5
26961
26962 cat >conftest.$ac_ext <<_ACEOF
26963/* confdefs.h. */
26964_ACEOF
26965cat confdefs.h >>conftest.$ac_ext
26966cat >>conftest.$ac_ext <<_ACEOF
26967/* end confdefs.h. */
26968$ac_includes_default
26969int
26970main ()
26971{
26972static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
26973test_array [0] = 0
26974
26975 ;
26976 return 0;
26977}
26978_ACEOF
26979rm -f conftest.$ac_objext
26980if { (ac_try="$ac_compile"
26981case "(($ac_try" in
26982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983 *) ac_try_echo=$ac_try;;
26984esac
26985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26986$as_echo "$ac_try_echo") >&5
26987 (eval "$ac_compile") 2>conftest.er1
26988 ac_status=$?
26989 grep -v '^ *+' conftest.er1 >conftest.err
26990 rm -f conftest.er1
26991 cat conftest.err >&5
26992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); } && {
26994 test -z "$ac_c_werror_flag" ||
26995 test ! -s conftest.err
26996 } && test -s conftest.$ac_objext; then
26997 ac_hi=-1 ac_mid=-1
26998 while :; do
26999 cat >conftest.$ac_ext <<_ACEOF
27000/* confdefs.h. */
27001_ACEOF
27002cat confdefs.h >>conftest.$ac_ext
27003cat >>conftest.$ac_ext <<_ACEOF
27004/* end confdefs.h. */
27005$ac_includes_default
27006int
27007main ()
27008{
27009static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
27010test_array [0] = 0
27011
27012 ;
27013 return 0;
27014}
27015_ACEOF
27016rm -f conftest.$ac_objext
27017if { (ac_try="$ac_compile"
27018case "(($ac_try" in
27019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020 *) ac_try_echo=$ac_try;;
27021esac
27022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27023$as_echo "$ac_try_echo") >&5
27024 (eval "$ac_compile") 2>conftest.er1
27025 ac_status=$?
27026 grep -v '^ *+' conftest.er1 >conftest.err
27027 rm -f conftest.er1
27028 cat conftest.err >&5
27029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } && {
27031 test -z "$ac_c_werror_flag" ||
27032 test ! -s conftest.err
27033 } && test -s conftest.$ac_objext; then
27034 ac_lo=$ac_mid; break
27035else
27036 $as_echo "$as_me: failed program was:" >&5
27037sed 's/^/| /' conftest.$ac_ext >&5
27038
27039 ac_hi=`expr '(' $ac_mid ')' - 1`
27040 if test $ac_mid -le $ac_hi; then
27041 ac_lo= ac_hi=
27042 break
27043 fi
27044 ac_mid=`expr 2 '*' $ac_mid`
27045fi
27046
27047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27048 done
27049else
27050 $as_echo "$as_me: failed program was:" >&5
27051sed 's/^/| /' conftest.$ac_ext >&5
27052
27053 ac_lo= ac_hi=
27054fi
27055
27056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27057fi
27058
27059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27060# Binary search between lo and hi bounds.
27061while test "x$ac_lo" != "x$ac_hi"; do
27062 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27063 cat >conftest.$ac_ext <<_ACEOF
27064/* confdefs.h. */
27065_ACEOF
27066cat confdefs.h >>conftest.$ac_ext
27067cat >>conftest.$ac_ext <<_ACEOF
27068/* end confdefs.h. */
27069$ac_includes_default
27070int
27071main ()
27072{
27073static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27074test_array [0] = 0
27075
27076 ;
27077 return 0;
27078}
27079_ACEOF
27080rm -f conftest.$ac_objext
27081if { (ac_try="$ac_compile"
27082case "(($ac_try" in
27083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084 *) ac_try_echo=$ac_try;;
27085esac
27086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27087$as_echo "$ac_try_echo") >&5
27088 (eval "$ac_compile") 2>conftest.er1
27089 ac_status=$?
27090 grep -v '^ *+' conftest.er1 >conftest.err
27091 rm -f conftest.er1
27092 cat conftest.err >&5
27093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); } && {
27095 test -z "$ac_c_werror_flag" ||
27096 test ! -s conftest.err
27097 } && test -s conftest.$ac_objext; then
27098 ac_hi=$ac_mid
27099else
27100 $as_echo "$as_me: failed program was:" >&5
27101sed 's/^/| /' conftest.$ac_ext >&5
27102
27103 ac_lo=`expr '(' $ac_mid ')' + 1`
27104fi
27105
27106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27107done
27108case $ac_lo in
27109?*) ac_cv_sizeof_off_t=$ac_lo;;
27110'') if test "$ac_cv_type_off_t" = yes; then
27111 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27113{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27114See \`config.log' for more details." >&5
27115$as_echo "$as_me: error: cannot compute sizeof (off_t)
27116See \`config.log' for more details." >&2;}
27117 { (exit 77); exit 77; }; }; }
27118 else
27119 ac_cv_sizeof_off_t=0
27120 fi ;;
27121esac
27122else
27123 cat >conftest.$ac_ext <<_ACEOF
27124/* confdefs.h. */
27125_ACEOF
27126cat confdefs.h >>conftest.$ac_ext
27127cat >>conftest.$ac_ext <<_ACEOF
27128/* end confdefs.h. */
27129$ac_includes_default
27130static long int longval () { return (long int) (sizeof (off_t)); }
27131static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
27132#include <stdio.h>
27133#include <stdlib.h>
27134int
27135main ()
27136{
27137
27138 FILE *f = fopen ("conftest.val", "w");
27139 if (! f)
27140 return 1;
27141 if (((long int) (sizeof (off_t))) < 0)
27142 {
27143 long int i = longval ();
27144 if (i != ((long int) (sizeof (off_t))))
27145 return 1;
27146 fprintf (f, "%ld", i);
27147 }
27148 else
27149 {
27150 unsigned long int i = ulongval ();
27151 if (i != ((long int) (sizeof (off_t))))
27152 return 1;
27153 fprintf (f, "%lu", i);
27154 }
27155 /* Do not output a trailing newline, as this causes \r\n confusion
27156 on some platforms. */
27157 return ferror (f) || fclose (f) != 0;
27158
27159 ;
27160 return 0;
27161}
27162_ACEOF
27163rm -f conftest$ac_exeext
27164if { (ac_try="$ac_link"
27165case "(($ac_try" in
27166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27167 *) ac_try_echo=$ac_try;;
27168esac
27169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27170$as_echo "$ac_try_echo") >&5
27171 (eval "$ac_link") 2>&5
27172 ac_status=$?
27173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27175 { (case "(($ac_try" in
27176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27177 *) ac_try_echo=$ac_try;;
27178esac
27179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27180$as_echo "$ac_try_echo") >&5
27181 (eval "$ac_try") 2>&5
27182 ac_status=$?
27183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); }; }; then
27185 ac_cv_sizeof_off_t=`cat conftest.val`
27186else
27187 $as_echo "$as_me: program exited with status $ac_status" >&5
27188$as_echo "$as_me: failed program was:" >&5
27189sed 's/^/| /' conftest.$ac_ext >&5
27190
27191( exit $ac_status )
27192if test "$ac_cv_type_off_t" = yes; then
27193 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27195{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27196See \`config.log' for more details." >&5
27197$as_echo "$as_me: error: cannot compute sizeof (off_t)
27198See \`config.log' for more details." >&2;}
27199 { (exit 77); exit 77; }; }; }
27200 else
27201 ac_cv_sizeof_off_t=0
27202 fi
27203fi
27204rm -rf conftest.dSYM
27205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27206fi
27207rm -f conftest.val
27208fi
27209{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
27210$as_echo "$ac_cv_sizeof_off_t" >&6; }
27211
27212
27213
27214cat >>confdefs.h <<_ACEOF
27215#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27216_ACEOF
27217
27218
27219
27220# Obtain size of size_t and define as SIZEOF_SIZE_T
27221# The cast to long int works around a bug in the HP C Compiler
27222# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27223# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27224# This bug is HP SR number 8606223364.
27225{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
27226$as_echo_n "checking size of size_t... " >&6; }
27227if test "${ac_cv_sizeof_size_t+set}" = set; then
27228 $as_echo_n "(cached) " >&6
27229else
27230 if test "$cross_compiling" = yes; then
27231 # Depending upon the size, compute the lo and hi bounds.
27232cat >conftest.$ac_ext <<_ACEOF
27233/* confdefs.h. */
27234_ACEOF
27235cat confdefs.h >>conftest.$ac_ext
27236cat >>conftest.$ac_ext <<_ACEOF
27237/* end confdefs.h. */
27238$ac_includes_default
27239int
27240main ()
27241{
27242static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
27243test_array [0] = 0
27244
27245 ;
27246 return 0;
27247}
27248_ACEOF
27249rm -f conftest.$ac_objext
27250if { (ac_try="$ac_compile"
27251case "(($ac_try" in
27252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27253 *) ac_try_echo=$ac_try;;
27254esac
27255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27256$as_echo "$ac_try_echo") >&5
27257 (eval "$ac_compile") 2>conftest.er1
27258 ac_status=$?
27259 grep -v '^ *+' conftest.er1 >conftest.err
27260 rm -f conftest.er1
27261 cat conftest.err >&5
27262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); } && {
27264 test -z "$ac_c_werror_flag" ||
27265 test ! -s conftest.err
27266 } && test -s conftest.$ac_objext; then
27267 ac_lo=0 ac_mid=0
27268 while :; do
27269 cat >conftest.$ac_ext <<_ACEOF
27270/* confdefs.h. */
27271_ACEOF
27272cat confdefs.h >>conftest.$ac_ext
27273cat >>conftest.$ac_ext <<_ACEOF
27274/* end confdefs.h. */
27275$ac_includes_default
27276int
27277main ()
27278{
27279static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27280test_array [0] = 0
27281
27282 ;
27283 return 0;
27284}
27285_ACEOF
27286rm -f conftest.$ac_objext
27287if { (ac_try="$ac_compile"
27288case "(($ac_try" in
27289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27290 *) ac_try_echo=$ac_try;;
27291esac
27292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27293$as_echo "$ac_try_echo") >&5
27294 (eval "$ac_compile") 2>conftest.er1
27295 ac_status=$?
27296 grep -v '^ *+' conftest.er1 >conftest.err
27297 rm -f conftest.er1
27298 cat conftest.err >&5
27299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300 (exit $ac_status); } && {
27301 test -z "$ac_c_werror_flag" ||
27302 test ! -s conftest.err
27303 } && test -s conftest.$ac_objext; then
27304 ac_hi=$ac_mid; break
27305else
27306 $as_echo "$as_me: failed program was:" >&5
27307sed 's/^/| /' conftest.$ac_ext >&5
27308
27309 ac_lo=`expr $ac_mid + 1`
27310 if test $ac_lo -le $ac_mid; then
27311 ac_lo= ac_hi=
27312 break
27313 fi
27314 ac_mid=`expr 2 '*' $ac_mid + 1`
27315fi
27316
27317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27318 done
27319else
27320 $as_echo "$as_me: failed program was:" >&5
27321sed 's/^/| /' conftest.$ac_ext >&5
27322
27323 cat >conftest.$ac_ext <<_ACEOF
27324/* confdefs.h. */
27325_ACEOF
27326cat confdefs.h >>conftest.$ac_ext
27327cat >>conftest.$ac_ext <<_ACEOF
27328/* end confdefs.h. */
27329$ac_includes_default
27330int
27331main ()
27332{
27333static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
27334test_array [0] = 0
27335
27336 ;
27337 return 0;
27338}
27339_ACEOF
27340rm -f conftest.$ac_objext
27341if { (ac_try="$ac_compile"
27342case "(($ac_try" in
27343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27344 *) ac_try_echo=$ac_try;;
27345esac
27346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27347$as_echo "$ac_try_echo") >&5
27348 (eval "$ac_compile") 2>conftest.er1
27349 ac_status=$?
27350 grep -v '^ *+' conftest.er1 >conftest.err
27351 rm -f conftest.er1
27352 cat conftest.err >&5
27353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); } && {
27355 test -z "$ac_c_werror_flag" ||
27356 test ! -s conftest.err
27357 } && test -s conftest.$ac_objext; then
27358 ac_hi=-1 ac_mid=-1
27359 while :; do
27360 cat >conftest.$ac_ext <<_ACEOF
27361/* confdefs.h. */
27362_ACEOF
27363cat confdefs.h >>conftest.$ac_ext
27364cat >>conftest.$ac_ext <<_ACEOF
27365/* end confdefs.h. */
27366$ac_includes_default
27367int
27368main ()
27369{
27370static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
27371test_array [0] = 0
27372
27373 ;
27374 return 0;
27375}
27376_ACEOF
27377rm -f conftest.$ac_objext
27378if { (ac_try="$ac_compile"
27379case "(($ac_try" in
27380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27381 *) ac_try_echo=$ac_try;;
27382esac
27383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27384$as_echo "$ac_try_echo") >&5
27385 (eval "$ac_compile") 2>conftest.er1
27386 ac_status=$?
27387 grep -v '^ *+' conftest.er1 >conftest.err
27388 rm -f conftest.er1
27389 cat conftest.err >&5
27390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); } && {
27392 test -z "$ac_c_werror_flag" ||
27393 test ! -s conftest.err
27394 } && test -s conftest.$ac_objext; then
27395 ac_lo=$ac_mid; break
27396else
27397 $as_echo "$as_me: failed program was:" >&5
27398sed 's/^/| /' conftest.$ac_ext >&5
27399
27400 ac_hi=`expr '(' $ac_mid ')' - 1`
27401 if test $ac_mid -le $ac_hi; then
27402 ac_lo= ac_hi=
27403 break
27404 fi
27405 ac_mid=`expr 2 '*' $ac_mid`
27406fi
27407
27408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27409 done
27410else
27411 $as_echo "$as_me: failed program was:" >&5
27412sed 's/^/| /' conftest.$ac_ext >&5
27413
27414 ac_lo= ac_hi=
27415fi
27416
27417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27418fi
27419
27420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27421# Binary search between lo and hi bounds.
27422while test "x$ac_lo" != "x$ac_hi"; do
27423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27424 cat >conftest.$ac_ext <<_ACEOF
27425/* confdefs.h. */
27426_ACEOF
27427cat confdefs.h >>conftest.$ac_ext
27428cat >>conftest.$ac_ext <<_ACEOF
27429/* end confdefs.h. */
27430$ac_includes_default
27431int
27432main ()
27433{
27434static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27435test_array [0] = 0
27436
27437 ;
27438 return 0;
27439}
27440_ACEOF
27441rm -f conftest.$ac_objext
27442if { (ac_try="$ac_compile"
27443case "(($ac_try" in
27444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445 *) ac_try_echo=$ac_try;;
27446esac
27447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27448$as_echo "$ac_try_echo") >&5
27449 (eval "$ac_compile") 2>conftest.er1
27450 ac_status=$?
27451 grep -v '^ *+' conftest.er1 >conftest.err
27452 rm -f conftest.er1
27453 cat conftest.err >&5
27454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); } && {
27456 test -z "$ac_c_werror_flag" ||
27457 test ! -s conftest.err
27458 } && test -s conftest.$ac_objext; then
27459 ac_hi=$ac_mid
27460else
27461 $as_echo "$as_me: failed program was:" >&5
27462sed 's/^/| /' conftest.$ac_ext >&5
27463
27464 ac_lo=`expr '(' $ac_mid ')' + 1`
27465fi
27466
27467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27468done
27469case $ac_lo in
27470?*) ac_cv_sizeof_size_t=$ac_lo;;
27471'') if test "$ac_cv_type_size_t" = yes; then
27472 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27474{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27475See \`config.log' for more details." >&5
27476$as_echo "$as_me: error: cannot compute sizeof (size_t)
27477See \`config.log' for more details." >&2;}
27478 { (exit 77); exit 77; }; }; }
27479 else
27480 ac_cv_sizeof_size_t=0
27481 fi ;;
27482esac
27483else
27484 cat >conftest.$ac_ext <<_ACEOF
27485/* confdefs.h. */
27486_ACEOF
27487cat confdefs.h >>conftest.$ac_ext
27488cat >>conftest.$ac_ext <<_ACEOF
27489/* end confdefs.h. */
27490$ac_includes_default
27491static long int longval () { return (long int) (sizeof (size_t)); }
27492static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
27493#include <stdio.h>
27494#include <stdlib.h>
27495int
27496main ()
27497{
27498
27499 FILE *f = fopen ("conftest.val", "w");
27500 if (! f)
27501 return 1;
27502 if (((long int) (sizeof (size_t))) < 0)
27503 {
27504 long int i = longval ();
27505 if (i != ((long int) (sizeof (size_t))))
27506 return 1;
27507 fprintf (f, "%ld", i);
27508 }
27509 else
27510 {
27511 unsigned long int i = ulongval ();
27512 if (i != ((long int) (sizeof (size_t))))
27513 return 1;
27514 fprintf (f, "%lu", i);
27515 }
27516 /* Do not output a trailing newline, as this causes \r\n confusion
27517 on some platforms. */
27518 return ferror (f) || fclose (f) != 0;
27519
27520 ;
27521 return 0;
27522}
27523_ACEOF
27524rm -f conftest$ac_exeext
27525if { (ac_try="$ac_link"
27526case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27529esac
27530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27531$as_echo "$ac_try_echo") >&5
27532 (eval "$ac_link") 2>&5
27533 ac_status=$?
27534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27536 { (case "(($ac_try" in
27537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27538 *) ac_try_echo=$ac_try;;
27539esac
27540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27541$as_echo "$ac_try_echo") >&5
27542 (eval "$ac_try") 2>&5
27543 ac_status=$?
27544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); }; }; then
27546 ac_cv_sizeof_size_t=`cat conftest.val`
27547else
27548 $as_echo "$as_me: program exited with status $ac_status" >&5
27549$as_echo "$as_me: failed program was:" >&5
27550sed 's/^/| /' conftest.$ac_ext >&5
27551
27552( exit $ac_status )
27553if test "$ac_cv_type_size_t" = yes; then
27554 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27556{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27557See \`config.log' for more details." >&5
27558$as_echo "$as_me: error: cannot compute sizeof (size_t)
27559See \`config.log' for more details." >&2;}
27560 { (exit 77); exit 77; }; }; }
27561 else
27562 ac_cv_sizeof_size_t=0
27563 fi
27564fi
27565rm -rf conftest.dSYM
27566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27567fi
27568rm -f conftest.val
27569fi
27570{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27571$as_echo "$ac_cv_sizeof_size_t" >&6; }
27572
27573
27574
27575cat >>confdefs.h <<_ACEOF
27576#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27577_ACEOF
27578
27579
27580
27581# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
27582# The cast to long int works around a bug in the HP C Compiler
27583# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27584# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27585# This bug is HP SR number 8606223364.
27586{ $as_echo "$as_me:$LINENO: checking size of unsigned int*" >&5
27587$as_echo_n "checking size of unsigned int*... " >&6; }
27588if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then
27589 $as_echo_n "(cached) " >&6
27590else
27591 if test "$cross_compiling" = yes; then
27592 # Depending upon the size, compute the lo and hi bounds.
27593cat >conftest.$ac_ext <<_ACEOF
27594/* confdefs.h. */
27595_ACEOF
27596cat confdefs.h >>conftest.$ac_ext
27597cat >>conftest.$ac_ext <<_ACEOF
27598/* end confdefs.h. */
27599$ac_includes_default
27600int
27601main ()
27602{
27603static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= 0)];
27604test_array [0] = 0
27605
27606 ;
27607 return 0;
27608}
27609_ACEOF
27610rm -f conftest.$ac_objext
27611if { (ac_try="$ac_compile"
27612case "(($ac_try" in
27613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27614 *) ac_try_echo=$ac_try;;
27615esac
27616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27617$as_echo "$ac_try_echo") >&5
27618 (eval "$ac_compile") 2>conftest.er1
27619 ac_status=$?
27620 grep -v '^ *+' conftest.er1 >conftest.err
27621 rm -f conftest.er1
27622 cat conftest.err >&5
27623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); } && {
27625 test -z "$ac_c_werror_flag" ||
27626 test ! -s conftest.err
27627 } && test -s conftest.$ac_objext; then
27628 ac_lo=0 ac_mid=0
27629 while :; do
27630 cat >conftest.$ac_ext <<_ACEOF
27631/* confdefs.h. */
27632_ACEOF
27633cat confdefs.h >>conftest.$ac_ext
27634cat >>conftest.$ac_ext <<_ACEOF
27635/* end confdefs.h. */
27636$ac_includes_default
27637int
27638main ()
27639{
27640static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
27641test_array [0] = 0
27642
27643 ;
27644 return 0;
27645}
27646_ACEOF
27647rm -f conftest.$ac_objext
27648if { (ac_try="$ac_compile"
27649case "(($ac_try" in
27650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27652esac
27653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27654$as_echo "$ac_try_echo") >&5
27655 (eval "$ac_compile") 2>conftest.er1
27656 ac_status=$?
27657 grep -v '^ *+' conftest.er1 >conftest.err
27658 rm -f conftest.er1
27659 cat conftest.err >&5
27660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); } && {
27662 test -z "$ac_c_werror_flag" ||
27663 test ! -s conftest.err
27664 } && test -s conftest.$ac_objext; then
27665 ac_hi=$ac_mid; break
27666else
27667 $as_echo "$as_me: failed program was:" >&5
27668sed 's/^/| /' conftest.$ac_ext >&5
27669
27670 ac_lo=`expr $ac_mid + 1`
27671 if test $ac_lo -le $ac_mid; then
27672 ac_lo= ac_hi=
27673 break
27674 fi
27675 ac_mid=`expr 2 '*' $ac_mid + 1`
27676fi
27677
27678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27679 done
27680else
27681 $as_echo "$as_me: failed program was:" >&5
27682sed 's/^/| /' conftest.$ac_ext >&5
27683
27684 cat >conftest.$ac_ext <<_ACEOF
27685/* confdefs.h. */
27686_ACEOF
27687cat confdefs.h >>conftest.$ac_ext
27688cat >>conftest.$ac_ext <<_ACEOF
27689/* end confdefs.h. */
27690$ac_includes_default
27691int
27692main ()
27693{
27694static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) < 0)];
27695test_array [0] = 0
27696
27697 ;
27698 return 0;
27699}
27700_ACEOF
27701rm -f conftest.$ac_objext
27702if { (ac_try="$ac_compile"
27703case "(($ac_try" in
27704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705 *) ac_try_echo=$ac_try;;
27706esac
27707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27708$as_echo "$ac_try_echo") >&5
27709 (eval "$ac_compile") 2>conftest.er1
27710 ac_status=$?
27711 grep -v '^ *+' conftest.er1 >conftest.err
27712 rm -f conftest.er1
27713 cat conftest.err >&5
27714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } && {
27716 test -z "$ac_c_werror_flag" ||
27717 test ! -s conftest.err
27718 } && test -s conftest.$ac_objext; then
27719 ac_hi=-1 ac_mid=-1
27720 while :; do
27721 cat >conftest.$ac_ext <<_ACEOF
27722/* confdefs.h. */
27723_ACEOF
27724cat confdefs.h >>conftest.$ac_ext
27725cat >>conftest.$ac_ext <<_ACEOF
27726/* end confdefs.h. */
27727$ac_includes_default
27728int
27729main ()
27730{
27731static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= $ac_mid)];
27732test_array [0] = 0
27733
27734 ;
27735 return 0;
27736}
27737_ACEOF
27738rm -f conftest.$ac_objext
27739if { (ac_try="$ac_compile"
27740case "(($ac_try" in
27741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742 *) ac_try_echo=$ac_try;;
27743esac
27744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27745$as_echo "$ac_try_echo") >&5
27746 (eval "$ac_compile") 2>conftest.er1
27747 ac_status=$?
27748 grep -v '^ *+' conftest.er1 >conftest.err
27749 rm -f conftest.er1
27750 cat conftest.err >&5
27751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); } && {
27753 test -z "$ac_c_werror_flag" ||
27754 test ! -s conftest.err
27755 } && test -s conftest.$ac_objext; then
27756 ac_lo=$ac_mid; break
27757else
27758 $as_echo "$as_me: failed program was:" >&5
27759sed 's/^/| /' conftest.$ac_ext >&5
27760
27761 ac_hi=`expr '(' $ac_mid ')' - 1`
27762 if test $ac_mid -le $ac_hi; then
27763 ac_lo= ac_hi=
27764 break
27765 fi
27766 ac_mid=`expr 2 '*' $ac_mid`
27767fi
27768
27769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27770 done
27771else
27772 $as_echo "$as_me: failed program was:" >&5
27773sed 's/^/| /' conftest.$ac_ext >&5
27774
27775 ac_lo= ac_hi=
27776fi
27777
27778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27779fi
27780
27781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27782# Binary search between lo and hi bounds.
27783while test "x$ac_lo" != "x$ac_hi"; do
27784 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27785 cat >conftest.$ac_ext <<_ACEOF
27786/* confdefs.h. */
27787_ACEOF
27788cat confdefs.h >>conftest.$ac_ext
27789cat >>conftest.$ac_ext <<_ACEOF
27790/* end confdefs.h. */
27791$ac_includes_default
27792int
27793main ()
27794{
27795static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
27796test_array [0] = 0
27797
27798 ;
27799 return 0;
27800}
27801_ACEOF
27802rm -f conftest.$ac_objext
27803if { (ac_try="$ac_compile"
27804case "(($ac_try" in
27805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27806 *) ac_try_echo=$ac_try;;
27807esac
27808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27809$as_echo "$ac_try_echo") >&5
27810 (eval "$ac_compile") 2>conftest.er1
27811 ac_status=$?
27812 grep -v '^ *+' conftest.er1 >conftest.err
27813 rm -f conftest.er1
27814 cat conftest.err >&5
27815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); } && {
27817 test -z "$ac_c_werror_flag" ||
27818 test ! -s conftest.err
27819 } && test -s conftest.$ac_objext; then
27820 ac_hi=$ac_mid
27821else
27822 $as_echo "$as_me: failed program was:" >&5
27823sed 's/^/| /' conftest.$ac_ext >&5
27824
27825 ac_lo=`expr '(' $ac_mid ')' + 1`
27826fi
27827
27828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27829done
27830case $ac_lo in
27831?*) ac_cv_sizeof_unsigned_intp=$ac_lo;;
27832'') if test "$ac_cv_type_unsigned_intp" = yes; then
27833 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27835{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
27836See \`config.log' for more details." >&5
27837$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
27838See \`config.log' for more details." >&2;}
27839 { (exit 77); exit 77; }; }; }
27840 else
27841 ac_cv_sizeof_unsigned_intp=0
27842 fi ;;
27843esac
27844else
27845 cat >conftest.$ac_ext <<_ACEOF
27846/* confdefs.h. */
27847_ACEOF
27848cat confdefs.h >>conftest.$ac_ext
27849cat >>conftest.$ac_ext <<_ACEOF
27850/* end confdefs.h. */
27851$ac_includes_default
27852static long int longval () { return (long int) (sizeof (unsigned int*)); }
27853static unsigned long int ulongval () { return (long int) (sizeof (unsigned int*)); }
27854#include <stdio.h>
27855#include <stdlib.h>
27856int
27857main ()
27858{
27859
27860 FILE *f = fopen ("conftest.val", "w");
27861 if (! f)
27862 return 1;
27863 if (((long int) (sizeof (unsigned int*))) < 0)
27864 {
27865 long int i = longval ();
27866 if (i != ((long int) (sizeof (unsigned int*))))
27867 return 1;
27868 fprintf (f, "%ld", i);
27869 }
27870 else
27871 {
27872 unsigned long int i = ulongval ();
27873 if (i != ((long int) (sizeof (unsigned int*))))
27874 return 1;
27875 fprintf (f, "%lu", i);
27876 }
27877 /* Do not output a trailing newline, as this causes \r\n confusion
27878 on some platforms. */
27879 return ferror (f) || fclose (f) != 0;
27880
27881 ;
27882 return 0;
27883}
27884_ACEOF
27885rm -f conftest$ac_exeext
27886if { (ac_try="$ac_link"
27887case "(($ac_try" in
27888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889 *) ac_try_echo=$ac_try;;
27890esac
27891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27892$as_echo "$ac_try_echo") >&5
27893 (eval "$ac_link") 2>&5
27894 ac_status=$?
27895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27897 { (case "(($ac_try" in
27898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899 *) ac_try_echo=$ac_try;;
27900esac
27901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27902$as_echo "$ac_try_echo") >&5
27903 (eval "$ac_try") 2>&5
27904 ac_status=$?
27905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); }; }; then
27907 ac_cv_sizeof_unsigned_intp=`cat conftest.val`
27908else
27909 $as_echo "$as_me: program exited with status $ac_status" >&5
27910$as_echo "$as_me: failed program was:" >&5
27911sed 's/^/| /' conftest.$ac_ext >&5
27912
27913( exit $ac_status )
27914if test "$ac_cv_type_unsigned_intp" = yes; then
27915 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27917{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
27918See \`config.log' for more details." >&5
27919$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
27920See \`config.log' for more details." >&2;}
27921 { (exit 77); exit 77; }; }; }
27922 else
27923 ac_cv_sizeof_unsigned_intp=0
27924 fi
27925fi
27926rm -rf conftest.dSYM
27927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27928fi
27929rm -f conftest.val
27930fi
27931{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_intp" >&5
27932$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
27933
27934
27935
27936cat >>confdefs.h <<_ACEOF
27937#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
27938_ACEOF
27939
27940
27941
27942#
27943# Compute sized types for current CPU and compiler options.
27944#
27945
27946{ $as_echo "$as_me:$LINENO: checking for signed 8-bit type" >&5
27947$as_echo_n "checking for signed 8-bit type... " >&6; }
27948INT8_T='signed char'
27949{ $as_echo "$as_me:$LINENO: result: $INT8_T" >&5
27950$as_echo "$INT8_T" >&6; }
27951
27952
27953{ $as_echo "$as_me:$LINENO: checking for unsigned 8-bit type" >&5
27954$as_echo_n "checking for unsigned 8-bit type... " >&6; }
27955UINT8_T='unsigned char'
27956{ $as_echo "$as_me:$LINENO: result: $UINT8_T" >&5
27957$as_echo "$UINT8_T" >&6; }
27958
27959
27960{ $as_echo "$as_me:$LINENO: checking for signed 16-bit type" >&5
27961$as_echo_n "checking for signed 16-bit type... " >&6; }
27962INT16_T='signed short'
27963{ $as_echo "$as_me:$LINENO: result: $INT16_T" >&5
27964$as_echo "$INT16_T" >&6; }
27965
27966
27967{ $as_echo "$as_me:$LINENO: checking for unsigned 16-bit type" >&5
27968$as_echo_n "checking for unsigned 16-bit type... " >&6; }
27969UINT16_T='unsigned short'
27970{ $as_echo "$as_me:$LINENO: result: $UINT16_T" >&5
27971$as_echo "$UINT16_T" >&6; }
27972
27973
27974{ $as_echo "$as_me:$LINENO: checking for signed 32-bit type" >&5
27975$as_echo_n "checking for signed 32-bit type... " >&6; }
27976INT32_T='none'
27977if test $ac_cv_sizeof_signed_int -eq 4; then
27978 INT32_T='signed int'
27979elif test $ac_cv_sizeof_signed_long -eq 4; then
27980 INT32_T='signed long'
27981fi
27982{ $as_echo "$as_me:$LINENO: result: $INT32_T" >&5
27983$as_echo "$INT32_T" >&6; }
27984
27985
27986{ $as_echo "$as_me:$LINENO: checking for unsigned 32-bit type" >&5
27987$as_echo_n "checking for unsigned 32-bit type... " >&6; }
27988UINT32_T='none'
27989if test $ac_cv_sizeof_unsigned_int -eq 4; then
27990 UINT32_T='unsigned int'
27991elif test $ac_cv_sizeof_unsigned_long -eq 4; then
27992 UINT32_T='unsigned long'
27993fi
27994{ $as_echo "$as_me:$LINENO: result: $UINT32_T" >&5
27995$as_echo "$UINT32_T" >&6; }
27996
27997
27998{ $as_echo "$as_me:$LINENO: checking for signed 64-bit type" >&5
27999$as_echo_n "checking for signed 64-bit type... " >&6; }
28000INT64_T='none'
28001if test $ac_cv_sizeof_signed_long -eq 8; then
28002 INT64_T='signed long'
28003elif test $ac_cv_sizeof_signed_long_long -eq 8; then
28004 INT64_T='signed long long'
28005fi
28006{ $as_echo "$as_me:$LINENO: result: $INT64_T" >&5
28007$as_echo "$INT64_T" >&6; }
28008
28009
28010{ $as_echo "$as_me:$LINENO: checking for unsigned 64-bit type" >&5
28011$as_echo_n "checking for unsigned 64-bit type... " >&6; }
28012UINT64_T='none'
28013if test $ac_cv_sizeof_unsigned_long -eq 8; then
28014 UINT64_T='unsigned long'
28015elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
28016 UINT64_T='unsigned long long'
28017fi
28018{ $as_echo "$as_me:$LINENO: result: $UINT64_T" >&5
28019$as_echo "$UINT64_T" >&6; }
28020
28021
28022{ $as_echo "$as_me:$LINENO: checking for unsigned maximum type" >&5
28023$as_echo_n "checking for unsigned maximum type... " >&6; }
28024UINTMAX_T='none'
28025if test "$UINT64_T" != 'none'; then
28026 UINTMAX_T=$UINT64_T
28027elif test "$UINT32_T" != 'none'; then
28028 UINTMAX_T=$UINT32_T
28029fi
28030{ $as_echo "$as_me:$LINENO: result: $UINTMAX_T" >&5
28031$as_echo "$UINTMAX_T" >&6; }
28032
28033
28034{ $as_echo "$as_me:$LINENO: checking for pointer difference type" >&5
28035$as_echo_n "checking for pointer difference type... " >&6; }
28036UINTPTR_T='none'
28037if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
28038 UINTPTR_T='unsigned long'
28039elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
28040 UINTPTR_T='unsigned long long'
28041fi
28042{ $as_echo "$as_me:$LINENO: result: $UINTPTR_T" >&5
28043$as_echo "$UINTPTR_T" >&6; }
28044
28045
28046{ $as_echo "$as_me:$LINENO: checking whether our compiler supports __func__" >&5
28047$as_echo_n "checking whether our compiler supports __func__... " >&6; }
28048cat >conftest.$ac_ext <<_ACEOF
28049/* confdefs.h. */
28050_ACEOF
28051cat confdefs.h >>conftest.$ac_ext
28052cat >>conftest.$ac_ext <<_ACEOF
28053/* end confdefs.h. */
28054
28055int
28056main ()
28057{
28058{ const char *func = __func__; return(func != 0 ? 0 : 1); }
28059 ;
28060 return 0;
28061}
28062_ACEOF
28063rm -f conftest.$ac_objext
28064if { (ac_try="$ac_compile"
28065case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28068esac
28069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28070$as_echo "$ac_try_echo") >&5
28071 (eval "$ac_compile") 2>conftest.er1
28072 ac_status=$?
28073 grep -v '^ *+' conftest.er1 >conftest.err
28074 rm -f conftest.er1
28075 cat conftest.err >&5
28076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); } && {
28078 test -z "$ac_c_werror_flag" ||
28079 test ! -s conftest.err
28080 } && test -s conftest.$ac_objext; then
28081 { $as_echo "$as_me:$LINENO: result: yes" >&5
28082$as_echo "yes" >&6; }
28083else
28084 $as_echo "$as_me: failed program was:" >&5
28085sed 's/^/| /' conftest.$ac_ext >&5
28086
28087 { $as_echo "$as_me:$LINENO: result: no" >&5
28088$as_echo "no" >&6; }
28089 { $as_echo "$as_me:$LINENO: checking whether our compiler supports __FUNCTION__" >&5
28090$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
28091 cat >conftest.$ac_ext <<_ACEOF
28092/* confdefs.h. */
28093_ACEOF
28094cat confdefs.h >>conftest.$ac_ext
28095cat >>conftest.$ac_ext <<_ACEOF
28096/* end confdefs.h. */
28097
28098int
28099main ()
28100{
28101{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
28102 ;
28103 return 0;
28104}
28105_ACEOF
28106rm -f conftest.$ac_objext
28107if { (ac_try="$ac_compile"
28108case "(($ac_try" in
28109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110 *) ac_try_echo=$ac_try;;
28111esac
28112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28113$as_echo "$ac_try_echo") >&5
28114 (eval "$ac_compile") 2>conftest.er1
28115 ac_status=$?
28116 grep -v '^ *+' conftest.er1 >conftest.err
28117 rm -f conftest.er1
28118 cat conftest.err >&5
28119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120 (exit $ac_status); } && {
28121 test -z "$ac_c_werror_flag" ||
28122 test ! -s conftest.err
28123 } && test -s conftest.$ac_objext; then
28124 { $as_echo "$as_me:$LINENO: result: yes" >&5
28125$as_echo "yes" >&6; }
28126
28127cat >>confdefs.h <<\_ACEOF
28128#define __func__ __FUNCTION__
28129_ACEOF
28130
28131else
28132 $as_echo "$as_me: failed program was:" >&5
28133sed 's/^/| /' conftest.$ac_ext >&5
28134
28135 { $as_echo "$as_me:$LINENO: result: no" >&5
28136$as_echo "no" >&6; }
28137
28138cat >>confdefs.h <<\_ACEOF
28139#define __func__ __FILE__
28140_ACEOF
28141
28142fi
28143
28144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28145fi
28146
28147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28148
28149########
28150#
28151# Check for functions
28152#
28153########
28154
28155
28156for ac_header in stdlib.h unistd.h
28157do
28158as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28160 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28161$as_echo_n "checking for $ac_header... " >&6; }
28162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28163 $as_echo_n "(cached) " >&6
28164fi
28165ac_res=`eval 'as_val=${'$as_ac_Header'}
28166 $as_echo "$as_val"'`
28167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28168$as_echo "$ac_res" >&6; }
28169else
28170 # Is the header compilable?
28171{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28172$as_echo_n "checking $ac_header usability... " >&6; }
28173cat >conftest.$ac_ext <<_ACEOF
28174/* confdefs.h. */
28175_ACEOF
28176cat confdefs.h >>conftest.$ac_ext
28177cat >>conftest.$ac_ext <<_ACEOF
28178/* end confdefs.h. */
28179$ac_includes_default
28180#include <$ac_header>
28181_ACEOF
28182rm -f conftest.$ac_objext
28183if { (ac_try="$ac_compile"
28184case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28187esac
28188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28189$as_echo "$ac_try_echo") >&5
28190 (eval "$ac_compile") 2>conftest.er1
28191 ac_status=$?
28192 grep -v '^ *+' conftest.er1 >conftest.err
28193 rm -f conftest.er1
28194 cat conftest.err >&5
28195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); } && {
28197 test -z "$ac_c_werror_flag" ||
28198 test ! -s conftest.err
28199 } && test -s conftest.$ac_objext; then
28200 ac_header_compiler=yes
28201else
28202 $as_echo "$as_me: failed program was:" >&5
28203sed 's/^/| /' conftest.$ac_ext >&5
28204
28205 ac_header_compiler=no
28206fi
28207
28208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28209{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28210$as_echo "$ac_header_compiler" >&6; }
28211
28212# Is the header present?
28213{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28214$as_echo_n "checking $ac_header presence... " >&6; }
28215cat >conftest.$ac_ext <<_ACEOF
28216/* confdefs.h. */
28217_ACEOF
28218cat confdefs.h >>conftest.$ac_ext
28219cat >>conftest.$ac_ext <<_ACEOF
28220/* end confdefs.h. */
28221#include <$ac_header>
28222_ACEOF
28223if { (ac_try="$ac_cpp conftest.$ac_ext"
28224case "(($ac_try" in
28225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28226 *) ac_try_echo=$ac_try;;
28227esac
28228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28229$as_echo "$ac_try_echo") >&5
28230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28231 ac_status=$?
28232 grep -v '^ *+' conftest.er1 >conftest.err
28233 rm -f conftest.er1
28234 cat conftest.err >&5
28235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); } >/dev/null && {
28237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28238 test ! -s conftest.err
28239 }; then
28240 ac_header_preproc=yes
28241else
28242 $as_echo "$as_me: failed program was:" >&5
28243sed 's/^/| /' conftest.$ac_ext >&5
28244
28245 ac_header_preproc=no
28246fi
28247
28248rm -f conftest.err conftest.$ac_ext
28249{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28250$as_echo "$ac_header_preproc" >&6; }
28251
28252# So? What about this header?
28253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28254 yes:no: )
28255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28256$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28258$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28259 ac_header_preproc=yes
28260 ;;
28261 no:yes:* )
28262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28263$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28265$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28267$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28269$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28271$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28273$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28274 ( cat <<\_ASBOX
28275## ----------------------------------------- ##
28276## Report this to http://www.imagemagick.org ##
28277## ----------------------------------------- ##
28278_ASBOX
28279 ) | sed "s/^/$as_me: WARNING: /" >&2
28280 ;;
28281esac
28282{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28283$as_echo_n "checking for $ac_header... " >&6; }
28284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28285 $as_echo_n "(cached) " >&6
28286else
28287 eval "$as_ac_Header=\$ac_header_preproc"
28288fi
28289ac_res=`eval 'as_val=${'$as_ac_Header'}
28290 $as_echo "$as_val"'`
28291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28292$as_echo "$ac_res" >&6; }
28293
28294fi
28295as_val=`eval 'as_val=${'$as_ac_Header'}
28296 $as_echo "$as_val"'`
28297 if test "x$as_val" = x""yes; then
28298 cat >>confdefs.h <<_ACEOF
28299#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28300_ACEOF
28301
28302fi
28303
28304done
28305
28306
28307for ac_func in getpagesize
28308do
28309as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28310{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28311$as_echo_n "checking for $ac_func... " >&6; }
28312if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28313 $as_echo_n "(cached) " >&6
28314else
28315 cat >conftest.$ac_ext <<_ACEOF
28316/* confdefs.h. */
28317_ACEOF
28318cat confdefs.h >>conftest.$ac_ext
28319cat >>conftest.$ac_ext <<_ACEOF
28320/* end confdefs.h. */
28321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28323#define $ac_func innocuous_$ac_func
28324
28325/* System header to define __stub macros and hopefully few prototypes,
28326 which can conflict with char $ac_func (); below.
28327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28328 <limits.h> exists even on freestanding compilers. */
28329
28330#ifdef __STDC__
28331# include <limits.h>
28332#else
28333# include <assert.h>
28334#endif
28335
28336#undef $ac_func
28337
28338/* Override any GCC internal prototype to avoid an error.
28339 Use char because int might match the return type of a GCC
28340 builtin and then its argument prototype would still apply. */
28341#ifdef __cplusplus
28342extern "C"
28343#endif
28344char $ac_func ();
28345/* The GNU C library defines this for functions which it implements
28346 to always fail with ENOSYS. Some functions are actually named
28347 something starting with __ and the normal name is an alias. */
28348#if defined __stub_$ac_func || defined __stub___$ac_func
28349choke me
28350#endif
28351
28352int
28353main ()
28354{
28355return $ac_func ();
28356 ;
28357 return 0;
28358}
28359_ACEOF
28360rm -f conftest.$ac_objext conftest$ac_exeext
28361if { (ac_try="$ac_link"
28362case "(($ac_try" in
28363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28364 *) ac_try_echo=$ac_try;;
28365esac
28366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28367$as_echo "$ac_try_echo") >&5
28368 (eval "$ac_link") 2>conftest.er1
28369 ac_status=$?
28370 grep -v '^ *+' conftest.er1 >conftest.err
28371 rm -f conftest.er1
28372 cat conftest.err >&5
28373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); } && {
28375 test -z "$ac_c_werror_flag" ||
28376 test ! -s conftest.err
28377 } && test -s conftest$ac_exeext && {
28378 test "$cross_compiling" = yes ||
28379 $as_test_x conftest$ac_exeext
28380 }; then
28381 eval "$as_ac_var=yes"
28382else
28383 $as_echo "$as_me: failed program was:" >&5
28384sed 's/^/| /' conftest.$ac_ext >&5
28385
28386 eval "$as_ac_var=no"
28387fi
28388
28389rm -rf conftest.dSYM
28390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28391 conftest$ac_exeext conftest.$ac_ext
28392fi
28393ac_res=`eval 'as_val=${'$as_ac_var'}
28394 $as_echo "$as_val"'`
28395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28396$as_echo "$ac_res" >&6; }
28397as_val=`eval 'as_val=${'$as_ac_var'}
28398 $as_echo "$as_val"'`
28399 if test "x$as_val" = x""yes; then
28400 cat >>confdefs.h <<_ACEOF
28401#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28402_ACEOF
28403
28404fi
28405done
28406
28407{ $as_echo "$as_me:$LINENO: checking for working mmap file i/o" >&5
28408$as_echo_n "checking for working mmap file i/o... " >&6; }
28409if test "${magick_cv_func_mmap_fileio+set}" = set; then
28410 $as_echo_n "(cached) " >&6
28411else
28412 if test "$cross_compiling" = yes; then
28413 magick_cv_func_mmap_fileio=no
28414else
28415 cat >conftest.$ac_ext <<_ACEOF
28416/* confdefs.h. */
28417_ACEOF
28418cat confdefs.h >>conftest.$ac_ext
28419cat >>conftest.$ac_ext <<_ACEOF
28420/* end confdefs.h. */
28421$ac_includes_default
28422/* malloc might have been renamed as rpl_malloc. */
28423#undef malloc
28424
28425/*
28426 This test is derived from GNU Autoconf's similar macro.
28427 The purpose of this test is to verify that files may be memory
28428 mapped, and that memory mapping and file I/O are coherent.
28429
28430 The test creates a test file, memory maps the file, updates
28431 the file using the memory map, and then reads the file using
28432 file I/O to verify that the file contains the updates.
28433*/
28434
28435#include <fcntl.h>
28436#include <sys/mman.h>
28437
28438#if !STDC_HEADERS && !HAVE_STDLIB_H
28439char *malloc ();
28440#endif
28441
28442/* This mess was copied from the GNU getpagesize.h. */
28443#if !HAVE_GETPAGESIZE
28444/* Assume that all systems that can run configure have sys/param.h. */
28445# if !HAVE_SYS_PARAM_H
28446# define HAVE_SYS_PARAM_H 1
28447# endif
28448
28449# ifdef _SC_PAGESIZE
28450# define getpagesize() sysconf(_SC_PAGESIZE)
28451# else /* no _SC_PAGESIZE */
28452# if HAVE_SYS_PARAM_H
28453# include <sys/param.h>
28454# ifdef EXEC_PAGESIZE
28455# define getpagesize() EXEC_PAGESIZE
28456# else /* no EXEC_PAGESIZE */
28457# ifdef NBPG
28458# define getpagesize() NBPG * CLSIZE
28459# ifndef CLSIZE
28460# define CLSIZE 1
28461# endif /* no CLSIZE */
28462# else /* no NBPG */
28463# ifdef NBPC
28464# define getpagesize() NBPC
28465# else /* no NBPC */
28466# ifdef PAGESIZE
28467# define getpagesize() PAGESIZE
28468# endif /* PAGESIZE */
28469# endif /* no NBPC */
28470# endif /* no NBPG */
28471# endif /* no EXEC_PAGESIZE */
28472# else /* no HAVE_SYS_PARAM_H */
28473# define getpagesize() 8192 /* punt totally */
28474# endif /* no HAVE_SYS_PARAM_H */
28475# endif /* no _SC_PAGESIZE */
28476
28477#endif /* no HAVE_GETPAGESIZE */
28478
28479int
28480main ()
28481{
28482 char *data, *data2, *data3;
28483 int i, pagesize;
28484 int fd;
28485
28486 pagesize = getpagesize ();
28487
28488 /* First, make a file with some known garbage in it. */
28489 data = (char *) malloc (pagesize);
28490 if (!data)
28491 exit (1);
28492 for (i = 0; i < pagesize; ++i)
28493 *(data + i) = rand ();
28494 umask (0);
28495 fd = creat ("conftest.mmap", 0600);
28496 if (fd < 0)
28497 exit (1);
28498 if (write (fd, data, pagesize) != pagesize)
28499 exit (1);
28500 close (fd);
28501
28502 /* Mmap the file as read/write/shared and verify that we see the
28503 same garbage. */
28504 fd = open ("conftest.mmap", O_RDWR);
28505 if (fd < 0)
28506 exit (1);
28507 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
28508 if (data2 == 0)
28509 exit (1);
28510 for (i = 0; i < pagesize; ++i)
28511 if (*(data + i) != *(data2 + i))
28512 exit (1);
28513
28514 /* Finally, make sure that changes to the mapped area
28515 percolate back to the file as seen by read(). */
28516 for (i = 0; i < pagesize; ++i)
28517 *(data2 + i) = *(data2 + i) + 1;
28518 data3 = (char *) malloc (pagesize);
28519 if (!data3)
28520 exit (1);
28521 if (read (fd, data3, pagesize) != pagesize)
28522 exit (1);
28523 for (i = 0; i < pagesize; ++i)
28524 if (*(data2 + i) != *(data3 + i))
28525 exit (1);
28526 close (fd);
28527 exit (0);
28528}
28529_ACEOF
28530rm -f conftest$ac_exeext
28531if { (ac_try="$ac_link"
28532case "(($ac_try" in
28533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28534 *) ac_try_echo=$ac_try;;
28535esac
28536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28537$as_echo "$ac_try_echo") >&5
28538 (eval "$ac_link") 2>&5
28539 ac_status=$?
28540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28542 { (case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28545esac
28546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28547$as_echo "$ac_try_echo") >&5
28548 (eval "$ac_try") 2>&5
28549 ac_status=$?
28550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); }; }; then
28552 magick_cv_func_mmap_fileio=yes
28553else
28554 $as_echo "$as_me: program exited with status $ac_status" >&5
28555$as_echo "$as_me: failed program was:" >&5
28556sed 's/^/| /' conftest.$ac_ext >&5
28557
28558( exit $ac_status )
28559magick_cv_func_mmap_fileio=no
28560fi
28561rm -rf conftest.dSYM
28562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28563fi
28564
28565
28566fi
28567{ $as_echo "$as_me:$LINENO: result: $magick_cv_func_mmap_fileio" >&5
28568$as_echo "$magick_cv_func_mmap_fileio" >&6; }
28569if test $magick_cv_func_mmap_fileio = yes; then
28570
28571cat >>confdefs.h <<\_ACEOF
28572#define HAVE_MMAP_FILEIO 1
28573_ACEOF
28574
28575fi
28576rm -f conftest.mmap
28577
28578{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28579$as_echo_n "checking whether closedir returns void... " >&6; }
28580if test "${ac_cv_func_closedir_void+set}" = set; then
28581 $as_echo_n "(cached) " >&6
28582else
28583 if test "$cross_compiling" = yes; then
28584 ac_cv_func_closedir_void=yes
28585else
28586 cat >conftest.$ac_ext <<_ACEOF
28587/* confdefs.h. */
28588_ACEOF
28589cat confdefs.h >>conftest.$ac_ext
28590cat >>conftest.$ac_ext <<_ACEOF
28591/* end confdefs.h. */
28592$ac_includes_default
28593#include <$ac_header_dirent>
28594#ifndef __cplusplus
28595int closedir ();
28596#endif
28597
28598int
28599main ()
28600{
28601return closedir (opendir (".")) != 0;
28602 ;
28603 return 0;
28604}
28605_ACEOF
28606rm -f conftest$ac_exeext
28607if { (ac_try="$ac_link"
28608case "(($ac_try" in
28609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28610 *) ac_try_echo=$ac_try;;
28611esac
28612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28613$as_echo "$ac_try_echo") >&5
28614 (eval "$ac_link") 2>&5
28615 ac_status=$?
28616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28618 { (case "(($ac_try" in
28619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28620 *) ac_try_echo=$ac_try;;
28621esac
28622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28623$as_echo "$ac_try_echo") >&5
28624 (eval "$ac_try") 2>&5
28625 ac_status=$?
28626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); }; }; then
28628 ac_cv_func_closedir_void=no
28629else
28630 $as_echo "$as_me: program exited with status $ac_status" >&5
28631$as_echo "$as_me: failed program was:" >&5
28632sed 's/^/| /' conftest.$ac_ext >&5
28633
28634( exit $ac_status )
28635ac_cv_func_closedir_void=yes
28636fi
28637rm -rf conftest.dSYM
28638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28639fi
28640
28641
28642fi
28643{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28644$as_echo "$ac_cv_func_closedir_void" >&6; }
28645if test $ac_cv_func_closedir_void = yes; then
28646
28647cat >>confdefs.h <<\_ACEOF
28648#define CLOSEDIR_VOID 1
28649_ACEOF
28650
28651fi
28652
28653
28654
28655for ac_header in stdlib.h unistd.h
28656do
28657as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28659 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28660$as_echo_n "checking for $ac_header... " >&6; }
28661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28662 $as_echo_n "(cached) " >&6
28663fi
28664ac_res=`eval 'as_val=${'$as_ac_Header'}
28665 $as_echo "$as_val"'`
28666 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28667$as_echo "$ac_res" >&6; }
28668else
28669 # Is the header compilable?
28670{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28671$as_echo_n "checking $ac_header usability... " >&6; }
28672cat >conftest.$ac_ext <<_ACEOF
28673/* confdefs.h. */
28674_ACEOF
28675cat confdefs.h >>conftest.$ac_ext
28676cat >>conftest.$ac_ext <<_ACEOF
28677/* end confdefs.h. */
28678$ac_includes_default
28679#include <$ac_header>
28680_ACEOF
28681rm -f conftest.$ac_objext
28682if { (ac_try="$ac_compile"
28683case "(($ac_try" in
28684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28685 *) ac_try_echo=$ac_try;;
28686esac
28687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28688$as_echo "$ac_try_echo") >&5
28689 (eval "$ac_compile") 2>conftest.er1
28690 ac_status=$?
28691 grep -v '^ *+' conftest.er1 >conftest.err
28692 rm -f conftest.er1
28693 cat conftest.err >&5
28694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); } && {
28696 test -z "$ac_c_werror_flag" ||
28697 test ! -s conftest.err
28698 } && test -s conftest.$ac_objext; then
28699 ac_header_compiler=yes
28700else
28701 $as_echo "$as_me: failed program was:" >&5
28702sed 's/^/| /' conftest.$ac_ext >&5
28703
28704 ac_header_compiler=no
28705fi
28706
28707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28708{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28709$as_echo "$ac_header_compiler" >&6; }
28710
28711# Is the header present?
28712{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28713$as_echo_n "checking $ac_header presence... " >&6; }
28714cat >conftest.$ac_ext <<_ACEOF
28715/* confdefs.h. */
28716_ACEOF
28717cat confdefs.h >>conftest.$ac_ext
28718cat >>conftest.$ac_ext <<_ACEOF
28719/* end confdefs.h. */
28720#include <$ac_header>
28721_ACEOF
28722if { (ac_try="$ac_cpp conftest.$ac_ext"
28723case "(($ac_try" in
28724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28726esac
28727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28728$as_echo "$ac_try_echo") >&5
28729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28730 ac_status=$?
28731 grep -v '^ *+' conftest.er1 >conftest.err
28732 rm -f conftest.er1
28733 cat conftest.err >&5
28734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); } >/dev/null && {
28736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28737 test ! -s conftest.err
28738 }; then
28739 ac_header_preproc=yes
28740else
28741 $as_echo "$as_me: failed program was:" >&5
28742sed 's/^/| /' conftest.$ac_ext >&5
28743
28744 ac_header_preproc=no
28745fi
28746
28747rm -f conftest.err conftest.$ac_ext
28748{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28749$as_echo "$ac_header_preproc" >&6; }
28750
28751# So? What about this header?
28752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28753 yes:no: )
28754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28755$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28757$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28758 ac_header_preproc=yes
28759 ;;
28760 no:yes:* )
28761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28762$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28764$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28766$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28768$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28770$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28772$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28773 ( cat <<\_ASBOX
28774## ----------------------------------------- ##
28775## Report this to http://www.imagemagick.org ##
28776## ----------------------------------------- ##
28777_ASBOX
28778 ) | sed "s/^/$as_me: WARNING: /" >&2
28779 ;;
28780esac
28781{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28782$as_echo_n "checking for $ac_header... " >&6; }
28783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28784 $as_echo_n "(cached) " >&6
28785else
28786 eval "$as_ac_Header=\$ac_header_preproc"
28787fi
28788ac_res=`eval 'as_val=${'$as_ac_Header'}
28789 $as_echo "$as_val"'`
28790 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28791$as_echo "$ac_res" >&6; }
28792
28793fi
28794as_val=`eval 'as_val=${'$as_ac_Header'}
28795 $as_echo "$as_val"'`
28796 if test "x$as_val" = x""yes; then
28797 cat >>confdefs.h <<_ACEOF
28798#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28799_ACEOF
28800
28801fi
28802
28803done
28804
28805
28806for ac_func in getpagesize
28807do
28808as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28809{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28810$as_echo_n "checking for $ac_func... " >&6; }
28811if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28812 $as_echo_n "(cached) " >&6
28813else
28814 cat >conftest.$ac_ext <<_ACEOF
28815/* confdefs.h. */
28816_ACEOF
28817cat confdefs.h >>conftest.$ac_ext
28818cat >>conftest.$ac_ext <<_ACEOF
28819/* end confdefs.h. */
28820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28822#define $ac_func innocuous_$ac_func
28823
28824/* System header to define __stub macros and hopefully few prototypes,
28825 which can conflict with char $ac_func (); below.
28826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28827 <limits.h> exists even on freestanding compilers. */
28828
28829#ifdef __STDC__
28830# include <limits.h>
28831#else
28832# include <assert.h>
28833#endif
28834
28835#undef $ac_func
28836
28837/* Override any GCC internal prototype to avoid an error.
28838 Use char because int might match the return type of a GCC
28839 builtin and then its argument prototype would still apply. */
28840#ifdef __cplusplus
28841extern "C"
28842#endif
28843char $ac_func ();
28844/* The GNU C library defines this for functions which it implements
28845 to always fail with ENOSYS. Some functions are actually named
28846 something starting with __ and the normal name is an alias. */
28847#if defined __stub_$ac_func || defined __stub___$ac_func
28848choke me
28849#endif
28850
28851int
28852main ()
28853{
28854return $ac_func ();
28855 ;
28856 return 0;
28857}
28858_ACEOF
28859rm -f conftest.$ac_objext conftest$ac_exeext
28860if { (ac_try="$ac_link"
28861case "(($ac_try" in
28862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863 *) ac_try_echo=$ac_try;;
28864esac
28865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28866$as_echo "$ac_try_echo") >&5
28867 (eval "$ac_link") 2>conftest.er1
28868 ac_status=$?
28869 grep -v '^ *+' conftest.er1 >conftest.err
28870 rm -f conftest.er1
28871 cat conftest.err >&5
28872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); } && {
28874 test -z "$ac_c_werror_flag" ||
28875 test ! -s conftest.err
28876 } && test -s conftest$ac_exeext && {
28877 test "$cross_compiling" = yes ||
28878 $as_test_x conftest$ac_exeext
28879 }; then
28880 eval "$as_ac_var=yes"
28881else
28882 $as_echo "$as_me: failed program was:" >&5
28883sed 's/^/| /' conftest.$ac_ext >&5
28884
28885 eval "$as_ac_var=no"
28886fi
28887
28888rm -rf conftest.dSYM
28889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28890 conftest$ac_exeext conftest.$ac_ext
28891fi
28892ac_res=`eval 'as_val=${'$as_ac_var'}
28893 $as_echo "$as_val"'`
28894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28895$as_echo "$ac_res" >&6; }
28896as_val=`eval 'as_val=${'$as_ac_var'}
28897 $as_echo "$as_val"'`
28898 if test "x$as_val" = x""yes; then
28899 cat >>confdefs.h <<_ACEOF
28900#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28901_ACEOF
28902
28903fi
28904done
28905
28906{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
28907$as_echo_n "checking for working mmap... " >&6; }
28908if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
28909 $as_echo_n "(cached) " >&6
28910else
28911 if test "$cross_compiling" = yes; then
28912 ac_cv_func_mmap_fixed_mapped=no
28913else
28914 cat >conftest.$ac_ext <<_ACEOF
28915/* confdefs.h. */
28916_ACEOF
28917cat confdefs.h >>conftest.$ac_ext
28918cat >>conftest.$ac_ext <<_ACEOF
28919/* end confdefs.h. */
28920$ac_includes_default
28921/* malloc might have been renamed as rpl_malloc. */
28922#undef malloc
28923
28924/* Thanks to Mike Haertel and Jim Avera for this test.
28925 Here is a matrix of mmap possibilities:
28926 mmap private not fixed
28927 mmap private fixed at somewhere currently unmapped
28928 mmap private fixed at somewhere already mapped
28929 mmap shared not fixed
28930 mmap shared fixed at somewhere currently unmapped
28931 mmap shared fixed at somewhere already mapped
28932 For private mappings, we should verify that changes cannot be read()
28933 back from the file, nor mmap's back from the file at a different
28934 address. (There have been systems where private was not correctly
28935 implemented like the infamous i386 svr4.0, and systems where the
28936 VM page cache was not coherent with the file system buffer cache
28937 like early versions of FreeBSD and possibly contemporary NetBSD.)
28938 For shared mappings, we should conversely verify that changes get
28939 propagated back to all the places they're supposed to be.
28940
28941 Grep wants private fixed already mapped.
28942 The main things grep needs to know about mmap are:
28943 * does it exist and is it safe to write into the mmap'd area
28944 * how to use it (BSD variants) */
28945
28946#include <fcntl.h>
28947#include <sys/mman.h>
28948
28949#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
28950char *malloc ();
28951#endif
28952
28953/* This mess was copied from the GNU getpagesize.h. */
28954#ifndef HAVE_GETPAGESIZE
28955/* Assume that all systems that can run configure have sys/param.h. */
28956# ifndef HAVE_SYS_PARAM_H
28957# define HAVE_SYS_PARAM_H 1
28958# endif
28959
28960# ifdef _SC_PAGESIZE
28961# define getpagesize() sysconf(_SC_PAGESIZE)
28962# else /* no _SC_PAGESIZE */
28963# ifdef HAVE_SYS_PARAM_H
28964# include <sys/param.h>
28965# ifdef EXEC_PAGESIZE
28966# define getpagesize() EXEC_PAGESIZE
28967# else /* no EXEC_PAGESIZE */
28968# ifdef NBPG
28969# define getpagesize() NBPG * CLSIZE
28970# ifndef CLSIZE
28971# define CLSIZE 1
28972# endif /* no CLSIZE */
28973# else /* no NBPG */
28974# ifdef NBPC
28975# define getpagesize() NBPC
28976# else /* no NBPC */
28977# ifdef PAGESIZE
28978# define getpagesize() PAGESIZE
28979# endif /* PAGESIZE */
28980# endif /* no NBPC */
28981# endif /* no NBPG */
28982# endif /* no EXEC_PAGESIZE */
28983# else /* no HAVE_SYS_PARAM_H */
28984# define getpagesize() 8192 /* punt totally */
28985# endif /* no HAVE_SYS_PARAM_H */
28986# endif /* no _SC_PAGESIZE */
28987
28988#endif /* no HAVE_GETPAGESIZE */
28989
28990int
28991main ()
28992{
28993 char *data, *data2, *data3;
28994 int i, pagesize;
28995 int fd;
28996
28997 pagesize = getpagesize ();
28998
28999 /* First, make a file with some known garbage in it. */
29000 data = (char *) malloc (pagesize);
29001 if (!data)
29002 return 1;
29003 for (i = 0; i < pagesize; ++i)
29004 *(data + i) = rand ();
29005 umask (0);
29006 fd = creat ("conftest.mmap", 0600);
29007 if (fd < 0)
29008 return 1;
29009 if (write (fd, data, pagesize) != pagesize)
29010 return 1;
29011 close (fd);
29012
29013 /* Next, try to mmap the file at a fixed address which already has
29014 something else allocated at it. If we can, also make sure that
29015 we see the same garbage. */
29016 fd = open ("conftest.mmap", O_RDWR);
29017 if (fd < 0)
29018 return 1;
29019 data2 = (char *) malloc (2 * pagesize);
29020 if (!data2)
29021 return 1;
29022 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
29023 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29024 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29025 return 1;
29026 for (i = 0; i < pagesize; ++i)
29027 if (*(data + i) != *(data2 + i))
29028 return 1;
29029
29030 /* Finally, make sure that changes to the mapped area do not
29031 percolate back to the file as seen by read(). (This is a bug on
29032 some variants of i386 svr4.0.) */
29033 for (i = 0; i < pagesize; ++i)
29034 *(data2 + i) = *(data2 + i) + 1;
29035 data3 = (char *) malloc (pagesize);
29036 if (!data3)
29037 return 1;
29038 if (read (fd, data3, pagesize) != pagesize)
29039 return 1;
29040 for (i = 0; i < pagesize; ++i)
29041 if (*(data + i) != *(data3 + i))
29042 return 1;
29043 close (fd);
29044 return 0;
29045}
29046_ACEOF
29047rm -f conftest$ac_exeext
29048if { (ac_try="$ac_link"
29049case "(($ac_try" in
29050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051 *) ac_try_echo=$ac_try;;
29052esac
29053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29054$as_echo "$ac_try_echo") >&5
29055 (eval "$ac_link") 2>&5
29056 ac_status=$?
29057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29059 { (case "(($ac_try" in
29060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061 *) ac_try_echo=$ac_try;;
29062esac
29063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29064$as_echo "$ac_try_echo") >&5
29065 (eval "$ac_try") 2>&5
29066 ac_status=$?
29067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); }; }; then
29069 ac_cv_func_mmap_fixed_mapped=yes
29070else
29071 $as_echo "$as_me: program exited with status $ac_status" >&5
29072$as_echo "$as_me: failed program was:" >&5
29073sed 's/^/| /' conftest.$ac_ext >&5
29074
29075( exit $ac_status )
29076ac_cv_func_mmap_fixed_mapped=no
29077fi
29078rm -rf conftest.dSYM
29079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29080fi
29081
29082
29083fi
29084{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29085$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
29086if test $ac_cv_func_mmap_fixed_mapped = yes; then
29087
29088cat >>confdefs.h <<\_ACEOF
29089#define HAVE_MMAP 1
29090_ACEOF
29091
29092fi
29093rm -f conftest.mmap
29094
29095
29096for ac_header in vfork.h
29097do
29098as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29101$as_echo_n "checking for $ac_header... " >&6; }
29102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29103 $as_echo_n "(cached) " >&6
29104fi
29105ac_res=`eval 'as_val=${'$as_ac_Header'}
29106 $as_echo "$as_val"'`
29107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29108$as_echo "$ac_res" >&6; }
29109else
29110 # Is the header compilable?
29111{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29112$as_echo_n "checking $ac_header usability... " >&6; }
29113cat >conftest.$ac_ext <<_ACEOF
29114/* confdefs.h. */
29115_ACEOF
29116cat confdefs.h >>conftest.$ac_ext
29117cat >>conftest.$ac_ext <<_ACEOF
29118/* end confdefs.h. */
29119$ac_includes_default
29120#include <$ac_header>
29121_ACEOF
29122rm -f conftest.$ac_objext
29123if { (ac_try="$ac_compile"
29124case "(($ac_try" in
29125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126 *) ac_try_echo=$ac_try;;
29127esac
29128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29129$as_echo "$ac_try_echo") >&5
29130 (eval "$ac_compile") 2>conftest.er1
29131 ac_status=$?
29132 grep -v '^ *+' conftest.er1 >conftest.err
29133 rm -f conftest.er1
29134 cat conftest.err >&5
29135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); } && {
29137 test -z "$ac_c_werror_flag" ||
29138 test ! -s conftest.err
29139 } && test -s conftest.$ac_objext; then
29140 ac_header_compiler=yes
29141else
29142 $as_echo "$as_me: failed program was:" >&5
29143sed 's/^/| /' conftest.$ac_ext >&5
29144
29145 ac_header_compiler=no
29146fi
29147
29148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29149{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29150$as_echo "$ac_header_compiler" >&6; }
29151
29152# Is the header present?
29153{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29154$as_echo_n "checking $ac_header presence... " >&6; }
29155cat >conftest.$ac_ext <<_ACEOF
29156/* confdefs.h. */
29157_ACEOF
29158cat confdefs.h >>conftest.$ac_ext
29159cat >>conftest.$ac_ext <<_ACEOF
29160/* end confdefs.h. */
29161#include <$ac_header>
29162_ACEOF
29163if { (ac_try="$ac_cpp conftest.$ac_ext"
29164case "(($ac_try" in
29165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29166 *) ac_try_echo=$ac_try;;
29167esac
29168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29169$as_echo "$ac_try_echo") >&5
29170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29171 ac_status=$?
29172 grep -v '^ *+' conftest.er1 >conftest.err
29173 rm -f conftest.er1
29174 cat conftest.err >&5
29175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176 (exit $ac_status); } >/dev/null && {
29177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29178 test ! -s conftest.err
29179 }; then
29180 ac_header_preproc=yes
29181else
29182 $as_echo "$as_me: failed program was:" >&5
29183sed 's/^/| /' conftest.$ac_ext >&5
29184
29185 ac_header_preproc=no
29186fi
29187
29188rm -f conftest.err conftest.$ac_ext
29189{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29190$as_echo "$ac_header_preproc" >&6; }
29191
29192# So? What about this header?
29193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29194 yes:no: )
29195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29196$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29198$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29199 ac_header_preproc=yes
29200 ;;
29201 no:yes:* )
29202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29203$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29205$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29207$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29209$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29211$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29213$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29214 ( cat <<\_ASBOX
29215## ----------------------------------------- ##
29216## Report this to http://www.imagemagick.org ##
29217## ----------------------------------------- ##
29218_ASBOX
29219 ) | sed "s/^/$as_me: WARNING: /" >&2
29220 ;;
29221esac
29222{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29223$as_echo_n "checking for $ac_header... " >&6; }
29224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29225 $as_echo_n "(cached) " >&6
29226else
29227 eval "$as_ac_Header=\$ac_header_preproc"
29228fi
29229ac_res=`eval 'as_val=${'$as_ac_Header'}
29230 $as_echo "$as_val"'`
29231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29232$as_echo "$ac_res" >&6; }
29233
29234fi
29235as_val=`eval 'as_val=${'$as_ac_Header'}
29236 $as_echo "$as_val"'`
29237 if test "x$as_val" = x""yes; then
29238 cat >>confdefs.h <<_ACEOF
29239#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29240_ACEOF
29241
29242fi
29243
29244done
29245
29246
29247
29248for ac_func in fork vfork
29249do
29250as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29251{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29252$as_echo_n "checking for $ac_func... " >&6; }
29253if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29254 $as_echo_n "(cached) " >&6
29255else
29256 cat >conftest.$ac_ext <<_ACEOF
29257/* confdefs.h. */
29258_ACEOF
29259cat confdefs.h >>conftest.$ac_ext
29260cat >>conftest.$ac_ext <<_ACEOF
29261/* end confdefs.h. */
29262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29264#define $ac_func innocuous_$ac_func
29265
29266/* System header to define __stub macros and hopefully few prototypes,
29267 which can conflict with char $ac_func (); below.
29268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29269 <limits.h> exists even on freestanding compilers. */
29270
29271#ifdef __STDC__
29272# include <limits.h>
29273#else
29274# include <assert.h>
29275#endif
29276
29277#undef $ac_func
29278
29279/* Override any GCC internal prototype to avoid an error.
29280 Use char because int might match the return type of a GCC
29281 builtin and then its argument prototype would still apply. */
29282#ifdef __cplusplus
29283extern "C"
29284#endif
29285char $ac_func ();
29286/* The GNU C library defines this for functions which it implements
29287 to always fail with ENOSYS. Some functions are actually named
29288 something starting with __ and the normal name is an alias. */
29289#if defined __stub_$ac_func || defined __stub___$ac_func
29290choke me
29291#endif
29292
29293int
29294main ()
29295{
29296return $ac_func ();
29297 ;
29298 return 0;
29299}
29300_ACEOF
29301rm -f conftest.$ac_objext conftest$ac_exeext
29302if { (ac_try="$ac_link"
29303case "(($ac_try" in
29304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29305 *) ac_try_echo=$ac_try;;
29306esac
29307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29308$as_echo "$ac_try_echo") >&5
29309 (eval "$ac_link") 2>conftest.er1
29310 ac_status=$?
29311 grep -v '^ *+' conftest.er1 >conftest.err
29312 rm -f conftest.er1
29313 cat conftest.err >&5
29314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); } && {
29316 test -z "$ac_c_werror_flag" ||
29317 test ! -s conftest.err
29318 } && test -s conftest$ac_exeext && {
29319 test "$cross_compiling" = yes ||
29320 $as_test_x conftest$ac_exeext
29321 }; then
29322 eval "$as_ac_var=yes"
29323else
29324 $as_echo "$as_me: failed program was:" >&5
29325sed 's/^/| /' conftest.$ac_ext >&5
29326
29327 eval "$as_ac_var=no"
29328fi
29329
29330rm -rf conftest.dSYM
29331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29332 conftest$ac_exeext conftest.$ac_ext
29333fi
29334ac_res=`eval 'as_val=${'$as_ac_var'}
29335 $as_echo "$as_val"'`
29336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29337$as_echo "$ac_res" >&6; }
29338as_val=`eval 'as_val=${'$as_ac_var'}
29339 $as_echo "$as_val"'`
29340 if test "x$as_val" = x""yes; then
29341 cat >>confdefs.h <<_ACEOF
29342#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29343_ACEOF
29344
29345fi
29346done
29347
29348if test "x$ac_cv_func_fork" = xyes; then
29349 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
29350$as_echo_n "checking for working fork... " >&6; }
29351if test "${ac_cv_func_fork_works+set}" = set; then
29352 $as_echo_n "(cached) " >&6
29353else
29354 if test "$cross_compiling" = yes; then
29355 ac_cv_func_fork_works=cross
29356else
29357 cat >conftest.$ac_ext <<_ACEOF
29358/* confdefs.h. */
29359_ACEOF
29360cat confdefs.h >>conftest.$ac_ext
29361cat >>conftest.$ac_ext <<_ACEOF
29362/* end confdefs.h. */
29363$ac_includes_default
29364int
29365main ()
29366{
29367
29368 /* By Ruediger Kuhlmann. */
29369 return fork () < 0;
29370
29371 ;
29372 return 0;
29373}
29374_ACEOF
29375rm -f conftest$ac_exeext
29376if { (ac_try="$ac_link"
29377case "(($ac_try" in
29378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379 *) ac_try_echo=$ac_try;;
29380esac
29381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29382$as_echo "$ac_try_echo") >&5
29383 (eval "$ac_link") 2>&5
29384 ac_status=$?
29385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29387 { (case "(($ac_try" in
29388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389 *) ac_try_echo=$ac_try;;
29390esac
29391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29392$as_echo "$ac_try_echo") >&5
29393 (eval "$ac_try") 2>&5
29394 ac_status=$?
29395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); }; }; then
29397 ac_cv_func_fork_works=yes
29398else
29399 $as_echo "$as_me: program exited with status $ac_status" >&5
29400$as_echo "$as_me: failed program was:" >&5
29401sed 's/^/| /' conftest.$ac_ext >&5
29402
29403( exit $ac_status )
29404ac_cv_func_fork_works=no
29405fi
29406rm -rf conftest.dSYM
29407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29408fi
29409
29410
29411fi
29412{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
29413$as_echo "$ac_cv_func_fork_works" >&6; }
29414
29415else
29416 ac_cv_func_fork_works=$ac_cv_func_fork
29417fi
29418if test "x$ac_cv_func_fork_works" = xcross; then
29419 case $host in
29420 *-*-amigaos* | *-*-msdosdjgpp*)
29421 # Override, as these systems have only a dummy fork() stub
29422 ac_cv_func_fork_works=no
29423 ;;
29424 *)
29425 ac_cv_func_fork_works=yes
29426 ;;
29427 esac
29428 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
29429$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
29430fi
29431ac_cv_func_vfork_works=$ac_cv_func_vfork
29432if test "x$ac_cv_func_vfork" = xyes; then
29433 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
29434$as_echo_n "checking for working vfork... " >&6; }
29435if test "${ac_cv_func_vfork_works+set}" = set; then
29436 $as_echo_n "(cached) " >&6
29437else
29438 if test "$cross_compiling" = yes; then
29439 ac_cv_func_vfork_works=cross
29440else
29441 cat >conftest.$ac_ext <<_ACEOF
29442/* confdefs.h. */
29443_ACEOF
29444cat confdefs.h >>conftest.$ac_ext
29445cat >>conftest.$ac_ext <<_ACEOF
29446/* end confdefs.h. */
29447/* Thanks to Paul Eggert for this test. */
29448$ac_includes_default
29449#include <sys/wait.h>
29450#ifdef HAVE_VFORK_H
29451# include <vfork.h>
29452#endif
29453/* On some sparc systems, changes by the child to local and incoming
29454 argument registers are propagated back to the parent. The compiler
29455 is told about this with #include <vfork.h>, but some compilers
29456 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
29457 static variable whose address is put into a register that is
29458 clobbered by the vfork. */
29459static void
29460#ifdef __cplusplus
29461sparc_address_test (int arg)
29462# else
29463sparc_address_test (arg) int arg;
29464#endif
29465{
29466 static pid_t child;
29467 if (!child) {
29468 child = vfork ();
29469 if (child < 0) {
29470 perror ("vfork");
29471 _exit(2);
29472 }
29473 if (!child) {
29474 arg = getpid();
29475 write(-1, "", 0);
29476 _exit (arg);
29477 }
29478 }
29479}
29480
29481int
29482main ()
29483{
29484 pid_t parent = getpid ();
29485 pid_t child;
29486
29487 sparc_address_test (0);
29488
29489 child = vfork ();
29490
29491 if (child == 0) {
29492 /* Here is another test for sparc vfork register problems. This
29493 test uses lots of local variables, at least as many local
29494 variables as main has allocated so far including compiler
29495 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
29496 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
29497 reuse the register of parent for one of the local variables,
29498 since it will think that parent can't possibly be used any more
29499 in this routine. Assigning to the local variable will thus
29500 munge parent in the parent process. */
29501 pid_t
29502 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
29503 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
29504 /* Convince the compiler that p..p7 are live; otherwise, it might
29505 use the same hardware register for all 8 local variables. */
29506 if (p != p1 || p != p2 || p != p3 || p != p4
29507 || p != p5 || p != p6 || p != p7)
29508 _exit(1);
29509
29510 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
29511 from child file descriptors. If the child closes a descriptor
29512 before it execs or exits, this munges the parent's descriptor
29513 as well. Test for this by closing stdout in the child. */
29514 _exit(close(fileno(stdout)) != 0);
29515 } else {
29516 int status;
29517 struct stat st;
29518
29519 while (wait(&status) != child)
29520 ;
29521 return (
29522 /* Was there some problem with vforking? */
29523 child < 0
29524
29525 /* Did the child fail? (This shouldn't happen.) */
29526 || status
29527
29528 /* Did the vfork/compiler bug occur? */
29529 || parent != getpid()
29530
29531 /* Did the file descriptor bug occur? */
29532 || fstat(fileno(stdout), &st) != 0
29533 );
29534 }
29535}
29536_ACEOF
29537rm -f conftest$ac_exeext
29538if { (ac_try="$ac_link"
29539case "(($ac_try" in
29540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541 *) ac_try_echo=$ac_try;;
29542esac
29543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29544$as_echo "$ac_try_echo") >&5
29545 (eval "$ac_link") 2>&5
29546 ac_status=$?
29547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29549 { (case "(($ac_try" in
29550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29551 *) ac_try_echo=$ac_try;;
29552esac
29553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29554$as_echo "$ac_try_echo") >&5
29555 (eval "$ac_try") 2>&5
29556 ac_status=$?
29557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; }; then
29559 ac_cv_func_vfork_works=yes
29560else
29561 $as_echo "$as_me: program exited with status $ac_status" >&5
29562$as_echo "$as_me: failed program was:" >&5
29563sed 's/^/| /' conftest.$ac_ext >&5
29564
29565( exit $ac_status )
29566ac_cv_func_vfork_works=no
29567fi
29568rm -rf conftest.dSYM
29569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29570fi
29571
29572
29573fi
29574{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
29575$as_echo "$ac_cv_func_vfork_works" >&6; }
29576
29577fi;
29578if test "x$ac_cv_func_fork_works" = xcross; then
29579 ac_cv_func_vfork_works=$ac_cv_func_vfork
29580 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
29581$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
29582fi
29583
29584if test "x$ac_cv_func_vfork_works" = xyes; then
29585
29586cat >>confdefs.h <<\_ACEOF
29587#define HAVE_WORKING_VFORK 1
29588_ACEOF
29589
29590else
29591
29592cat >>confdefs.h <<\_ACEOF
29593#define vfork fork
29594_ACEOF
29595
29596fi
29597if test "x$ac_cv_func_fork_works" = xyes; then
29598
29599cat >>confdefs.h <<\_ACEOF
29600#define HAVE_WORKING_FORK 1
29601_ACEOF
29602
29603fi
29604
29605{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
29606$as_echo_n "checking for working memcmp... " >&6; }
29607if test "${ac_cv_func_memcmp_working+set}" = set; then
29608 $as_echo_n "(cached) " >&6
29609else
29610 if test "$cross_compiling" = yes; then
29611 ac_cv_func_memcmp_working=no
29612else
29613 cat >conftest.$ac_ext <<_ACEOF
29614/* confdefs.h. */
29615_ACEOF
29616cat confdefs.h >>conftest.$ac_ext
29617cat >>conftest.$ac_ext <<_ACEOF
29618/* end confdefs.h. */
29619$ac_includes_default
29620int
29621main ()
29622{
29623
29624 /* Some versions of memcmp are not 8-bit clean. */
29625 char c0 = '\100', c1 = '\200', c2 = '\201';
29626 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
29627 return 1;
29628
29629 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
29630 or more and with at least one buffer not starting on a 4-byte boundary.
29631 William Lewis provided this test program. */
29632 {
29633 char foo[21];
29634 char bar[21];
29635 int i;
29636 for (i = 0; i < 4; i++)
29637 {
29638 char *a = foo + i;
29639 char *b = bar + i;
29640 strcpy (a, "--------01111111");
29641 strcpy (b, "--------10000000");
29642 if (memcmp (a, b, 16) >= 0)
29643 return 1;
29644 }
29645 return 0;
29646 }
29647
29648 ;
29649 return 0;
29650}
29651_ACEOF
29652rm -f conftest$ac_exeext
29653if { (ac_try="$ac_link"
29654case "(($ac_try" in
29655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29656 *) ac_try_echo=$ac_try;;
29657esac
29658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29659$as_echo "$ac_try_echo") >&5
29660 (eval "$ac_link") 2>&5
29661 ac_status=$?
29662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29664 { (case "(($ac_try" in
29665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666 *) ac_try_echo=$ac_try;;
29667esac
29668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29669$as_echo "$ac_try_echo") >&5
29670 (eval "$ac_try") 2>&5
29671 ac_status=$?
29672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); }; }; then
29674 ac_cv_func_memcmp_working=yes
29675else
29676 $as_echo "$as_me: program exited with status $ac_status" >&5
29677$as_echo "$as_me: failed program was:" >&5
29678sed 's/^/| /' conftest.$ac_ext >&5
29679
29680( exit $ac_status )
29681ac_cv_func_memcmp_working=no
29682fi
29683rm -rf conftest.dSYM
29684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29685fi
29686
29687
29688fi
29689{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
29690$as_echo "$ac_cv_func_memcmp_working" >&6; }
29691test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
29692 *" memcmp.$ac_objext "* ) ;;
29693 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
29694 ;;
29695esac
29696
29697
29698
29699
29700for ac_header in sys/select.h sys/socket.h
29701do
29702as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29704 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29705$as_echo_n "checking for $ac_header... " >&6; }
29706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29707 $as_echo_n "(cached) " >&6
29708fi
29709ac_res=`eval 'as_val=${'$as_ac_Header'}
29710 $as_echo "$as_val"'`
29711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29712$as_echo "$ac_res" >&6; }
29713else
29714 # Is the header compilable?
29715{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29716$as_echo_n "checking $ac_header usability... " >&6; }
29717cat >conftest.$ac_ext <<_ACEOF
29718/* confdefs.h. */
29719_ACEOF
29720cat confdefs.h >>conftest.$ac_ext
29721cat >>conftest.$ac_ext <<_ACEOF
29722/* end confdefs.h. */
29723$ac_includes_default
29724#include <$ac_header>
29725_ACEOF
29726rm -f conftest.$ac_objext
29727if { (ac_try="$ac_compile"
29728case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29731esac
29732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29733$as_echo "$ac_try_echo") >&5
29734 (eval "$ac_compile") 2>conftest.er1
29735 ac_status=$?
29736 grep -v '^ *+' conftest.er1 >conftest.err
29737 rm -f conftest.er1
29738 cat conftest.err >&5
29739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); } && {
29741 test -z "$ac_c_werror_flag" ||
29742 test ! -s conftest.err
29743 } && test -s conftest.$ac_objext; then
29744 ac_header_compiler=yes
29745else
29746 $as_echo "$as_me: failed program was:" >&5
29747sed 's/^/| /' conftest.$ac_ext >&5
29748
29749 ac_header_compiler=no
29750fi
29751
29752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29753{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29754$as_echo "$ac_header_compiler" >&6; }
29755
29756# Is the header present?
29757{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29758$as_echo_n "checking $ac_header presence... " >&6; }
29759cat >conftest.$ac_ext <<_ACEOF
29760/* confdefs.h. */
29761_ACEOF
29762cat confdefs.h >>conftest.$ac_ext
29763cat >>conftest.$ac_ext <<_ACEOF
29764/* end confdefs.h. */
29765#include <$ac_header>
29766_ACEOF
29767if { (ac_try="$ac_cpp conftest.$ac_ext"
29768case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29771esac
29772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29773$as_echo "$ac_try_echo") >&5
29774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29775 ac_status=$?
29776 grep -v '^ *+' conftest.er1 >conftest.err
29777 rm -f conftest.er1
29778 cat conftest.err >&5
29779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); } >/dev/null && {
29781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29782 test ! -s conftest.err
29783 }; then
29784 ac_header_preproc=yes
29785else
29786 $as_echo "$as_me: failed program was:" >&5
29787sed 's/^/| /' conftest.$ac_ext >&5
29788
29789 ac_header_preproc=no
29790fi
29791
29792rm -f conftest.err conftest.$ac_ext
29793{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29794$as_echo "$ac_header_preproc" >&6; }
29795
29796# So? What about this header?
29797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29798 yes:no: )
29799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29800$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29802$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29803 ac_header_preproc=yes
29804 ;;
29805 no:yes:* )
29806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29807$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29809$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29811$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29813$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29815$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29817$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29818 ( cat <<\_ASBOX
29819## ----------------------------------------- ##
29820## Report this to http://www.imagemagick.org ##
29821## ----------------------------------------- ##
29822_ASBOX
29823 ) | sed "s/^/$as_me: WARNING: /" >&2
29824 ;;
29825esac
29826{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29827$as_echo_n "checking for $ac_header... " >&6; }
29828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29829 $as_echo_n "(cached) " >&6
29830else
29831 eval "$as_ac_Header=\$ac_header_preproc"
29832fi
29833ac_res=`eval 'as_val=${'$as_ac_Header'}
29834 $as_echo "$as_val"'`
29835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29836$as_echo "$ac_res" >&6; }
29837
29838fi
29839as_val=`eval 'as_val=${'$as_ac_Header'}
29840 $as_echo "$as_val"'`
29841 if test "x$as_val" = x""yes; then
29842 cat >>confdefs.h <<_ACEOF
29843#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29844_ACEOF
29845
29846fi
29847
29848done
29849
29850{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
29851$as_echo_n "checking types of arguments for select... " >&6; }
29852if test "${ac_cv_func_select_args+set}" = set; then
29853 $as_echo_n "(cached) " >&6
29854else
29855 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
29856 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
29857 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
29858 cat >conftest.$ac_ext <<_ACEOF
29859/* confdefs.h. */
29860_ACEOF
29861cat confdefs.h >>conftest.$ac_ext
29862cat >>conftest.$ac_ext <<_ACEOF
29863/* end confdefs.h. */
29864$ac_includes_default
29865#ifdef HAVE_SYS_SELECT_H
29866# include <sys/select.h>
29867#endif
29868#ifdef HAVE_SYS_SOCKET_H
29869# include <sys/socket.h>
29870#endif
29871
29872int
29873main ()
29874{
29875extern int select ($ac_arg1,
29876 $ac_arg234, $ac_arg234, $ac_arg234,
29877 $ac_arg5);
29878 ;
29879 return 0;
29880}
29881_ACEOF
29882rm -f conftest.$ac_objext
29883if { (ac_try="$ac_compile"
29884case "(($ac_try" in
29885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886 *) ac_try_echo=$ac_try;;
29887esac
29888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29889$as_echo "$ac_try_echo") >&5
29890 (eval "$ac_compile") 2>conftest.er1
29891 ac_status=$?
29892 grep -v '^ *+' conftest.er1 >conftest.err
29893 rm -f conftest.er1
29894 cat conftest.err >&5
29895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); } && {
29897 test -z "$ac_c_werror_flag" ||
29898 test ! -s conftest.err
29899 } && test -s conftest.$ac_objext; then
29900 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
29901else
29902 $as_echo "$as_me: failed program was:" >&5
29903sed 's/^/| /' conftest.$ac_ext >&5
29904
29905
29906fi
29907
29908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29909 done
29910 done
29911done
29912# Provide a safe default value.
29913: ${ac_cv_func_select_args='int,int *,struct timeval *'}
29914
29915fi
29916{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
29917$as_echo "$ac_cv_func_select_args" >&6; }
29918ac_save_IFS=$IFS; IFS=','
29919set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
29920IFS=$ac_save_IFS
29921shift
29922
29923cat >>confdefs.h <<_ACEOF
29924#define SELECT_TYPE_ARG1 $1
29925_ACEOF
29926
29927
29928cat >>confdefs.h <<_ACEOF
29929#define SELECT_TYPE_ARG234 ($2)
29930_ACEOF
29931
29932
29933cat >>confdefs.h <<_ACEOF
29934#define SELECT_TYPE_ARG5 ($3)
29935_ACEOF
29936
29937rm -f conftest*
29938
29939if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
29940 $as_echo_n "(cached) " >&6
29941else
29942 ac_cv_func_setvbuf_reversed=no
29943fi
29944
29945
29946{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29947$as_echo_n "checking return type of signal handlers... " >&6; }
29948if test "${ac_cv_type_signal+set}" = set; then
29949 $as_echo_n "(cached) " >&6
29950else
29951 cat >conftest.$ac_ext <<_ACEOF
29952/* confdefs.h. */
29953_ACEOF
29954cat confdefs.h >>conftest.$ac_ext
29955cat >>conftest.$ac_ext <<_ACEOF
29956/* end confdefs.h. */
29957#include <sys/types.h>
29958#include <signal.h>
29959
29960int
29961main ()
29962{
29963return *(signal (0, 0)) (0) == 1;
29964 ;
29965 return 0;
29966}
29967_ACEOF
29968rm -f conftest.$ac_objext
29969if { (ac_try="$ac_compile"
29970case "(($ac_try" in
29971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29972 *) ac_try_echo=$ac_try;;
29973esac
29974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29975$as_echo "$ac_try_echo") >&5
29976 (eval "$ac_compile") 2>conftest.er1
29977 ac_status=$?
29978 grep -v '^ *+' conftest.er1 >conftest.err
29979 rm -f conftest.er1
29980 cat conftest.err >&5
29981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); } && {
29983 test -z "$ac_c_werror_flag" ||
29984 test ! -s conftest.err
29985 } && test -s conftest.$ac_objext; then
29986 ac_cv_type_signal=int
29987else
29988 $as_echo "$as_me: failed program was:" >&5
29989sed 's/^/| /' conftest.$ac_ext >&5
29990
29991 ac_cv_type_signal=void
29992fi
29993
29994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29995fi
29996{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29997$as_echo "$ac_cv_type_signal" >&6; }
29998
29999cat >>confdefs.h <<_ACEOF
30000#define RETSIGTYPE $ac_cv_type_signal
30001_ACEOF
30002
30003
30004{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
30005$as_echo_n "checking for working strtod... " >&6; }
30006if test "${ac_cv_func_strtod+set}" = set; then
30007 $as_echo_n "(cached) " >&6
30008else
30009 if test "$cross_compiling" = yes; then
30010 ac_cv_func_strtod=no
30011else
30012 cat >conftest.$ac_ext <<_ACEOF
30013/* confdefs.h. */
30014_ACEOF
30015cat confdefs.h >>conftest.$ac_ext
30016cat >>conftest.$ac_ext <<_ACEOF
30017/* end confdefs.h. */
30018
30019$ac_includes_default
30020#ifndef strtod
30021double strtod ();
30022#endif
30023int
30024main()
30025{
30026 {
30027 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
30028 char *string = " +69";
30029 char *term;
30030 double value;
30031 value = strtod (string, &term);
30032 if (value != 69 || term != (string + 4))
30033 return 1;
30034 }
30035
30036 {
30037 /* Under Solaris 2.4, strtod returns the wrong value for the
30038 terminating character under some conditions. */
30039 char *string = "NaN";
30040 char *term;
30041 strtod (string, &term);
30042 if (term != string && *(term - 1) == 0)
30043 return 1;
30044 }
30045 return 0;
30046}
30047
30048_ACEOF
30049rm -f conftest$ac_exeext
30050if { (ac_try="$ac_link"
30051case "(($ac_try" in
30052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30053 *) ac_try_echo=$ac_try;;
30054esac
30055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30056$as_echo "$ac_try_echo") >&5
30057 (eval "$ac_link") 2>&5
30058 ac_status=$?
30059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30061 { (case "(($ac_try" in
30062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30063 *) ac_try_echo=$ac_try;;
30064esac
30065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30066$as_echo "$ac_try_echo") >&5
30067 (eval "$ac_try") 2>&5
30068 ac_status=$?
30069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); }; }; then
30071 ac_cv_func_strtod=yes
30072else
30073 $as_echo "$as_me: program exited with status $ac_status" >&5
30074$as_echo "$as_me: failed program was:" >&5
30075sed 's/^/| /' conftest.$ac_ext >&5
30076
30077( exit $ac_status )
30078ac_cv_func_strtod=no
30079fi
30080rm -rf conftest.dSYM
30081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30082fi
30083
30084
30085fi
30086{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
30087$as_echo "$ac_cv_func_strtod" >&6; }
30088if test $ac_cv_func_strtod = no; then
30089 case " $LIBOBJS " in
30090 *" strtod.$ac_objext "* ) ;;
30091 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
30092 ;;
30093esac
30094
30095{ $as_echo "$as_me:$LINENO: checking for pow" >&5
30096$as_echo_n "checking for pow... " >&6; }
30097if test "${ac_cv_func_pow+set}" = set; then
30098 $as_echo_n "(cached) " >&6
30099else
30100 cat >conftest.$ac_ext <<_ACEOF
30101/* confdefs.h. */
30102_ACEOF
30103cat confdefs.h >>conftest.$ac_ext
30104cat >>conftest.$ac_ext <<_ACEOF
30105/* end confdefs.h. */
30106/* Define pow to an innocuous variant, in case <limits.h> declares pow.
30107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30108#define pow innocuous_pow
30109
30110/* System header to define __stub macros and hopefully few prototypes,
30111 which can conflict with char pow (); below.
30112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30113 <limits.h> exists even on freestanding compilers. */
30114
30115#ifdef __STDC__
30116# include <limits.h>
30117#else
30118# include <assert.h>
30119#endif
30120
30121#undef pow
30122
30123/* Override any GCC internal prototype to avoid an error.
30124 Use char because int might match the return type of a GCC
30125 builtin and then its argument prototype would still apply. */
30126#ifdef __cplusplus
30127extern "C"
30128#endif
30129char pow ();
30130/* The GNU C library defines this for functions which it implements
30131 to always fail with ENOSYS. Some functions are actually named
30132 something starting with __ and the normal name is an alias. */
30133#if defined __stub_pow || defined __stub___pow
30134choke me
30135#endif
30136
30137int
30138main ()
30139{
30140return pow ();
30141 ;
30142 return 0;
30143}
30144_ACEOF
30145rm -f conftest.$ac_objext conftest$ac_exeext
30146if { (ac_try="$ac_link"
30147case "(($ac_try" in
30148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149 *) ac_try_echo=$ac_try;;
30150esac
30151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30152$as_echo "$ac_try_echo") >&5
30153 (eval "$ac_link") 2>conftest.er1
30154 ac_status=$?
30155 grep -v '^ *+' conftest.er1 >conftest.err
30156 rm -f conftest.er1
30157 cat conftest.err >&5
30158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159 (exit $ac_status); } && {
30160 test -z "$ac_c_werror_flag" ||
30161 test ! -s conftest.err
30162 } && test -s conftest$ac_exeext && {
30163 test "$cross_compiling" = yes ||
30164 $as_test_x conftest$ac_exeext
30165 }; then
30166 ac_cv_func_pow=yes
30167else
30168 $as_echo "$as_me: failed program was:" >&5
30169sed 's/^/| /' conftest.$ac_ext >&5
30170
30171 ac_cv_func_pow=no
30172fi
30173
30174rm -rf conftest.dSYM
30175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30176 conftest$ac_exeext conftest.$ac_ext
30177fi
30178{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
30179$as_echo "$ac_cv_func_pow" >&6; }
30180
30181if test $ac_cv_func_pow = no; then
30182 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
30183$as_echo_n "checking for pow in -lm... " >&6; }
30184if test "${ac_cv_lib_m_pow+set}" = set; then
30185 $as_echo_n "(cached) " >&6
30186else
30187 ac_check_lib_save_LIBS=$LIBS
30188LIBS="-lm $LIBS"
30189cat >conftest.$ac_ext <<_ACEOF
30190/* confdefs.h. */
30191_ACEOF
30192cat confdefs.h >>conftest.$ac_ext
30193cat >>conftest.$ac_ext <<_ACEOF
30194/* end confdefs.h. */
30195
30196/* Override any GCC internal prototype to avoid an error.
30197 Use char because int might match the return type of a GCC
30198 builtin and then its argument prototype would still apply. */
30199#ifdef __cplusplus
30200extern "C"
30201#endif
30202char pow ();
30203int
30204main ()
30205{
30206return pow ();
30207 ;
30208 return 0;
30209}
30210_ACEOF
30211rm -f conftest.$ac_objext conftest$ac_exeext
30212if { (ac_try="$ac_link"
30213case "(($ac_try" in
30214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30215 *) ac_try_echo=$ac_try;;
30216esac
30217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30218$as_echo "$ac_try_echo") >&5
30219 (eval "$ac_link") 2>conftest.er1
30220 ac_status=$?
30221 grep -v '^ *+' conftest.er1 >conftest.err
30222 rm -f conftest.er1
30223 cat conftest.err >&5
30224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); } && {
30226 test -z "$ac_c_werror_flag" ||
30227 test ! -s conftest.err
30228 } && test -s conftest$ac_exeext && {
30229 test "$cross_compiling" = yes ||
30230 $as_test_x conftest$ac_exeext
30231 }; then
30232 ac_cv_lib_m_pow=yes
30233else
30234 $as_echo "$as_me: failed program was:" >&5
30235sed 's/^/| /' conftest.$ac_ext >&5
30236
30237 ac_cv_lib_m_pow=no
30238fi
30239
30240rm -rf conftest.dSYM
30241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30242 conftest$ac_exeext conftest.$ac_ext
30243LIBS=$ac_check_lib_save_LIBS
30244fi
30245{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
30246$as_echo "$ac_cv_lib_m_pow" >&6; }
30247if test "x$ac_cv_lib_m_pow" = x""yes; then
30248 POW_LIB=-lm
30249else
30250 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
30251$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
30252fi
30253
30254fi
30255
30256fi
30257
30258
30259for ac_func in vprintf
30260do
30261as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30262{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30263$as_echo_n "checking for $ac_func... " >&6; }
30264if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30265 $as_echo_n "(cached) " >&6
30266else
30267 cat >conftest.$ac_ext <<_ACEOF
30268/* confdefs.h. */
30269_ACEOF
30270cat confdefs.h >>conftest.$ac_ext
30271cat >>conftest.$ac_ext <<_ACEOF
30272/* end confdefs.h. */
30273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30275#define $ac_func innocuous_$ac_func
30276
30277/* System header to define __stub macros and hopefully few prototypes,
30278 which can conflict with char $ac_func (); below.
30279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30280 <limits.h> exists even on freestanding compilers. */
30281
30282#ifdef __STDC__
30283# include <limits.h>
30284#else
30285# include <assert.h>
30286#endif
30287
30288#undef $ac_func
30289
30290/* Override any GCC internal prototype to avoid an error.
30291 Use char because int might match the return type of a GCC
30292 builtin and then its argument prototype would still apply. */
30293#ifdef __cplusplus
30294extern "C"
30295#endif
30296char $ac_func ();
30297/* The GNU C library defines this for functions which it implements
30298 to always fail with ENOSYS. Some functions are actually named
30299 something starting with __ and the normal name is an alias. */
30300#if defined __stub_$ac_func || defined __stub___$ac_func
30301choke me
30302#endif
30303
30304int
30305main ()
30306{
30307return $ac_func ();
30308 ;
30309 return 0;
30310}
30311_ACEOF
30312rm -f conftest.$ac_objext conftest$ac_exeext
30313if { (ac_try="$ac_link"
30314case "(($ac_try" in
30315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30316 *) ac_try_echo=$ac_try;;
30317esac
30318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30319$as_echo "$ac_try_echo") >&5
30320 (eval "$ac_link") 2>conftest.er1
30321 ac_status=$?
30322 grep -v '^ *+' conftest.er1 >conftest.err
30323 rm -f conftest.er1
30324 cat conftest.err >&5
30325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326 (exit $ac_status); } && {
30327 test -z "$ac_c_werror_flag" ||
30328 test ! -s conftest.err
30329 } && test -s conftest$ac_exeext && {
30330 test "$cross_compiling" = yes ||
30331 $as_test_x conftest$ac_exeext
30332 }; then
30333 eval "$as_ac_var=yes"
30334else
30335 $as_echo "$as_me: failed program was:" >&5
30336sed 's/^/| /' conftest.$ac_ext >&5
30337
30338 eval "$as_ac_var=no"
30339fi
30340
30341rm -rf conftest.dSYM
30342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30343 conftest$ac_exeext conftest.$ac_ext
30344fi
30345ac_res=`eval 'as_val=${'$as_ac_var'}
30346 $as_echo "$as_val"'`
30347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30348$as_echo "$ac_res" >&6; }
30349as_val=`eval 'as_val=${'$as_ac_var'}
30350 $as_echo "$as_val"'`
30351 if test "x$as_val" = x""yes; then
30352 cat >>confdefs.h <<_ACEOF
30353#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30354_ACEOF
30355
30356{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
30357$as_echo_n "checking for _doprnt... " >&6; }
30358if test "${ac_cv_func__doprnt+set}" = set; then
30359 $as_echo_n "(cached) " >&6
30360else
30361 cat >conftest.$ac_ext <<_ACEOF
30362/* confdefs.h. */
30363_ACEOF
30364cat confdefs.h >>conftest.$ac_ext
30365cat >>conftest.$ac_ext <<_ACEOF
30366/* end confdefs.h. */
30367/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
30368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30369#define _doprnt innocuous__doprnt
30370
30371/* System header to define __stub macros and hopefully few prototypes,
30372 which can conflict with char _doprnt (); below.
30373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30374 <limits.h> exists even on freestanding compilers. */
30375
30376#ifdef __STDC__
30377# include <limits.h>
30378#else
30379# include <assert.h>
30380#endif
30381
30382#undef _doprnt
30383
30384/* Override any GCC internal prototype to avoid an error.
30385 Use char because int might match the return type of a GCC
30386 builtin and then its argument prototype would still apply. */
30387#ifdef __cplusplus
30388extern "C"
30389#endif
30390char _doprnt ();
30391/* The GNU C library defines this for functions which it implements
30392 to always fail with ENOSYS. Some functions are actually named
30393 something starting with __ and the normal name is an alias. */
30394#if defined __stub__doprnt || defined __stub____doprnt
30395choke me
30396#endif
30397
30398int
30399main ()
30400{
30401return _doprnt ();
30402 ;
30403 return 0;
30404}
30405_ACEOF
30406rm -f conftest.$ac_objext conftest$ac_exeext
30407if { (ac_try="$ac_link"
30408case "(($ac_try" in
30409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410 *) ac_try_echo=$ac_try;;
30411esac
30412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30413$as_echo "$ac_try_echo") >&5
30414 (eval "$ac_link") 2>conftest.er1
30415 ac_status=$?
30416 grep -v '^ *+' conftest.er1 >conftest.err
30417 rm -f conftest.er1
30418 cat conftest.err >&5
30419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); } && {
30421 test -z "$ac_c_werror_flag" ||
30422 test ! -s conftest.err
30423 } && test -s conftest$ac_exeext && {
30424 test "$cross_compiling" = yes ||
30425 $as_test_x conftest$ac_exeext
30426 }; then
30427 ac_cv_func__doprnt=yes
30428else
30429 $as_echo "$as_me: failed program was:" >&5
30430sed 's/^/| /' conftest.$ac_ext >&5
30431
30432 ac_cv_func__doprnt=no
30433fi
30434
30435rm -rf conftest.dSYM
30436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30437 conftest$ac_exeext conftest.$ac_ext
30438fi
30439{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
30440$as_echo "$ac_cv_func__doprnt" >&6; }
30441if test "x$ac_cv_func__doprnt" = x""yes; then
30442
30443cat >>confdefs.h <<\_ACEOF
30444#define HAVE_DOPRNT 1
30445_ACEOF
30446
30447fi
30448
30449fi
30450done
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518
30519
30520
30521
30522
30523
30524
30525
30526
30527
30528
cristy56489a52009-09-09 03:13:52 +000030529
30530for ac_func in _exit atexit clock clock_gettime directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol symlink sysconf sigemptyset sigaction strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
cristy3ed852e2009-09-05 21:47:34 +000030531do
30532as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30533{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30534$as_echo_n "checking for $ac_func... " >&6; }
30535if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30536 $as_echo_n "(cached) " >&6
30537else
30538 cat >conftest.$ac_ext <<_ACEOF
30539/* confdefs.h. */
30540_ACEOF
30541cat confdefs.h >>conftest.$ac_ext
30542cat >>conftest.$ac_ext <<_ACEOF
30543/* end confdefs.h. */
30544/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30546#define $ac_func innocuous_$ac_func
30547
30548/* System header to define __stub macros and hopefully few prototypes,
30549 which can conflict with char $ac_func (); below.
30550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30551 <limits.h> exists even on freestanding compilers. */
30552
30553#ifdef __STDC__
30554# include <limits.h>
30555#else
30556# include <assert.h>
30557#endif
30558
30559#undef $ac_func
30560
30561/* Override any GCC internal prototype to avoid an error.
30562 Use char because int might match the return type of a GCC
30563 builtin and then its argument prototype would still apply. */
30564#ifdef __cplusplus
30565extern "C"
30566#endif
30567char $ac_func ();
30568/* The GNU C library defines this for functions which it implements
30569 to always fail with ENOSYS. Some functions are actually named
30570 something starting with __ and the normal name is an alias. */
30571#if defined __stub_$ac_func || defined __stub___$ac_func
30572choke me
30573#endif
30574
30575int
30576main ()
30577{
30578return $ac_func ();
30579 ;
30580 return 0;
30581}
30582_ACEOF
30583rm -f conftest.$ac_objext conftest$ac_exeext
30584if { (ac_try="$ac_link"
30585case "(($ac_try" in
30586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30587 *) ac_try_echo=$ac_try;;
30588esac
30589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30590$as_echo "$ac_try_echo") >&5
30591 (eval "$ac_link") 2>conftest.er1
30592 ac_status=$?
30593 grep -v '^ *+' conftest.er1 >conftest.err
30594 rm -f conftest.er1
30595 cat conftest.err >&5
30596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); } && {
30598 test -z "$ac_c_werror_flag" ||
30599 test ! -s conftest.err
30600 } && test -s conftest$ac_exeext && {
30601 test "$cross_compiling" = yes ||
30602 $as_test_x conftest$ac_exeext
30603 }; then
30604 eval "$as_ac_var=yes"
30605else
30606 $as_echo "$as_me: failed program was:" >&5
30607sed 's/^/| /' conftest.$ac_ext >&5
30608
30609 eval "$as_ac_var=no"
30610fi
30611
30612rm -rf conftest.dSYM
30613rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30614 conftest$ac_exeext conftest.$ac_ext
30615fi
30616ac_res=`eval 'as_val=${'$as_ac_var'}
30617 $as_echo "$as_val"'`
30618 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30619$as_echo "$ac_res" >&6; }
30620as_val=`eval 'as_val=${'$as_ac_var'}
30621 $as_echo "$as_val"'`
30622 if test "x$as_val" = x""yes; then
30623 cat >>confdefs.h <<_ACEOF
30624#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30625_ACEOF
30626
30627fi
30628done
30629
30630
30631########
30632#
30633# Check for function prototypes
30634#
30635########
30636
30637{ $as_echo "$as_me:$LINENO: checking whether pread is declared" >&5
30638$as_echo_n "checking whether pread is declared... " >&6; }
30639if test "${ac_cv_have_decl_pread+set}" = set; then
30640 $as_echo_n "(cached) " >&6
30641else
30642 cat >conftest.$ac_ext <<_ACEOF
30643/* confdefs.h. */
30644_ACEOF
30645cat confdefs.h >>conftest.$ac_ext
30646cat >>conftest.$ac_ext <<_ACEOF
30647/* end confdefs.h. */
30648
30649#include <unistd.h>
30650
30651int
30652main ()
30653{
30654#ifndef pread
30655 (void) pread;
30656#endif
30657
30658 ;
30659 return 0;
30660}
30661_ACEOF
30662rm -f conftest.$ac_objext
30663if { (ac_try="$ac_compile"
30664case "(($ac_try" in
30665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666 *) ac_try_echo=$ac_try;;
30667esac
30668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30669$as_echo "$ac_try_echo") >&5
30670 (eval "$ac_compile") 2>conftest.er1
30671 ac_status=$?
30672 grep -v '^ *+' conftest.er1 >conftest.err
30673 rm -f conftest.er1
30674 cat conftest.err >&5
30675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676 (exit $ac_status); } && {
30677 test -z "$ac_c_werror_flag" ||
30678 test ! -s conftest.err
30679 } && test -s conftest.$ac_objext; then
30680 ac_cv_have_decl_pread=yes
30681else
30682 $as_echo "$as_me: failed program was:" >&5
30683sed 's/^/| /' conftest.$ac_ext >&5
30684
30685 ac_cv_have_decl_pread=no
30686fi
30687
30688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30689fi
30690{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pread" >&5
30691$as_echo "$ac_cv_have_decl_pread" >&6; }
30692if test "x$ac_cv_have_decl_pread" = x""yes; then
30693
30694cat >>confdefs.h <<_ACEOF
30695#define HAVE_DECL_PREAD 1
30696_ACEOF
30697
30698
30699else
30700 cat >>confdefs.h <<_ACEOF
30701#define HAVE_DECL_PREAD 0
30702_ACEOF
30703
30704
30705fi
30706{ $as_echo "$as_me:$LINENO: checking whether pwrite is declared" >&5
30707$as_echo_n "checking whether pwrite is declared... " >&6; }
30708if test "${ac_cv_have_decl_pwrite+set}" = set; then
30709 $as_echo_n "(cached) " >&6
30710else
30711 cat >conftest.$ac_ext <<_ACEOF
30712/* confdefs.h. */
30713_ACEOF
30714cat confdefs.h >>conftest.$ac_ext
30715cat >>conftest.$ac_ext <<_ACEOF
30716/* end confdefs.h. */
30717
30718#include <unistd.h>
30719
30720int
30721main ()
30722{
30723#ifndef pwrite
30724 (void) pwrite;
30725#endif
30726
30727 ;
30728 return 0;
30729}
30730_ACEOF
30731rm -f conftest.$ac_objext
30732if { (ac_try="$ac_compile"
30733case "(($ac_try" in
30734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30735 *) ac_try_echo=$ac_try;;
30736esac
30737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30738$as_echo "$ac_try_echo") >&5
30739 (eval "$ac_compile") 2>conftest.er1
30740 ac_status=$?
30741 grep -v '^ *+' conftest.er1 >conftest.err
30742 rm -f conftest.er1
30743 cat conftest.err >&5
30744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745 (exit $ac_status); } && {
30746 test -z "$ac_c_werror_flag" ||
30747 test ! -s conftest.err
30748 } && test -s conftest.$ac_objext; then
30749 ac_cv_have_decl_pwrite=yes
30750else
30751 $as_echo "$as_me: failed program was:" >&5
30752sed 's/^/| /' conftest.$ac_ext >&5
30753
30754 ac_cv_have_decl_pwrite=no
30755fi
30756
30757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30758fi
30759{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwrite" >&5
30760$as_echo "$ac_cv_have_decl_pwrite" >&6; }
30761if test "x$ac_cv_have_decl_pwrite" = x""yes; then
30762
30763cat >>confdefs.h <<_ACEOF
30764#define HAVE_DECL_PWRITE 1
30765_ACEOF
30766
30767
30768else
30769 cat >>confdefs.h <<_ACEOF
30770#define HAVE_DECL_PWRITE 0
30771_ACEOF
30772
30773
30774fi
30775
30776
30777
30778{ $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
30779$as_echo_n "checking whether strlcpy is declared... " >&6; }
30780if test "${ac_cv_have_decl_strlcpy+set}" = set; then
30781 $as_echo_n "(cached) " >&6
30782else
30783 cat >conftest.$ac_ext <<_ACEOF
30784/* confdefs.h. */
30785_ACEOF
30786cat confdefs.h >>conftest.$ac_ext
30787cat >>conftest.$ac_ext <<_ACEOF
30788/* end confdefs.h. */
30789
30790#include <strings.h>
30791
30792int
30793main ()
30794{
30795#ifndef strlcpy
30796 (void) strlcpy;
30797#endif
30798
30799 ;
30800 return 0;
30801}
30802_ACEOF
30803rm -f conftest.$ac_objext
30804if { (ac_try="$ac_compile"
30805case "(($ac_try" in
30806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807 *) ac_try_echo=$ac_try;;
30808esac
30809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30810$as_echo "$ac_try_echo") >&5
30811 (eval "$ac_compile") 2>conftest.er1
30812 ac_status=$?
30813 grep -v '^ *+' conftest.er1 >conftest.err
30814 rm -f conftest.er1
30815 cat conftest.err >&5
30816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); } && {
30818 test -z "$ac_c_werror_flag" ||
30819 test ! -s conftest.err
30820 } && test -s conftest.$ac_objext; then
30821 ac_cv_have_decl_strlcpy=yes
30822else
30823 $as_echo "$as_me: failed program was:" >&5
30824sed 's/^/| /' conftest.$ac_ext >&5
30825
30826 ac_cv_have_decl_strlcpy=no
30827fi
30828
30829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30830fi
30831{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
30832$as_echo "$ac_cv_have_decl_strlcpy" >&6; }
30833if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
30834
30835cat >>confdefs.h <<_ACEOF
30836#define HAVE_DECL_STRLCPY 1
30837_ACEOF
30838
30839
30840else
30841 cat >>confdefs.h <<_ACEOF
30842#define HAVE_DECL_STRLCPY 0
30843_ACEOF
30844
30845
30846fi
30847
30848
30849
30850{ $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
30851$as_echo_n "checking whether vsnprintf is declared... " >&6; }
30852if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
30853 $as_echo_n "(cached) " >&6
30854else
30855 cat >conftest.$ac_ext <<_ACEOF
30856/* confdefs.h. */
30857_ACEOF
30858cat confdefs.h >>conftest.$ac_ext
30859cat >>conftest.$ac_ext <<_ACEOF
30860/* end confdefs.h. */
30861
30862#include <stdio.h>
30863#include <stdarg.h>
30864
30865int
30866main ()
30867{
30868#ifndef vsnprintf
30869 (void) vsnprintf;
30870#endif
30871
30872 ;
30873 return 0;
30874}
30875_ACEOF
30876rm -f conftest.$ac_objext
30877if { (ac_try="$ac_compile"
30878case "(($ac_try" in
30879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30880 *) ac_try_echo=$ac_try;;
30881esac
30882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30883$as_echo "$ac_try_echo") >&5
30884 (eval "$ac_compile") 2>conftest.er1
30885 ac_status=$?
30886 grep -v '^ *+' conftest.er1 >conftest.err
30887 rm -f conftest.er1
30888 cat conftest.err >&5
30889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); } && {
30891 test -z "$ac_c_werror_flag" ||
30892 test ! -s conftest.err
30893 } && test -s conftest.$ac_objext; then
30894 ac_cv_have_decl_vsnprintf=yes
30895else
30896 $as_echo "$as_me: failed program was:" >&5
30897sed 's/^/| /' conftest.$ac_ext >&5
30898
30899 ac_cv_have_decl_vsnprintf=no
30900fi
30901
30902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30903fi
30904{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
30905$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
30906if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
30907
30908cat >>confdefs.h <<_ACEOF
30909#define HAVE_DECL_VSNPRINTF 1
30910_ACEOF
30911
30912
30913else
30914 cat >>confdefs.h <<_ACEOF
30915#define HAVE_DECL_VSNPRINTF 0
30916_ACEOF
30917
30918
30919fi
30920
30921
30922
30923########
30924#
30925# C++ Support Tests (For Magick++)
30926#
30927########
30928have_magick_plus_plus='no'
30929if test "$with_magick_plus_plus" = 'yes'; then
30930 OLIBS="$LIBS"
30931 LIBS=''
30932 ac_ext=cpp
30933ac_cpp='$CXXCPP $CPPFLAGS'
30934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30937
30938
30939 # Full set of headers used...
30940 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
30941 # functional iomanip iosfwd iostream iterator list string strstream utility
30942 ac_ext=cpp
30943ac_cpp='$CXXCPP $CPPFLAGS'
30944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30947
30948 ac_ext=cpp
30949ac_cpp='$CXXCPP $CPPFLAGS'
30950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30953if test -z "$CXX"; then
30954 if test -n "$CCC"; then
30955 CXX=$CCC
30956 else
30957 if test -n "$ac_tool_prefix"; then
30958 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
30959 do
30960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30961set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30962{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30963$as_echo_n "checking for $ac_word... " >&6; }
30964if test "${ac_cv_prog_CXX+set}" = set; then
30965 $as_echo_n "(cached) " >&6
30966else
30967 if test -n "$CXX"; then
30968 ac_cv_prog_CXX="$CXX" # Let the user override the test.
30969else
30970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30971for as_dir in $PATH
30972do
30973 IFS=$as_save_IFS
30974 test -z "$as_dir" && as_dir=.
30975 for ac_exec_ext in '' $ac_executable_extensions; do
30976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30977 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
30978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30979 break 2
30980 fi
30981done
30982done
30983IFS=$as_save_IFS
30984
30985fi
30986fi
30987CXX=$ac_cv_prog_CXX
30988if test -n "$CXX"; then
30989 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
30990$as_echo "$CXX" >&6; }
30991else
30992 { $as_echo "$as_me:$LINENO: result: no" >&5
30993$as_echo "no" >&6; }
30994fi
30995
30996
30997 test -n "$CXX" && break
30998 done
30999fi
31000if test -z "$CXX"; then
31001 ac_ct_CXX=$CXX
31002 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
31003do
31004 # Extract the first word of "$ac_prog", so it can be a program name with args.
31005set dummy $ac_prog; ac_word=$2
31006{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31007$as_echo_n "checking for $ac_word... " >&6; }
31008if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
31009 $as_echo_n "(cached) " >&6
31010else
31011 if test -n "$ac_ct_CXX"; then
31012 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
31013else
31014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31015for as_dir in $PATH
31016do
31017 IFS=$as_save_IFS
31018 test -z "$as_dir" && as_dir=.
31019 for ac_exec_ext in '' $ac_executable_extensions; do
31020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31021 ac_cv_prog_ac_ct_CXX="$ac_prog"
31022 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31023 break 2
31024 fi
31025done
31026done
31027IFS=$as_save_IFS
31028
31029fi
31030fi
31031ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
31032if test -n "$ac_ct_CXX"; then
31033 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
31034$as_echo "$ac_ct_CXX" >&6; }
31035else
31036 { $as_echo "$as_me:$LINENO: result: no" >&5
31037$as_echo "no" >&6; }
31038fi
31039
31040
31041 test -n "$ac_ct_CXX" && break
31042done
31043
31044 if test "x$ac_ct_CXX" = x; then
31045 CXX="g++"
31046 else
31047 case $cross_compiling:$ac_tool_warned in
31048yes:)
31049{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
31050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31051ac_tool_warned=yes ;;
31052esac
31053 CXX=$ac_ct_CXX
31054 fi
31055fi
31056
31057 fi
31058fi
31059# Provide some information about the compiler.
31060$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
31061set X $ac_compile
31062ac_compiler=$2
31063{ (ac_try="$ac_compiler --version >&5"
31064case "(($ac_try" in
31065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31066 *) ac_try_echo=$ac_try;;
31067esac
31068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31069$as_echo "$ac_try_echo") >&5
31070 (eval "$ac_compiler --version >&5") 2>&5
31071 ac_status=$?
31072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); }
31074{ (ac_try="$ac_compiler -v >&5"
31075case "(($ac_try" in
31076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31077 *) ac_try_echo=$ac_try;;
31078esac
31079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31080$as_echo "$ac_try_echo") >&5
31081 (eval "$ac_compiler -v >&5") 2>&5
31082 ac_status=$?
31083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084 (exit $ac_status); }
31085{ (ac_try="$ac_compiler -V >&5"
31086case "(($ac_try" in
31087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31088 *) ac_try_echo=$ac_try;;
31089esac
31090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31091$as_echo "$ac_try_echo") >&5
31092 (eval "$ac_compiler -V >&5") 2>&5
31093 ac_status=$?
31094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31095 (exit $ac_status); }
31096
31097{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
31098$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
31099if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
31100 $as_echo_n "(cached) " >&6
31101else
31102 cat >conftest.$ac_ext <<_ACEOF
31103/* confdefs.h. */
31104_ACEOF
31105cat confdefs.h >>conftest.$ac_ext
31106cat >>conftest.$ac_ext <<_ACEOF
31107/* end confdefs.h. */
31108
31109int
31110main ()
31111{
31112#ifndef __GNUC__
31113 choke me
31114#endif
31115
31116 ;
31117 return 0;
31118}
31119_ACEOF
31120rm -f conftest.$ac_objext
31121if { (ac_try="$ac_compile"
31122case "(($ac_try" in
31123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31124 *) ac_try_echo=$ac_try;;
31125esac
31126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31127$as_echo "$ac_try_echo") >&5
31128 (eval "$ac_compile") 2>conftest.er1
31129 ac_status=$?
31130 grep -v '^ *+' conftest.er1 >conftest.err
31131 rm -f conftest.er1
31132 cat conftest.err >&5
31133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); } && {
31135 test -z "$ac_cxx_werror_flag" ||
31136 test ! -s conftest.err
31137 } && test -s conftest.$ac_objext; then
31138 ac_compiler_gnu=yes
31139else
31140 $as_echo "$as_me: failed program was:" >&5
31141sed 's/^/| /' conftest.$ac_ext >&5
31142
31143 ac_compiler_gnu=no
31144fi
31145
31146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31147ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
31148
31149fi
31150{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
31151$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
31152if test $ac_compiler_gnu = yes; then
31153 GXX=yes
31154else
31155 GXX=
31156fi
31157ac_test_CXXFLAGS=${CXXFLAGS+set}
31158ac_save_CXXFLAGS=$CXXFLAGS
31159{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
31160$as_echo_n "checking whether $CXX accepts -g... " >&6; }
31161if test "${ac_cv_prog_cxx_g+set}" = set; then
31162 $as_echo_n "(cached) " >&6
31163else
31164 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
31165 ac_cxx_werror_flag=yes
31166 ac_cv_prog_cxx_g=no
31167 CXXFLAGS="-g"
31168 cat >conftest.$ac_ext <<_ACEOF
31169/* confdefs.h. */
31170_ACEOF
31171cat confdefs.h >>conftest.$ac_ext
31172cat >>conftest.$ac_ext <<_ACEOF
31173/* end confdefs.h. */
31174
31175int
31176main ()
31177{
31178
31179 ;
31180 return 0;
31181}
31182_ACEOF
31183rm -f conftest.$ac_objext
31184if { (ac_try="$ac_compile"
31185case "(($ac_try" in
31186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31187 *) ac_try_echo=$ac_try;;
31188esac
31189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31190$as_echo "$ac_try_echo") >&5
31191 (eval "$ac_compile") 2>conftest.er1
31192 ac_status=$?
31193 grep -v '^ *+' conftest.er1 >conftest.err
31194 rm -f conftest.er1
31195 cat conftest.err >&5
31196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197 (exit $ac_status); } && {
31198 test -z "$ac_cxx_werror_flag" ||
31199 test ! -s conftest.err
31200 } && test -s conftest.$ac_objext; then
31201 ac_cv_prog_cxx_g=yes
31202else
31203 $as_echo "$as_me: failed program was:" >&5
31204sed 's/^/| /' conftest.$ac_ext >&5
31205
31206 CXXFLAGS=""
31207 cat >conftest.$ac_ext <<_ACEOF
31208/* confdefs.h. */
31209_ACEOF
31210cat confdefs.h >>conftest.$ac_ext
31211cat >>conftest.$ac_ext <<_ACEOF
31212/* end confdefs.h. */
31213
31214int
31215main ()
31216{
31217
31218 ;
31219 return 0;
31220}
31221_ACEOF
31222rm -f conftest.$ac_objext
31223if { (ac_try="$ac_compile"
31224case "(($ac_try" in
31225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31226 *) ac_try_echo=$ac_try;;
31227esac
31228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31229$as_echo "$ac_try_echo") >&5
31230 (eval "$ac_compile") 2>conftest.er1
31231 ac_status=$?
31232 grep -v '^ *+' conftest.er1 >conftest.err
31233 rm -f conftest.er1
31234 cat conftest.err >&5
31235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); } && {
31237 test -z "$ac_cxx_werror_flag" ||
31238 test ! -s conftest.err
31239 } && test -s conftest.$ac_objext; then
31240 :
31241else
31242 $as_echo "$as_me: failed program was:" >&5
31243sed 's/^/| /' conftest.$ac_ext >&5
31244
31245 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
31246 CXXFLAGS="-g"
31247 cat >conftest.$ac_ext <<_ACEOF
31248/* confdefs.h. */
31249_ACEOF
31250cat confdefs.h >>conftest.$ac_ext
31251cat >>conftest.$ac_ext <<_ACEOF
31252/* end confdefs.h. */
31253
31254int
31255main ()
31256{
31257
31258 ;
31259 return 0;
31260}
31261_ACEOF
31262rm -f conftest.$ac_objext
31263if { (ac_try="$ac_compile"
31264case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31267esac
31268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31269$as_echo "$ac_try_echo") >&5
31270 (eval "$ac_compile") 2>conftest.er1
31271 ac_status=$?
31272 grep -v '^ *+' conftest.er1 >conftest.err
31273 rm -f conftest.er1
31274 cat conftest.err >&5
31275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276 (exit $ac_status); } && {
31277 test -z "$ac_cxx_werror_flag" ||
31278 test ! -s conftest.err
31279 } && test -s conftest.$ac_objext; then
31280 ac_cv_prog_cxx_g=yes
31281else
31282 $as_echo "$as_me: failed program was:" >&5
31283sed 's/^/| /' conftest.$ac_ext >&5
31284
31285
31286fi
31287
31288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31289fi
31290
31291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31292fi
31293
31294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31295 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
31296fi
31297{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
31298$as_echo "$ac_cv_prog_cxx_g" >&6; }
31299if test "$ac_test_CXXFLAGS" = set; then
31300 CXXFLAGS=$ac_save_CXXFLAGS
31301elif test $ac_cv_prog_cxx_g = yes; then
31302 if test "$GXX" = yes; then
31303 CXXFLAGS="-g -O2"
31304 else
31305 CXXFLAGS="-g"
31306 fi
31307else
31308 if test "$GXX" = yes; then
31309 CXXFLAGS="-O2"
31310 else
31311 CXXFLAGS=
31312 fi
31313fi
31314ac_ext=cpp
31315ac_cpp='$CXXCPP $CPPFLAGS'
31316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31319
31320depcc="$CXX" am_compiler_list=
31321
31322{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
31323$as_echo_n "checking dependency style of $depcc... " >&6; }
31324if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
31325 $as_echo_n "(cached) " >&6
31326else
31327 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
31328 # We make a subdir and do the tests there. Otherwise we can end up
31329 # making bogus files that we don't know about and never remove. For
31330 # instance it was reported that on HP-UX the gcc test will end up
31331 # making a dummy file named `D' -- because `-MD' means `put the output
31332 # in D'.
31333 mkdir conftest.dir
31334 # Copy depcomp to subdir because otherwise we won't find it if we're
31335 # using a relative directory.
31336 cp "$am_depcomp" conftest.dir
31337 cd conftest.dir
31338 # We will build objects and dependencies in a subdirectory because
31339 # it helps to detect inapplicable dependency modes. For instance
31340 # both Tru64's cc and ICC support -MD to output dependencies as a
31341 # side effect of compilation, but ICC will put the dependencies in
31342 # the current directory while Tru64 will put them in the object
31343 # directory.
31344 mkdir sub
31345
31346 am_cv_CXX_dependencies_compiler_type=none
31347 if test "$am_compiler_list" = ""; then
31348 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
31349 fi
31350 am__universal=false
31351 case " $depcc " in #(
31352 *\ -arch\ *\ -arch\ *) am__universal=true ;;
31353 esac
31354
31355 for depmode in $am_compiler_list; do
31356 # Setup a source with many dependencies, because some compilers
31357 # like to wrap large dependency lists on column 80 (with \), and
31358 # we should not choose a depcomp mode which is confused by this.
31359 #
31360 # We need to recreate these files for each test, as the compiler may
31361 # overwrite some of them when testing with obscure command lines.
31362 # This happens at least with the AIX C compiler.
31363 : > sub/conftest.c
31364 for i in 1 2 3 4 5 6; do
31365 echo '#include "conftst'$i'.h"' >> sub/conftest.c
31366 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
31367 # Solaris 8's {/usr,}/bin/sh.
31368 touch sub/conftst$i.h
31369 done
31370 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
31371
31372 # We check with `-c' and `-o' for the sake of the "dashmstdout"
31373 # mode. It turns out that the SunPro C++ compiler does not properly
31374 # handle `-M -o', and we need to detect this. Also, some Intel
31375 # versions had trouble with output in subdirs
31376 am__obj=sub/conftest.${OBJEXT-o}
31377 am__minus_obj="-o $am__obj"
31378 case $depmode in
31379 gcc)
31380 # This depmode causes a compiler race in universal mode.
31381 test "$am__universal" = false || continue
31382 ;;
31383 nosideeffect)
31384 # after this tag, mechanisms are not by side-effect, so they'll
31385 # only be used when explicitly requested
31386 if test "x$enable_dependency_tracking" = xyes; then
31387 continue
31388 else
31389 break
31390 fi
31391 ;;
31392 msvisualcpp | msvcmsys)
31393 # This compiler won't grok `-c -o', but also, the minuso test has
31394 # not run yet. These depmodes are late enough in the game, and
31395 # so weak that their functioning should not be impacted.
31396 am__obj=conftest.${OBJEXT-o}
31397 am__minus_obj=
31398 ;;
31399 none) break ;;
31400 esac
31401 if depmode=$depmode \
31402 source=sub/conftest.c object=$am__obj \
31403 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
31404 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
31405 >/dev/null 2>conftest.err &&
31406 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
31407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
31408 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
31409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
31410 # icc doesn't choke on unknown options, it will just issue warnings
31411 # or remarks (even with -Werror). So we grep stderr for any message
31412 # that says an option was ignored or not supported.
31413 # When given -MP, icc 7.0 and 7.1 complain thusly:
31414 # icc: Command line warning: ignoring option '-M'; no argument required
31415 # The diagnosis changed in icc 8.0:
31416 # icc: Command line remark: option '-MP' not supported
31417 if (grep 'ignoring option' conftest.err ||
31418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
31419 am_cv_CXX_dependencies_compiler_type=$depmode
31420 break
31421 fi
31422 fi
31423 done
31424
31425 cd ..
31426 rm -rf conftest.dir
31427else
31428 am_cv_CXX_dependencies_compiler_type=none
31429fi
31430
31431fi
31432{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
31433$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
31434CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
31435
31436 if
31437 test "x$enable_dependency_tracking" != xno \
31438 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
31439 am__fastdepCXX_TRUE=
31440 am__fastdepCXX_FALSE='#'
31441else
31442 am__fastdepCXX_TRUE='#'
31443 am__fastdepCXX_FALSE=
31444fi
31445
31446
31447 { $as_echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5
31448$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
31449if test "${ac_cv_cxx_have_bool+set}" = set; then
31450 $as_echo_n "(cached) " >&6
31451else
31452
31453 ac_ext=cpp
31454ac_cpp='$CXXCPP $CPPFLAGS'
31455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31458
31459 cat >conftest.$ac_ext <<_ACEOF
31460/* confdefs.h. */
31461_ACEOF
31462cat confdefs.h >>conftest.$ac_ext
31463cat >>conftest.$ac_ext <<_ACEOF
31464/* end confdefs.h. */
31465
31466int f(int x){return 1;}
31467int f(char x){return 1;}
31468int f(bool x){return 1;}
31469
31470int
31471main ()
31472{
31473bool b = true; return f(b);
31474 ;
31475 return 0;
31476}
31477_ACEOF
31478rm -f conftest.$ac_objext
31479if { (ac_try="$ac_compile"
31480case "(($ac_try" in
31481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31482 *) ac_try_echo=$ac_try;;
31483esac
31484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31485$as_echo "$ac_try_echo") >&5
31486 (eval "$ac_compile") 2>conftest.er1
31487 ac_status=$?
31488 grep -v '^ *+' conftest.er1 >conftest.err
31489 rm -f conftest.er1
31490 cat conftest.err >&5
31491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492 (exit $ac_status); } && {
31493 test -z "$ac_cxx_werror_flag" ||
31494 test ! -s conftest.err
31495 } && test -s conftest.$ac_objext; then
31496 ac_cv_cxx_have_bool=yes
31497else
31498 $as_echo "$as_me: failed program was:" >&5
31499sed 's/^/| /' conftest.$ac_ext >&5
31500
31501 ac_cv_cxx_have_bool=no
31502fi
31503
31504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31505 ac_ext=cpp
31506ac_cpp='$CXXCPP $CPPFLAGS'
31507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31510
31511
31512fi
31513{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bool" >&5
31514$as_echo "$ac_cv_cxx_have_bool" >&6; }
31515if test "$ac_cv_cxx_have_bool" = yes; then
31516
31517cat >>confdefs.h <<\_ACEOF
31518#define HAVE_BOOL /**/
31519_ACEOF
31520
31521fi
31522
31523 { $as_echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31524$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
31525if test "${ac_cv_cxx_have_namespaces+set}" = set; then
31526 $as_echo_n "(cached) " >&6
31527else
31528
31529 ac_ext=cpp
31530ac_cpp='$CXXCPP $CPPFLAGS'
31531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31534
31535 cat >conftest.$ac_ext <<_ACEOF
31536/* confdefs.h. */
31537_ACEOF
31538cat confdefs.h >>conftest.$ac_ext
31539cat >>conftest.$ac_ext <<_ACEOF
31540/* end confdefs.h. */
31541namespace Outer { namespace Inner { int i = 0; }}
31542int
31543main ()
31544{
31545using namespace Outer::Inner; return i;
31546 ;
31547 return 0;
31548}
31549_ACEOF
31550rm -f conftest.$ac_objext
31551if { (ac_try="$ac_compile"
31552case "(($ac_try" in
31553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31554 *) ac_try_echo=$ac_try;;
31555esac
31556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31557$as_echo "$ac_try_echo") >&5
31558 (eval "$ac_compile") 2>conftest.er1
31559 ac_status=$?
31560 grep -v '^ *+' conftest.er1 >conftest.err
31561 rm -f conftest.er1
31562 cat conftest.err >&5
31563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564 (exit $ac_status); } && {
31565 test -z "$ac_cxx_werror_flag" ||
31566 test ! -s conftest.err
31567 } && test -s conftest.$ac_objext; then
31568 ac_cv_cxx_have_namespaces=yes
31569else
31570 $as_echo "$as_me: failed program was:" >&5
31571sed 's/^/| /' conftest.$ac_ext >&5
31572
31573 ac_cv_cxx_have_namespaces=no
31574fi
31575
31576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31577 ac_ext=cpp
31578ac_cpp='$CXXCPP $CPPFLAGS'
31579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31582
31583
31584fi
31585{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_namespaces" >&5
31586$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
31587if test "$ac_cv_cxx_have_namespaces" = yes; then
31588
31589cat >>confdefs.h <<\_ACEOF
31590#define HAVE_NAMESPACES /**/
31591_ACEOF
31592
31593fi
31594
31595 { $as_echo "$as_me:$LINENO: checking whether the compiler supports the std namespace" >&5
31596$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
31597if test "${ac_cv_cxx_have_std_namespace+set}" = set; then
31598 $as_echo_n "(cached) " >&6
31599else
31600
31601 ac_ext=cpp
31602ac_cpp='$CXXCPP $CPPFLAGS'
31603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31606
31607 cat >conftest.$ac_ext <<_ACEOF
31608/* confdefs.h. */
31609_ACEOF
31610cat confdefs.h >>conftest.$ac_ext
31611cat >>conftest.$ac_ext <<_ACEOF
31612/* end confdefs.h. */
31613#include <iostream>
31614 std::istream& is = std::cin;
31615
31616int
31617main ()
31618{
31619return 0;
31620 ;
31621 return 0;
31622}
31623_ACEOF
31624rm -f conftest.$ac_objext
31625if { (ac_try="$ac_compile"
31626case "(($ac_try" in
31627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31628 *) ac_try_echo=$ac_try;;
31629esac
31630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31631$as_echo "$ac_try_echo") >&5
31632 (eval "$ac_compile") 2>conftest.er1
31633 ac_status=$?
31634 grep -v '^ *+' conftest.er1 >conftest.err
31635 rm -f conftest.er1
31636 cat conftest.err >&5
31637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); } && {
31639 test -z "$ac_cxx_werror_flag" ||
31640 test ! -s conftest.err
31641 } && test -s conftest.$ac_objext; then
31642 ac_cv_cxx_have_std_namespace=yes
31643else
31644 $as_echo "$as_me: failed program was:" >&5
31645sed 's/^/| /' conftest.$ac_ext >&5
31646
31647 ac_cv_cxx_have_std_namespace=no
31648fi
31649
31650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31651 ac_ext=cpp
31652ac_cpp='$CXXCPP $CPPFLAGS'
31653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31656
31657
31658fi
31659{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_namespace" >&5
31660$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
31661if test "$ac_cv_cxx_have_std_namespace" = yes; then
31662
31663cat >>confdefs.h <<\_ACEOF
31664#define HAVE_STD_NAMESPACE /**/
31665_ACEOF
31666
31667fi
31668
31669 { $as_echo "$as_me:$LINENO: checking whether the compiler supports ISO C++ standard library" >&5
31670$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
31671if test "${ac_cv_cxx_have_std_libs+set}" = set; then
31672 $as_echo_n "(cached) " >&6
31673else
31674
31675
31676 ac_ext=cpp
31677ac_cpp='$CXXCPP $CPPFLAGS'
31678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31681
31682 cat >conftest.$ac_ext <<_ACEOF
31683/* confdefs.h. */
31684_ACEOF
31685cat confdefs.h >>conftest.$ac_ext
31686cat >>conftest.$ac_ext <<_ACEOF
31687/* end confdefs.h. */
31688#include <iostream>
31689#include <map>
31690#include <iomanip>
31691#include <cmath>
31692#ifdef HAVE_NAMESPACES
31693using namespace std;
31694#endif
31695int
31696main ()
31697{
31698return 0;
31699 ;
31700 return 0;
31701}
31702_ACEOF
31703rm -f conftest.$ac_objext
31704if { (ac_try="$ac_compile"
31705case "(($ac_try" in
31706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31707 *) ac_try_echo=$ac_try;;
31708esac
31709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31710$as_echo "$ac_try_echo") >&5
31711 (eval "$ac_compile") 2>conftest.er1
31712 ac_status=$?
31713 grep -v '^ *+' conftest.er1 >conftest.err
31714 rm -f conftest.er1
31715 cat conftest.err >&5
31716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); } && {
31718 test -z "$ac_cxx_werror_flag" ||
31719 test ! -s conftest.err
31720 } && test -s conftest.$ac_objext; then
31721 ac_cv_cxx_have_std_libs=yes
31722else
31723 $as_echo "$as_me: failed program was:" >&5
31724sed 's/^/| /' conftest.$ac_ext >&5
31725
31726 ac_cv_cxx_have_std_libs=no
31727fi
31728
31729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31730 ac_ext=cpp
31731ac_cpp='$CXXCPP $CPPFLAGS'
31732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31735
31736
31737fi
31738{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_libs" >&5
31739$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
31740if test "$ac_cv_cxx_have_std_libs" = yes; then
31741
31742cat >>confdefs.h <<\_ACEOF
31743#define HAVE_STD_LIBS /**/
31744_ACEOF
31745
31746fi
31747
31748 { $as_echo "$as_me:$LINENO: checking whether the compiler implements L\"widestring\"" >&5
31749$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
31750if test "${ac_cv_cxx_have_lstring+set}" = set; then
31751 $as_echo_n "(cached) " >&6
31752else
31753
31754 ac_ext=cpp
31755ac_cpp='$CXXCPP $CPPFLAGS'
31756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31759
31760 cat >conftest.$ac_ext <<_ACEOF
31761/* confdefs.h. */
31762_ACEOF
31763cat confdefs.h >>conftest.$ac_ext
31764cat >>conftest.$ac_ext <<_ACEOF
31765/* end confdefs.h. */
31766const wchar_t* s=L"wide string";
31767_ACEOF
31768rm -f conftest.$ac_objext
31769if { (ac_try="$ac_compile"
31770case "(($ac_try" in
31771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31772 *) ac_try_echo=$ac_try;;
31773esac
31774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31775$as_echo "$ac_try_echo") >&5
31776 (eval "$ac_compile") 2>conftest.er1
31777 ac_status=$?
31778 grep -v '^ *+' conftest.er1 >conftest.err
31779 rm -f conftest.er1
31780 cat conftest.err >&5
31781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782 (exit $ac_status); } && {
31783 test -z "$ac_cxx_werror_flag" ||
31784 test ! -s conftest.err
31785 } && test -s conftest.$ac_objext; then
31786 ac_cv_cxx_have_lstring=yes
31787else
31788 $as_echo "$as_me: failed program was:" >&5
31789sed 's/^/| /' conftest.$ac_ext >&5
31790
31791 ac_cv_cxx_have_lstring=no
31792fi
31793
31794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31795 ac_ext=cpp
31796ac_cpp='$CXXCPP $CPPFLAGS'
31797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31800
31801
31802fi
31803{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_lstring" >&5
31804$as_echo "$ac_cv_cxx_have_lstring" >&6; }
31805if test "$ac_cv_cxx_have_lstring" = yes; then
31806
31807cat >>confdefs.h <<\_ACEOF
31808#define HAVE_LSTRING /**/
31809_ACEOF
31810
31811fi
31812
31813
31814 OPENMP_CXXFLAGS=
31815 # Check whether --enable-openmp was given.
31816if test "${enable_openmp+set}" = set; then
31817 enableval=$enable_openmp;
31818fi
31819
31820 if test "$enable_openmp" != no; then
31821 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
31822$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
31823if test "${ac_cv_prog_cxx_openmp+set}" = set; then
31824 $as_echo_n "(cached) " >&6
31825else
31826 cat >conftest.$ac_ext <<_ACEOF
31827
31828#ifndef _OPENMP
31829 choke me
31830#endif
31831#include <omp.h>
31832int main () { return omp_get_num_threads (); }
31833
31834_ACEOF
31835rm -f conftest.$ac_objext conftest$ac_exeext
31836if { (ac_try="$ac_link"
31837case "(($ac_try" in
31838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31839 *) ac_try_echo=$ac_try;;
31840esac
31841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31842$as_echo "$ac_try_echo") >&5
31843 (eval "$ac_link") 2>conftest.er1
31844 ac_status=$?
31845 grep -v '^ *+' conftest.er1 >conftest.err
31846 rm -f conftest.er1
31847 cat conftest.err >&5
31848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); } && {
31850 test -z "$ac_cxx_werror_flag" ||
31851 test ! -s conftest.err
31852 } && test -s conftest$ac_exeext && {
31853 test "$cross_compiling" = yes ||
31854 $as_test_x conftest$ac_exeext
31855 }; then
31856 ac_cv_prog_cxx_openmp='none needed'
31857else
31858 $as_echo "$as_me: failed program was:" >&5
31859sed 's/^/| /' conftest.$ac_ext >&5
31860
31861 ac_cv_prog_cxx_openmp='unsupported'
31862 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
31863 ac_save_CXXFLAGS=$CXXFLAGS
31864 CXXFLAGS="$CXXFLAGS $ac_option"
31865 cat >conftest.$ac_ext <<_ACEOF
31866
31867#ifndef _OPENMP
31868 choke me
31869#endif
31870#include <omp.h>
31871int main () { return omp_get_num_threads (); }
31872
31873_ACEOF
31874rm -f conftest.$ac_objext conftest$ac_exeext
31875if { (ac_try="$ac_link"
31876case "(($ac_try" in
31877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31878 *) ac_try_echo=$ac_try;;
31879esac
31880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31881$as_echo "$ac_try_echo") >&5
31882 (eval "$ac_link") 2>conftest.er1
31883 ac_status=$?
31884 grep -v '^ *+' conftest.er1 >conftest.err
31885 rm -f conftest.er1
31886 cat conftest.err >&5
31887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31888 (exit $ac_status); } && {
31889 test -z "$ac_cxx_werror_flag" ||
31890 test ! -s conftest.err
31891 } && test -s conftest$ac_exeext && {
31892 test "$cross_compiling" = yes ||
31893 $as_test_x conftest$ac_exeext
31894 }; then
31895 ac_cv_prog_cxx_openmp=$ac_option
31896else
31897 $as_echo "$as_me: failed program was:" >&5
31898sed 's/^/| /' conftest.$ac_ext >&5
31899
31900
31901fi
31902
31903rm -rf conftest.dSYM
31904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31905 conftest$ac_exeext conftest.$ac_ext
31906 CXXFLAGS=$ac_save_CXXFLAGS
31907 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
31908 break
31909 fi
31910 done
31911fi
31912
31913rm -rf conftest.dSYM
31914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31915 conftest$ac_exeext conftest.$ac_ext
31916fi
31917{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_openmp" >&5
31918$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
31919 case $ac_cv_prog_cxx_openmp in #(
31920 "none needed" | unsupported)
31921 ;; #(
31922 *)
31923 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
31924 esac
31925 fi
31926
31927
31928 ac_ext=c
31929ac_cpp='$CPP $CPPFLAGS'
31930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31932ac_compiler_gnu=$ac_cv_c_compiler_gnu
31933
31934
31935 { $as_echo "$as_me:$LINENO: checking whether C++ compiler is sufficient for Magick++" >&5
31936$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
31937 if \
31938 test $ac_cv_cxx_have_bool = 'yes' && \
31939 test $ac_cv_cxx_have_lstring = 'yes' && \
31940 test $ac_cv_cxx_have_namespaces = 'yes' && \
31941 test $ac_cv_cxx_have_std_libs = 'yes' && \
31942 test $ac_cv_cxx_have_std_namespace = 'yes'; then
31943 have_magick_plus_plus='yes'
31944 else
31945 have_magick_plus_plus='no (failed tests)'
31946 fi
31947 { $as_echo "$as_me:$LINENO: result: $have_magick_plus_plus" >&5
31948$as_echo "$have_magick_plus_plus" >&6; }
31949 LIBS="$OLIBS"
31950fi
31951 if test "$have_magick_plus_plus" = 'yes'; then
31952 WITH_MAGICK_PLUS_PLUS_TRUE=
31953 WITH_MAGICK_PLUS_PLUS_FALSE='#'
31954else
31955 WITH_MAGICK_PLUS_PLUS_TRUE='#'
31956 WITH_MAGICK_PLUS_PLUS_FALSE=
31957fi
31958
31959
31960# Only check for delegate libraries in subdirectories if requested.
31961if test "$enable_delegate_build" != 'no'; then
31962 # Check for delegate sub-directories and add -I & -L options as required.
31963 # This presumes that delegates are installed as detailed in the ImageMagick
31964 # README. If delegates are installed in a standard location where the
31965 # compiler will automatically find them then these options should not be
31966 # required.
31967
31968 #
31969 # Most delegates have includes in the same directory as the library, but not all...
31970 #
31971 # Includes
31972 for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
31973 if test -d "$builddir/$dir"; then
31974 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
31975 else
31976 if test -d "$srcdirfull/$dir"; then
31977 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
31978 fi
31979 fi
31980 done
31981
31982 # Libraries
31983 for dir in bzlib fftw fpx jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
31984 if test -d "$builddir/$dir/.libs"; then
31985 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
31986 else
31987 if test -d "$srcdirfull/$dir/.libs"; then
31988 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
31989 fi
31990 fi
31991 if test -d "$builddir/$dir"; then
31992 LDFLAGS="$LDFLAGS -L$builddir/$dir"
31993 else
31994 if test -d "$srcdirfull/$dir"; then
31995 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
31996 fi
31997 fi
31998 done
31999fi
32000
32001# Assume that delegate headers reside under same directory as ImageMagick
32002# installation prefix.
32003MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
32004
32005#
32006# Find the X11 RGB database
32007#
32008{ $as_echo "$as_me:$LINENO: checking for X11 configure files" >&5
32009$as_echo_n "checking for X11 configure files... " >&6; }
32010if test "${im_cv_x_configure+set}" = set; then
32011 $as_echo_n "(cached) " >&6
32012else
32013 # Look for the header file in a standard set of common directories.
32014# Check X11 before X11Rn because it is often a symlink to the current release.
32015 for ac_dir in \
32016 /lib/usr/lib/X11 \
32017 /usr/X11/lib \
32018 /usr/X11R4/lib \
32019 /usr/X11R5/lib \
32020 /usr/X11R6/lib \
32021 /usr/X11R7/lib \
32022 /usr/X386/lib \
32023 /usr/XFree86/lib/X11 \
32024 /usr/athena/lib \
32025 /usr/lib \
32026 /usr/lib/X11 \
32027 /usr/lib/X11R4 \
32028 /usr/lib/X11R5 \
32029 /usr/lib/X11R6 \
32030 /usr/lib/X11R7 \
32031 /usr/local/X11/lib \
32032 /usr/local/X11R4/lib \
32033 /usr/local/X11R5/lib \
32034 /usr/local/X11R6/lib \
32035 /usr/local/lib \
32036 /usr/local/lib/X11 \
32037 /usr/local/lib/X11R4 \
32038 /usr/local/lib/X11R5 \
32039 /usr/local/lib/X11R6 \
32040 /usr/local/lib/X11R7 \
32041 /usr/local/x11r5/lib \
32042 /usr/lpp/Xamples/lib \
32043 /usr/openwin/lib \
32044 /usr/openwin/share/lib \
32045 /usr/unsupported/lib \
32046 /usr/x386/lib \
32047 ; do
32048 if test -f "$ac_dir/X11/rgb.txt"; then
32049 im_cv_x_configure="$ac_dir/X11/"
32050 break
32051 elif test -f "$ac_dir/rgb.txt"; then
32052 im_cv_x_configure="$ac_dir/"
32053 break
32054 fi
32055
32056 done
32057fi
32058{ $as_echo "$as_me:$LINENO: result: $im_cv_x_configure" >&5
32059$as_echo "$im_cv_x_configure" >&6; }
32060X11_CONFIGURE_PATH="$im_cv_x_configure"
32061case "${build_os}" in
32062 mingw* )
32063 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
32064 ;;
32065esac
32066
32067cat >>confdefs.h <<_ACEOF
32068#define X11_CONFIGURE_PATH "$X11ConfigurePath"
32069_ACEOF
32070
32071
32072#
32073# Find OpenMP library
32074#
32075GOMP_LIBS=''
32076if test "$enable_openmp" != 'no'; then
32077 if test "${GCC}" = "yes"; then
32078 { $as_echo "$as_me:$LINENO: checking for GOMP_parallel_start in -lgomp" >&5
32079$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
32080if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then
32081 $as_echo_n "(cached) " >&6
32082else
32083 ac_check_lib_save_LIBS=$LIBS
32084LIBS="-lgomp $LIBS"
32085cat >conftest.$ac_ext <<_ACEOF
32086/* confdefs.h. */
32087_ACEOF
32088cat confdefs.h >>conftest.$ac_ext
32089cat >>conftest.$ac_ext <<_ACEOF
32090/* end confdefs.h. */
32091
32092/* Override any GCC internal prototype to avoid an error.
32093 Use char because int might match the return type of a GCC
32094 builtin and then its argument prototype would still apply. */
32095#ifdef __cplusplus
32096extern "C"
32097#endif
32098char GOMP_parallel_start ();
32099int
32100main ()
32101{
32102return GOMP_parallel_start ();
32103 ;
32104 return 0;
32105}
32106_ACEOF
32107rm -f conftest.$ac_objext conftest$ac_exeext
32108if { (ac_try="$ac_link"
32109case "(($ac_try" in
32110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32111 *) ac_try_echo=$ac_try;;
32112esac
32113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32114$as_echo "$ac_try_echo") >&5
32115 (eval "$ac_link") 2>conftest.er1
32116 ac_status=$?
32117 grep -v '^ *+' conftest.er1 >conftest.err
32118 rm -f conftest.er1
32119 cat conftest.err >&5
32120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); } && {
32122 test -z "$ac_c_werror_flag" ||
32123 test ! -s conftest.err
32124 } && test -s conftest$ac_exeext && {
32125 test "$cross_compiling" = yes ||
32126 $as_test_x conftest$ac_exeext
32127 }; then
32128 ac_cv_lib_gomp_GOMP_parallel_start=yes
32129else
32130 $as_echo "$as_me: failed program was:" >&5
32131sed 's/^/| /' conftest.$ac_ext >&5
32132
32133 ac_cv_lib_gomp_GOMP_parallel_start=no
32134fi
32135
32136rm -rf conftest.dSYM
32137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32138 conftest$ac_exeext conftest.$ac_ext
32139LIBS=$ac_check_lib_save_LIBS
32140fi
32141{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
32142$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
32143if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then
32144 GOMP_LIBS="-lgomp"
32145fi
32146 # gcc
32147 else
32148 { $as_echo "$as_me:$LINENO: checking for sunw_mp_register_warn in -lmtsk" >&5
32149$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
32150if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then
32151 $as_echo_n "(cached) " >&6
32152else
32153 ac_check_lib_save_LIBS=$LIBS
32154LIBS="-lmtsk $LIBS"
32155cat >conftest.$ac_ext <<_ACEOF
32156/* confdefs.h. */
32157_ACEOF
32158cat confdefs.h >>conftest.$ac_ext
32159cat >>conftest.$ac_ext <<_ACEOF
32160/* end confdefs.h. */
32161
32162/* Override any GCC internal prototype to avoid an error.
32163 Use char because int might match the return type of a GCC
32164 builtin and then its argument prototype would still apply. */
32165#ifdef __cplusplus
32166extern "C"
32167#endif
32168char sunw_mp_register_warn ();
32169int
32170main ()
32171{
32172return sunw_mp_register_warn ();
32173 ;
32174 return 0;
32175}
32176_ACEOF
32177rm -f conftest.$ac_objext conftest$ac_exeext
32178if { (ac_try="$ac_link"
32179case "(($ac_try" in
32180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32181 *) ac_try_echo=$ac_try;;
32182esac
32183eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32184$as_echo "$ac_try_echo") >&5
32185 (eval "$ac_link") 2>conftest.er1
32186 ac_status=$?
32187 grep -v '^ *+' conftest.er1 >conftest.err
32188 rm -f conftest.er1
32189 cat conftest.err >&5
32190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); } && {
32192 test -z "$ac_c_werror_flag" ||
32193 test ! -s conftest.err
32194 } && test -s conftest$ac_exeext && {
32195 test "$cross_compiling" = yes ||
32196 $as_test_x conftest$ac_exeext
32197 }; then
32198 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
32199else
32200 $as_echo "$as_me: failed program was:" >&5
32201sed 's/^/| /' conftest.$ac_ext >&5
32202
32203 ac_cv_lib_mtsk_sunw_mp_register_warn=no
32204fi
32205
32206rm -rf conftest.dSYM
32207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32208 conftest$ac_exeext conftest.$ac_ext
32209LIBS=$ac_check_lib_save_LIBS
32210fi
32211{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
32212$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
32213if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then
32214 GOMP_LIBS="-lmtsk"
32215fi
32216 # solaris cc
32217 { $as_echo "$as_me:$LINENO: checking for _xlsmpFlush in -lxlsmp" >&5
32218$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
32219if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then
32220 $as_echo_n "(cached) " >&6
32221else
32222 ac_check_lib_save_LIBS=$LIBS
32223LIBS="-lxlsmp $LIBS"
32224cat >conftest.$ac_ext <<_ACEOF
32225/* confdefs.h. */
32226_ACEOF
32227cat confdefs.h >>conftest.$ac_ext
32228cat >>conftest.$ac_ext <<_ACEOF
32229/* end confdefs.h. */
32230
32231/* Override any GCC internal prototype to avoid an error.
32232 Use char because int might match the return type of a GCC
32233 builtin and then its argument prototype would still apply. */
32234#ifdef __cplusplus
32235extern "C"
32236#endif
32237char _xlsmpFlush ();
32238int
32239main ()
32240{
32241return _xlsmpFlush ();
32242 ;
32243 return 0;
32244}
32245_ACEOF
32246rm -f conftest.$ac_objext conftest$ac_exeext
32247if { (ac_try="$ac_link"
32248case "(($ac_try" in
32249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32250 *) ac_try_echo=$ac_try;;
32251esac
32252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32253$as_echo "$ac_try_echo") >&5
32254 (eval "$ac_link") 2>conftest.er1
32255 ac_status=$?
32256 grep -v '^ *+' conftest.er1 >conftest.err
32257 rm -f conftest.er1
32258 cat conftest.err >&5
32259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); } && {
32261 test -z "$ac_c_werror_flag" ||
32262 test ! -s conftest.err
32263 } && test -s conftest$ac_exeext && {
32264 test "$cross_compiling" = yes ||
32265 $as_test_x conftest$ac_exeext
32266 }; then
32267 ac_cv_lib_xlsmp__xlsmpFlush=yes
32268else
32269 $as_echo "$as_me: failed program was:" >&5
32270sed 's/^/| /' conftest.$ac_ext >&5
32271
32272 ac_cv_lib_xlsmp__xlsmpFlush=no
32273fi
32274
32275rm -rf conftest.dSYM
32276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32277 conftest$ac_exeext conftest.$ac_ext
32278LIBS=$ac_check_lib_save_LIBS
32279fi
32280{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
32281$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
32282if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then
32283 GOMP_LIBS="-lxlsmp"
32284fi
32285 # AIX xlc
32286 { $as_echo "$as_me:$LINENO: checking for mp_destroy in -lmp" >&5
32287$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
32288if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then
32289 $as_echo_n "(cached) " >&6
32290else
32291 ac_check_lib_save_LIBS=$LIBS
32292LIBS="-lmp $LIBS"
32293cat >conftest.$ac_ext <<_ACEOF
32294/* confdefs.h. */
32295_ACEOF
32296cat confdefs.h >>conftest.$ac_ext
32297cat >>conftest.$ac_ext <<_ACEOF
32298/* end confdefs.h. */
32299
32300/* Override any GCC internal prototype to avoid an error.
32301 Use char because int might match the return type of a GCC
32302 builtin and then its argument prototype would still apply. */
32303#ifdef __cplusplus
32304extern "C"
32305#endif
32306char mp_destroy ();
32307int
32308main ()
32309{
32310return mp_destroy ();
32311 ;
32312 return 0;
32313}
32314_ACEOF
32315rm -f conftest.$ac_objext conftest$ac_exeext
32316if { (ac_try="$ac_link"
32317case "(($ac_try" in
32318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32319 *) ac_try_echo=$ac_try;;
32320esac
32321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32322$as_echo "$ac_try_echo") >&5
32323 (eval "$ac_link") 2>conftest.er1
32324 ac_status=$?
32325 grep -v '^ *+' conftest.er1 >conftest.err
32326 rm -f conftest.er1
32327 cat conftest.err >&5
32328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); } && {
32330 test -z "$ac_c_werror_flag" ||
32331 test ! -s conftest.err
32332 } && test -s conftest$ac_exeext && {
32333 test "$cross_compiling" = yes ||
32334 $as_test_x conftest$ac_exeext
32335 }; then
32336 ac_cv_lib_mp_mp_destroy=yes
32337else
32338 $as_echo "$as_me: failed program was:" >&5
32339sed 's/^/| /' conftest.$ac_ext >&5
32340
32341 ac_cv_lib_mp_mp_destroy=no
32342fi
32343
32344rm -rf conftest.dSYM
32345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32346 conftest$ac_exeext conftest.$ac_ext
32347LIBS=$ac_check_lib_save_LIBS
32348fi
32349{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp_mp_destroy" >&5
32350$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
32351if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then
32352 GOMP_LIBS="-lmp"
32353fi
32354 # SGI IRIX 6.5 MIPSpro C/C++
32355 fi
32356 LIBS="$GOMP_LIBS $LIBS"
32357fi
32358
32359
32360#
32361# Find Posix threads library
32362#
32363THREAD_LIBS=''
32364if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
32365
32366 if test "x$PTHREAD_LIBS" = "x"; then
32367 case "${host_cpu}-${host_os}" in
32368 *-freebsd*)
32369
32370
32371
32372ac_ext=c
32373ac_cpp='$CPP $CPPFLAGS'
32374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32376ac_compiler_gnu=$ac_cv_c_compiler_gnu
32377
32378magick_pthread_lib_ok=no
32379
32380LIB=-lc_r
32381save_LIBS="$LIBS"
32382LIBS="$LIBS $LIB"
32383
32384{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
32385$as_echo_n "checking for the pthreads library $LIB... " >&6; }
32386cat >conftest.$ac_ext <<_ACEOF
32387/* confdefs.h. */
32388_ACEOF
32389cat confdefs.h >>conftest.$ac_ext
32390cat >>conftest.$ac_ext <<_ACEOF
32391/* end confdefs.h. */
32392#include <pthread.h>
32393int
32394main ()
32395{
32396 pthread_t th;
32397 pthread_join(th, 0);
32398 pthread_attr_init(0);
32399 pthread_cleanup_push(0, 0);
32400 pthread_create(0,0,0,0);
32401 pthread_cleanup_pop(0);
32402 ;
32403 return 0;
32404}
32405_ACEOF
32406rm -f conftest.$ac_objext conftest$ac_exeext
32407if { (ac_try="$ac_link"
32408case "(($ac_try" in
32409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32410 *) ac_try_echo=$ac_try;;
32411esac
32412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32413$as_echo "$ac_try_echo") >&5
32414 (eval "$ac_link") 2>conftest.er1
32415 ac_status=$?
32416 grep -v '^ *+' conftest.er1 >conftest.err
32417 rm -f conftest.er1
32418 cat conftest.err >&5
32419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); } && {
32421 test -z "$ac_c_werror_flag" ||
32422 test ! -s conftest.err
32423 } && test -s conftest$ac_exeext && {
32424 test "$cross_compiling" = yes ||
32425 $as_test_x conftest$ac_exeext
32426 }; then
32427 magick_pthread_lib_ok=yes
32428else
32429 $as_echo "$as_me: failed program was:" >&5
32430sed 's/^/| /' conftest.$ac_ext >&5
32431
32432
32433fi
32434
32435rm -rf conftest.dSYM
32436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32437 conftest$ac_exeext conftest.$ac_ext
32438
32439{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
32440$as_echo "${magick_pthread_lib_ok}" >&6; }
32441if test "$magick_pthread_lib_ok" = yes
32442then
32443 PTHREAD_LIBS=-lc_r
32444 :
32445else
32446
32447 :
32448fi
32449
32450LIBS="$save_LIBS"
32451
32452ac_ext=c
32453ac_cpp='$CPP $CPPFLAGS'
32454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32456ac_compiler_gnu=$ac_cv_c_compiler_gnu
32457
32458 ;;
32459 esac
32460 fi
32461
32462 for lib in pthread pthreads; do
32463 if test "x$PTHREAD_LIBS" = "x"; then
32464
32465
32466
32467ac_ext=c
32468ac_cpp='$CPP $CPPFLAGS'
32469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32471ac_compiler_gnu=$ac_cv_c_compiler_gnu
32472
32473magick_pthread_lib_ok=no
32474
32475LIB=-l$lib
32476save_LIBS="$LIBS"
32477LIBS="$LIBS $LIB"
32478
32479{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
32480$as_echo_n "checking for the pthreads library $LIB... " >&6; }
32481cat >conftest.$ac_ext <<_ACEOF
32482/* confdefs.h. */
32483_ACEOF
32484cat confdefs.h >>conftest.$ac_ext
32485cat >>conftest.$ac_ext <<_ACEOF
32486/* end confdefs.h. */
32487#include <pthread.h>
32488int
32489main ()
32490{
32491 pthread_t th;
32492 pthread_join(th, 0);
32493 pthread_attr_init(0);
32494 pthread_cleanup_push(0, 0);
32495 pthread_create(0,0,0,0);
32496 pthread_cleanup_pop(0);
32497 ;
32498 return 0;
32499}
32500_ACEOF
32501rm -f conftest.$ac_objext conftest$ac_exeext
32502if { (ac_try="$ac_link"
32503case "(($ac_try" in
32504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32505 *) ac_try_echo=$ac_try;;
32506esac
32507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32508$as_echo "$ac_try_echo") >&5
32509 (eval "$ac_link") 2>conftest.er1
32510 ac_status=$?
32511 grep -v '^ *+' conftest.er1 >conftest.err
32512 rm -f conftest.er1
32513 cat conftest.err >&5
32514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); } && {
32516 test -z "$ac_c_werror_flag" ||
32517 test ! -s conftest.err
32518 } && test -s conftest$ac_exeext && {
32519 test "$cross_compiling" = yes ||
32520 $as_test_x conftest$ac_exeext
32521 }; then
32522 magick_pthread_lib_ok=yes
32523else
32524 $as_echo "$as_me: failed program was:" >&5
32525sed 's/^/| /' conftest.$ac_ext >&5
32526
32527
32528fi
32529
32530rm -rf conftest.dSYM
32531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32532 conftest$ac_exeext conftest.$ac_ext
32533
32534{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
32535$as_echo "${magick_pthread_lib_ok}" >&6; }
32536if test "$magick_pthread_lib_ok" = yes
32537then
32538 PTHREAD_LIBS=-l$lib
32539 :
32540else
32541
32542 :
32543fi
32544
32545LIBS="$save_LIBS"
32546
32547ac_ext=c
32548ac_cpp='$CPP $CPPFLAGS'
32549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32551ac_compiler_gnu=$ac_cv_c_compiler_gnu
32552
32553
32554 fi
32555 done
32556
32557 THREAD_LIBS="$PTHREAD_LIBS"
32558 LIBS="$LIBS $THREAD_LIBS"
32559fi
32560
32561
32562#
32563# Check for umem.
32564#
32565have_umem='no'
32566UMEM_LIBS=''
32567if test "$with_umem" != 'no'; then
32568 { $as_echo "$as_me:$LINENO: checking for UMEM support " >&5
32569$as_echo_n "checking for UMEM support ... " >&6; }
32570 { $as_echo "$as_me:$LINENO: result: " >&5
32571$as_echo "" >&6; }
32572 failed=0
32573 passed=0
32574 if test "${ac_cv_header_umem_h+set}" = set; then
32575 { $as_echo "$as_me:$LINENO: checking for umem.h" >&5
32576$as_echo_n "checking for umem.h... " >&6; }
32577if test "${ac_cv_header_umem_h+set}" = set; then
32578 $as_echo_n "(cached) " >&6
32579fi
32580{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
32581$as_echo "$ac_cv_header_umem_h" >&6; }
32582else
32583 # Is the header compilable?
32584{ $as_echo "$as_me:$LINENO: checking umem.h usability" >&5
32585$as_echo_n "checking umem.h usability... " >&6; }
32586cat >conftest.$ac_ext <<_ACEOF
32587/* confdefs.h. */
32588_ACEOF
32589cat confdefs.h >>conftest.$ac_ext
32590cat >>conftest.$ac_ext <<_ACEOF
32591/* end confdefs.h. */
32592$ac_includes_default
32593#include <umem.h>
32594_ACEOF
32595rm -f conftest.$ac_objext
32596if { (ac_try="$ac_compile"
32597case "(($ac_try" in
32598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32599 *) ac_try_echo=$ac_try;;
32600esac
32601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32602$as_echo "$ac_try_echo") >&5
32603 (eval "$ac_compile") 2>conftest.er1
32604 ac_status=$?
32605 grep -v '^ *+' conftest.er1 >conftest.err
32606 rm -f conftest.er1
32607 cat conftest.err >&5
32608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32609 (exit $ac_status); } && {
32610 test -z "$ac_c_werror_flag" ||
32611 test ! -s conftest.err
32612 } && test -s conftest.$ac_objext; then
32613 ac_header_compiler=yes
32614else
32615 $as_echo "$as_me: failed program was:" >&5
32616sed 's/^/| /' conftest.$ac_ext >&5
32617
32618 ac_header_compiler=no
32619fi
32620
32621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32622{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32623$as_echo "$ac_header_compiler" >&6; }
32624
32625# Is the header present?
32626{ $as_echo "$as_me:$LINENO: checking umem.h presence" >&5
32627$as_echo_n "checking umem.h presence... " >&6; }
32628cat >conftest.$ac_ext <<_ACEOF
32629/* confdefs.h. */
32630_ACEOF
32631cat confdefs.h >>conftest.$ac_ext
32632cat >>conftest.$ac_ext <<_ACEOF
32633/* end confdefs.h. */
32634#include <umem.h>
32635_ACEOF
32636if { (ac_try="$ac_cpp conftest.$ac_ext"
32637case "(($ac_try" in
32638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32639 *) ac_try_echo=$ac_try;;
32640esac
32641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32642$as_echo "$ac_try_echo") >&5
32643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32644 ac_status=$?
32645 grep -v '^ *+' conftest.er1 >conftest.err
32646 rm -f conftest.er1
32647 cat conftest.err >&5
32648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649 (exit $ac_status); } >/dev/null && {
32650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32651 test ! -s conftest.err
32652 }; then
32653 ac_header_preproc=yes
32654else
32655 $as_echo "$as_me: failed program was:" >&5
32656sed 's/^/| /' conftest.$ac_ext >&5
32657
32658 ac_header_preproc=no
32659fi
32660
32661rm -f conftest.err conftest.$ac_ext
32662{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32663$as_echo "$ac_header_preproc" >&6; }
32664
32665# So? What about this header?
32666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32667 yes:no: )
32668 { $as_echo "$as_me:$LINENO: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&5
32669$as_echo "$as_me: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32670 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the compiler's result" >&5
32671$as_echo "$as_me: WARNING: umem.h: proceeding with the compiler's result" >&2;}
32672 ac_header_preproc=yes
32673 ;;
32674 no:yes:* )
32675 { $as_echo "$as_me:$LINENO: WARNING: umem.h: present but cannot be compiled" >&5
32676$as_echo "$as_me: WARNING: umem.h: present but cannot be compiled" >&2;}
32677 { $as_echo "$as_me:$LINENO: WARNING: umem.h: check for missing prerequisite headers?" >&5
32678$as_echo "$as_me: WARNING: umem.h: check for missing prerequisite headers?" >&2;}
32679 { $as_echo "$as_me:$LINENO: WARNING: umem.h: see the Autoconf documentation" >&5
32680$as_echo "$as_me: WARNING: umem.h: see the Autoconf documentation" >&2;}
32681 { $as_echo "$as_me:$LINENO: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&5
32682$as_echo "$as_me: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&2;}
32683 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the preprocessor's result" >&5
32684$as_echo "$as_me: WARNING: umem.h: proceeding with the preprocessor's result" >&2;}
32685 { $as_echo "$as_me:$LINENO: WARNING: umem.h: in the future, the compiler will take precedence" >&5
32686$as_echo "$as_me: WARNING: umem.h: in the future, the compiler will take precedence" >&2;}
32687 ( cat <<\_ASBOX
32688## ----------------------------------------- ##
32689## Report this to http://www.imagemagick.org ##
32690## ----------------------------------------- ##
32691_ASBOX
32692 ) | sed "s/^/$as_me: WARNING: /" >&2
32693 ;;
32694esac
32695{ $as_echo "$as_me:$LINENO: checking for umem.h" >&5
32696$as_echo_n "checking for umem.h... " >&6; }
32697if test "${ac_cv_header_umem_h+set}" = set; then
32698 $as_echo_n "(cached) " >&6
32699else
32700 ac_cv_header_umem_h=$ac_header_preproc
32701fi
32702{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
32703$as_echo "$ac_cv_header_umem_h" >&6; }
32704
32705fi
32706if test "x$ac_cv_header_umem_h" = x""yes; then
32707 passed=`expr $passed + 1`
32708else
32709 failed=`expr $failed + 1`
32710fi
32711
32712
32713 { $as_echo "$as_me:$LINENO: checking for umem_alloc in -lumem" >&5
32714$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
32715if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then
32716 $as_echo_n "(cached) " >&6
32717else
32718 ac_check_lib_save_LIBS=$LIBS
32719LIBS="-lumem $LIBS"
32720cat >conftest.$ac_ext <<_ACEOF
32721/* confdefs.h. */
32722_ACEOF
32723cat confdefs.h >>conftest.$ac_ext
32724cat >>conftest.$ac_ext <<_ACEOF
32725/* end confdefs.h. */
32726
32727/* Override any GCC internal prototype to avoid an error.
32728 Use char because int might match the return type of a GCC
32729 builtin and then its argument prototype would still apply. */
32730#ifdef __cplusplus
32731extern "C"
32732#endif
32733char umem_alloc ();
32734int
32735main ()
32736{
32737return umem_alloc ();
32738 ;
32739 return 0;
32740}
32741_ACEOF
32742rm -f conftest.$ac_objext conftest$ac_exeext
32743if { (ac_try="$ac_link"
32744case "(($ac_try" in
32745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746 *) ac_try_echo=$ac_try;;
32747esac
32748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32749$as_echo "$ac_try_echo") >&5
32750 (eval "$ac_link") 2>conftest.er1
32751 ac_status=$?
32752 grep -v '^ *+' conftest.er1 >conftest.err
32753 rm -f conftest.er1
32754 cat conftest.err >&5
32755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756 (exit $ac_status); } && {
32757 test -z "$ac_c_werror_flag" ||
32758 test ! -s conftest.err
32759 } && test -s conftest$ac_exeext && {
32760 test "$cross_compiling" = yes ||
32761 $as_test_x conftest$ac_exeext
32762 }; then
32763 ac_cv_lib_umem_umem_alloc=yes
32764else
32765 $as_echo "$as_me: failed program was:" >&5
32766sed 's/^/| /' conftest.$ac_ext >&5
32767
32768 ac_cv_lib_umem_umem_alloc=no
32769fi
32770
32771rm -rf conftest.dSYM
32772rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32773 conftest$ac_exeext conftest.$ac_ext
32774LIBS=$ac_check_lib_save_LIBS
32775fi
32776{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_alloc" >&5
32777$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
32778if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then
32779 passed=`expr $passed + 1`
32780else
32781 failed=`expr $failed + 1`
32782fi
32783
32784 { $as_echo "$as_me:$LINENO: checking for umem_free in -lumem" >&5
32785$as_echo_n "checking for umem_free in -lumem... " >&6; }
32786if test "${ac_cv_lib_umem_umem_free+set}" = set; then
32787 $as_echo_n "(cached) " >&6
32788else
32789 ac_check_lib_save_LIBS=$LIBS
32790LIBS="-lumem $LIBS"
32791cat >conftest.$ac_ext <<_ACEOF
32792/* confdefs.h. */
32793_ACEOF
32794cat confdefs.h >>conftest.$ac_ext
32795cat >>conftest.$ac_ext <<_ACEOF
32796/* end confdefs.h. */
32797
32798/* Override any GCC internal prototype to avoid an error.
32799 Use char because int might match the return type of a GCC
32800 builtin and then its argument prototype would still apply. */
32801#ifdef __cplusplus
32802extern "C"
32803#endif
32804char umem_free ();
32805int
32806main ()
32807{
32808return umem_free ();
32809 ;
32810 return 0;
32811}
32812_ACEOF
32813rm -f conftest.$ac_objext conftest$ac_exeext
32814if { (ac_try="$ac_link"
32815case "(($ac_try" in
32816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32817 *) ac_try_echo=$ac_try;;
32818esac
32819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32820$as_echo "$ac_try_echo") >&5
32821 (eval "$ac_link") 2>conftest.er1
32822 ac_status=$?
32823 grep -v '^ *+' conftest.er1 >conftest.err
32824 rm -f conftest.er1
32825 cat conftest.err >&5
32826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); } && {
32828 test -z "$ac_c_werror_flag" ||
32829 test ! -s conftest.err
32830 } && test -s conftest$ac_exeext && {
32831 test "$cross_compiling" = yes ||
32832 $as_test_x conftest$ac_exeext
32833 }; then
32834 ac_cv_lib_umem_umem_free=yes
32835else
32836 $as_echo "$as_me: failed program was:" >&5
32837sed 's/^/| /' conftest.$ac_ext >&5
32838
32839 ac_cv_lib_umem_umem_free=no
32840fi
32841
32842rm -rf conftest.dSYM
32843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32844 conftest$ac_exeext conftest.$ac_ext
32845LIBS=$ac_check_lib_save_LIBS
32846fi
32847{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_free" >&5
32848$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
32849if test "x$ac_cv_lib_umem_umem_free" = x""yes; then
32850 passed=`expr $passed + 1`
32851else
32852 failed=`expr $failed + 1`
32853fi
32854
32855 { $as_echo "$as_me:$LINENO: checking if umem memory allocation library is complete" >&5
32856$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
32857 if test $passed -gt 0; then
32858 if test $failed -gt 0; then
32859 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
32860$as_echo "no -- some components failed test" >&6; }
32861 have_umem='no (failed tests)'
32862 else
32863 UMEM_LIBS='-lumem'
32864 LIBS="$UMEM_LIBS $LIBS"
32865
32866cat >>confdefs.h <<\_ACEOF
32867#define HasUMEM 1
32868_ACEOF
32869
32870 { $as_echo "$as_me:$LINENO: result: yes" >&5
32871$as_echo "yes" >&6; }
32872 have_umem='yes'
32873 fi
32874 else
32875 { $as_echo "$as_me:$LINENO: result: no" >&5
32876$as_echo "no" >&6; }
32877 fi
32878fi
32879 if test "$have_umem" = 'yes'; then
32880 HasUMEM_TRUE=
32881 HasUMEM_FALSE='#'
32882else
32883 HasUMEM_TRUE='#'
32884 HasUMEM_FALSE=
32885fi
32886
32887
32888
32889#
32890# Add support for ccmalloc memory debugging library if requested
32891#
32892have_ccmalloc='no'
32893CCMALLOC_LIBS=''
32894if test "$enable_ccmalloc" = 'yes'; then
32895 # Extract the first word of "ccmalloc", so it can be a program name with args.
32896set dummy ccmalloc; ac_word=$2
32897{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32898$as_echo_n "checking for $ac_word... " >&6; }
32899if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then
32900 $as_echo_n "(cached) " >&6
32901else
32902 case $CCMALLOCDelegate in
32903 [\\/]* | ?:[\\/]*)
32904 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
32905 ;;
32906 *)
32907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32908for as_dir in $PATH
32909do
32910 IFS=$as_save_IFS
32911 test -z "$as_dir" && as_dir=.
32912 for ac_exec_ext in '' $ac_executable_extensions; do
32913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32914 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
32915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32916 break 2
32917 fi
32918done
32919done
32920IFS=$as_save_IFS
32921
32922 ;;
32923esac
32924fi
32925CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
32926if test -n "$CCMALLOCDelegate"; then
32927 { $as_echo "$as_me:$LINENO: result: $CCMALLOCDelegate" >&5
32928$as_echo "$CCMALLOCDelegate" >&6; }
32929else
32930 { $as_echo "$as_me:$LINENO: result: no" >&5
32931$as_echo "no" >&6; }
32932fi
32933
32934
32935 if test -n "$CCMALLOCDelegate"; then
32936 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
32937 OLIBS="$LIBS"
32938 # Assume that gcc is used with ccmalloc.
32939 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
32940 { $as_echo "$as_me:$LINENO: checking for ccmalloc_malloc in -lccmalloc" >&5
32941$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
32942if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then
32943 $as_echo_n "(cached) " >&6
32944else
32945 ac_check_lib_save_LIBS=$LIBS
32946LIBS="-lccmalloc -ldl $LIBS"
32947cat >conftest.$ac_ext <<_ACEOF
32948/* confdefs.h. */
32949_ACEOF
32950cat confdefs.h >>conftest.$ac_ext
32951cat >>conftest.$ac_ext <<_ACEOF
32952/* end confdefs.h. */
32953
32954/* Override any GCC internal prototype to avoid an error.
32955 Use char because int might match the return type of a GCC
32956 builtin and then its argument prototype would still apply. */
32957#ifdef __cplusplus
32958extern "C"
32959#endif
32960char ccmalloc_malloc ();
32961int
32962main ()
32963{
32964return ccmalloc_malloc ();
32965 ;
32966 return 0;
32967}
32968_ACEOF
32969rm -f conftest.$ac_objext conftest$ac_exeext
32970if { (ac_try="$ac_link"
32971case "(($ac_try" in
32972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32973 *) ac_try_echo=$ac_try;;
32974esac
32975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32976$as_echo "$ac_try_echo") >&5
32977 (eval "$ac_link") 2>conftest.er1
32978 ac_status=$?
32979 grep -v '^ *+' conftest.er1 >conftest.err
32980 rm -f conftest.er1
32981 cat conftest.err >&5
32982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); } && {
32984 test -z "$ac_c_werror_flag" ||
32985 test ! -s conftest.err
32986 } && test -s conftest$ac_exeext && {
32987 test "$cross_compiling" = yes ||
32988 $as_test_x conftest$ac_exeext
32989 }; then
32990 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
32991else
32992 $as_echo "$as_me: failed program was:" >&5
32993sed 's/^/| /' conftest.$ac_ext >&5
32994
32995 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
32996fi
32997
32998rm -rf conftest.dSYM
32999rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33000 conftest$ac_exeext conftest.$ac_ext
33001LIBS=$ac_check_lib_save_LIBS
33002fi
33003{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
33004$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
33005if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then
33006 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
33007fi
33008
33009 if test -n "$CCMALLOC_LIBS"; then
33010 LIBS="$OLIBS"
33011 LIBS="$LIBS $CCMALLOC_LIBS"
33012 have_ccmalloc='yes'
33013 else
33014 LIBS="$OLIBS"
33015 fi
33016 fi
33017fi
33018
33019#
33020# Add support for efence memory debugging library if requested
33021#
33022if test "$enable_efence" = 'yes'; then
33023 EFENCE_LIBS='-lefence'
33024 LIBS="$EFENCE_LIBS $LIBS"
33025fi
33026
33027#
33028# Find math library
33029#
33030MATH_LIBS=''
33031{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
33032$as_echo_n "checking for sqrt in -lm... " >&6; }
33033if test "${ac_cv_lib_m_sqrt+set}" = set; then
33034 $as_echo_n "(cached) " >&6
33035else
33036 ac_check_lib_save_LIBS=$LIBS
33037LIBS="-lm $LIBS"
33038cat >conftest.$ac_ext <<_ACEOF
33039/* confdefs.h. */
33040_ACEOF
33041cat confdefs.h >>conftest.$ac_ext
33042cat >>conftest.$ac_ext <<_ACEOF
33043/* end confdefs.h. */
33044
33045/* Override any GCC internal prototype to avoid an error.
33046 Use char because int might match the return type of a GCC
33047 builtin and then its argument prototype would still apply. */
33048#ifdef __cplusplus
33049extern "C"
33050#endif
33051char sqrt ();
33052int
33053main ()
33054{
33055return sqrt ();
33056 ;
33057 return 0;
33058}
33059_ACEOF
33060rm -f conftest.$ac_objext conftest$ac_exeext
33061if { (ac_try="$ac_link"
33062case "(($ac_try" in
33063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33064 *) ac_try_echo=$ac_try;;
33065esac
33066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33067$as_echo "$ac_try_echo") >&5
33068 (eval "$ac_link") 2>conftest.er1
33069 ac_status=$?
33070 grep -v '^ *+' conftest.er1 >conftest.err
33071 rm -f conftest.er1
33072 cat conftest.err >&5
33073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074 (exit $ac_status); } && {
33075 test -z "$ac_c_werror_flag" ||
33076 test ! -s conftest.err
33077 } && test -s conftest$ac_exeext && {
33078 test "$cross_compiling" = yes ||
33079 $as_test_x conftest$ac_exeext
33080 }; then
33081 ac_cv_lib_m_sqrt=yes
33082else
33083 $as_echo "$as_me: failed program was:" >&5
33084sed 's/^/| /' conftest.$ac_ext >&5
33085
33086 ac_cv_lib_m_sqrt=no
33087fi
33088
33089rm -rf conftest.dSYM
33090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33091 conftest$ac_exeext conftest.$ac_ext
33092LIBS=$ac_check_lib_save_LIBS
33093fi
33094{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
33095$as_echo "$ac_cv_lib_m_sqrt" >&6; }
33096if test "x$ac_cv_lib_m_sqrt" = x""yes; then
33097 MATH_LIBS="-lm"
33098fi
33099
33100LIBS="$MATH_LIBS $LIBS"
33101
33102
33103
33104#
33105# Check for BZLIB
33106#
33107
33108
33109# Check whether --with-bzlib was given.
33110if test "${with_bzlib+set}" = set; then
33111 withval=$with_bzlib; with_bzlib=$withval
33112else
33113 with_bzlib='yes'
33114fi
33115
33116
33117if test "$with_bzlib" != 'yes'; then
33118 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
33119fi
33120
33121have_bzlib='no'
33122if test "$with_bzlib" != 'no'; then
33123 BZLIB_LIBS=''
33124 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
33125$as_echo "-------------------------------------------------------------" >&6; }
33126 { $as_echo "$as_me:$LINENO: checking for BZLIB" >&5
33127$as_echo_n "checking for BZLIB... " >&6; }
33128 { $as_echo "$as_me:$LINENO: result: " >&5
33129$as_echo "" >&6; }
33130 failed=0
33131 passed=0
33132 found_libbz=0
33133 if test "${ac_cv_header_bzlib_h+set}" = set; then
33134 { $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
33135$as_echo_n "checking for bzlib.h... " >&6; }
33136if test "${ac_cv_header_bzlib_h+set}" = set; then
33137 $as_echo_n "(cached) " >&6
33138fi
33139{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
33140$as_echo "$ac_cv_header_bzlib_h" >&6; }
33141else
33142 # Is the header compilable?
33143{ $as_echo "$as_me:$LINENO: checking bzlib.h usability" >&5
33144$as_echo_n "checking bzlib.h usability... " >&6; }
33145cat >conftest.$ac_ext <<_ACEOF
33146/* confdefs.h. */
33147_ACEOF
33148cat confdefs.h >>conftest.$ac_ext
33149cat >>conftest.$ac_ext <<_ACEOF
33150/* end confdefs.h. */
33151$ac_includes_default
33152#include <bzlib.h>
33153_ACEOF
33154rm -f conftest.$ac_objext
33155if { (ac_try="$ac_compile"
33156case "(($ac_try" in
33157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33158 *) ac_try_echo=$ac_try;;
33159esac
33160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33161$as_echo "$ac_try_echo") >&5
33162 (eval "$ac_compile") 2>conftest.er1
33163 ac_status=$?
33164 grep -v '^ *+' conftest.er1 >conftest.err
33165 rm -f conftest.er1
33166 cat conftest.err >&5
33167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); } && {
33169 test -z "$ac_c_werror_flag" ||
33170 test ! -s conftest.err
33171 } && test -s conftest.$ac_objext; then
33172 ac_header_compiler=yes
33173else
33174 $as_echo "$as_me: failed program was:" >&5
33175sed 's/^/| /' conftest.$ac_ext >&5
33176
33177 ac_header_compiler=no
33178fi
33179
33180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33181{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33182$as_echo "$ac_header_compiler" >&6; }
33183
33184# Is the header present?
33185{ $as_echo "$as_me:$LINENO: checking bzlib.h presence" >&5
33186$as_echo_n "checking bzlib.h presence... " >&6; }
33187cat >conftest.$ac_ext <<_ACEOF
33188/* confdefs.h. */
33189_ACEOF
33190cat confdefs.h >>conftest.$ac_ext
33191cat >>conftest.$ac_ext <<_ACEOF
33192/* end confdefs.h. */
33193#include <bzlib.h>
33194_ACEOF
33195if { (ac_try="$ac_cpp conftest.$ac_ext"
33196case "(($ac_try" in
33197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33198 *) ac_try_echo=$ac_try;;
33199esac
33200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33201$as_echo "$ac_try_echo") >&5
33202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33203 ac_status=$?
33204 grep -v '^ *+' conftest.er1 >conftest.err
33205 rm -f conftest.er1
33206 cat conftest.err >&5
33207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208 (exit $ac_status); } >/dev/null && {
33209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33210 test ! -s conftest.err
33211 }; then
33212 ac_header_preproc=yes
33213else
33214 $as_echo "$as_me: failed program was:" >&5
33215sed 's/^/| /' conftest.$ac_ext >&5
33216
33217 ac_header_preproc=no
33218fi
33219
33220rm -f conftest.err conftest.$ac_ext
33221{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33222$as_echo "$ac_header_preproc" >&6; }
33223
33224# So? What about this header?
33225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33226 yes:no: )
33227 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33228$as_echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33229 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5
33230$as_echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;}
33231 ac_header_preproc=yes
33232 ;;
33233 no:yes:* )
33234 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5
33235$as_echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;}
33236 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5
33237$as_echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;}
33238 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5
33239$as_echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;}
33240 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5
33241$as_echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33242 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
33243$as_echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;}
33244 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5
33245$as_echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;}
33246 ( cat <<\_ASBOX
33247## ----------------------------------------- ##
33248## Report this to http://www.imagemagick.org ##
33249## ----------------------------------------- ##
33250_ASBOX
33251 ) | sed "s/^/$as_me: WARNING: /" >&2
33252 ;;
33253esac
33254{ $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
33255$as_echo_n "checking for bzlib.h... " >&6; }
33256if test "${ac_cv_header_bzlib_h+set}" = set; then
33257 $as_echo_n "(cached) " >&6
33258else
33259 ac_cv_header_bzlib_h=$ac_header_preproc
33260fi
33261{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
33262$as_echo "$ac_cv_header_bzlib_h" >&6; }
33263
33264fi
33265if test "x$ac_cv_header_bzlib_h" = x""yes; then
33266 passed=`expr $passed + 1`
33267else
33268 failed=`expr $failed + 1`
33269fi
33270
33271
33272 { $as_echo "$as_me:$LINENO: checking for BZ2_bzDecompress in -lbz2" >&5
33273$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
33274if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then
33275 $as_echo_n "(cached) " >&6
33276else
33277 ac_check_lib_save_LIBS=$LIBS
33278LIBS="-lbz2 $LIBS"
33279cat >conftest.$ac_ext <<_ACEOF
33280/* confdefs.h. */
33281_ACEOF
33282cat confdefs.h >>conftest.$ac_ext
33283cat >>conftest.$ac_ext <<_ACEOF
33284/* end confdefs.h. */
33285
33286/* Override any GCC internal prototype to avoid an error.
33287 Use char because int might match the return type of a GCC
33288 builtin and then its argument prototype would still apply. */
33289#ifdef __cplusplus
33290extern "C"
33291#endif
33292char BZ2_bzDecompress ();
33293int
33294main ()
33295{
33296return BZ2_bzDecompress ();
33297 ;
33298 return 0;
33299}
33300_ACEOF
33301rm -f conftest.$ac_objext conftest$ac_exeext
33302if { (ac_try="$ac_link"
33303case "(($ac_try" in
33304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33305 *) ac_try_echo=$ac_try;;
33306esac
33307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33308$as_echo "$ac_try_echo") >&5
33309 (eval "$ac_link") 2>conftest.er1
33310 ac_status=$?
33311 grep -v '^ *+' conftest.er1 >conftest.err
33312 rm -f conftest.er1
33313 cat conftest.err >&5
33314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); } && {
33316 test -z "$ac_c_werror_flag" ||
33317 test ! -s conftest.err
33318 } && test -s conftest$ac_exeext && {
33319 test "$cross_compiling" = yes ||
33320 $as_test_x conftest$ac_exeext
33321 }; then
33322 ac_cv_lib_bz2_BZ2_bzDecompress=yes
33323else
33324 $as_echo "$as_me: failed program was:" >&5
33325sed 's/^/| /' conftest.$ac_ext >&5
33326
33327 ac_cv_lib_bz2_BZ2_bzDecompress=no
33328fi
33329
33330rm -rf conftest.dSYM
33331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33332 conftest$ac_exeext conftest.$ac_ext
33333LIBS=$ac_check_lib_save_LIBS
33334fi
33335{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
33336$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
33337if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then
33338 found_libbz=`expr $found_libbz + 1`
33339fi
33340
33341 if test "$native_win32_build" = 'yes'; then
33342 { $as_echo "$as_me:$LINENO: checking for _imp__BZ2_decompress in -lbz2" >&5
33343$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
33344if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then
33345 $as_echo_n "(cached) " >&6
33346else
33347 ac_check_lib_save_LIBS=$LIBS
33348LIBS="-lbz2 $LIBS"
33349cat >conftest.$ac_ext <<_ACEOF
33350/* confdefs.h. */
33351_ACEOF
33352cat confdefs.h >>conftest.$ac_ext
33353cat >>conftest.$ac_ext <<_ACEOF
33354/* end confdefs.h. */
33355
33356/* Override any GCC internal prototype to avoid an error.
33357 Use char because int might match the return type of a GCC
33358 builtin and then its argument prototype would still apply. */
33359#ifdef __cplusplus
33360extern "C"
33361#endif
33362char _imp__BZ2_decompress ();
33363int
33364main ()
33365{
33366return _imp__BZ2_decompress ();
33367 ;
33368 return 0;
33369}
33370_ACEOF
33371rm -f conftest.$ac_objext conftest$ac_exeext
33372if { (ac_try="$ac_link"
33373case "(($ac_try" in
33374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375 *) ac_try_echo=$ac_try;;
33376esac
33377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33378$as_echo "$ac_try_echo") >&5
33379 (eval "$ac_link") 2>conftest.er1
33380 ac_status=$?
33381 grep -v '^ *+' conftest.er1 >conftest.err
33382 rm -f conftest.er1
33383 cat conftest.err >&5
33384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385 (exit $ac_status); } && {
33386 test -z "$ac_c_werror_flag" ||
33387 test ! -s conftest.err
33388 } && test -s conftest$ac_exeext && {
33389 test "$cross_compiling" = yes ||
33390 $as_test_x conftest$ac_exeext
33391 }; then
33392 ac_cv_lib_bz2__imp__BZ2_decompress=yes
33393else
33394 $as_echo "$as_me: failed program was:" >&5
33395sed 's/^/| /' conftest.$ac_ext >&5
33396
33397 ac_cv_lib_bz2__imp__BZ2_decompress=no
33398fi
33399
33400rm -rf conftest.dSYM
33401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33402 conftest$ac_exeext conftest.$ac_ext
33403LIBS=$ac_check_lib_save_LIBS
33404fi
33405{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
33406$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
33407if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then
33408 found_libbz=`expr $found_libbz + 1`
33409fi
33410
33411 fi
33412 if test $found_libbz -gt 0; then
33413 passed=`expr $passed + 1`
33414 else
33415 failed=`expr $failed + 1`
33416 fi
33417 { $as_echo "$as_me:$LINENO: checking if BZLIB package is complete" >&5
33418$as_echo_n "checking if BZLIB package is complete... " >&6; }
33419 if test $passed -gt 0; then
33420 if test $failed -gt 0; then
33421 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
33422$as_echo "no -- some components failed test" >&6; }
33423 have_bzlib='no (failed tests)'
33424 else
33425 BZLIB_LIBS='-lbz2'
33426 LIBS="$BZLIB_LIBS $LIBS"
33427
33428cat >>confdefs.h <<\_ACEOF
33429#define BZLIB_DELEGATE 1
33430_ACEOF
33431
33432 { $as_echo "$as_me:$LINENO: result: yes" >&5
33433$as_echo "yes" >&6; }
33434 have_bzlib='yes'
33435 fi
33436 else
33437 { $as_echo "$as_me:$LINENO: result: no" >&5
33438$as_echo "no" >&6; }
33439 fi
33440fi
33441 if test "$have_bzlib" = 'yes'; then
33442 BZLIB_DELEGATE_TRUE=
33443 BZLIB_DELEGATE_FALSE='#'
33444else
33445 BZLIB_DELEGATE_TRUE='#'
33446 BZLIB_DELEGATE_FALSE=
33447fi
33448
33449
33450
33451#
33452# Find the X11 include and library directories.
33453#
33454IPC_LIBS=''
33455X11_LIBS=''
33456XEXT_LIBS=''
33457XT_LIBS=''
33458{ $as_echo "$as_me:$LINENO: checking for X" >&5
33459$as_echo_n "checking for X... " >&6; }
33460
33461
33462# Check whether --with-x was given.
33463if test "${with_x+set}" = set; then
33464 withval=$with_x;
33465fi
33466
33467# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
33468if test "x$with_x" = xno; then
33469 # The user explicitly disabled X.
33470 have_x=disabled
33471else
33472 case $x_includes,$x_libraries in #(
33473 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
33474$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
33475 { (exit 1); exit 1; }; };; #(
33476 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
33477 $as_echo_n "(cached) " >&6
33478else
33479 # One or both of the vars are not set, and there is no cached value.
33480ac_x_includes=no ac_x_libraries=no
33481rm -f -r conftest.dir
33482if mkdir conftest.dir; then
33483 cd conftest.dir
33484 cat >Imakefile <<'_ACEOF'
33485incroot:
33486 @echo incroot='${INCROOT}'
33487usrlibdir:
33488 @echo usrlibdir='${USRLIBDIR}'
33489libdir:
33490 @echo libdir='${LIBDIR}'
33491_ACEOF
33492 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
33493 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
33494 for ac_var in incroot usrlibdir libdir; do
33495 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
33496 done
33497 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
33498 for ac_extension in a so sl dylib la dll; do
33499 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
33500 test -f "$ac_im_libdir/libX11.$ac_extension"; then
33501 ac_im_usrlibdir=$ac_im_libdir; break
33502 fi
33503 done
33504 # Screen out bogus values from the imake configuration. They are
33505 # bogus both because they are the default anyway, and because
33506 # using them would break gcc on systems where it needs fixed includes.
33507 case $ac_im_incroot in
33508 /usr/include) ac_x_includes= ;;
33509 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
33510 esac
33511 case $ac_im_usrlibdir in
33512 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
33513 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
33514 esac
33515 fi
33516 cd ..
33517 rm -f -r conftest.dir
33518fi
33519
33520# Standard set of common directories for X headers.
33521# Check X11 before X11Rn because it is often a symlink to the current release.
33522ac_x_header_dirs='
33523/usr/X11/include
33524/usr/X11R6/include
33525/usr/X11R5/include
33526/usr/X11R4/include
33527
33528/usr/include/X11
33529/usr/include/X11R6
33530/usr/include/X11R5
33531/usr/include/X11R4
33532
33533/usr/local/X11/include
33534/usr/local/X11R6/include
33535/usr/local/X11R5/include
33536/usr/local/X11R4/include
33537
33538/usr/local/include/X11
33539/usr/local/include/X11R6
33540/usr/local/include/X11R5
33541/usr/local/include/X11R4
33542
33543/usr/X386/include
33544/usr/x386/include
33545/usr/XFree86/include/X11
33546
33547/usr/include
33548/usr/local/include
33549/usr/unsupported/include
33550/usr/athena/include
33551/usr/local/x11r5/include
33552/usr/lpp/Xamples/include
33553
33554/usr/openwin/include
33555/usr/openwin/share/include'
33556
33557if test "$ac_x_includes" = no; then
33558 # Guess where to find include files, by looking for Xlib.h.
33559 # First, try using that file with no special directory specified.
33560 cat >conftest.$ac_ext <<_ACEOF
33561/* confdefs.h. */
33562_ACEOF
33563cat confdefs.h >>conftest.$ac_ext
33564cat >>conftest.$ac_ext <<_ACEOF
33565/* end confdefs.h. */
33566#include <X11/Xlib.h>
33567_ACEOF
33568if { (ac_try="$ac_cpp conftest.$ac_ext"
33569case "(($ac_try" in
33570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33571 *) ac_try_echo=$ac_try;;
33572esac
33573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33574$as_echo "$ac_try_echo") >&5
33575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33576 ac_status=$?
33577 grep -v '^ *+' conftest.er1 >conftest.err
33578 rm -f conftest.er1
33579 cat conftest.err >&5
33580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); } >/dev/null && {
33582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33583 test ! -s conftest.err
33584 }; then
33585 # We can compile using X headers with no special include directory.
33586ac_x_includes=
33587else
33588 $as_echo "$as_me: failed program was:" >&5
33589sed 's/^/| /' conftest.$ac_ext >&5
33590
33591 for ac_dir in $ac_x_header_dirs; do
33592 if test -r "$ac_dir/X11/Xlib.h"; then
33593 ac_x_includes=$ac_dir
33594 break
33595 fi
33596done
33597fi
33598
33599rm -f conftest.err conftest.$ac_ext
33600fi # $ac_x_includes = no
33601
33602if test "$ac_x_libraries" = no; then
33603 # Check for the libraries.
33604 # See if we find them without any special options.
33605 # Don't add to $LIBS permanently.
33606 ac_save_LIBS=$LIBS
33607 LIBS="-lX11 $LIBS"
33608 cat >conftest.$ac_ext <<_ACEOF
33609/* confdefs.h. */
33610_ACEOF
33611cat confdefs.h >>conftest.$ac_ext
33612cat >>conftest.$ac_ext <<_ACEOF
33613/* end confdefs.h. */
33614#include <X11/Xlib.h>
33615int
33616main ()
33617{
33618XrmInitialize ()
33619 ;
33620 return 0;
33621}
33622_ACEOF
33623rm -f conftest.$ac_objext conftest$ac_exeext
33624if { (ac_try="$ac_link"
33625case "(($ac_try" in
33626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627 *) ac_try_echo=$ac_try;;
33628esac
33629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33630$as_echo "$ac_try_echo") >&5
33631 (eval "$ac_link") 2>conftest.er1
33632 ac_status=$?
33633 grep -v '^ *+' conftest.er1 >conftest.err
33634 rm -f conftest.er1
33635 cat conftest.err >&5
33636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33637 (exit $ac_status); } && {
33638 test -z "$ac_c_werror_flag" ||
33639 test ! -s conftest.err
33640 } && test -s conftest$ac_exeext && {
33641 test "$cross_compiling" = yes ||
33642 $as_test_x conftest$ac_exeext
33643 }; then
33644 LIBS=$ac_save_LIBS
33645# We can link X programs with no special library path.
33646ac_x_libraries=
33647else
33648 $as_echo "$as_me: failed program was:" >&5
33649sed 's/^/| /' conftest.$ac_ext >&5
33650
33651 LIBS=$ac_save_LIBS
33652for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
33653do
33654 # Don't even attempt the hair of trying to link an X program!
33655 for ac_extension in a so sl dylib la dll; do
33656 if test -r "$ac_dir/libX11.$ac_extension"; then
33657 ac_x_libraries=$ac_dir
33658 break 2
33659 fi
33660 done
33661done
33662fi
33663
33664rm -rf conftest.dSYM
33665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33666 conftest$ac_exeext conftest.$ac_ext
33667fi # $ac_x_libraries = no
33668
33669case $ac_x_includes,$ac_x_libraries in #(
33670 no,* | *,no | *\'*)
33671 # Didn't find X, or a directory has "'" in its name.
33672 ac_cv_have_x="have_x=no";; #(
33673 *)
33674 # Record where we found X for the cache.
33675 ac_cv_have_x="have_x=yes\
33676 ac_x_includes='$ac_x_includes'\
33677 ac_x_libraries='$ac_x_libraries'"
33678esac
33679fi
33680;; #(
33681 *) have_x=yes;;
33682 esac
33683 eval "$ac_cv_have_x"
33684fi # $with_x != no
33685
33686if test "$have_x" != yes; then
33687 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
33688$as_echo "$have_x" >&6; }
33689 no_x=yes
33690else
33691 # If each of the values was on the command line, it overrides each guess.
33692 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
33693 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
33694 # Update the cache value to reflect the command line values.
33695 ac_cv_have_x="have_x=yes\
33696 ac_x_includes='$x_includes'\
33697 ac_x_libraries='$x_libraries'"
33698 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
33699$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
33700fi
33701
33702if test "$no_x" = yes; then
33703 # Not all programs may use this symbol, but it does not hurt to define it.
33704
33705cat >>confdefs.h <<\_ACEOF
33706#define X_DISPLAY_MISSING 1
33707_ACEOF
33708
33709 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
33710else
33711 if test -n "$x_includes"; then
33712 X_CFLAGS="$X_CFLAGS -I$x_includes"
33713 fi
33714
33715 # It would also be nice to do this for all -L options, not just this one.
33716 if test -n "$x_libraries"; then
33717 X_LIBS="$X_LIBS -L$x_libraries"
33718 # For Solaris; some versions of Sun CC require a space after -R and
33719 # others require no space. Words are not sufficient . . . .
33720 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
33721$as_echo_n "checking whether -R must be followed by a space... " >&6; }
33722 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
33723 ac_xsave_c_werror_flag=$ac_c_werror_flag
33724 ac_c_werror_flag=yes
33725 cat >conftest.$ac_ext <<_ACEOF
33726/* confdefs.h. */
33727_ACEOF
33728cat confdefs.h >>conftest.$ac_ext
33729cat >>conftest.$ac_ext <<_ACEOF
33730/* end confdefs.h. */
33731
33732int
33733main ()
33734{
33735
33736 ;
33737 return 0;
33738}
33739_ACEOF
33740rm -f conftest.$ac_objext conftest$ac_exeext
33741if { (ac_try="$ac_link"
33742case "(($ac_try" in
33743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33744 *) ac_try_echo=$ac_try;;
33745esac
33746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33747$as_echo "$ac_try_echo") >&5
33748 (eval "$ac_link") 2>conftest.er1
33749 ac_status=$?
33750 grep -v '^ *+' conftest.er1 >conftest.err
33751 rm -f conftest.er1
33752 cat conftest.err >&5
33753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754 (exit $ac_status); } && {
33755 test -z "$ac_c_werror_flag" ||
33756 test ! -s conftest.err
33757 } && test -s conftest$ac_exeext && {
33758 test "$cross_compiling" = yes ||
33759 $as_test_x conftest$ac_exeext
33760 }; then
33761 { $as_echo "$as_me:$LINENO: result: no" >&5
33762$as_echo "no" >&6; }
33763 X_LIBS="$X_LIBS -R$x_libraries"
33764else
33765 $as_echo "$as_me: failed program was:" >&5
33766sed 's/^/| /' conftest.$ac_ext >&5
33767
33768 LIBS="$ac_xsave_LIBS -R $x_libraries"
33769 cat >conftest.$ac_ext <<_ACEOF
33770/* confdefs.h. */
33771_ACEOF
33772cat confdefs.h >>conftest.$ac_ext
33773cat >>conftest.$ac_ext <<_ACEOF
33774/* end confdefs.h. */
33775
33776int
33777main ()
33778{
33779
33780 ;
33781 return 0;
33782}
33783_ACEOF
33784rm -f conftest.$ac_objext conftest$ac_exeext
33785if { (ac_try="$ac_link"
33786case "(($ac_try" in
33787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33788 *) ac_try_echo=$ac_try;;
33789esac
33790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33791$as_echo "$ac_try_echo") >&5
33792 (eval "$ac_link") 2>conftest.er1
33793 ac_status=$?
33794 grep -v '^ *+' conftest.er1 >conftest.err
33795 rm -f conftest.er1
33796 cat conftest.err >&5
33797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); } && {
33799 test -z "$ac_c_werror_flag" ||
33800 test ! -s conftest.err
33801 } && test -s conftest$ac_exeext && {
33802 test "$cross_compiling" = yes ||
33803 $as_test_x conftest$ac_exeext
33804 }; then
33805 { $as_echo "$as_me:$LINENO: result: yes" >&5
33806$as_echo "yes" >&6; }
33807 X_LIBS="$X_LIBS -R $x_libraries"
33808else
33809 $as_echo "$as_me: failed program was:" >&5
33810sed 's/^/| /' conftest.$ac_ext >&5
33811
33812 { $as_echo "$as_me:$LINENO: result: neither works" >&5
33813$as_echo "neither works" >&6; }
33814fi
33815
33816rm -rf conftest.dSYM
33817rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33818 conftest$ac_exeext conftest.$ac_ext
33819fi
33820
33821rm -rf conftest.dSYM
33822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33823 conftest$ac_exeext conftest.$ac_ext
33824 ac_c_werror_flag=$ac_xsave_c_werror_flag
33825 LIBS=$ac_xsave_LIBS
33826 fi
33827
33828 # Check for system-dependent libraries X programs must link with.
33829 # Do this before checking for the system-independent R6 libraries
33830 # (-lICE), since we may need -lsocket or whatever for X linking.
33831
33832 if test "$ISC" = yes; then
33833 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
33834 else
33835 # Martyn Johnson says this is needed for Ultrix, if the X
33836 # libraries were built with DECnet support. And Karl Berry says
33837 # the Alpha needs dnet_stub (dnet does not exist).
33838 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
33839 cat >conftest.$ac_ext <<_ACEOF
33840/* confdefs.h. */
33841_ACEOF
33842cat confdefs.h >>conftest.$ac_ext
33843cat >>conftest.$ac_ext <<_ACEOF
33844/* end confdefs.h. */
33845
33846/* Override any GCC internal prototype to avoid an error.
33847 Use char because int might match the return type of a GCC
33848 builtin and then its argument prototype would still apply. */
33849#ifdef __cplusplus
33850extern "C"
33851#endif
33852char XOpenDisplay ();
33853int
33854main ()
33855{
33856return XOpenDisplay ();
33857 ;
33858 return 0;
33859}
33860_ACEOF
33861rm -f conftest.$ac_objext conftest$ac_exeext
33862if { (ac_try="$ac_link"
33863case "(($ac_try" in
33864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33865 *) ac_try_echo=$ac_try;;
33866esac
33867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33868$as_echo "$ac_try_echo") >&5
33869 (eval "$ac_link") 2>conftest.er1
33870 ac_status=$?
33871 grep -v '^ *+' conftest.er1 >conftest.err
33872 rm -f conftest.er1
33873 cat conftest.err >&5
33874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33875 (exit $ac_status); } && {
33876 test -z "$ac_c_werror_flag" ||
33877 test ! -s conftest.err
33878 } && test -s conftest$ac_exeext && {
33879 test "$cross_compiling" = yes ||
33880 $as_test_x conftest$ac_exeext
33881 }; then
33882 :
33883else
33884 $as_echo "$as_me: failed program was:" >&5
33885sed 's/^/| /' conftest.$ac_ext >&5
33886
33887 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
33888$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
33889if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
33890 $as_echo_n "(cached) " >&6
33891else
33892 ac_check_lib_save_LIBS=$LIBS
33893LIBS="-ldnet $LIBS"
33894cat >conftest.$ac_ext <<_ACEOF
33895/* confdefs.h. */
33896_ACEOF
33897cat confdefs.h >>conftest.$ac_ext
33898cat >>conftest.$ac_ext <<_ACEOF
33899/* end confdefs.h. */
33900
33901/* Override any GCC internal prototype to avoid an error.
33902 Use char because int might match the return type of a GCC
33903 builtin and then its argument prototype would still apply. */
33904#ifdef __cplusplus
33905extern "C"
33906#endif
33907char dnet_ntoa ();
33908int
33909main ()
33910{
33911return dnet_ntoa ();
33912 ;
33913 return 0;
33914}
33915_ACEOF
33916rm -f conftest.$ac_objext conftest$ac_exeext
33917if { (ac_try="$ac_link"
33918case "(($ac_try" in
33919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33920 *) ac_try_echo=$ac_try;;
33921esac
33922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33923$as_echo "$ac_try_echo") >&5
33924 (eval "$ac_link") 2>conftest.er1
33925 ac_status=$?
33926 grep -v '^ *+' conftest.er1 >conftest.err
33927 rm -f conftest.er1
33928 cat conftest.err >&5
33929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33930 (exit $ac_status); } && {
33931 test -z "$ac_c_werror_flag" ||
33932 test ! -s conftest.err
33933 } && test -s conftest$ac_exeext && {
33934 test "$cross_compiling" = yes ||
33935 $as_test_x conftest$ac_exeext
33936 }; then
33937 ac_cv_lib_dnet_dnet_ntoa=yes
33938else
33939 $as_echo "$as_me: failed program was:" >&5
33940sed 's/^/| /' conftest.$ac_ext >&5
33941
33942 ac_cv_lib_dnet_dnet_ntoa=no
33943fi
33944
33945rm -rf conftest.dSYM
33946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33947 conftest$ac_exeext conftest.$ac_ext
33948LIBS=$ac_check_lib_save_LIBS
33949fi
33950{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
33951$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
33952if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
33953 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
33954fi
33955
33956 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
33957 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
33958$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
33959if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
33960 $as_echo_n "(cached) " >&6
33961else
33962 ac_check_lib_save_LIBS=$LIBS
33963LIBS="-ldnet_stub $LIBS"
33964cat >conftest.$ac_ext <<_ACEOF
33965/* confdefs.h. */
33966_ACEOF
33967cat confdefs.h >>conftest.$ac_ext
33968cat >>conftest.$ac_ext <<_ACEOF
33969/* end confdefs.h. */
33970
33971/* Override any GCC internal prototype to avoid an error.
33972 Use char because int might match the return type of a GCC
33973 builtin and then its argument prototype would still apply. */
33974#ifdef __cplusplus
33975extern "C"
33976#endif
33977char dnet_ntoa ();
33978int
33979main ()
33980{
33981return dnet_ntoa ();
33982 ;
33983 return 0;
33984}
33985_ACEOF
33986rm -f conftest.$ac_objext conftest$ac_exeext
33987if { (ac_try="$ac_link"
33988case "(($ac_try" in
33989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33990 *) ac_try_echo=$ac_try;;
33991esac
33992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33993$as_echo "$ac_try_echo") >&5
33994 (eval "$ac_link") 2>conftest.er1
33995 ac_status=$?
33996 grep -v '^ *+' conftest.er1 >conftest.err
33997 rm -f conftest.er1
33998 cat conftest.err >&5
33999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34000 (exit $ac_status); } && {
34001 test -z "$ac_c_werror_flag" ||
34002 test ! -s conftest.err
34003 } && test -s conftest$ac_exeext && {
34004 test "$cross_compiling" = yes ||
34005 $as_test_x conftest$ac_exeext
34006 }; then
34007 ac_cv_lib_dnet_stub_dnet_ntoa=yes
34008else
34009 $as_echo "$as_me: failed program was:" >&5
34010sed 's/^/| /' conftest.$ac_ext >&5
34011
34012 ac_cv_lib_dnet_stub_dnet_ntoa=no
34013fi
34014
34015rm -rf conftest.dSYM
34016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34017 conftest$ac_exeext conftest.$ac_ext
34018LIBS=$ac_check_lib_save_LIBS
34019fi
34020{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
34021$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
34022if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
34023 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
34024fi
34025
34026 fi
34027fi
34028
34029rm -rf conftest.dSYM
34030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34031 conftest$ac_exeext conftest.$ac_ext
34032 LIBS="$ac_xsave_LIBS"
34033
34034 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
34035 # to get the SysV transport functions.
34036 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
34037 # needs -lnsl.
34038 # The nsl library prevents programs from opening the X display
34039 # on Irix 5.2, according to T.E. Dickey.
34040 # The functions gethostbyname, getservbyname, and inet_addr are
34041 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
34042 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
34043$as_echo_n "checking for gethostbyname... " >&6; }
34044if test "${ac_cv_func_gethostbyname+set}" = set; then
34045 $as_echo_n "(cached) " >&6
34046else
34047 cat >conftest.$ac_ext <<_ACEOF
34048/* confdefs.h. */
34049_ACEOF
34050cat confdefs.h >>conftest.$ac_ext
34051cat >>conftest.$ac_ext <<_ACEOF
34052/* end confdefs.h. */
34053/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
34054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34055#define gethostbyname innocuous_gethostbyname
34056
34057/* System header to define __stub macros and hopefully few prototypes,
34058 which can conflict with char gethostbyname (); below.
34059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34060 <limits.h> exists even on freestanding compilers. */
34061
34062#ifdef __STDC__
34063# include <limits.h>
34064#else
34065# include <assert.h>
34066#endif
34067
34068#undef gethostbyname
34069
34070/* Override any GCC internal prototype to avoid an error.
34071 Use char because int might match the return type of a GCC
34072 builtin and then its argument prototype would still apply. */
34073#ifdef __cplusplus
34074extern "C"
34075#endif
34076char gethostbyname ();
34077/* The GNU C library defines this for functions which it implements
34078 to always fail with ENOSYS. Some functions are actually named
34079 something starting with __ and the normal name is an alias. */
34080#if defined __stub_gethostbyname || defined __stub___gethostbyname
34081choke me
34082#endif
34083
34084int
34085main ()
34086{
34087return gethostbyname ();
34088 ;
34089 return 0;
34090}
34091_ACEOF
34092rm -f conftest.$ac_objext conftest$ac_exeext
34093if { (ac_try="$ac_link"
34094case "(($ac_try" in
34095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34096 *) ac_try_echo=$ac_try;;
34097esac
34098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34099$as_echo "$ac_try_echo") >&5
34100 (eval "$ac_link") 2>conftest.er1
34101 ac_status=$?
34102 grep -v '^ *+' conftest.er1 >conftest.err
34103 rm -f conftest.er1
34104 cat conftest.err >&5
34105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); } && {
34107 test -z "$ac_c_werror_flag" ||
34108 test ! -s conftest.err
34109 } && test -s conftest$ac_exeext && {
34110 test "$cross_compiling" = yes ||
34111 $as_test_x conftest$ac_exeext
34112 }; then
34113 ac_cv_func_gethostbyname=yes
34114else
34115 $as_echo "$as_me: failed program was:" >&5
34116sed 's/^/| /' conftest.$ac_ext >&5
34117
34118 ac_cv_func_gethostbyname=no
34119fi
34120
34121rm -rf conftest.dSYM
34122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34123 conftest$ac_exeext conftest.$ac_ext
34124fi
34125{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
34126$as_echo "$ac_cv_func_gethostbyname" >&6; }
34127
34128 if test $ac_cv_func_gethostbyname = no; then
34129 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
34130$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
34131if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
34132 $as_echo_n "(cached) " >&6
34133else
34134 ac_check_lib_save_LIBS=$LIBS
34135LIBS="-lnsl $LIBS"
34136cat >conftest.$ac_ext <<_ACEOF
34137/* confdefs.h. */
34138_ACEOF
34139cat confdefs.h >>conftest.$ac_ext
34140cat >>conftest.$ac_ext <<_ACEOF
34141/* end confdefs.h. */
34142
34143/* Override any GCC internal prototype to avoid an error.
34144 Use char because int might match the return type of a GCC
34145 builtin and then its argument prototype would still apply. */
34146#ifdef __cplusplus
34147extern "C"
34148#endif
34149char gethostbyname ();
34150int
34151main ()
34152{
34153return gethostbyname ();
34154 ;
34155 return 0;
34156}
34157_ACEOF
34158rm -f conftest.$ac_objext conftest$ac_exeext
34159if { (ac_try="$ac_link"
34160case "(($ac_try" in
34161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34162 *) ac_try_echo=$ac_try;;
34163esac
34164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34165$as_echo "$ac_try_echo") >&5
34166 (eval "$ac_link") 2>conftest.er1
34167 ac_status=$?
34168 grep -v '^ *+' conftest.er1 >conftest.err
34169 rm -f conftest.er1
34170 cat conftest.err >&5
34171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34172 (exit $ac_status); } && {
34173 test -z "$ac_c_werror_flag" ||
34174 test ! -s conftest.err
34175 } && test -s conftest$ac_exeext && {
34176 test "$cross_compiling" = yes ||
34177 $as_test_x conftest$ac_exeext
34178 }; then
34179 ac_cv_lib_nsl_gethostbyname=yes
34180else
34181 $as_echo "$as_me: failed program was:" >&5
34182sed 's/^/| /' conftest.$ac_ext >&5
34183
34184 ac_cv_lib_nsl_gethostbyname=no
34185fi
34186
34187rm -rf conftest.dSYM
34188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34189 conftest$ac_exeext conftest.$ac_ext
34190LIBS=$ac_check_lib_save_LIBS
34191fi
34192{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
34193$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
34194if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
34195 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
34196fi
34197
34198 if test $ac_cv_lib_nsl_gethostbyname = no; then
34199 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
34200$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
34201if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
34202 $as_echo_n "(cached) " >&6
34203else
34204 ac_check_lib_save_LIBS=$LIBS
34205LIBS="-lbsd $LIBS"
34206cat >conftest.$ac_ext <<_ACEOF
34207/* confdefs.h. */
34208_ACEOF
34209cat confdefs.h >>conftest.$ac_ext
34210cat >>conftest.$ac_ext <<_ACEOF
34211/* end confdefs.h. */
34212
34213/* Override any GCC internal prototype to avoid an error.
34214 Use char because int might match the return type of a GCC
34215 builtin and then its argument prototype would still apply. */
34216#ifdef __cplusplus
34217extern "C"
34218#endif
34219char gethostbyname ();
34220int
34221main ()
34222{
34223return gethostbyname ();
34224 ;
34225 return 0;
34226}
34227_ACEOF
34228rm -f conftest.$ac_objext conftest$ac_exeext
34229if { (ac_try="$ac_link"
34230case "(($ac_try" in
34231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34232 *) ac_try_echo=$ac_try;;
34233esac
34234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34235$as_echo "$ac_try_echo") >&5
34236 (eval "$ac_link") 2>conftest.er1
34237 ac_status=$?
34238 grep -v '^ *+' conftest.er1 >conftest.err
34239 rm -f conftest.er1
34240 cat conftest.err >&5
34241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34242 (exit $ac_status); } && {
34243 test -z "$ac_c_werror_flag" ||
34244 test ! -s conftest.err
34245 } && test -s conftest$ac_exeext && {
34246 test "$cross_compiling" = yes ||
34247 $as_test_x conftest$ac_exeext
34248 }; then
34249 ac_cv_lib_bsd_gethostbyname=yes
34250else
34251 $as_echo "$as_me: failed program was:" >&5
34252sed 's/^/| /' conftest.$ac_ext >&5
34253
34254 ac_cv_lib_bsd_gethostbyname=no
34255fi
34256
34257rm -rf conftest.dSYM
34258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34259 conftest$ac_exeext conftest.$ac_ext
34260LIBS=$ac_check_lib_save_LIBS
34261fi
34262{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
34263$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
34264if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
34265 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
34266fi
34267
34268 fi
34269 fi
34270
34271 # lieder@skyler.mavd.honeywell.com says without -lsocket,
34272 # socket/setsockopt and other routines are undefined under SCO ODT
34273 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
34274 # on later versions), says Simon Leinen: it contains gethostby*
34275 # variants that don't use the name server (or something). -lsocket
34276 # must be given before -lnsl if both are needed. We assume that
34277 # if connect needs -lnsl, so does gethostbyname.
34278 { $as_echo "$as_me:$LINENO: checking for connect" >&5
34279$as_echo_n "checking for connect... " >&6; }
34280if test "${ac_cv_func_connect+set}" = set; then
34281 $as_echo_n "(cached) " >&6
34282else
34283 cat >conftest.$ac_ext <<_ACEOF
34284/* confdefs.h. */
34285_ACEOF
34286cat confdefs.h >>conftest.$ac_ext
34287cat >>conftest.$ac_ext <<_ACEOF
34288/* end confdefs.h. */
34289/* Define connect to an innocuous variant, in case <limits.h> declares connect.
34290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34291#define connect innocuous_connect
34292
34293/* System header to define __stub macros and hopefully few prototypes,
34294 which can conflict with char connect (); below.
34295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34296 <limits.h> exists even on freestanding compilers. */
34297
34298#ifdef __STDC__
34299# include <limits.h>
34300#else
34301# include <assert.h>
34302#endif
34303
34304#undef connect
34305
34306/* Override any GCC internal prototype to avoid an error.
34307 Use char because int might match the return type of a GCC
34308 builtin and then its argument prototype would still apply. */
34309#ifdef __cplusplus
34310extern "C"
34311#endif
34312char connect ();
34313/* The GNU C library defines this for functions which it implements
34314 to always fail with ENOSYS. Some functions are actually named
34315 something starting with __ and the normal name is an alias. */
34316#if defined __stub_connect || defined __stub___connect
34317choke me
34318#endif
34319
34320int
34321main ()
34322{
34323return connect ();
34324 ;
34325 return 0;
34326}
34327_ACEOF
34328rm -f conftest.$ac_objext conftest$ac_exeext
34329if { (ac_try="$ac_link"
34330case "(($ac_try" in
34331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34332 *) ac_try_echo=$ac_try;;
34333esac
34334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34335$as_echo "$ac_try_echo") >&5
34336 (eval "$ac_link") 2>conftest.er1
34337 ac_status=$?
34338 grep -v '^ *+' conftest.er1 >conftest.err
34339 rm -f conftest.er1
34340 cat conftest.err >&5
34341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); } && {
34343 test -z "$ac_c_werror_flag" ||
34344 test ! -s conftest.err
34345 } && test -s conftest$ac_exeext && {
34346 test "$cross_compiling" = yes ||
34347 $as_test_x conftest$ac_exeext
34348 }; then
34349 ac_cv_func_connect=yes
34350else
34351 $as_echo "$as_me: failed program was:" >&5
34352sed 's/^/| /' conftest.$ac_ext >&5
34353
34354 ac_cv_func_connect=no
34355fi
34356
34357rm -rf conftest.dSYM
34358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34359 conftest$ac_exeext conftest.$ac_ext
34360fi
34361{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
34362$as_echo "$ac_cv_func_connect" >&6; }
34363
34364 if test $ac_cv_func_connect = no; then
34365 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
34366$as_echo_n "checking for connect in -lsocket... " >&6; }
34367if test "${ac_cv_lib_socket_connect+set}" = set; then
34368 $as_echo_n "(cached) " >&6
34369else
34370 ac_check_lib_save_LIBS=$LIBS
34371LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
34372cat >conftest.$ac_ext <<_ACEOF
34373/* confdefs.h. */
34374_ACEOF
34375cat confdefs.h >>conftest.$ac_ext
34376cat >>conftest.$ac_ext <<_ACEOF
34377/* end confdefs.h. */
34378
34379/* Override any GCC internal prototype to avoid an error.
34380 Use char because int might match the return type of a GCC
34381 builtin and then its argument prototype would still apply. */
34382#ifdef __cplusplus
34383extern "C"
34384#endif
34385char connect ();
34386int
34387main ()
34388{
34389return connect ();
34390 ;
34391 return 0;
34392}
34393_ACEOF
34394rm -f conftest.$ac_objext conftest$ac_exeext
34395if { (ac_try="$ac_link"
34396case "(($ac_try" in
34397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34398 *) ac_try_echo=$ac_try;;
34399esac
34400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34401$as_echo "$ac_try_echo") >&5
34402 (eval "$ac_link") 2>conftest.er1
34403 ac_status=$?
34404 grep -v '^ *+' conftest.er1 >conftest.err
34405 rm -f conftest.er1
34406 cat conftest.err >&5
34407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34408 (exit $ac_status); } && {
34409 test -z "$ac_c_werror_flag" ||
34410 test ! -s conftest.err
34411 } && test -s conftest$ac_exeext && {
34412 test "$cross_compiling" = yes ||
34413 $as_test_x conftest$ac_exeext
34414 }; then
34415 ac_cv_lib_socket_connect=yes
34416else
34417 $as_echo "$as_me: failed program was:" >&5
34418sed 's/^/| /' conftest.$ac_ext >&5
34419
34420 ac_cv_lib_socket_connect=no
34421fi
34422
34423rm -rf conftest.dSYM
34424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34425 conftest$ac_exeext conftest.$ac_ext
34426LIBS=$ac_check_lib_save_LIBS
34427fi
34428{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
34429$as_echo "$ac_cv_lib_socket_connect" >&6; }
34430if test "x$ac_cv_lib_socket_connect" = x""yes; then
34431 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
34432fi
34433
34434 fi
34435
34436 # Guillermo Gomez says -lposix is necessary on A/UX.
34437 { $as_echo "$as_me:$LINENO: checking for remove" >&5
34438$as_echo_n "checking for remove... " >&6; }
34439if test "${ac_cv_func_remove+set}" = set; then
34440 $as_echo_n "(cached) " >&6
34441else
34442 cat >conftest.$ac_ext <<_ACEOF
34443/* confdefs.h. */
34444_ACEOF
34445cat confdefs.h >>conftest.$ac_ext
34446cat >>conftest.$ac_ext <<_ACEOF
34447/* end confdefs.h. */
34448/* Define remove to an innocuous variant, in case <limits.h> declares remove.
34449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34450#define remove innocuous_remove
34451
34452/* System header to define __stub macros and hopefully few prototypes,
34453 which can conflict with char remove (); below.
34454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34455 <limits.h> exists even on freestanding compilers. */
34456
34457#ifdef __STDC__
34458# include <limits.h>
34459#else
34460# include <assert.h>
34461#endif
34462
34463#undef remove
34464
34465/* Override any GCC internal prototype to avoid an error.
34466 Use char because int might match the return type of a GCC
34467 builtin and then its argument prototype would still apply. */
34468#ifdef __cplusplus
34469extern "C"
34470#endif
34471char remove ();
34472/* The GNU C library defines this for functions which it implements
34473 to always fail with ENOSYS. Some functions are actually named
34474 something starting with __ and the normal name is an alias. */
34475#if defined __stub_remove || defined __stub___remove
34476choke me
34477#endif
34478
34479int
34480main ()
34481{
34482return remove ();
34483 ;
34484 return 0;
34485}
34486_ACEOF
34487rm -f conftest.$ac_objext conftest$ac_exeext
34488if { (ac_try="$ac_link"
34489case "(($ac_try" in
34490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34491 *) ac_try_echo=$ac_try;;
34492esac
34493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34494$as_echo "$ac_try_echo") >&5
34495 (eval "$ac_link") 2>conftest.er1
34496 ac_status=$?
34497 grep -v '^ *+' conftest.er1 >conftest.err
34498 rm -f conftest.er1
34499 cat conftest.err >&5
34500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34501 (exit $ac_status); } && {
34502 test -z "$ac_c_werror_flag" ||
34503 test ! -s conftest.err
34504 } && test -s conftest$ac_exeext && {
34505 test "$cross_compiling" = yes ||
34506 $as_test_x conftest$ac_exeext
34507 }; then
34508 ac_cv_func_remove=yes
34509else
34510 $as_echo "$as_me: failed program was:" >&5
34511sed 's/^/| /' conftest.$ac_ext >&5
34512
34513 ac_cv_func_remove=no
34514fi
34515
34516rm -rf conftest.dSYM
34517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34518 conftest$ac_exeext conftest.$ac_ext
34519fi
34520{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
34521$as_echo "$ac_cv_func_remove" >&6; }
34522
34523 if test $ac_cv_func_remove = no; then
34524 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
34525$as_echo_n "checking for remove in -lposix... " >&6; }
34526if test "${ac_cv_lib_posix_remove+set}" = set; then
34527 $as_echo_n "(cached) " >&6
34528else
34529 ac_check_lib_save_LIBS=$LIBS
34530LIBS="-lposix $LIBS"
34531cat >conftest.$ac_ext <<_ACEOF
34532/* confdefs.h. */
34533_ACEOF
34534cat confdefs.h >>conftest.$ac_ext
34535cat >>conftest.$ac_ext <<_ACEOF
34536/* end confdefs.h. */
34537
34538/* Override any GCC internal prototype to avoid an error.
34539 Use char because int might match the return type of a GCC
34540 builtin and then its argument prototype would still apply. */
34541#ifdef __cplusplus
34542extern "C"
34543#endif
34544char remove ();
34545int
34546main ()
34547{
34548return remove ();
34549 ;
34550 return 0;
34551}
34552_ACEOF
34553rm -f conftest.$ac_objext conftest$ac_exeext
34554if { (ac_try="$ac_link"
34555case "(($ac_try" in
34556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34557 *) ac_try_echo=$ac_try;;
34558esac
34559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34560$as_echo "$ac_try_echo") >&5
34561 (eval "$ac_link") 2>conftest.er1
34562 ac_status=$?
34563 grep -v '^ *+' conftest.er1 >conftest.err
34564 rm -f conftest.er1
34565 cat conftest.err >&5
34566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567 (exit $ac_status); } && {
34568 test -z "$ac_c_werror_flag" ||
34569 test ! -s conftest.err
34570 } && test -s conftest$ac_exeext && {
34571 test "$cross_compiling" = yes ||
34572 $as_test_x conftest$ac_exeext
34573 }; then
34574 ac_cv_lib_posix_remove=yes
34575else
34576 $as_echo "$as_me: failed program was:" >&5
34577sed 's/^/| /' conftest.$ac_ext >&5
34578
34579 ac_cv_lib_posix_remove=no
34580fi
34581
34582rm -rf conftest.dSYM
34583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34584 conftest$ac_exeext conftest.$ac_ext
34585LIBS=$ac_check_lib_save_LIBS
34586fi
34587{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
34588$as_echo "$ac_cv_lib_posix_remove" >&6; }
34589if test "x$ac_cv_lib_posix_remove" = x""yes; then
34590 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
34591fi
34592
34593 fi
34594
34595 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
34596 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
34597$as_echo_n "checking for shmat... " >&6; }
34598if test "${ac_cv_func_shmat+set}" = set; then
34599 $as_echo_n "(cached) " >&6
34600else
34601 cat >conftest.$ac_ext <<_ACEOF
34602/* confdefs.h. */
34603_ACEOF
34604cat confdefs.h >>conftest.$ac_ext
34605cat >>conftest.$ac_ext <<_ACEOF
34606/* end confdefs.h. */
34607/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
34608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34609#define shmat innocuous_shmat
34610
34611/* System header to define __stub macros and hopefully few prototypes,
34612 which can conflict with char shmat (); below.
34613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34614 <limits.h> exists even on freestanding compilers. */
34615
34616#ifdef __STDC__
34617# include <limits.h>
34618#else
34619# include <assert.h>
34620#endif
34621
34622#undef shmat
34623
34624/* Override any GCC internal prototype to avoid an error.
34625 Use char because int might match the return type of a GCC
34626 builtin and then its argument prototype would still apply. */
34627#ifdef __cplusplus
34628extern "C"
34629#endif
34630char shmat ();
34631/* The GNU C library defines this for functions which it implements
34632 to always fail with ENOSYS. Some functions are actually named
34633 something starting with __ and the normal name is an alias. */
34634#if defined __stub_shmat || defined __stub___shmat
34635choke me
34636#endif
34637
34638int
34639main ()
34640{
34641return shmat ();
34642 ;
34643 return 0;
34644}
34645_ACEOF
34646rm -f conftest.$ac_objext conftest$ac_exeext
34647if { (ac_try="$ac_link"
34648case "(($ac_try" in
34649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34650 *) ac_try_echo=$ac_try;;
34651esac
34652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34653$as_echo "$ac_try_echo") >&5
34654 (eval "$ac_link") 2>conftest.er1
34655 ac_status=$?
34656 grep -v '^ *+' conftest.er1 >conftest.err
34657 rm -f conftest.er1
34658 cat conftest.err >&5
34659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); } && {
34661 test -z "$ac_c_werror_flag" ||
34662 test ! -s conftest.err
34663 } && test -s conftest$ac_exeext && {
34664 test "$cross_compiling" = yes ||
34665 $as_test_x conftest$ac_exeext
34666 }; then
34667 ac_cv_func_shmat=yes
34668else
34669 $as_echo "$as_me: failed program was:" >&5
34670sed 's/^/| /' conftest.$ac_ext >&5
34671
34672 ac_cv_func_shmat=no
34673fi
34674
34675rm -rf conftest.dSYM
34676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34677 conftest$ac_exeext conftest.$ac_ext
34678fi
34679{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
34680$as_echo "$ac_cv_func_shmat" >&6; }
34681
34682 if test $ac_cv_func_shmat = no; then
34683 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
34684$as_echo_n "checking for shmat in -lipc... " >&6; }
34685if test "${ac_cv_lib_ipc_shmat+set}" = set; then
34686 $as_echo_n "(cached) " >&6
34687else
34688 ac_check_lib_save_LIBS=$LIBS
34689LIBS="-lipc $LIBS"
34690cat >conftest.$ac_ext <<_ACEOF
34691/* confdefs.h. */
34692_ACEOF
34693cat confdefs.h >>conftest.$ac_ext
34694cat >>conftest.$ac_ext <<_ACEOF
34695/* end confdefs.h. */
34696
34697/* Override any GCC internal prototype to avoid an error.
34698 Use char because int might match the return type of a GCC
34699 builtin and then its argument prototype would still apply. */
34700#ifdef __cplusplus
34701extern "C"
34702#endif
34703char shmat ();
34704int
34705main ()
34706{
34707return shmat ();
34708 ;
34709 return 0;
34710}
34711_ACEOF
34712rm -f conftest.$ac_objext conftest$ac_exeext
34713if { (ac_try="$ac_link"
34714case "(($ac_try" in
34715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34716 *) ac_try_echo=$ac_try;;
34717esac
34718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34719$as_echo "$ac_try_echo") >&5
34720 (eval "$ac_link") 2>conftest.er1
34721 ac_status=$?
34722 grep -v '^ *+' conftest.er1 >conftest.err
34723 rm -f conftest.er1
34724 cat conftest.err >&5
34725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726 (exit $ac_status); } && {
34727 test -z "$ac_c_werror_flag" ||
34728 test ! -s conftest.err
34729 } && test -s conftest$ac_exeext && {
34730 test "$cross_compiling" = yes ||
34731 $as_test_x conftest$ac_exeext
34732 }; then
34733 ac_cv_lib_ipc_shmat=yes
34734else
34735 $as_echo "$as_me: failed program was:" >&5
34736sed 's/^/| /' conftest.$ac_ext >&5
34737
34738 ac_cv_lib_ipc_shmat=no
34739fi
34740
34741rm -rf conftest.dSYM
34742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34743 conftest$ac_exeext conftest.$ac_ext
34744LIBS=$ac_check_lib_save_LIBS
34745fi
34746{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
34747$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
34748if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
34749 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
34750fi
34751
34752 fi
34753 fi
34754
34755 # Check for libraries that X11R6 Xt/Xaw programs need.
34756 ac_save_LDFLAGS=$LDFLAGS
34757 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
34758 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
34759 # check for ICE first), but we must link in the order -lSM -lICE or
34760 # we get undefined symbols. So assume we have SM if we have ICE.
34761 # These have to be linked with before -lX11, unlike the other
34762 # libraries we check for below, so use a different variable.
34763 # John Interrante, Karl Berry
34764 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
34765$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
34766if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
34767 $as_echo_n "(cached) " >&6
34768else
34769 ac_check_lib_save_LIBS=$LIBS
34770LIBS="-lICE $X_EXTRA_LIBS $LIBS"
34771cat >conftest.$ac_ext <<_ACEOF
34772/* confdefs.h. */
34773_ACEOF
34774cat confdefs.h >>conftest.$ac_ext
34775cat >>conftest.$ac_ext <<_ACEOF
34776/* end confdefs.h. */
34777
34778/* Override any GCC internal prototype to avoid an error.
34779 Use char because int might match the return type of a GCC
34780 builtin and then its argument prototype would still apply. */
34781#ifdef __cplusplus
34782extern "C"
34783#endif
34784char IceConnectionNumber ();
34785int
34786main ()
34787{
34788return IceConnectionNumber ();
34789 ;
34790 return 0;
34791}
34792_ACEOF
34793rm -f conftest.$ac_objext conftest$ac_exeext
34794if { (ac_try="$ac_link"
34795case "(($ac_try" in
34796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34797 *) ac_try_echo=$ac_try;;
34798esac
34799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34800$as_echo "$ac_try_echo") >&5
34801 (eval "$ac_link") 2>conftest.er1
34802 ac_status=$?
34803 grep -v '^ *+' conftest.er1 >conftest.err
34804 rm -f conftest.er1
34805 cat conftest.err >&5
34806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807 (exit $ac_status); } && {
34808 test -z "$ac_c_werror_flag" ||
34809 test ! -s conftest.err
34810 } && test -s conftest$ac_exeext && {
34811 test "$cross_compiling" = yes ||
34812 $as_test_x conftest$ac_exeext
34813 }; then
34814 ac_cv_lib_ICE_IceConnectionNumber=yes
34815else
34816 $as_echo "$as_me: failed program was:" >&5
34817sed 's/^/| /' conftest.$ac_ext >&5
34818
34819 ac_cv_lib_ICE_IceConnectionNumber=no
34820fi
34821
34822rm -rf conftest.dSYM
34823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34824 conftest$ac_exeext conftest.$ac_ext
34825LIBS=$ac_check_lib_save_LIBS
34826fi
34827{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
34828$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
34829if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
34830 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
34831fi
34832
34833 LDFLAGS=$ac_save_LDFLAGS
34834
34835fi
34836
34837if test "$no_x" != 'yes'; then
34838 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
34839$as_echo "-------------------------------------------------------------" >&6; }
34840 { $as_echo "$as_me:$LINENO: checking for X11" >&5
34841$as_echo_n "checking for X11... " >&6; }
34842 { $as_echo "$as_me:$LINENO: result: " >&5
34843$as_echo "" >&6; }
34844 LDFLAGS="$LDFLAGS $X_LIBS"
34845 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
34846 LIBS="$X11_LIBS $LIBS"
34847 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
34848
34849
34850cat >>confdefs.h <<\_ACEOF
34851#define X11_DELEGATE 1
34852_ACEOF
34853
34854 #
34855 # Check for X11 shared memory extension
34856 #
34857 # shmctl is required to support the shared memory extension
34858 { $as_echo "$as_me:$LINENO: checking for shmctl" >&5
34859$as_echo_n "checking for shmctl... " >&6; }
34860if test "${ac_cv_func_shmctl+set}" = set; then
34861 $as_echo_n "(cached) " >&6
34862else
34863 cat >conftest.$ac_ext <<_ACEOF
34864/* confdefs.h. */
34865_ACEOF
34866cat confdefs.h >>conftest.$ac_ext
34867cat >>conftest.$ac_ext <<_ACEOF
34868/* end confdefs.h. */
34869/* Define shmctl to an innocuous variant, in case <limits.h> declares shmctl.
34870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34871#define shmctl innocuous_shmctl
34872
34873/* System header to define __stub macros and hopefully few prototypes,
34874 which can conflict with char shmctl (); below.
34875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34876 <limits.h> exists even on freestanding compilers. */
34877
34878#ifdef __STDC__
34879# include <limits.h>
34880#else
34881# include <assert.h>
34882#endif
34883
34884#undef shmctl
34885
34886/* Override any GCC internal prototype to avoid an error.
34887 Use char because int might match the return type of a GCC
34888 builtin and then its argument prototype would still apply. */
34889#ifdef __cplusplus
34890extern "C"
34891#endif
34892char shmctl ();
34893/* The GNU C library defines this for functions which it implements
34894 to always fail with ENOSYS. Some functions are actually named
34895 something starting with __ and the normal name is an alias. */
34896#if defined __stub_shmctl || defined __stub___shmctl
34897choke me
34898#endif
34899
34900int
34901main ()
34902{
34903return shmctl ();
34904 ;
34905 return 0;
34906}
34907_ACEOF
34908rm -f conftest.$ac_objext conftest$ac_exeext
34909if { (ac_try="$ac_link"
34910case "(($ac_try" in
34911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34912 *) ac_try_echo=$ac_try;;
34913esac
34914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34915$as_echo "$ac_try_echo") >&5
34916 (eval "$ac_link") 2>conftest.er1
34917 ac_status=$?
34918 grep -v '^ *+' conftest.er1 >conftest.err
34919 rm -f conftest.er1
34920 cat conftest.err >&5
34921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); } && {
34923 test -z "$ac_c_werror_flag" ||
34924 test ! -s conftest.err
34925 } && test -s conftest$ac_exeext && {
34926 test "$cross_compiling" = yes ||
34927 $as_test_x conftest$ac_exeext
34928 }; then
34929 ac_cv_func_shmctl=yes
34930else
34931 $as_echo "$as_me: failed program was:" >&5
34932sed 's/^/| /' conftest.$ac_ext >&5
34933
34934 ac_cv_func_shmctl=no
34935fi
34936
34937rm -rf conftest.dSYM
34938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34939 conftest$ac_exeext conftest.$ac_ext
34940fi
34941{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmctl" >&5
34942$as_echo "$ac_cv_func_shmctl" >&6; }
34943if test "x$ac_cv_func_shmctl" = x""yes; then
34944 have_shmctl='yes'
34945fi
34946
34947 if test "$have_shmctl" != 'yes'; then
34948 PERSIST_LIBS=$LIBS
34949 LIBS="$LIBS -lcygipc"
34950 cat >conftest.$ac_ext <<_ACEOF
34951/* confdefs.h. */
34952_ACEOF
34953cat confdefs.h >>conftest.$ac_ext
34954cat >>conftest.$ac_ext <<_ACEOF
34955/* end confdefs.h. */
34956
34957/* Override any GCC internal prototype to avoid an error.
34958 Use char because int might match the return type of a GCC
34959 builtin and then its argument prototype would still apply. */
34960#ifdef __cplusplus
34961extern "C"
34962#endif
34963char shmctl ();
34964int
34965main ()
34966{
34967return shmctl ();
34968 ;
34969 return 0;
34970}
34971_ACEOF
34972rm -f conftest.$ac_objext conftest$ac_exeext
34973if { (ac_try="$ac_link"
34974case "(($ac_try" in
34975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34976 *) ac_try_echo=$ac_try;;
34977esac
34978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34979$as_echo "$ac_try_echo") >&5
34980 (eval "$ac_link") 2>conftest.er1
34981 ac_status=$?
34982 grep -v '^ *+' conftest.er1 >conftest.err
34983 rm -f conftest.er1
34984 cat conftest.err >&5
34985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986 (exit $ac_status); } && {
34987 test -z "$ac_c_werror_flag" ||
34988 test ! -s conftest.err
34989 } && test -s conftest$ac_exeext && {
34990 test "$cross_compiling" = yes ||
34991 $as_test_x conftest$ac_exeext
34992 }; then
34993 have_shmctl='yes'; IPC_LIBS='-lcygipc'
34994else
34995 $as_echo "$as_me: failed program was:" >&5
34996sed 's/^/| /' conftest.$ac_ext >&5
34997
34998
34999fi
35000
35001rm -rf conftest.dSYM
35002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35003 conftest$ac_exeext conftest.$ac_ext
35004 LIBS=$PERSIST_LIBS
35005 fi
35006
35007 if test "$have_shmctl" = 'yes'; then
35008 { $as_echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
35009$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
35010if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
35011 $as_echo_n "(cached) " >&6
35012else
35013 ac_check_lib_save_LIBS=$LIBS
35014LIBS="-lXext $LIBS"
35015cat >conftest.$ac_ext <<_ACEOF
35016/* confdefs.h. */
35017_ACEOF
35018cat confdefs.h >>conftest.$ac_ext
35019cat >>conftest.$ac_ext <<_ACEOF
35020/* end confdefs.h. */
35021
35022/* Override any GCC internal prototype to avoid an error.
35023 Use char because int might match the return type of a GCC
35024 builtin and then its argument prototype would still apply. */
35025#ifdef __cplusplus
35026extern "C"
35027#endif
35028char XShmAttach ();
35029int
35030main ()
35031{
35032return XShmAttach ();
35033 ;
35034 return 0;
35035}
35036_ACEOF
35037rm -f conftest.$ac_objext conftest$ac_exeext
35038if { (ac_try="$ac_link"
35039case "(($ac_try" in
35040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35041 *) ac_try_echo=$ac_try;;
35042esac
35043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35044$as_echo "$ac_try_echo") >&5
35045 (eval "$ac_link") 2>conftest.er1
35046 ac_status=$?
35047 grep -v '^ *+' conftest.er1 >conftest.err
35048 rm -f conftest.er1
35049 cat conftest.err >&5
35050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051 (exit $ac_status); } && {
35052 test -z "$ac_c_werror_flag" ||
35053 test ! -s conftest.err
35054 } && test -s conftest$ac_exeext && {
35055 test "$cross_compiling" = yes ||
35056 $as_test_x conftest$ac_exeext
35057 }; then
35058 ac_cv_lib_Xext_XShmAttach=yes
35059else
35060 $as_echo "$as_me: failed program was:" >&5
35061sed 's/^/| /' conftest.$ac_ext >&5
35062
35063 ac_cv_lib_Xext_XShmAttach=no
35064fi
35065
35066rm -rf conftest.dSYM
35067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35068 conftest$ac_exeext conftest.$ac_ext
35069LIBS=$ac_check_lib_save_LIBS
35070fi
35071{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
35072$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
35073if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then
35074 XEXT_LIBS='-lXext' ;
35075cat >>confdefs.h <<\_ACEOF
35076#define HAVE_SHARED_MEMORY 1
35077_ACEOF
35078
35079fi
35080
35081 fi
35082
35083 #
35084 # Check for X11 shape extension
35085 #
35086 { $as_echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
35087$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
35088if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
35089 $as_echo_n "(cached) " >&6
35090else
35091 ac_check_lib_save_LIBS=$LIBS
35092LIBS="-lXext $LIBS"
35093cat >conftest.$ac_ext <<_ACEOF
35094/* confdefs.h. */
35095_ACEOF
35096cat confdefs.h >>conftest.$ac_ext
35097cat >>conftest.$ac_ext <<_ACEOF
35098/* end confdefs.h. */
35099
35100/* Override any GCC internal prototype to avoid an error.
35101 Use char because int might match the return type of a GCC
35102 builtin and then its argument prototype would still apply. */
35103#ifdef __cplusplus
35104extern "C"
35105#endif
35106char XShapeCombineMask ();
35107int
35108main ()
35109{
35110return XShapeCombineMask ();
35111 ;
35112 return 0;
35113}
35114_ACEOF
35115rm -f conftest.$ac_objext conftest$ac_exeext
35116if { (ac_try="$ac_link"
35117case "(($ac_try" in
35118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35119 *) ac_try_echo=$ac_try;;
35120esac
35121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35122$as_echo "$ac_try_echo") >&5
35123 (eval "$ac_link") 2>conftest.er1
35124 ac_status=$?
35125 grep -v '^ *+' conftest.er1 >conftest.err
35126 rm -f conftest.er1
35127 cat conftest.err >&5
35128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35129 (exit $ac_status); } && {
35130 test -z "$ac_c_werror_flag" ||
35131 test ! -s conftest.err
35132 } && test -s conftest$ac_exeext && {
35133 test "$cross_compiling" = yes ||
35134 $as_test_x conftest$ac_exeext
35135 }; then
35136 ac_cv_lib_Xext_XShapeCombineMask=yes
35137else
35138 $as_echo "$as_me: failed program was:" >&5
35139sed 's/^/| /' conftest.$ac_ext >&5
35140
35141 ac_cv_lib_Xext_XShapeCombineMask=no
35142fi
35143
35144rm -rf conftest.dSYM
35145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35146 conftest$ac_exeext conftest.$ac_ext
35147LIBS=$ac_check_lib_save_LIBS
35148fi
35149{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
35150$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
35151if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then
35152 XEXT_LIBS='-lXext' ;
35153cat >>confdefs.h <<\_ACEOF
35154#define HAVE_SHAPE 1
35155_ACEOF
35156
35157fi
35158
35159 { $as_echo "$as_me:$LINENO: checking for XtSetEventDispatcher in -lXt" >&5
35160$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
35161if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then
35162 $as_echo_n "(cached) " >&6
35163else
35164 ac_check_lib_save_LIBS=$LIBS
35165LIBS="-lXt $LIBS"
35166cat >conftest.$ac_ext <<_ACEOF
35167/* confdefs.h. */
35168_ACEOF
35169cat confdefs.h >>conftest.$ac_ext
35170cat >>conftest.$ac_ext <<_ACEOF
35171/* end confdefs.h. */
35172
35173/* Override any GCC internal prototype to avoid an error.
35174 Use char because int might match the return type of a GCC
35175 builtin and then its argument prototype would still apply. */
35176#ifdef __cplusplus
35177extern "C"
35178#endif
35179char XtSetEventDispatcher ();
35180int
35181main ()
35182{
35183return XtSetEventDispatcher ();
35184 ;
35185 return 0;
35186}
35187_ACEOF
35188rm -f conftest.$ac_objext conftest$ac_exeext
35189if { (ac_try="$ac_link"
35190case "(($ac_try" in
35191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35192 *) ac_try_echo=$ac_try;;
35193esac
35194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35195$as_echo "$ac_try_echo") >&5
35196 (eval "$ac_link") 2>conftest.er1
35197 ac_status=$?
35198 grep -v '^ *+' conftest.er1 >conftest.err
35199 rm -f conftest.er1
35200 cat conftest.err >&5
35201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35202 (exit $ac_status); } && {
35203 test -z "$ac_c_werror_flag" ||
35204 test ! -s conftest.err
35205 } && test -s conftest$ac_exeext && {
35206 test "$cross_compiling" = yes ||
35207 $as_test_x conftest$ac_exeext
35208 }; then
35209 ac_cv_lib_Xt_XtSetEventDispatcher=yes
35210else
35211 $as_echo "$as_me: failed program was:" >&5
35212sed 's/^/| /' conftest.$ac_ext >&5
35213
35214 ac_cv_lib_Xt_XtSetEventDispatcher=no
35215fi
35216
35217rm -rf conftest.dSYM
35218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35219 conftest$ac_exeext conftest.$ac_ext
35220LIBS=$ac_check_lib_save_LIBS
35221fi
35222{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
35223$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
35224if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then
35225 XT_LIBS='-lXt'
35226fi
35227
35228 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
35229fi
35230if test "$no_x" != 'yes'; then
35231 have_x='yes'
35232else
35233 have_x='no'
35234fi
35235 if test "$have_x" = 'yes'; then
35236 X11_DELEGATE_TRUE=
35237 X11_DELEGATE_FALSE='#'
35238else
35239 X11_DELEGATE_TRUE='#'
35240 X11_DELEGATE_FALSE=
35241fi
35242
35243
35244
35245
35246
35247#
35248# Check for ZLIB
35249#
35250
35251# Check whether --with-zlib was given.
35252if test "${with_zlib+set}" = set; then
35253 withval=$with_zlib; with_zlib=$withval
35254else
35255 with_zlib='yes'
35256fi
35257
35258
35259if test "$with_zlib" != 'yes'; then
35260 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
35261fi
35262
35263have_zlib='no'
35264ZLIB_LIBS=''
35265if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
35266 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
35267$as_echo "-------------------------------------------------------------" >&6; }
35268 { $as_echo "$as_me:$LINENO: checking for ZLIB" >&5
35269$as_echo_n "checking for ZLIB... " >&6; }
35270 { $as_echo "$as_me:$LINENO: result: " >&5
35271$as_echo "" >&6; }
35272 ZLIB_LIBS=''
35273 failed=0
35274 passed=0
35275 if test "${ac_cv_header_zconf_h+set}" = set; then
35276 { $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
35277$as_echo_n "checking for zconf.h... " >&6; }
35278if test "${ac_cv_header_zconf_h+set}" = set; then
35279 $as_echo_n "(cached) " >&6
35280fi
35281{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
35282$as_echo "$ac_cv_header_zconf_h" >&6; }
35283else
35284 # Is the header compilable?
35285{ $as_echo "$as_me:$LINENO: checking zconf.h usability" >&5
35286$as_echo_n "checking zconf.h usability... " >&6; }
35287cat >conftest.$ac_ext <<_ACEOF
35288/* confdefs.h. */
35289_ACEOF
35290cat confdefs.h >>conftest.$ac_ext
35291cat >>conftest.$ac_ext <<_ACEOF
35292/* end confdefs.h. */
35293$ac_includes_default
35294#include <zconf.h>
35295_ACEOF
35296rm -f conftest.$ac_objext
35297if { (ac_try="$ac_compile"
35298case "(($ac_try" in
35299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35300 *) ac_try_echo=$ac_try;;
35301esac
35302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35303$as_echo "$ac_try_echo") >&5
35304 (eval "$ac_compile") 2>conftest.er1
35305 ac_status=$?
35306 grep -v '^ *+' conftest.er1 >conftest.err
35307 rm -f conftest.er1
35308 cat conftest.err >&5
35309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35310 (exit $ac_status); } && {
35311 test -z "$ac_c_werror_flag" ||
35312 test ! -s conftest.err
35313 } && test -s conftest.$ac_objext; then
35314 ac_header_compiler=yes
35315else
35316 $as_echo "$as_me: failed program was:" >&5
35317sed 's/^/| /' conftest.$ac_ext >&5
35318
35319 ac_header_compiler=no
35320fi
35321
35322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35323{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35324$as_echo "$ac_header_compiler" >&6; }
35325
35326# Is the header present?
35327{ $as_echo "$as_me:$LINENO: checking zconf.h presence" >&5
35328$as_echo_n "checking zconf.h presence... " >&6; }
35329cat >conftest.$ac_ext <<_ACEOF
35330/* confdefs.h. */
35331_ACEOF
35332cat confdefs.h >>conftest.$ac_ext
35333cat >>conftest.$ac_ext <<_ACEOF
35334/* end confdefs.h. */
35335#include <zconf.h>
35336_ACEOF
35337if { (ac_try="$ac_cpp conftest.$ac_ext"
35338case "(($ac_try" in
35339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35340 *) ac_try_echo=$ac_try;;
35341esac
35342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35343$as_echo "$ac_try_echo") >&5
35344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35345 ac_status=$?
35346 grep -v '^ *+' conftest.er1 >conftest.err
35347 rm -f conftest.er1
35348 cat conftest.err >&5
35349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); } >/dev/null && {
35351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35352 test ! -s conftest.err
35353 }; then
35354 ac_header_preproc=yes
35355else
35356 $as_echo "$as_me: failed program was:" >&5
35357sed 's/^/| /' conftest.$ac_ext >&5
35358
35359 ac_header_preproc=no
35360fi
35361
35362rm -f conftest.err conftest.$ac_ext
35363{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35364$as_echo "$ac_header_preproc" >&6; }
35365
35366# So? What about this header?
35367case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35368 yes:no: )
35369 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&5
35370$as_echo "$as_me: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35371 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the compiler's result" >&5
35372$as_echo "$as_me: WARNING: zconf.h: proceeding with the compiler's result" >&2;}
35373 ac_header_preproc=yes
35374 ;;
35375 no:yes:* )
35376 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: present but cannot be compiled" >&5
35377$as_echo "$as_me: WARNING: zconf.h: present but cannot be compiled" >&2;}
35378 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: check for missing prerequisite headers?" >&5
35379$as_echo "$as_me: WARNING: zconf.h: check for missing prerequisite headers?" >&2;}
35380 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: see the Autoconf documentation" >&5
35381$as_echo "$as_me: WARNING: zconf.h: see the Autoconf documentation" >&2;}
35382 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&5
35383$as_echo "$as_me: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&2;}
35384 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the preprocessor's result" >&5
35385$as_echo "$as_me: WARNING: zconf.h: proceeding with the preprocessor's result" >&2;}
35386 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: in the future, the compiler will take precedence" >&5
35387$as_echo "$as_me: WARNING: zconf.h: in the future, the compiler will take precedence" >&2;}
35388 ( cat <<\_ASBOX
35389## ----------------------------------------- ##
35390## Report this to http://www.imagemagick.org ##
35391## ----------------------------------------- ##
35392_ASBOX
35393 ) | sed "s/^/$as_me: WARNING: /" >&2
35394 ;;
35395esac
35396{ $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
35397$as_echo_n "checking for zconf.h... " >&6; }
35398if test "${ac_cv_header_zconf_h+set}" = set; then
35399 $as_echo_n "(cached) " >&6
35400else
35401 ac_cv_header_zconf_h=$ac_header_preproc
35402fi
35403{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
35404$as_echo "$ac_cv_header_zconf_h" >&6; }
35405
35406fi
35407if test "x$ac_cv_header_zconf_h" = x""yes; then
35408 passed=`expr $passed + 1`
35409else
35410 failed=`expr $failed + 1`
35411fi
35412
35413
35414 if test "${ac_cv_header_zlib_h+set}" = set; then
35415 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
35416$as_echo_n "checking for zlib.h... " >&6; }
35417if test "${ac_cv_header_zlib_h+set}" = set; then
35418 $as_echo_n "(cached) " >&6
35419fi
35420{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
35421$as_echo "$ac_cv_header_zlib_h" >&6; }
35422else
35423 # Is the header compilable?
35424{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
35425$as_echo_n "checking zlib.h usability... " >&6; }
35426cat >conftest.$ac_ext <<_ACEOF
35427/* confdefs.h. */
35428_ACEOF
35429cat confdefs.h >>conftest.$ac_ext
35430cat >>conftest.$ac_ext <<_ACEOF
35431/* end confdefs.h. */
35432$ac_includes_default
35433#include <zlib.h>
35434_ACEOF
35435rm -f conftest.$ac_objext
35436if { (ac_try="$ac_compile"
35437case "(($ac_try" in
35438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35439 *) ac_try_echo=$ac_try;;
35440esac
35441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35442$as_echo "$ac_try_echo") >&5
35443 (eval "$ac_compile") 2>conftest.er1
35444 ac_status=$?
35445 grep -v '^ *+' conftest.er1 >conftest.err
35446 rm -f conftest.er1
35447 cat conftest.err >&5
35448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35449 (exit $ac_status); } && {
35450 test -z "$ac_c_werror_flag" ||
35451 test ! -s conftest.err
35452 } && test -s conftest.$ac_objext; then
35453 ac_header_compiler=yes
35454else
35455 $as_echo "$as_me: failed program was:" >&5
35456sed 's/^/| /' conftest.$ac_ext >&5
35457
35458 ac_header_compiler=no
35459fi
35460
35461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35462{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35463$as_echo "$ac_header_compiler" >&6; }
35464
35465# Is the header present?
35466{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
35467$as_echo_n "checking zlib.h presence... " >&6; }
35468cat >conftest.$ac_ext <<_ACEOF
35469/* confdefs.h. */
35470_ACEOF
35471cat confdefs.h >>conftest.$ac_ext
35472cat >>conftest.$ac_ext <<_ACEOF
35473/* end confdefs.h. */
35474#include <zlib.h>
35475_ACEOF
35476if { (ac_try="$ac_cpp conftest.$ac_ext"
35477case "(($ac_try" in
35478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35479 *) ac_try_echo=$ac_try;;
35480esac
35481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35482$as_echo "$ac_try_echo") >&5
35483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35484 ac_status=$?
35485 grep -v '^ *+' conftest.er1 >conftest.err
35486 rm -f conftest.er1
35487 cat conftest.err >&5
35488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489 (exit $ac_status); } >/dev/null && {
35490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35491 test ! -s conftest.err
35492 }; then
35493 ac_header_preproc=yes
35494else
35495 $as_echo "$as_me: failed program was:" >&5
35496sed 's/^/| /' conftest.$ac_ext >&5
35497
35498 ac_header_preproc=no
35499fi
35500
35501rm -f conftest.err conftest.$ac_ext
35502{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35503$as_echo "$ac_header_preproc" >&6; }
35504
35505# So? What about this header?
35506case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35507 yes:no: )
35508 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
35509$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35510 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
35511$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
35512 ac_header_preproc=yes
35513 ;;
35514 no:yes:* )
35515 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
35516$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
35517 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
35518$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
35519 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
35520$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
35521 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
35522$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
35523 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
35524$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
35525 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
35526$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
35527 ( cat <<\_ASBOX
35528## ----------------------------------------- ##
35529## Report this to http://www.imagemagick.org ##
35530## ----------------------------------------- ##
35531_ASBOX
35532 ) | sed "s/^/$as_me: WARNING: /" >&2
35533 ;;
35534esac
35535{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
35536$as_echo_n "checking for zlib.h... " >&6; }
35537if test "${ac_cv_header_zlib_h+set}" = set; then
35538 $as_echo_n "(cached) " >&6
35539else
35540 ac_cv_header_zlib_h=$ac_header_preproc
35541fi
35542{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
35543$as_echo "$ac_cv_header_zlib_h" >&6; }
35544
35545fi
35546if test "x$ac_cv_header_zlib_h" = x""yes; then
35547 passed=`expr $passed + 1`
35548else
35549 failed=`expr $failed + 1`
35550fi
35551
35552
35553 { $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5
35554$as_echo_n "checking for compress in -lz... " >&6; }
35555if test "${ac_cv_lib_z_compress+set}" = set; then
35556 $as_echo_n "(cached) " >&6
35557else
35558 ac_check_lib_save_LIBS=$LIBS
35559LIBS="-lz $LIBS"
35560cat >conftest.$ac_ext <<_ACEOF
35561/* confdefs.h. */
35562_ACEOF
35563cat confdefs.h >>conftest.$ac_ext
35564cat >>conftest.$ac_ext <<_ACEOF
35565/* end confdefs.h. */
35566
35567/* Override any GCC internal prototype to avoid an error.
35568 Use char because int might match the return type of a GCC
35569 builtin and then its argument prototype would still apply. */
35570#ifdef __cplusplus
35571extern "C"
35572#endif
35573char compress ();
35574int
35575main ()
35576{
35577return compress ();
35578 ;
35579 return 0;
35580}
35581_ACEOF
35582rm -f conftest.$ac_objext conftest$ac_exeext
35583if { (ac_try="$ac_link"
35584case "(($ac_try" in
35585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35586 *) ac_try_echo=$ac_try;;
35587esac
35588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35589$as_echo "$ac_try_echo") >&5
35590 (eval "$ac_link") 2>conftest.er1
35591 ac_status=$?
35592 grep -v '^ *+' conftest.er1 >conftest.err
35593 rm -f conftest.er1
35594 cat conftest.err >&5
35595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596 (exit $ac_status); } && {
35597 test -z "$ac_c_werror_flag" ||
35598 test ! -s conftest.err
35599 } && test -s conftest$ac_exeext && {
35600 test "$cross_compiling" = yes ||
35601 $as_test_x conftest$ac_exeext
35602 }; then
35603 ac_cv_lib_z_compress=yes
35604else
35605 $as_echo "$as_me: failed program was:" >&5
35606sed 's/^/| /' conftest.$ac_ext >&5
35607
35608 ac_cv_lib_z_compress=no
35609fi
35610
35611rm -rf conftest.dSYM
35612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35613 conftest$ac_exeext conftest.$ac_ext
35614LIBS=$ac_check_lib_save_LIBS
35615fi
35616{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
35617$as_echo "$ac_cv_lib_z_compress" >&6; }
35618if test "x$ac_cv_lib_z_compress" = x""yes; then
35619 passed=`expr $passed + 1`
35620else
35621 failed=`expr $failed + 1`
35622fi
35623
35624 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
35625$as_echo_n "checking for uncompress in -lz... " >&6; }
35626if test "${ac_cv_lib_z_uncompress+set}" = set; then
35627 $as_echo_n "(cached) " >&6
35628else
35629 ac_check_lib_save_LIBS=$LIBS
35630LIBS="-lz $LIBS"
35631cat >conftest.$ac_ext <<_ACEOF
35632/* confdefs.h. */
35633_ACEOF
35634cat confdefs.h >>conftest.$ac_ext
35635cat >>conftest.$ac_ext <<_ACEOF
35636/* end confdefs.h. */
35637
35638/* Override any GCC internal prototype to avoid an error.
35639 Use char because int might match the return type of a GCC
35640 builtin and then its argument prototype would still apply. */
35641#ifdef __cplusplus
35642extern "C"
35643#endif
35644char uncompress ();
35645int
35646main ()
35647{
35648return uncompress ();
35649 ;
35650 return 0;
35651}
35652_ACEOF
35653rm -f conftest.$ac_objext conftest$ac_exeext
35654if { (ac_try="$ac_link"
35655case "(($ac_try" in
35656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35657 *) ac_try_echo=$ac_try;;
35658esac
35659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35660$as_echo "$ac_try_echo") >&5
35661 (eval "$ac_link") 2>conftest.er1
35662 ac_status=$?
35663 grep -v '^ *+' conftest.er1 >conftest.err
35664 rm -f conftest.er1
35665 cat conftest.err >&5
35666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35667 (exit $ac_status); } && {
35668 test -z "$ac_c_werror_flag" ||
35669 test ! -s conftest.err
35670 } && test -s conftest$ac_exeext && {
35671 test "$cross_compiling" = yes ||
35672 $as_test_x conftest$ac_exeext
35673 }; then
35674 ac_cv_lib_z_uncompress=yes
35675else
35676 $as_echo "$as_me: failed program was:" >&5
35677sed 's/^/| /' conftest.$ac_ext >&5
35678
35679 ac_cv_lib_z_uncompress=no
35680fi
35681
35682rm -rf conftest.dSYM
35683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35684 conftest$ac_exeext conftest.$ac_ext
35685LIBS=$ac_check_lib_save_LIBS
35686fi
35687{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
35688$as_echo "$ac_cv_lib_z_uncompress" >&6; }
35689if test "x$ac_cv_lib_z_uncompress" = x""yes; then
35690 passed=`expr $passed + 1`
35691else
35692 failed=`expr $failed + 1`
35693fi
35694
35695 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
35696$as_echo_n "checking for deflate in -lz... " >&6; }
35697if test "${ac_cv_lib_z_deflate+set}" = set; then
35698 $as_echo_n "(cached) " >&6
35699else
35700 ac_check_lib_save_LIBS=$LIBS
35701LIBS="-lz $LIBS"
35702cat >conftest.$ac_ext <<_ACEOF
35703/* confdefs.h. */
35704_ACEOF
35705cat confdefs.h >>conftest.$ac_ext
35706cat >>conftest.$ac_ext <<_ACEOF
35707/* end confdefs.h. */
35708
35709/* Override any GCC internal prototype to avoid an error.
35710 Use char because int might match the return type of a GCC
35711 builtin and then its argument prototype would still apply. */
35712#ifdef __cplusplus
35713extern "C"
35714#endif
35715char deflate ();
35716int
35717main ()
35718{
35719return deflate ();
35720 ;
35721 return 0;
35722}
35723_ACEOF
35724rm -f conftest.$ac_objext conftest$ac_exeext
35725if { (ac_try="$ac_link"
35726case "(($ac_try" in
35727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35728 *) ac_try_echo=$ac_try;;
35729esac
35730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35731$as_echo "$ac_try_echo") >&5
35732 (eval "$ac_link") 2>conftest.er1
35733 ac_status=$?
35734 grep -v '^ *+' conftest.er1 >conftest.err
35735 rm -f conftest.er1
35736 cat conftest.err >&5
35737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738 (exit $ac_status); } && {
35739 test -z "$ac_c_werror_flag" ||
35740 test ! -s conftest.err
35741 } && test -s conftest$ac_exeext && {
35742 test "$cross_compiling" = yes ||
35743 $as_test_x conftest$ac_exeext
35744 }; then
35745 ac_cv_lib_z_deflate=yes
35746else
35747 $as_echo "$as_me: failed program was:" >&5
35748sed 's/^/| /' conftest.$ac_ext >&5
35749
35750 ac_cv_lib_z_deflate=no
35751fi
35752
35753rm -rf conftest.dSYM
35754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35755 conftest$ac_exeext conftest.$ac_ext
35756LIBS=$ac_check_lib_save_LIBS
35757fi
35758{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
35759$as_echo "$ac_cv_lib_z_deflate" >&6; }
35760if test "x$ac_cv_lib_z_deflate" = x""yes; then
35761 passed=`expr $passed + 1`
35762else
35763 failed=`expr $failed + 1`
35764fi
35765
35766 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
35767$as_echo_n "checking for inflate in -lz... " >&6; }
35768if test "${ac_cv_lib_z_inflate+set}" = set; then
35769 $as_echo_n "(cached) " >&6
35770else
35771 ac_check_lib_save_LIBS=$LIBS
35772LIBS="-lz $LIBS"
35773cat >conftest.$ac_ext <<_ACEOF
35774/* confdefs.h. */
35775_ACEOF
35776cat confdefs.h >>conftest.$ac_ext
35777cat >>conftest.$ac_ext <<_ACEOF
35778/* end confdefs.h. */
35779
35780/* Override any GCC internal prototype to avoid an error.
35781 Use char because int might match the return type of a GCC
35782 builtin and then its argument prototype would still apply. */
35783#ifdef __cplusplus
35784extern "C"
35785#endif
35786char inflate ();
35787int
35788main ()
35789{
35790return inflate ();
35791 ;
35792 return 0;
35793}
35794_ACEOF
35795rm -f conftest.$ac_objext conftest$ac_exeext
35796if { (ac_try="$ac_link"
35797case "(($ac_try" in
35798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35799 *) ac_try_echo=$ac_try;;
35800esac
35801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35802$as_echo "$ac_try_echo") >&5
35803 (eval "$ac_link") 2>conftest.er1
35804 ac_status=$?
35805 grep -v '^ *+' conftest.er1 >conftest.err
35806 rm -f conftest.er1
35807 cat conftest.err >&5
35808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809 (exit $ac_status); } && {
35810 test -z "$ac_c_werror_flag" ||
35811 test ! -s conftest.err
35812 } && test -s conftest$ac_exeext && {
35813 test "$cross_compiling" = yes ||
35814 $as_test_x conftest$ac_exeext
35815 }; then
35816 ac_cv_lib_z_inflate=yes
35817else
35818 $as_echo "$as_me: failed program was:" >&5
35819sed 's/^/| /' conftest.$ac_ext >&5
35820
35821 ac_cv_lib_z_inflate=no
35822fi
35823
35824rm -rf conftest.dSYM
35825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35826 conftest$ac_exeext conftest.$ac_ext
35827LIBS=$ac_check_lib_save_LIBS
35828fi
35829{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
35830$as_echo "$ac_cv_lib_z_inflate" >&6; }
35831if test "x$ac_cv_lib_z_inflate" = x""yes; then
35832 passed=`expr $passed + 1`
35833else
35834 failed=`expr $failed + 1`
35835fi
35836
35837 { $as_echo "$as_me:$LINENO: checking for gzseek in -lz" >&5
35838$as_echo_n "checking for gzseek in -lz... " >&6; }
35839if test "${ac_cv_lib_z_gzseek+set}" = set; then
35840 $as_echo_n "(cached) " >&6
35841else
35842 ac_check_lib_save_LIBS=$LIBS
35843LIBS="-lz $LIBS"
35844cat >conftest.$ac_ext <<_ACEOF
35845/* confdefs.h. */
35846_ACEOF
35847cat confdefs.h >>conftest.$ac_ext
35848cat >>conftest.$ac_ext <<_ACEOF
35849/* end confdefs.h. */
35850
35851/* Override any GCC internal prototype to avoid an error.
35852 Use char because int might match the return type of a GCC
35853 builtin and then its argument prototype would still apply. */
35854#ifdef __cplusplus
35855extern "C"
35856#endif
35857char gzseek ();
35858int
35859main ()
35860{
35861return gzseek ();
35862 ;
35863 return 0;
35864}
35865_ACEOF
35866rm -f conftest.$ac_objext conftest$ac_exeext
35867if { (ac_try="$ac_link"
35868case "(($ac_try" in
35869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35870 *) ac_try_echo=$ac_try;;
35871esac
35872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35873$as_echo "$ac_try_echo") >&5
35874 (eval "$ac_link") 2>conftest.er1
35875 ac_status=$?
35876 grep -v '^ *+' conftest.er1 >conftest.err
35877 rm -f conftest.er1
35878 cat conftest.err >&5
35879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); } && {
35881 test -z "$ac_c_werror_flag" ||
35882 test ! -s conftest.err
35883 } && test -s conftest$ac_exeext && {
35884 test "$cross_compiling" = yes ||
35885 $as_test_x conftest$ac_exeext
35886 }; then
35887 ac_cv_lib_z_gzseek=yes
35888else
35889 $as_echo "$as_me: failed program was:" >&5
35890sed 's/^/| /' conftest.$ac_ext >&5
35891
35892 ac_cv_lib_z_gzseek=no
35893fi
35894
35895rm -rf conftest.dSYM
35896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35897 conftest$ac_exeext conftest.$ac_ext
35898LIBS=$ac_check_lib_save_LIBS
35899fi
35900{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzseek" >&5
35901$as_echo "$ac_cv_lib_z_gzseek" >&6; }
35902if test "x$ac_cv_lib_z_gzseek" = x""yes; then
35903 passed=`expr $passed + 1`
35904else
35905 failed=`expr $failed + 1`
35906fi
35907
35908 { $as_echo "$as_me:$LINENO: checking for gztell in -lz" >&5
35909$as_echo_n "checking for gztell in -lz... " >&6; }
35910if test "${ac_cv_lib_z_gztell+set}" = set; then
35911 $as_echo_n "(cached) " >&6
35912else
35913 ac_check_lib_save_LIBS=$LIBS
35914LIBS="-lz $LIBS"
35915cat >conftest.$ac_ext <<_ACEOF
35916/* confdefs.h. */
35917_ACEOF
35918cat confdefs.h >>conftest.$ac_ext
35919cat >>conftest.$ac_ext <<_ACEOF
35920/* end confdefs.h. */
35921
35922/* Override any GCC internal prototype to avoid an error.
35923 Use char because int might match the return type of a GCC
35924 builtin and then its argument prototype would still apply. */
35925#ifdef __cplusplus
35926extern "C"
35927#endif
35928char gztell ();
35929int
35930main ()
35931{
35932return gztell ();
35933 ;
35934 return 0;
35935}
35936_ACEOF
35937rm -f conftest.$ac_objext conftest$ac_exeext
35938if { (ac_try="$ac_link"
35939case "(($ac_try" in
35940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35941 *) ac_try_echo=$ac_try;;
35942esac
35943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35944$as_echo "$ac_try_echo") >&5
35945 (eval "$ac_link") 2>conftest.er1
35946 ac_status=$?
35947 grep -v '^ *+' conftest.er1 >conftest.err
35948 rm -f conftest.er1
35949 cat conftest.err >&5
35950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35951 (exit $ac_status); } && {
35952 test -z "$ac_c_werror_flag" ||
35953 test ! -s conftest.err
35954 } && test -s conftest$ac_exeext && {
35955 test "$cross_compiling" = yes ||
35956 $as_test_x conftest$ac_exeext
35957 }; then
35958 ac_cv_lib_z_gztell=yes
35959else
35960 $as_echo "$as_me: failed program was:" >&5
35961sed 's/^/| /' conftest.$ac_ext >&5
35962
35963 ac_cv_lib_z_gztell=no
35964fi
35965
35966rm -rf conftest.dSYM
35967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35968 conftest$ac_exeext conftest.$ac_ext
35969LIBS=$ac_check_lib_save_LIBS
35970fi
35971{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gztell" >&5
35972$as_echo "$ac_cv_lib_z_gztell" >&6; }
35973if test "x$ac_cv_lib_z_gztell" = x""yes; then
35974 passed=`expr $passed + 1`
35975else
35976 failed=`expr $failed + 1`
35977fi
35978
35979 { $as_echo "$as_me:$LINENO: checking if ZLIB package is complete" >&5
35980$as_echo_n "checking if ZLIB package is complete... " >&6; }
35981 if test $passed -gt 0; then
35982 if test $failed -gt 0; then
35983 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
35984$as_echo "no -- some components failed test" >&6; }
35985 have_zlib='no (failed tests)'
35986 else
35987 ZLIB_LIBS='-lz'
35988 LIBS="$ZLIB_LIBS $LIBS"
35989
35990cat >>confdefs.h <<\_ACEOF
35991#define ZLIB_DELEGATE 1
35992_ACEOF
35993
35994 { $as_echo "$as_me:$LINENO: result: yes" >&5
35995$as_echo "yes" >&6; }
35996 have_zlib='yes'
35997 fi
35998 else
35999 { $as_echo "$as_me:$LINENO: result: no" >&5
36000$as_echo "no" >&6; }
36001 fi
36002fi
36003 if test "$have_zlib" = 'yes'; then
36004 ZLIB_DELEGATE_TRUE=
36005 ZLIB_DELEGATE_FALSE='#'
36006else
36007 ZLIB_DELEGATE_TRUE='#'
36008 ZLIB_DELEGATE_FALSE=
36009fi
36010
36011
36012
36013#
36014# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
36015#
36016LIB_DL=''
36017if test "$enable_profiling" = 'yes'; then
36018 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36019$as_echo_n "checking for dlopen in -ldl... " >&6; }
36020if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36021 $as_echo_n "(cached) " >&6
36022else
36023 ac_check_lib_save_LIBS=$LIBS
36024LIBS="-ldl $LIBS"
36025cat >conftest.$ac_ext <<_ACEOF
36026/* confdefs.h. */
36027_ACEOF
36028cat confdefs.h >>conftest.$ac_ext
36029cat >>conftest.$ac_ext <<_ACEOF
36030/* end confdefs.h. */
36031
36032/* Override any GCC internal prototype to avoid an error.
36033 Use char because int might match the return type of a GCC
36034 builtin and then its argument prototype would still apply. */
36035#ifdef __cplusplus
36036extern "C"
36037#endif
36038char dlopen ();
36039int
36040main ()
36041{
36042return dlopen ();
36043 ;
36044 return 0;
36045}
36046_ACEOF
36047rm -f conftest.$ac_objext conftest$ac_exeext
36048if { (ac_try="$ac_link"
36049case "(($ac_try" in
36050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36051 *) ac_try_echo=$ac_try;;
36052esac
36053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36054$as_echo "$ac_try_echo") >&5
36055 (eval "$ac_link") 2>conftest.er1
36056 ac_status=$?
36057 grep -v '^ *+' conftest.er1 >conftest.err
36058 rm -f conftest.er1
36059 cat conftest.err >&5
36060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061 (exit $ac_status); } && {
36062 test -z "$ac_c_werror_flag" ||
36063 test ! -s conftest.err
36064 } && test -s conftest$ac_exeext && {
36065 test "$cross_compiling" = yes ||
36066 $as_test_x conftest$ac_exeext
36067 }; then
36068 ac_cv_lib_dl_dlopen=yes
36069else
36070 $as_echo "$as_me: failed program was:" >&5
36071sed 's/^/| /' conftest.$ac_ext >&5
36072
36073 ac_cv_lib_dl_dlopen=no
36074fi
36075
36076rm -rf conftest.dSYM
36077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36078 conftest$ac_exeext conftest.$ac_ext
36079LIBS=$ac_check_lib_save_LIBS
36080fi
36081{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36082$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36083if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
36084 LIB_DL='-ldl'
36085fi
36086
36087 LIBS="$LIB_DL $LIBS"
36088fi
36089
36090
36091
36092#
36093# Check for Autotrace delegate library.
36094#
36095
36096# Check whether --with-autotrace was given.
36097if test "${with_autotrace+set}" = set; then
36098 withval=$with_autotrace; with_autotrace=$withval
36099else
36100 with_autotrace='no'
36101fi
36102
36103
36104if test "$with_autotrace" != 'yes'; then
36105 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
36106fi
36107
36108have_autotrace='no'
36109AUTOTRACE_CFLAGS=""
36110AUTOTRACE_LIBS=""
36111AUTOTRACE_PKG=""
36112if test "x$with_autotrace" = "xyes"; then
36113 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36114$as_echo "-------------------------------------------------------------" >&6; }
36115
36116pkg_failed=no
36117{ $as_echo "$as_me:$LINENO: checking for AUTOTRACE" >&5
36118$as_echo_n "checking for AUTOTRACE... " >&6; }
36119
36120if test -n "$AUTOTRACE_CFLAGS"; then
36121 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
36122 elif test -n "$PKG_CONFIG"; then
36123 if test -n "$PKG_CONFIG" && \
36124 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36125 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36126 ac_status=$?
36127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36128 (exit $ac_status); }; then
36129 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
36130else
36131 pkg_failed=yes
36132fi
36133 else
36134 pkg_failed=untried
36135fi
36136if test -n "$AUTOTRACE_LIBS"; then
36137 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
36138 elif test -n "$PKG_CONFIG"; then
36139 if test -n "$PKG_CONFIG" && \
36140 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36141 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36142 ac_status=$?
36143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36144 (exit $ac_status); }; then
36145 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
36146else
36147 pkg_failed=yes
36148fi
36149 else
36150 pkg_failed=untried
36151fi
36152
36153
36154
36155if test $pkg_failed = yes; then
36156
36157if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36158 _pkg_short_errors_supported=yes
36159else
36160 _pkg_short_errors_supported=no
36161fi
36162 if test $_pkg_short_errors_supported = yes; then
36163 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
36164 else
36165 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
36166 fi
36167 # Put the nasty error message in config.log where it belongs
36168 echo "$AUTOTRACE_PKG_ERRORS" >&5
36169
36170 { $as_echo "$as_me:$LINENO: result: no" >&5
36171$as_echo "no" >&6; }
36172 have_autotrace=no
36173elif test $pkg_failed = untried; then
36174 have_autotrace=no
36175else
36176 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
36177 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
36178 { $as_echo "$as_me:$LINENO: result: yes" >&5
36179$as_echo "yes" >&6; }
36180 have_autotrace=yes
36181fi
36182 { $as_echo "$as_me:$LINENO: result: " >&5
36183$as_echo "" >&6; }
36184fi
36185
36186if test "$have_autotrace" = 'yes'; then
36187 failed=0
36188
36189cat >>confdefs.h <<\_ACEOF
36190#define AUTOTRACE_DELEGATE 1
36191_ACEOF
36192
36193 if test "$with_modules" = 'no'; then
36194 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
36195 fi
36196fi
36197
36198 if test "$have_autotrace" = 'yes'; then
36199 AUTOTRACE_DELEGATE_TRUE=
36200 AUTOTRACE_DELEGATE_FALSE='#'
36201else
36202 AUTOTRACE_DELEGATE_TRUE='#'
36203 AUTOTRACE_DELEGATE_FALSE=
36204fi
36205
36206
36207
36208
36209
36210#
36211# Check for Display Postscript delegate library.
36212#
36213
36214# Check whether --with-dps was given.
36215if test "${with_dps+set}" = set; then
36216 withval=$with_dps; with_dps=$withval
36217else
36218 with_dps='yes'
36219fi
36220
36221
36222if test "$with_dps" != 'yes'; then
36223 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
36224fi
36225
36226have_dps='no'
36227DPS_LIBS=''
36228if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
36229 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36230$as_echo "-------------------------------------------------------------" >&6; }
36231 { $as_echo "$as_me:$LINENO: checking for DPS" >&5
36232$as_echo_n "checking for DPS... " >&6; }
36233 { $as_echo "$as_me:$LINENO: result: " >&5
36234$as_echo "" >&6; }
36235 failed=0
36236 passed=0
36237 PERSIST_CPPFLAGS="$CPPFLAGS"
36238 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
36239 if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
36240 { $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
36241$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
36242if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
36243 $as_echo_n "(cached) " >&6
36244fi
36245{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
36246$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
36247else
36248 # Is the header compilable?
36249{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h usability" >&5
36250$as_echo_n "checking DPS/dpsXclient.h usability... " >&6; }
36251cat >conftest.$ac_ext <<_ACEOF
36252/* confdefs.h. */
36253_ACEOF
36254cat confdefs.h >>conftest.$ac_ext
36255cat >>conftest.$ac_ext <<_ACEOF
36256/* end confdefs.h. */
36257$ac_includes_default
36258#include <DPS/dpsXclient.h>
36259_ACEOF
36260rm -f conftest.$ac_objext
36261if { (ac_try="$ac_compile"
36262case "(($ac_try" in
36263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36264 *) ac_try_echo=$ac_try;;
36265esac
36266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36267$as_echo "$ac_try_echo") >&5
36268 (eval "$ac_compile") 2>conftest.er1
36269 ac_status=$?
36270 grep -v '^ *+' conftest.er1 >conftest.err
36271 rm -f conftest.er1
36272 cat conftest.err >&5
36273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36274 (exit $ac_status); } && {
36275 test -z "$ac_c_werror_flag" ||
36276 test ! -s conftest.err
36277 } && test -s conftest.$ac_objext; then
36278 ac_header_compiler=yes
36279else
36280 $as_echo "$as_me: failed program was:" >&5
36281sed 's/^/| /' conftest.$ac_ext >&5
36282
36283 ac_header_compiler=no
36284fi
36285
36286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36287{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36288$as_echo "$ac_header_compiler" >&6; }
36289
36290# Is the header present?
36291{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h presence" >&5
36292$as_echo_n "checking DPS/dpsXclient.h presence... " >&6; }
36293cat >conftest.$ac_ext <<_ACEOF
36294/* confdefs.h. */
36295_ACEOF
36296cat confdefs.h >>conftest.$ac_ext
36297cat >>conftest.$ac_ext <<_ACEOF
36298/* end confdefs.h. */
36299#include <DPS/dpsXclient.h>
36300_ACEOF
36301if { (ac_try="$ac_cpp conftest.$ac_ext"
36302case "(($ac_try" in
36303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36304 *) ac_try_echo=$ac_try;;
36305esac
36306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36307$as_echo "$ac_try_echo") >&5
36308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36309 ac_status=$?
36310 grep -v '^ *+' conftest.er1 >conftest.err
36311 rm -f conftest.er1
36312 cat conftest.err >&5
36313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314 (exit $ac_status); } >/dev/null && {
36315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36316 test ! -s conftest.err
36317 }; then
36318 ac_header_preproc=yes
36319else
36320 $as_echo "$as_me: failed program was:" >&5
36321sed 's/^/| /' conftest.$ac_ext >&5
36322
36323 ac_header_preproc=no
36324fi
36325
36326rm -f conftest.err conftest.$ac_ext
36327{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36328$as_echo "$ac_header_preproc" >&6; }
36329
36330# So? What about this header?
36331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36332 yes:no: )
36333 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&5
36334$as_echo "$as_me: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36335 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&5
36336$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&2;}
36337 ac_header_preproc=yes
36338 ;;
36339 no:yes:* )
36340 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&5
36341$as_echo "$as_me: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&2;}
36342 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&5
36343$as_echo "$as_me: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&2;}
36344 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&5
36345$as_echo "$as_me: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&2;}
36346 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&5
36347$as_echo "$as_me: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&2;}
36348 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&5
36349$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&2;}
36350 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&5
36351$as_echo "$as_me: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&2;}
36352 ( cat <<\_ASBOX
36353## ----------------------------------------- ##
36354## Report this to http://www.imagemagick.org ##
36355## ----------------------------------------- ##
36356_ASBOX
36357 ) | sed "s/^/$as_me: WARNING: /" >&2
36358 ;;
36359esac
36360{ $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
36361$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
36362if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
36363 $as_echo_n "(cached) " >&6
36364else
36365 ac_cv_header_DPS_dpsXclient_h=$ac_header_preproc
36366fi
36367{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
36368$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
36369
36370fi
36371if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then
36372 passed=`expr $passed + 1`
36373else
36374 failed=`expr $failed + 1`
36375fi
36376
36377
36378 # DPS issues:
36379 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
36380 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
36381 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
36382 # ImageMagick itself doesn't use -lXt.
36383 have_libdps='no'
36384 LIBDPS_XT=''
36385 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
36386$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
36387if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
36388 $as_echo_n "(cached) " >&6
36389else
36390 ac_check_lib_save_LIBS=$LIBS
36391LIBS="-ldps $LIBS"
36392cat >conftest.$ac_ext <<_ACEOF
36393/* confdefs.h. */
36394_ACEOF
36395cat confdefs.h >>conftest.$ac_ext
36396cat >>conftest.$ac_ext <<_ACEOF
36397/* end confdefs.h. */
36398
36399/* Override any GCC internal prototype to avoid an error.
36400 Use char because int might match the return type of a GCC
36401 builtin and then its argument prototype would still apply. */
36402#ifdef __cplusplus
36403extern "C"
36404#endif
36405char DPSInitialize ();
36406int
36407main ()
36408{
36409return DPSInitialize ();
36410 ;
36411 return 0;
36412}
36413_ACEOF
36414rm -f conftest.$ac_objext conftest$ac_exeext
36415if { (ac_try="$ac_link"
36416case "(($ac_try" in
36417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36418 *) ac_try_echo=$ac_try;;
36419esac
36420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36421$as_echo "$ac_try_echo") >&5
36422 (eval "$ac_link") 2>conftest.er1
36423 ac_status=$?
36424 grep -v '^ *+' conftest.er1 >conftest.err
36425 rm -f conftest.er1
36426 cat conftest.err >&5
36427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36428 (exit $ac_status); } && {
36429 test -z "$ac_c_werror_flag" ||
36430 test ! -s conftest.err
36431 } && test -s conftest$ac_exeext && {
36432 test "$cross_compiling" = yes ||
36433 $as_test_x conftest$ac_exeext
36434 }; then
36435 ac_cv_lib_dps_DPSInitialize=yes
36436else
36437 $as_echo "$as_me: failed program was:" >&5
36438sed 's/^/| /' conftest.$ac_ext >&5
36439
36440 ac_cv_lib_dps_DPSInitialize=no
36441fi
36442
36443rm -rf conftest.dSYM
36444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36445 conftest$ac_exeext conftest.$ac_ext
36446LIBS=$ac_check_lib_save_LIBS
36447fi
36448{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
36449$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
36450if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
36451 have_libdps='yes'
36452else
36453 have_libdps='no'
36454fi
36455
36456 if test "$have_libdps" != 'yes'; then
36457 # Unset cache variable so we can try again.
36458 unset ac_cv_lib_dps_DPSInitialize
36459 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
36460$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
36461if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
36462 $as_echo_n "(cached) " >&6
36463else
36464 ac_check_lib_save_LIBS=$LIBS
36465LIBS="-ldps -lXt $LIBS"
36466cat >conftest.$ac_ext <<_ACEOF
36467/* confdefs.h. */
36468_ACEOF
36469cat confdefs.h >>conftest.$ac_ext
36470cat >>conftest.$ac_ext <<_ACEOF
36471/* end confdefs.h. */
36472
36473/* Override any GCC internal prototype to avoid an error.
36474 Use char because int might match the return type of a GCC
36475 builtin and then its argument prototype would still apply. */
36476#ifdef __cplusplus
36477extern "C"
36478#endif
36479char DPSInitialize ();
36480int
36481main ()
36482{
36483return DPSInitialize ();
36484 ;
36485 return 0;
36486}
36487_ACEOF
36488rm -f conftest.$ac_objext conftest$ac_exeext
36489if { (ac_try="$ac_link"
36490case "(($ac_try" in
36491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36492 *) ac_try_echo=$ac_try;;
36493esac
36494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36495$as_echo "$ac_try_echo") >&5
36496 (eval "$ac_link") 2>conftest.er1
36497 ac_status=$?
36498 grep -v '^ *+' conftest.er1 >conftest.err
36499 rm -f conftest.er1
36500 cat conftest.err >&5
36501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36502 (exit $ac_status); } && {
36503 test -z "$ac_c_werror_flag" ||
36504 test ! -s conftest.err
36505 } && test -s conftest$ac_exeext && {
36506 test "$cross_compiling" = yes ||
36507 $as_test_x conftest$ac_exeext
36508 }; then
36509 ac_cv_lib_dps_DPSInitialize=yes
36510else
36511 $as_echo "$as_me: failed program was:" >&5
36512sed 's/^/| /' conftest.$ac_ext >&5
36513
36514 ac_cv_lib_dps_DPSInitialize=no
36515fi
36516
36517rm -rf conftest.dSYM
36518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36519 conftest$ac_exeext conftest.$ac_ext
36520LIBS=$ac_check_lib_save_LIBS
36521fi
36522{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
36523$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
36524if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
36525 have_libdps='yes'
36526else
36527 have_libdps='no'
36528fi
36529
36530 if test "$have_libdps" = 'yes'; then
36531 LIBDPS_XT='-lXt'
36532 fi
36533 fi
36534 if test "$have_libdps" = 'yes'; then
36535 passed=`expr $passed + 1`
36536 else
36537 failed=`expr $failed + 1`
36538 fi
36539 { $as_echo "$as_me:$LINENO: checking for XDPSPixelsPerPoint in -ldpstk" >&5
36540$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
36541if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then
36542 $as_echo_n "(cached) " >&6
36543else
36544 ac_check_lib_save_LIBS=$LIBS
36545LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
36546cat >conftest.$ac_ext <<_ACEOF
36547/* confdefs.h. */
36548_ACEOF
36549cat confdefs.h >>conftest.$ac_ext
36550cat >>conftest.$ac_ext <<_ACEOF
36551/* end confdefs.h. */
36552
36553/* Override any GCC internal prototype to avoid an error.
36554 Use char because int might match the return type of a GCC
36555 builtin and then its argument prototype would still apply. */
36556#ifdef __cplusplus
36557extern "C"
36558#endif
36559char XDPSPixelsPerPoint ();
36560int
36561main ()
36562{
36563return XDPSPixelsPerPoint ();
36564 ;
36565 return 0;
36566}
36567_ACEOF
36568rm -f conftest.$ac_objext conftest$ac_exeext
36569if { (ac_try="$ac_link"
36570case "(($ac_try" in
36571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36572 *) ac_try_echo=$ac_try;;
36573esac
36574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36575$as_echo "$ac_try_echo") >&5
36576 (eval "$ac_link") 2>conftest.er1
36577 ac_status=$?
36578 grep -v '^ *+' conftest.er1 >conftest.err
36579 rm -f conftest.er1
36580 cat conftest.err >&5
36581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36582 (exit $ac_status); } && {
36583 test -z "$ac_c_werror_flag" ||
36584 test ! -s conftest.err
36585 } && test -s conftest$ac_exeext && {
36586 test "$cross_compiling" = yes ||
36587 $as_test_x conftest$ac_exeext
36588 }; then
36589 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
36590else
36591 $as_echo "$as_me: failed program was:" >&5
36592sed 's/^/| /' conftest.$ac_ext >&5
36593
36594 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
36595fi
36596
36597rm -rf conftest.dSYM
36598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36599 conftest$ac_exeext conftest.$ac_ext
36600LIBS=$ac_check_lib_save_LIBS
36601fi
36602{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
36603$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
36604if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then
36605 passed=`expr $passed + 1`
36606else
36607 failed=`expr $failed + 1`
36608fi
36609
36610 { $as_echo "$as_me:$LINENO: checking if DPS package is complete" >&5
36611$as_echo_n "checking if DPS package is complete... " >&6; }
36612 if test $passed -gt 0; then
36613 if test $failed -gt 0; then
36614 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
36615$as_echo "no -- some components failed test" >&6; }
36616 have_dps='no (failed tests)'
36617 CPPFLAGS="$PERSIST_CPPFLAGS"
36618 else
36619 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
36620 LIBS="$DPS_LIBS $LIBS"
36621
36622cat >>confdefs.h <<\_ACEOF
36623#define DPS_DELEGATE 1
36624_ACEOF
36625
36626 { $as_echo "$as_me:$LINENO: result: yes" >&5
36627$as_echo "yes" >&6; }
36628 have_dps='yes'
36629 fi
36630 else
36631 { $as_echo "$as_me:$LINENO: result: no" >&5
36632$as_echo "no" >&6; }
36633 CPPFLAGS=$PERSIST_CPPFLAGS
36634 fi
36635fi
36636 if test "$have_dps" = 'yes'; then
36637 DPS_DELEGATE_TRUE=
36638 DPS_DELEGATE_FALSE='#'
36639else
36640 DPS_DELEGATE_TRUE='#'
36641 DPS_DELEGATE_FALSE=
36642fi
36643
36644
36645
36646
36647#
36648# Check for DJVU delegate library.
36649#
36650
36651# Check whether --with-djvu was given.
36652if test "${with_djvu+set}" = set; then
36653 withval=$with_djvu; with_djvu=$withval
36654else
36655 with_djvu='yes'
36656fi
36657
36658
36659if test "$with_djvu" != 'yes'; then
36660 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
36661fi
36662
36663have_djvu='no'
36664DJVU_LIBS=''
36665if test "$with_djvu" != 'no'; then
36666 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36667$as_echo "-------------------------------------------------------------" >&6; }
36668 { $as_echo "$as_me:$LINENO: checking for DJVU" >&5
36669$as_echo_n "checking for DJVU... " >&6; }
36670 { $as_echo "$as_me:$LINENO: result: " >&5
36671$as_echo "" >&6; }
36672 failed=0
36673 passed=0
36674 if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
36675 { $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
36676$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
36677if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
36678 $as_echo_n "(cached) " >&6
36679fi
36680{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
36681$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
36682else
36683 # Is the header compilable?
36684{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h usability" >&5
36685$as_echo_n "checking libdjvu/ddjvuapi.h usability... " >&6; }
36686cat >conftest.$ac_ext <<_ACEOF
36687/* confdefs.h. */
36688_ACEOF
36689cat confdefs.h >>conftest.$ac_ext
36690cat >>conftest.$ac_ext <<_ACEOF
36691/* end confdefs.h. */
36692$ac_includes_default
36693#include <libdjvu/ddjvuapi.h>
36694_ACEOF
36695rm -f conftest.$ac_objext
36696if { (ac_try="$ac_compile"
36697case "(($ac_try" in
36698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36699 *) ac_try_echo=$ac_try;;
36700esac
36701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36702$as_echo "$ac_try_echo") >&5
36703 (eval "$ac_compile") 2>conftest.er1
36704 ac_status=$?
36705 grep -v '^ *+' conftest.er1 >conftest.err
36706 rm -f conftest.er1
36707 cat conftest.err >&5
36708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36709 (exit $ac_status); } && {
36710 test -z "$ac_c_werror_flag" ||
36711 test ! -s conftest.err
36712 } && test -s conftest.$ac_objext; then
36713 ac_header_compiler=yes
36714else
36715 $as_echo "$as_me: failed program was:" >&5
36716sed 's/^/| /' conftest.$ac_ext >&5
36717
36718 ac_header_compiler=no
36719fi
36720
36721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36722{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36723$as_echo "$ac_header_compiler" >&6; }
36724
36725# Is the header present?
36726{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h presence" >&5
36727$as_echo_n "checking libdjvu/ddjvuapi.h presence... " >&6; }
36728cat >conftest.$ac_ext <<_ACEOF
36729/* confdefs.h. */
36730_ACEOF
36731cat confdefs.h >>conftest.$ac_ext
36732cat >>conftest.$ac_ext <<_ACEOF
36733/* end confdefs.h. */
36734#include <libdjvu/ddjvuapi.h>
36735_ACEOF
36736if { (ac_try="$ac_cpp conftest.$ac_ext"
36737case "(($ac_try" in
36738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36739 *) ac_try_echo=$ac_try;;
36740esac
36741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36742$as_echo "$ac_try_echo") >&5
36743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36744 ac_status=$?
36745 grep -v '^ *+' conftest.er1 >conftest.err
36746 rm -f conftest.er1
36747 cat conftest.err >&5
36748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36749 (exit $ac_status); } >/dev/null && {
36750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36751 test ! -s conftest.err
36752 }; then
36753 ac_header_preproc=yes
36754else
36755 $as_echo "$as_me: failed program was:" >&5
36756sed 's/^/| /' conftest.$ac_ext >&5
36757
36758 ac_header_preproc=no
36759fi
36760
36761rm -f conftest.err conftest.$ac_ext
36762{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36763$as_echo "$ac_header_preproc" >&6; }
36764
36765# So? What about this header?
36766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36767 yes:no: )
36768 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
36769$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36770 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&5
36771$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&2;}
36772 ac_header_preproc=yes
36773 ;;
36774 no:yes:* )
36775 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&5
36776$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&2;}
36777 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&5
36778$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&2;}
36779 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&5
36780$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&2;}
36781 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&5
36782$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
36783 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&5
36784$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&2;}
36785 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&5
36786$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&2;}
36787 ( cat <<\_ASBOX
36788## ----------------------------------------- ##
36789## Report this to http://www.imagemagick.org ##
36790## ----------------------------------------- ##
36791_ASBOX
36792 ) | sed "s/^/$as_me: WARNING: /" >&2
36793 ;;
36794esac
36795{ $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
36796$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
36797if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
36798 $as_echo_n "(cached) " >&6
36799else
36800 ac_cv_header_libdjvu_ddjvuapi_h=$ac_header_preproc
36801fi
36802{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
36803$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
36804
36805fi
36806if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then
36807 passed=`expr $passed + 1`
36808else
36809 failed=`expr $failed + 1`
36810fi
36811
36812
36813 { $as_echo "$as_me:$LINENO: checking for ddjvu_context_create in -ldjvulibre" >&5
36814$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
36815if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then
36816 $as_echo_n "(cached) " >&6
36817else
36818 ac_check_lib_save_LIBS=$LIBS
36819LIBS="-ldjvulibre $LIBS"
36820cat >conftest.$ac_ext <<_ACEOF
36821/* confdefs.h. */
36822_ACEOF
36823cat confdefs.h >>conftest.$ac_ext
36824cat >>conftest.$ac_ext <<_ACEOF
36825/* end confdefs.h. */
36826
36827/* Override any GCC internal prototype to avoid an error.
36828 Use char because int might match the return type of a GCC
36829 builtin and then its argument prototype would still apply. */
36830#ifdef __cplusplus
36831extern "C"
36832#endif
36833char ddjvu_context_create ();
36834int
36835main ()
36836{
36837return ddjvu_context_create ();
36838 ;
36839 return 0;
36840}
36841_ACEOF
36842rm -f conftest.$ac_objext conftest$ac_exeext
36843if { (ac_try="$ac_link"
36844case "(($ac_try" in
36845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36846 *) ac_try_echo=$ac_try;;
36847esac
36848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36849$as_echo "$ac_try_echo") >&5
36850 (eval "$ac_link") 2>conftest.er1
36851 ac_status=$?
36852 grep -v '^ *+' conftest.er1 >conftest.err
36853 rm -f conftest.er1
36854 cat conftest.err >&5
36855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36856 (exit $ac_status); } && {
36857 test -z "$ac_c_werror_flag" ||
36858 test ! -s conftest.err
36859 } && test -s conftest$ac_exeext && {
36860 test "$cross_compiling" = yes ||
36861 $as_test_x conftest$ac_exeext
36862 }; then
36863 ac_cv_lib_djvulibre_ddjvu_context_create=yes
36864else
36865 $as_echo "$as_me: failed program was:" >&5
36866sed 's/^/| /' conftest.$ac_ext >&5
36867
36868 ac_cv_lib_djvulibre_ddjvu_context_create=no
36869fi
36870
36871rm -rf conftest.dSYM
36872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36873 conftest$ac_exeext conftest.$ac_ext
36874LIBS=$ac_check_lib_save_LIBS
36875fi
36876{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
36877$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
36878if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then
36879 passed=`expr $passed + 1`
36880else
36881 failed=`expr $failed + 1`
36882fi
36883
36884 { $as_echo "$as_me:$LINENO: checking if DJVU package is complete" >&5
36885$as_echo_n "checking if DJVU package is complete... " >&6; }
36886 if test $passed -gt 0; then
36887 if test $failed -gt 0; then
36888 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
36889$as_echo "no -- some components failed test" >&6; }
36890 have_djvu='no (failed tests)'
36891 else
36892 DJVU_LIBS='-ldjvulibre'
36893 LIBS="$DJVU_LIBS $LIBS"
36894
36895cat >>confdefs.h <<\_ACEOF
36896#define DJVU_DELEGATE 1
36897_ACEOF
36898
36899 { $as_echo "$as_me:$LINENO: result: yes" >&5
36900$as_echo "yes" >&6; }
36901 have_djvu='yes'
36902 fi
36903 else
36904 { $as_echo "$as_me:$LINENO: result: no" >&5
36905$as_echo "no" >&6; }
36906 fi
36907fi
36908 if test "$have_djvu" = 'yes'; then
36909 DJVU_DELEGATE_TRUE=
36910 DJVU_DELEGATE_FALSE='#'
36911else
36912 DJVU_DELEGATE_TRUE='#'
36913 DJVU_DELEGATE_FALSE=
36914fi
36915
36916
36917
36918
36919#
36920# Check for FFTW delegate library.
36921#
36922
36923# Check whether --with-fftw was given.
36924if test "${with_fftw+set}" = set; then
36925 withval=$with_fftw; with_fftw=$withval
36926else
36927 with_fftw='yes'
36928fi
36929
36930
36931if test "$with_fftw" != 'yes'; then
36932 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
36933fi
36934
36935have_fftw='no'
36936FFTW_LIBS=''
36937if test "$with_fftw" != 'no'; then
36938 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36939$as_echo "-------------------------------------------------------------" >&6; }
36940 { $as_echo "$as_me:$LINENO: checking for FFTW" >&5
36941$as_echo_n "checking for FFTW... " >&6; }
36942 { $as_echo "$as_me:$LINENO: result: " >&5
36943$as_echo "" >&6; }
36944 failed=0
36945 passed=0
36946 if test "${ac_cv_header_fftw3_h+set}" = set; then
36947 { $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
36948$as_echo_n "checking for fftw3.h... " >&6; }
36949if test "${ac_cv_header_fftw3_h+set}" = set; then
36950 $as_echo_n "(cached) " >&6
36951fi
36952{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
36953$as_echo "$ac_cv_header_fftw3_h" >&6; }
36954else
36955 # Is the header compilable?
36956{ $as_echo "$as_me:$LINENO: checking fftw3.h usability" >&5
36957$as_echo_n "checking fftw3.h usability... " >&6; }
36958cat >conftest.$ac_ext <<_ACEOF
36959/* confdefs.h. */
36960_ACEOF
36961cat confdefs.h >>conftest.$ac_ext
36962cat >>conftest.$ac_ext <<_ACEOF
36963/* end confdefs.h. */
36964$ac_includes_default
36965#include <fftw3.h>
36966_ACEOF
36967rm -f conftest.$ac_objext
36968if { (ac_try="$ac_compile"
36969case "(($ac_try" in
36970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36971 *) ac_try_echo=$ac_try;;
36972esac
36973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36974$as_echo "$ac_try_echo") >&5
36975 (eval "$ac_compile") 2>conftest.er1
36976 ac_status=$?
36977 grep -v '^ *+' conftest.er1 >conftest.err
36978 rm -f conftest.er1
36979 cat conftest.err >&5
36980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981 (exit $ac_status); } && {
36982 test -z "$ac_c_werror_flag" ||
36983 test ! -s conftest.err
36984 } && test -s conftest.$ac_objext; then
36985 ac_header_compiler=yes
36986else
36987 $as_echo "$as_me: failed program was:" >&5
36988sed 's/^/| /' conftest.$ac_ext >&5
36989
36990 ac_header_compiler=no
36991fi
36992
36993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36994{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36995$as_echo "$ac_header_compiler" >&6; }
36996
36997# Is the header present?
36998{ $as_echo "$as_me:$LINENO: checking fftw3.h presence" >&5
36999$as_echo_n "checking fftw3.h presence... " >&6; }
37000cat >conftest.$ac_ext <<_ACEOF
37001/* confdefs.h. */
37002_ACEOF
37003cat confdefs.h >>conftest.$ac_ext
37004cat >>conftest.$ac_ext <<_ACEOF
37005/* end confdefs.h. */
37006#include <fftw3.h>
37007_ACEOF
37008if { (ac_try="$ac_cpp conftest.$ac_ext"
37009case "(($ac_try" in
37010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37011 *) ac_try_echo=$ac_try;;
37012esac
37013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37014$as_echo "$ac_try_echo") >&5
37015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37016 ac_status=$?
37017 grep -v '^ *+' conftest.er1 >conftest.err
37018 rm -f conftest.er1
37019 cat conftest.err >&5
37020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37021 (exit $ac_status); } >/dev/null && {
37022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37023 test ! -s conftest.err
37024 }; then
37025 ac_header_preproc=yes
37026else
37027 $as_echo "$as_me: failed program was:" >&5
37028sed 's/^/| /' conftest.$ac_ext >&5
37029
37030 ac_header_preproc=no
37031fi
37032
37033rm -f conftest.err conftest.$ac_ext
37034{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37035$as_echo "$ac_header_preproc" >&6; }
37036
37037# So? What about this header?
37038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37039 yes:no: )
37040 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
37041$as_echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37042 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
37043$as_echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
37044 ac_header_preproc=yes
37045 ;;
37046 no:yes:* )
37047 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
37048$as_echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
37049 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5
37050$as_echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;}
37051 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
37052$as_echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
37053 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5
37054$as_echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;}
37055 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
37056$as_echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
37057 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
37058$as_echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
37059 ( cat <<\_ASBOX
37060## ----------------------------------------- ##
37061## Report this to http://www.imagemagick.org ##
37062## ----------------------------------------- ##
37063_ASBOX
37064 ) | sed "s/^/$as_me: WARNING: /" >&2
37065 ;;
37066esac
37067{ $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37068$as_echo_n "checking for fftw3.h... " >&6; }
37069if test "${ac_cv_header_fftw3_h+set}" = set; then
37070 $as_echo_n "(cached) " >&6
37071else
37072 ac_cv_header_fftw3_h=$ac_header_preproc
37073fi
37074{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37075$as_echo "$ac_cv_header_fftw3_h" >&6; }
37076
37077fi
37078if test "x$ac_cv_header_fftw3_h" = x""yes; then
37079 passed=`expr $passed + 1`
37080else
37081 failed=`expr $failed + 1`
37082fi
37083
37084
37085 { $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
37086$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
37087if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
37088 $as_echo_n "(cached) " >&6
37089else
37090 ac_check_lib_save_LIBS=$LIBS
37091LIBS="-lfftw3 $LIBS"
37092cat >conftest.$ac_ext <<_ACEOF
37093/* confdefs.h. */
37094_ACEOF
37095cat confdefs.h >>conftest.$ac_ext
37096cat >>conftest.$ac_ext <<_ACEOF
37097/* end confdefs.h. */
37098
37099/* Override any GCC internal prototype to avoid an error.
37100 Use char because int might match the return type of a GCC
37101 builtin and then its argument prototype would still apply. */
37102#ifdef __cplusplus
37103extern "C"
37104#endif
37105char fftw_execute ();
37106int
37107main ()
37108{
37109return fftw_execute ();
37110 ;
37111 return 0;
37112}
37113_ACEOF
37114rm -f conftest.$ac_objext conftest$ac_exeext
37115if { (ac_try="$ac_link"
37116case "(($ac_try" in
37117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37118 *) ac_try_echo=$ac_try;;
37119esac
37120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37121$as_echo "$ac_try_echo") >&5
37122 (eval "$ac_link") 2>conftest.er1
37123 ac_status=$?
37124 grep -v '^ *+' conftest.er1 >conftest.err
37125 rm -f conftest.er1
37126 cat conftest.err >&5
37127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); } && {
37129 test -z "$ac_c_werror_flag" ||
37130 test ! -s conftest.err
37131 } && test -s conftest$ac_exeext && {
37132 test "$cross_compiling" = yes ||
37133 $as_test_x conftest$ac_exeext
37134 }; then
37135 ac_cv_lib_fftw3_fftw_execute=yes
37136else
37137 $as_echo "$as_me: failed program was:" >&5
37138sed 's/^/| /' conftest.$ac_ext >&5
37139
37140 ac_cv_lib_fftw3_fftw_execute=no
37141fi
37142
37143rm -rf conftest.dSYM
37144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37145 conftest$ac_exeext conftest.$ac_ext
37146LIBS=$ac_check_lib_save_LIBS
37147fi
37148{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
37149$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
37150if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then
37151 passed=`expr $passed + 1`
37152else
37153 failed=`expr $failed + 1`
37154fi
37155
37156 { $as_echo "$as_me:$LINENO: checking if FFTW package is complete" >&5
37157$as_echo_n "checking if FFTW package is complete... " >&6; }
37158 if test $passed -gt 0; then
37159 if test $failed -gt 0; then
37160 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37161$as_echo "no -- some components failed test" >&6; }
37162 have_fftw='no (failed tests)'
37163 else
37164 FFTW_LIBS='-lfftw3'
37165 LIBS="$FFTW_LIBS $LIBS"
37166
37167cat >>confdefs.h <<\_ACEOF
37168#define FFTW_DELEGATE 1
37169_ACEOF
37170
37171 { $as_echo "$as_me:$LINENO: result: yes" >&5
37172$as_echo "yes" >&6; }
37173 have_fftw='yes'
37174 fi
37175 else
37176 { $as_echo "$as_me:$LINENO: result: no" >&5
37177$as_echo "no" >&6; }
37178 fi
37179fi
37180 if test "$have_fftw" = 'yes'; then
37181 FFTW_DELEGATE_TRUE=
37182 FFTW_DELEGATE_FALSE='#'
37183else
37184 FFTW_DELEGATE_TRUE='#'
37185 FFTW_DELEGATE_FALSE=
37186fi
37187
37188
37189
37190
37191#
37192# Check for FlashPIX delegate library.
37193#
37194
37195# Check whether --with-fpx was given.
37196if test "${with_fpx+set}" = set; then
37197 withval=$with_fpx; with_fpx=$withval
37198else
37199 with_fpx='yes'
37200fi
37201
37202
37203if test "$with_fpx" != 'yes'; then
37204 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
37205fi
37206
37207have_fpx='no'
37208FPX_LIBS=''
37209if test "$with_fpx" != 'no'; then
37210 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37211$as_echo "-------------------------------------------------------------" >&6; }
37212 { $as_echo "$as_me:$LINENO: checking for FlashPIX" >&5
37213$as_echo_n "checking for FlashPIX... " >&6; }
37214 { $as_echo "$as_me:$LINENO: result: " >&5
37215$as_echo "" >&6; }
37216 failed=0
37217 passed=0
37218 ac_ext=cpp
37219ac_cpp='$CXXCPP $CPPFLAGS'
37220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37223
37224
37225if test "${ac_cv_header_fpxlib_h+set}" = set; then
37226 { $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
37227$as_echo_n "checking for fpxlib.h... " >&6; }
37228if test "${ac_cv_header_fpxlib_h+set}" = set; then
37229 $as_echo_n "(cached) " >&6
37230fi
37231{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
37232$as_echo "$ac_cv_header_fpxlib_h" >&6; }
37233else
37234 # Is the header compilable?
37235{ $as_echo "$as_me:$LINENO: checking fpxlib.h usability" >&5
37236$as_echo_n "checking fpxlib.h usability... " >&6; }
37237cat >conftest.$ac_ext <<_ACEOF
37238/* confdefs.h. */
37239_ACEOF
37240cat confdefs.h >>conftest.$ac_ext
37241cat >>conftest.$ac_ext <<_ACEOF
37242/* end confdefs.h. */
37243$ac_includes_default
37244#include <fpxlib.h>
37245_ACEOF
37246rm -f conftest.$ac_objext
37247if { (ac_try="$ac_compile"
37248case "(($ac_try" in
37249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37250 *) ac_try_echo=$ac_try;;
37251esac
37252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37253$as_echo "$ac_try_echo") >&5
37254 (eval "$ac_compile") 2>conftest.er1
37255 ac_status=$?
37256 grep -v '^ *+' conftest.er1 >conftest.err
37257 rm -f conftest.er1
37258 cat conftest.err >&5
37259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37260 (exit $ac_status); } && {
37261 test -z "$ac_cxx_werror_flag" ||
37262 test ! -s conftest.err
37263 } && test -s conftest.$ac_objext; then
37264 ac_header_compiler=yes
37265else
37266 $as_echo "$as_me: failed program was:" >&5
37267sed 's/^/| /' conftest.$ac_ext >&5
37268
37269 ac_header_compiler=no
37270fi
37271
37272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37273{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37274$as_echo "$ac_header_compiler" >&6; }
37275
37276# Is the header present?
37277{ $as_echo "$as_me:$LINENO: checking fpxlib.h presence" >&5
37278$as_echo_n "checking fpxlib.h presence... " >&6; }
37279cat >conftest.$ac_ext <<_ACEOF
37280/* confdefs.h. */
37281_ACEOF
37282cat confdefs.h >>conftest.$ac_ext
37283cat >>conftest.$ac_ext <<_ACEOF
37284/* end confdefs.h. */
37285#include <fpxlib.h>
37286_ACEOF
37287if { (ac_try="$ac_cpp conftest.$ac_ext"
37288case "(($ac_try" in
37289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37290 *) ac_try_echo=$ac_try;;
37291esac
37292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37293$as_echo "$ac_try_echo") >&5
37294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37295 ac_status=$?
37296 grep -v '^ *+' conftest.er1 >conftest.err
37297 rm -f conftest.er1
37298 cat conftest.err >&5
37299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300 (exit $ac_status); } >/dev/null && {
37301 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
37302 test ! -s conftest.err
37303 }; then
37304 ac_header_preproc=yes
37305else
37306 $as_echo "$as_me: failed program was:" >&5
37307sed 's/^/| /' conftest.$ac_ext >&5
37308
37309 ac_header_preproc=no
37310fi
37311
37312rm -f conftest.err conftest.$ac_ext
37313{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37314$as_echo "$ac_header_preproc" >&6; }
37315
37316# So? What about this header?
37317case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37318 yes:no: )
37319 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
37320$as_echo "$as_me: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37321 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the compiler's result" >&5
37322$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the compiler's result" >&2;}
37323 ac_header_preproc=yes
37324 ;;
37325 no:yes:* )
37326 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: present but cannot be compiled" >&5
37327$as_echo "$as_me: WARNING: fpxlib.h: present but cannot be compiled" >&2;}
37328 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: check for missing prerequisite headers?" >&5
37329$as_echo "$as_me: WARNING: fpxlib.h: check for missing prerequisite headers?" >&2;}
37330 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: see the Autoconf documentation" >&5
37331$as_echo "$as_me: WARNING: fpxlib.h: see the Autoconf documentation" >&2;}
37332 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&5
37333$as_echo "$as_me: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
37334 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&5
37335$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&2;}
37336 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&5
37337$as_echo "$as_me: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&2;}
37338 ( cat <<\_ASBOX
37339## ----------------------------------------- ##
37340## Report this to http://www.imagemagick.org ##
37341## ----------------------------------------- ##
37342_ASBOX
37343 ) | sed "s/^/$as_me: WARNING: /" >&2
37344 ;;
37345esac
37346{ $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
37347$as_echo_n "checking for fpxlib.h... " >&6; }
37348if test "${ac_cv_header_fpxlib_h+set}" = set; then
37349 $as_echo_n "(cached) " >&6
37350else
37351 ac_cv_header_fpxlib_h=$ac_header_preproc
37352fi
37353{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
37354$as_echo "$ac_cv_header_fpxlib_h" >&6; }
37355
37356fi
37357if test "x$ac_cv_header_fpxlib_h" = x""yes; then
37358 passed=`expr $passed + 1`
37359else
37360 failed=`expr $failed + 1`
37361fi
37362
37363
37364 { $as_echo "$as_me:$LINENO: checking for FPX_OpenImageByFilename in -lfpx" >&5
37365$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
37366if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then
37367 $as_echo_n "(cached) " >&6
37368else
37369 ac_check_lib_save_LIBS=$LIBS
37370LIBS="-lfpx $LIBS"
37371cat >conftest.$ac_ext <<_ACEOF
37372/* confdefs.h. */
37373_ACEOF
37374cat confdefs.h >>conftest.$ac_ext
37375cat >>conftest.$ac_ext <<_ACEOF
37376/* end confdefs.h. */
37377
37378/* Override any GCC internal prototype to avoid an error.
37379 Use char because int might match the return type of a GCC
37380 builtin and then its argument prototype would still apply. */
37381#ifdef __cplusplus
37382extern "C"
37383#endif
37384char FPX_OpenImageByFilename ();
37385int
37386main ()
37387{
37388return FPX_OpenImageByFilename ();
37389 ;
37390 return 0;
37391}
37392_ACEOF
37393rm -f conftest.$ac_objext conftest$ac_exeext
37394if { (ac_try="$ac_link"
37395case "(($ac_try" in
37396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37397 *) ac_try_echo=$ac_try;;
37398esac
37399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37400$as_echo "$ac_try_echo") >&5
37401 (eval "$ac_link") 2>conftest.er1
37402 ac_status=$?
37403 grep -v '^ *+' conftest.er1 >conftest.err
37404 rm -f conftest.er1
37405 cat conftest.err >&5
37406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37407 (exit $ac_status); } && {
37408 test -z "$ac_cxx_werror_flag" ||
37409 test ! -s conftest.err
37410 } && test -s conftest$ac_exeext && {
37411 test "$cross_compiling" = yes ||
37412 $as_test_x conftest$ac_exeext
37413 }; then
37414 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
37415else
37416 $as_echo "$as_me: failed program was:" >&5
37417sed 's/^/| /' conftest.$ac_ext >&5
37418
37419 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
37420fi
37421
37422rm -rf conftest.dSYM
37423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37424 conftest$ac_exeext conftest.$ac_ext
37425LIBS=$ac_check_lib_save_LIBS
37426fi
37427{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
37428$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
37429if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then
37430 passed=`expr $passed + 1`
37431else
37432 failed=`expr $failed + 1`
37433fi
37434
37435 ac_ext=c
37436ac_cpp='$CPP $CPPFLAGS'
37437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37439ac_compiler_gnu=$ac_cv_c_compiler_gnu
37440
37441 { $as_echo "$as_me:$LINENO: checking if FlashPIX package is complete" >&5
37442$as_echo_n "checking if FlashPIX package is complete... " >&6; }
37443 if test $passed -gt 0; then
37444 if test $failed -gt 0; then
37445 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37446$as_echo "no -- some components failed test" >&6; }
37447 have_fpx='no (failed tests)'
37448 else
37449 FPX_LIBS='-lfpx'
37450
37451cat >>confdefs.h <<\_ACEOF
37452#define FPX_DELEGATE 1
37453_ACEOF
37454
37455 { $as_echo "$as_me:$LINENO: result: yes" >&5
37456$as_echo "yes" >&6; }
37457 have_fpx='yes'
37458 PERLMAINCC="$CXX"
37459 fi
37460 else
37461 { $as_echo "$as_me:$LINENO: result: no" >&5
37462$as_echo "no" >&6; }
37463 fi
37464fi
37465 if test "$have_fpx" = 'yes'; then
37466 FPX_DELEGATE_TRUE=
37467 FPX_DELEGATE_FALSE='#'
37468else
37469 FPX_DELEGATE_TRUE='#'
37470 FPX_DELEGATE_FALSE=
37471fi
37472
37473
37474
37475
37476#
37477# Check for fontconfig delegate library.
37478#
37479
37480# Check whether --with-fontconfig was given.
37481if test "${with_fontconfig+set}" = set; then
37482 withval=$with_fontconfig; with_fontconfig=$withval
37483else
37484 with_fontconfig=$have_x
37485fi
37486
37487
37488if test "$with_fontconfig" != 'yes'; then
37489 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
37490fi
37491
37492have_fontconfig='no'
37493FONTCONFIG_CFLAGS=""
37494FONTCONFIG_LIBS=""
37495FONTCONFIG_PKG=""
37496if test "x$with_fontconfig" = "xyes"; then
37497 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37498$as_echo "-------------------------------------------------------------" >&6; }
37499
37500pkg_failed=no
37501{ $as_echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
37502$as_echo_n "checking for FONTCONFIG... " >&6; }
37503
37504if test -n "$FONTCONFIG_CFLAGS"; then
37505 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
37506 elif test -n "$PKG_CONFIG"; then
37507 if test -n "$PKG_CONFIG" && \
37508 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
37509 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
37510 ac_status=$?
37511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512 (exit $ac_status); }; then
37513 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
37514else
37515 pkg_failed=yes
37516fi
37517 else
37518 pkg_failed=untried
37519fi
37520if test -n "$FONTCONFIG_LIBS"; then
37521 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
37522 elif test -n "$PKG_CONFIG"; then
37523 if test -n "$PKG_CONFIG" && \
37524 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
37525 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
37526 ac_status=$?
37527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37528 (exit $ac_status); }; then
37529 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
37530else
37531 pkg_failed=yes
37532fi
37533 else
37534 pkg_failed=untried
37535fi
37536
37537
37538
37539if test $pkg_failed = yes; then
37540
37541if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37542 _pkg_short_errors_supported=yes
37543else
37544 _pkg_short_errors_supported=no
37545fi
37546 if test $_pkg_short_errors_supported = yes; then
37547 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
37548 else
37549 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
37550 fi
37551 # Put the nasty error message in config.log where it belongs
37552 echo "$FONTCONFIG_PKG_ERRORS" >&5
37553
37554 { $as_echo "$as_me:$LINENO: result: no" >&5
37555$as_echo "no" >&6; }
37556 have_fontconfig=no
37557elif test $pkg_failed = untried; then
37558 have_fontconfig=no
37559else
37560 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
37561 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
37562 { $as_echo "$as_me:$LINENO: result: yes" >&5
37563$as_echo "yes" >&6; }
37564 have_fontconfig=yes
37565fi
37566 { $as_echo "$as_me:$LINENO: result: " >&5
37567$as_echo "" >&6; }
37568fi
37569
37570if test "$have_fontconfig" = 'yes'; then
37571
37572cat >>confdefs.h <<\_ACEOF
37573#define FONTCONFIG_DELEGATE 1
37574_ACEOF
37575
37576 if test "$with_modules" = 'no'; then
37577 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
37578 fi
37579fi
37580
37581 if test "$have_fontconfig" = 'yes'; then
37582 FONTCONFIG_DELEGATE_TRUE=
37583 FONTCONFIG_DELEGATE_FALSE='#'
37584else
37585 FONTCONFIG_DELEGATE_TRUE='#'
37586 FONTCONFIG_DELEGATE_FALSE=
37587fi
37588
37589
37590
37591
37592
37593#
37594# Check for freetype delegate library.
37595#
37596
37597# Check whether --with-freetype was given.
37598if test "${with_freetype+set}" = set; then
37599 withval=$with_freetype; with_freetype=$withval
37600else
37601 with_freetype='yes'
37602fi
37603
37604
37605
37606if test "$with_freetype" != 'yes'; then
37607 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
37608fi
37609
37610have_freetype='no'
37611FREETYPE_LIBS=''
37612if test "$with_freetype" != 'no'; then
37613 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37614$as_echo "-------------------------------------------------------------" >&6; }
37615 { $as_echo "$as_me:$LINENO: checking for FreeType 2.0" >&5
37616$as_echo_n "checking for FreeType 2.0... " >&6; }
37617 { $as_echo "$as_me:$LINENO: result: " >&5
37618$as_echo "" >&6; }
37619 failed=0
37620 passed=0
37621 PERSIST_LDFLAGS="$LDFLAGS"
37622 PERSIST_CPPFLAGS="$CPPFLAGS"
37623 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
37624 :
37625 else
37626 freetype_config=''
37627 for ac_prog in freetype-config
37628do
37629 # Extract the first word of "$ac_prog", so it can be a program name with args.
37630set dummy $ac_prog; ac_word=$2
37631{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37632$as_echo_n "checking for $ac_word... " >&6; }
37633if test "${ac_cv_prog_freetype_config+set}" = set; then
37634 $as_echo_n "(cached) " >&6
37635else
37636 if test -n "$freetype_config"; then
37637 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
37638else
37639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37640for as_dir in $PATH
37641do
37642 IFS=$as_save_IFS
37643 test -z "$as_dir" && as_dir=.
37644 for ac_exec_ext in '' $ac_executable_extensions; do
37645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37646 ac_cv_prog_freetype_config="$ac_prog"
37647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37648 break 2
37649 fi
37650done
37651done
37652IFS=$as_save_IFS
37653
37654fi
37655fi
37656freetype_config=$ac_cv_prog_freetype_config
37657if test -n "$freetype_config"; then
37658 { $as_echo "$as_me:$LINENO: result: $freetype_config" >&5
37659$as_echo "$freetype_config" >&6; }
37660else
37661 { $as_echo "$as_me:$LINENO: result: no" >&5
37662$as_echo "no" >&6; }
37663fi
37664
37665
37666 test -n "$freetype_config" && break
37667done
37668 if test -n "$freetype_config"; then
37669 freetype_cflags=`$freetype_config --cflags`
37670 freetype_libs=`$freetype_config --libs`
37671 LDFLAGS="$LDFLAGS $freetype_libs"
37672 CPPFLAGS="$freetype_cflags $CPPFLAGS"
37673 fi
37674 fi
37675
37676 if test "$FREETYPE_LIBS" = ''; then
37677 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
37678$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
37679if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
37680 $as_echo_n "(cached) " >&6
37681else
37682 ac_check_lib_save_LIBS=$LIBS
37683LIBS="-lfreetype $LIBS"
37684cat >conftest.$ac_ext <<_ACEOF
37685/* confdefs.h. */
37686_ACEOF
37687cat confdefs.h >>conftest.$ac_ext
37688cat >>conftest.$ac_ext <<_ACEOF
37689/* end confdefs.h. */
37690
37691/* Override any GCC internal prototype to avoid an error.
37692 Use char because int might match the return type of a GCC
37693 builtin and then its argument prototype would still apply. */
37694#ifdef __cplusplus
37695extern "C"
37696#endif
37697char FT_Init_FreeType ();
37698int
37699main ()
37700{
37701return FT_Init_FreeType ();
37702 ;
37703 return 0;
37704}
37705_ACEOF
37706rm -f conftest.$ac_objext conftest$ac_exeext
37707if { (ac_try="$ac_link"
37708case "(($ac_try" in
37709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37710 *) ac_try_echo=$ac_try;;
37711esac
37712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37713$as_echo "$ac_try_echo") >&5
37714 (eval "$ac_link") 2>conftest.er1
37715 ac_status=$?
37716 grep -v '^ *+' conftest.er1 >conftest.err
37717 rm -f conftest.er1
37718 cat conftest.err >&5
37719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37720 (exit $ac_status); } && {
37721 test -z "$ac_c_werror_flag" ||
37722 test ! -s conftest.err
37723 } && test -s conftest$ac_exeext && {
37724 test "$cross_compiling" = yes ||
37725 $as_test_x conftest$ac_exeext
37726 }; then
37727 ac_cv_lib_freetype_FT_Init_FreeType=yes
37728else
37729 $as_echo "$as_me: failed program was:" >&5
37730sed 's/^/| /' conftest.$ac_ext >&5
37731
37732 ac_cv_lib_freetype_FT_Init_FreeType=no
37733fi
37734
37735rm -rf conftest.dSYM
37736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37737 conftest$ac_exeext conftest.$ac_ext
37738LIBS=$ac_check_lib_save_LIBS
37739fi
37740{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
37741$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
37742if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
37743 FREETYPE_LIBS='-lfreetype'
37744fi
37745
37746 if test "$FREETYPE_LIBS" != ''; then
37747 passed=`expr $passed + 1`
37748 else
37749 failed=`expr $failed + 1`
37750 LDFLAGS="$PERSIST_LDFLAGS"
37751 fi
37752 fi
37753
37754 if test "${ac_cv_header_ft2build_h+set}" = set; then
37755 { $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
37756$as_echo_n "checking for ft2build.h... " >&6; }
37757if test "${ac_cv_header_ft2build_h+set}" = set; then
37758 $as_echo_n "(cached) " >&6
37759fi
37760{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
37761$as_echo "$ac_cv_header_ft2build_h" >&6; }
37762else
37763 # Is the header compilable?
37764{ $as_echo "$as_me:$LINENO: checking ft2build.h usability" >&5
37765$as_echo_n "checking ft2build.h usability... " >&6; }
37766cat >conftest.$ac_ext <<_ACEOF
37767/* confdefs.h. */
37768_ACEOF
37769cat confdefs.h >>conftest.$ac_ext
37770cat >>conftest.$ac_ext <<_ACEOF
37771/* end confdefs.h. */
37772$ac_includes_default
37773#include <ft2build.h>
37774_ACEOF
37775rm -f conftest.$ac_objext
37776if { (ac_try="$ac_compile"
37777case "(($ac_try" in
37778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37779 *) ac_try_echo=$ac_try;;
37780esac
37781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37782$as_echo "$ac_try_echo") >&5
37783 (eval "$ac_compile") 2>conftest.er1
37784 ac_status=$?
37785 grep -v '^ *+' conftest.er1 >conftest.err
37786 rm -f conftest.er1
37787 cat conftest.err >&5
37788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789 (exit $ac_status); } && {
37790 test -z "$ac_c_werror_flag" ||
37791 test ! -s conftest.err
37792 } && test -s conftest.$ac_objext; then
37793 ac_header_compiler=yes
37794else
37795 $as_echo "$as_me: failed program was:" >&5
37796sed 's/^/| /' conftest.$ac_ext >&5
37797
37798 ac_header_compiler=no
37799fi
37800
37801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37802{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37803$as_echo "$ac_header_compiler" >&6; }
37804
37805# Is the header present?
37806{ $as_echo "$as_me:$LINENO: checking ft2build.h presence" >&5
37807$as_echo_n "checking ft2build.h presence... " >&6; }
37808cat >conftest.$ac_ext <<_ACEOF
37809/* confdefs.h. */
37810_ACEOF
37811cat confdefs.h >>conftest.$ac_ext
37812cat >>conftest.$ac_ext <<_ACEOF
37813/* end confdefs.h. */
37814#include <ft2build.h>
37815_ACEOF
37816if { (ac_try="$ac_cpp conftest.$ac_ext"
37817case "(($ac_try" in
37818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37819 *) ac_try_echo=$ac_try;;
37820esac
37821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37822$as_echo "$ac_try_echo") >&5
37823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37824 ac_status=$?
37825 grep -v '^ *+' conftest.er1 >conftest.err
37826 rm -f conftest.er1
37827 cat conftest.err >&5
37828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); } >/dev/null && {
37830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37831 test ! -s conftest.err
37832 }; then
37833 ac_header_preproc=yes
37834else
37835 $as_echo "$as_me: failed program was:" >&5
37836sed 's/^/| /' conftest.$ac_ext >&5
37837
37838 ac_header_preproc=no
37839fi
37840
37841rm -f conftest.err conftest.$ac_ext
37842{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37843$as_echo "$ac_header_preproc" >&6; }
37844
37845# So? What about this header?
37846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37847 yes:no: )
37848 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
37849$as_echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37850 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
37851$as_echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
37852 ac_header_preproc=yes
37853 ;;
37854 no:yes:* )
37855 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
37856$as_echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
37857 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
37858$as_echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
37859 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
37860$as_echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
37861 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
37862$as_echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
37863 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
37864$as_echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
37865 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
37866$as_echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
37867 ( cat <<\_ASBOX
37868## ----------------------------------------- ##
37869## Report this to http://www.imagemagick.org ##
37870## ----------------------------------------- ##
37871_ASBOX
37872 ) | sed "s/^/$as_me: WARNING: /" >&2
37873 ;;
37874esac
37875{ $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
37876$as_echo_n "checking for ft2build.h... " >&6; }
37877if test "${ac_cv_header_ft2build_h+set}" = set; then
37878 $as_echo_n "(cached) " >&6
37879else
37880 ac_cv_header_ft2build_h=$ac_header_preproc
37881fi
37882{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
37883$as_echo "$ac_cv_header_ft2build_h" >&6; }
37884
37885fi
37886if test "x$ac_cv_header_ft2build_h" = x""yes; then
37887 FT2BUILD_H='#include <ft2build.h>'
37888else
37889 ft2build=''
37890fi
37891
37892
37893 { $as_echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
37894$as_echo_n "checking for freetype/freetype.h... " >&6; }
37895if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
37896 $as_echo_n "(cached) " >&6
37897else
37898 cat >conftest.$ac_ext <<_ACEOF
37899/* confdefs.h. */
37900_ACEOF
37901cat confdefs.h >>conftest.$ac_ext
37902cat >>conftest.$ac_ext <<_ACEOF
37903/* end confdefs.h. */
37904$FT2BUILD_H
37905
37906#include <freetype/freetype.h>
37907_ACEOF
37908rm -f conftest.$ac_objext
37909if { (ac_try="$ac_compile"
37910case "(($ac_try" in
37911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37912 *) ac_try_echo=$ac_try;;
37913esac
37914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37915$as_echo "$ac_try_echo") >&5
37916 (eval "$ac_compile") 2>conftest.er1
37917 ac_status=$?
37918 grep -v '^ *+' conftest.er1 >conftest.err
37919 rm -f conftest.er1
37920 cat conftest.err >&5
37921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37922 (exit $ac_status); } && {
37923 test -z "$ac_c_werror_flag" ||
37924 test ! -s conftest.err
37925 } && test -s conftest.$ac_objext; then
37926 ac_cv_header_freetype_freetype_h=yes
37927else
37928 $as_echo "$as_me: failed program was:" >&5
37929sed 's/^/| /' conftest.$ac_ext >&5
37930
37931 ac_cv_header_freetype_freetype_h=no
37932fi
37933
37934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37935fi
37936{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
37937$as_echo "$ac_cv_header_freetype_freetype_h" >&6; }
37938if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then
37939 have_freetype_h='yes'
37940else
37941 have_freetype_h='no'
37942fi
37943
37944
37945 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
37946 passed=`expr $passed + 1`
37947 else
37948 failed=`expr $failed + 1`
37949 CPPFLAGS="$PERSIST_CPPFLAGS"
37950 fi
37951
37952 { $as_echo "$as_me:$LINENO: checking if FreeType package is complete" >&5
37953$as_echo_n "checking if FreeType package is complete... " >&6; }
37954 if test $passed -gt 0; then
37955 if test $failed -gt 0; then
37956 FREETYPE_LIBS=''
37957 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37958$as_echo "no -- some components failed test" >&6; }
37959 have_freetype='no (failed tests)'
37960 else
37961 LIBS="$FREETYPE_LIBS $LIBS"
37962
37963cat >>confdefs.h <<\_ACEOF
37964#define FREETYPE_DELEGATE 1
37965_ACEOF
37966
37967 if test "$ac_cv_header_ft2build_h" = 'yes'; then
37968
37969cat >>confdefs.h <<\_ACEOF
37970#define HAVE_FT2BUILD_H 1
37971_ACEOF
37972
37973 fi
37974 { $as_echo "$as_me:$LINENO: result: yes" >&5
37975$as_echo "yes" >&6; }
37976 have_freetype='yes'
37977 fi
37978 else
37979 { $as_echo "$as_me:$LINENO: result: no" >&5
37980$as_echo "no" >&6; }
37981 fi
37982fi
37983 if test "$have_freetype" = 'yes'; then
37984 FREETYPE_DELEGATE_TRUE=
37985 FREETYPE_DELEGATE_FALSE='#'
37986else
37987 FREETYPE_DELEGATE_TRUE='#'
37988 FREETYPE_DELEGATE_FALSE=
37989fi
37990
37991
37992
37993
37994
37995#
37996# Check for Ghostscript library or framework.
37997#
37998# Test for iapi.h & test for gsapi_new_instance in -lgs
37999# or -framework Ghostscript
38000
38001
38002# Check whether --with-gslib was given.
38003if test "${with_gslib+set}" = set; then
38004 withval=$with_gslib; with_gslib=$withval
38005else
38006 with_gslib='no'
38007fi
38008
38009
38010if test "$with_gslib" != 'yes'; then
38011 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
38012fi
38013
38014have_gslib='no'
38015GS_LIBS=''
38016if test "$with_gslib" != 'no'; then
38017 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38018$as_echo "-------------------------------------------------------------" >&6; }
38019 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
38020$as_echo_n "checking for Ghostscript... " >&6; }
38021 { $as_echo "$as_me:$LINENO: result: " >&5
38022$as_echo "" >&6; }
38023 framework=0;
38024 failed=0
38025 passed=0
38026 if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38027 { $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38028$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38029if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38030 $as_echo_n "(cached) " >&6
38031fi
38032{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38033$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38034else
38035 # Is the header compilable?
38036{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h usability" >&5
38037$as_echo_n "checking ghostscript/iapi.h usability... " >&6; }
38038cat >conftest.$ac_ext <<_ACEOF
38039/* confdefs.h. */
38040_ACEOF
38041cat confdefs.h >>conftest.$ac_ext
38042cat >>conftest.$ac_ext <<_ACEOF
38043/* end confdefs.h. */
38044$ac_includes_default
38045#include <ghostscript/iapi.h>
38046_ACEOF
38047rm -f conftest.$ac_objext
38048if { (ac_try="$ac_compile"
38049case "(($ac_try" in
38050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38051 *) ac_try_echo=$ac_try;;
38052esac
38053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38054$as_echo "$ac_try_echo") >&5
38055 (eval "$ac_compile") 2>conftest.er1
38056 ac_status=$?
38057 grep -v '^ *+' conftest.er1 >conftest.err
38058 rm -f conftest.er1
38059 cat conftest.err >&5
38060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38061 (exit $ac_status); } && {
38062 test -z "$ac_c_werror_flag" ||
38063 test ! -s conftest.err
38064 } && test -s conftest.$ac_objext; then
38065 ac_header_compiler=yes
38066else
38067 $as_echo "$as_me: failed program was:" >&5
38068sed 's/^/| /' conftest.$ac_ext >&5
38069
38070 ac_header_compiler=no
38071fi
38072
38073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38074{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38075$as_echo "$ac_header_compiler" >&6; }
38076
38077# Is the header present?
38078{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h presence" >&5
38079$as_echo_n "checking ghostscript/iapi.h presence... " >&6; }
38080cat >conftest.$ac_ext <<_ACEOF
38081/* confdefs.h. */
38082_ACEOF
38083cat confdefs.h >>conftest.$ac_ext
38084cat >>conftest.$ac_ext <<_ACEOF
38085/* end confdefs.h. */
38086#include <ghostscript/iapi.h>
38087_ACEOF
38088if { (ac_try="$ac_cpp conftest.$ac_ext"
38089case "(($ac_try" in
38090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38091 *) ac_try_echo=$ac_try;;
38092esac
38093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38094$as_echo "$ac_try_echo") >&5
38095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38096 ac_status=$?
38097 grep -v '^ *+' conftest.er1 >conftest.err
38098 rm -f conftest.er1
38099 cat conftest.err >&5
38100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101 (exit $ac_status); } >/dev/null && {
38102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38103 test ! -s conftest.err
38104 }; then
38105 ac_header_preproc=yes
38106else
38107 $as_echo "$as_me: failed program was:" >&5
38108sed 's/^/| /' conftest.$ac_ext >&5
38109
38110 ac_header_preproc=no
38111fi
38112
38113rm -f conftest.err conftest.$ac_ext
38114{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38115$as_echo "$ac_header_preproc" >&6; }
38116
38117# So? What about this header?
38118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38119 yes:no: )
38120 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
38121$as_echo "$as_me: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38122 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&5
38123$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&2;}
38124 ac_header_preproc=yes
38125 ;;
38126 no:yes:* )
38127 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&5
38128$as_echo "$as_me: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&2;}
38129 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&5
38130$as_echo "$as_me: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&2;}
38131 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&5
38132$as_echo "$as_me: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&2;}
38133 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&5
38134$as_echo "$as_me: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
38135 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&5
38136$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&2;}
38137 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&5
38138$as_echo "$as_me: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&2;}
38139 ( cat <<\_ASBOX
38140## ----------------------------------------- ##
38141## Report this to http://www.imagemagick.org ##
38142## ----------------------------------------- ##
38143_ASBOX
38144 ) | sed "s/^/$as_me: WARNING: /" >&2
38145 ;;
38146esac
38147{ $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38148$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38149if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38150 $as_echo_n "(cached) " >&6
38151else
38152 ac_cv_header_ghostscript_iapi_h=$ac_header_preproc
38153fi
38154{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38155$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38156
38157fi
38158if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then
38159 passed=`expr $passed + 1`
38160else
38161 failed=`expr $failed + 1`
38162fi
38163
38164
38165 if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38166 { $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
38167$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
38168if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38169 $as_echo_n "(cached) " >&6
38170fi
38171{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
38172$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
38173else
38174 # Is the header compilable?
38175{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h usability" >&5
38176$as_echo_n "checking ghostscript/ierrors.h usability... " >&6; }
38177cat >conftest.$ac_ext <<_ACEOF
38178/* confdefs.h. */
38179_ACEOF
38180cat confdefs.h >>conftest.$ac_ext
38181cat >>conftest.$ac_ext <<_ACEOF
38182/* end confdefs.h. */
38183$ac_includes_default
38184#include <ghostscript/ierrors.h>
38185_ACEOF
38186rm -f conftest.$ac_objext
38187if { (ac_try="$ac_compile"
38188case "(($ac_try" in
38189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38190 *) ac_try_echo=$ac_try;;
38191esac
38192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38193$as_echo "$ac_try_echo") >&5
38194 (eval "$ac_compile") 2>conftest.er1
38195 ac_status=$?
38196 grep -v '^ *+' conftest.er1 >conftest.err
38197 rm -f conftest.er1
38198 cat conftest.err >&5
38199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200 (exit $ac_status); } && {
38201 test -z "$ac_c_werror_flag" ||
38202 test ! -s conftest.err
38203 } && test -s conftest.$ac_objext; then
38204 ac_header_compiler=yes
38205else
38206 $as_echo "$as_me: failed program was:" >&5
38207sed 's/^/| /' conftest.$ac_ext >&5
38208
38209 ac_header_compiler=no
38210fi
38211
38212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38213{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38214$as_echo "$ac_header_compiler" >&6; }
38215
38216# Is the header present?
38217{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h presence" >&5
38218$as_echo_n "checking ghostscript/ierrors.h presence... " >&6; }
38219cat >conftest.$ac_ext <<_ACEOF
38220/* confdefs.h. */
38221_ACEOF
38222cat confdefs.h >>conftest.$ac_ext
38223cat >>conftest.$ac_ext <<_ACEOF
38224/* end confdefs.h. */
38225#include <ghostscript/ierrors.h>
38226_ACEOF
38227if { (ac_try="$ac_cpp conftest.$ac_ext"
38228case "(($ac_try" in
38229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38230 *) ac_try_echo=$ac_try;;
38231esac
38232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38233$as_echo "$ac_try_echo") >&5
38234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38235 ac_status=$?
38236 grep -v '^ *+' conftest.er1 >conftest.err
38237 rm -f conftest.er1
38238 cat conftest.err >&5
38239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240 (exit $ac_status); } >/dev/null && {
38241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38242 test ! -s conftest.err
38243 }; then
38244 ac_header_preproc=yes
38245else
38246 $as_echo "$as_me: failed program was:" >&5
38247sed 's/^/| /' conftest.$ac_ext >&5
38248
38249 ac_header_preproc=no
38250fi
38251
38252rm -f conftest.err conftest.$ac_ext
38253{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38254$as_echo "$ac_header_preproc" >&6; }
38255
38256# So? What about this header?
38257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38258 yes:no: )
38259 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&5
38260$as_echo "$as_me: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38261 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&5
38262$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&2;}
38263 ac_header_preproc=yes
38264 ;;
38265 no:yes:* )
38266 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&5
38267$as_echo "$as_me: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&2;}
38268 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&5
38269$as_echo "$as_me: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&2;}
38270 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&5
38271$as_echo "$as_me: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&2;}
38272 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&5
38273$as_echo "$as_me: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&2;}
38274 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&5
38275$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&2;}
38276 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&5
38277$as_echo "$as_me: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&2;}
38278 ( cat <<\_ASBOX
38279## ----------------------------------------- ##
38280## Report this to http://www.imagemagick.org ##
38281## ----------------------------------------- ##
38282_ASBOX
38283 ) | sed "s/^/$as_me: WARNING: /" >&2
38284 ;;
38285esac
38286{ $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
38287$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
38288if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38289 $as_echo_n "(cached) " >&6
38290else
38291 ac_cv_header_ghostscript_ierrors_h=$ac_header_preproc
38292fi
38293{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
38294$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
38295
38296fi
38297if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then
38298 passed=`expr $passed + 1`
38299else
38300 failed=`expr $failed + 1`
38301fi
38302
38303
38304 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in Ghostscript framework" >&5
38305$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
38306if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then
38307 $as_echo_n "(cached) " >&6
38308else
38309 ac_check_framework_save_LIBS=$LIBS
38310LIBS="-framework Ghostscript $LIBS"
38311cat >conftest.$ac_ext <<_ACEOF
38312/* confdefs.h. */
38313_ACEOF
38314cat confdefs.h >>conftest.$ac_ext
38315cat >>conftest.$ac_ext <<_ACEOF
38316/* end confdefs.h. */
38317
38318/* Override any GCC internal prototype to avoid an error.
38319 Use char because int might match the return type of a GCC
38320 builtin and then its argument prototype would still apply. */
38321#ifdef __cplusplus
38322extern "C"
38323#endif
38324char gsapi_new_instance ();
38325int
38326main ()
38327{
38328return gsapi_new_instance ();
38329 ;
38330 return 0;
38331}
38332_ACEOF
38333rm -f conftest.$ac_objext conftest$ac_exeext
38334if { (ac_try="$ac_link"
38335case "(($ac_try" in
38336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38337 *) ac_try_echo=$ac_try;;
38338esac
38339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38340$as_echo "$ac_try_echo") >&5
38341 (eval "$ac_link") 2>conftest.er1
38342 ac_status=$?
38343 grep -v '^ *+' conftest.er1 >conftest.err
38344 rm -f conftest.er1
38345 cat conftest.err >&5
38346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38347 (exit $ac_status); } && {
38348 test -z "$ac_c_werror_flag" ||
38349 test ! -s conftest.err
38350 } && test -s conftest$ac_exeext && {
38351 test "$cross_compiling" = yes ||
38352 $as_test_x conftest$ac_exeext
38353 }; then
38354 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
38355else
38356 $as_echo "$as_me: failed program was:" >&5
38357sed 's/^/| /' conftest.$ac_ext >&5
38358
38359 ac_cv_framework_Ghostscript_gsapi_new_instance=no
38360fi
38361
38362rm -rf conftest.dSYM
38363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38364 conftest$ac_exeext conftest.$ac_ext
38365LIBS=$ac_check_framework_save_LIBS
38366fi
38367{ $as_echo "$as_me:$LINENO: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
38368$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
38369if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then
38370 framework=`expr $framework + 1`
38371else
38372 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in -lgs" >&5
38373$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
38374if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then
38375 $as_echo_n "(cached) " >&6
38376else
38377 ac_check_lib_save_LIBS=$LIBS
38378LIBS="-lgs $LIBS"
38379cat >conftest.$ac_ext <<_ACEOF
38380/* confdefs.h. */
38381_ACEOF
38382cat confdefs.h >>conftest.$ac_ext
38383cat >>conftest.$ac_ext <<_ACEOF
38384/* end confdefs.h. */
38385
38386/* Override any GCC internal prototype to avoid an error.
38387 Use char because int might match the return type of a GCC
38388 builtin and then its argument prototype would still apply. */
38389#ifdef __cplusplus
38390extern "C"
38391#endif
38392char gsapi_new_instance ();
38393int
38394main ()
38395{
38396return gsapi_new_instance ();
38397 ;
38398 return 0;
38399}
38400_ACEOF
38401rm -f conftest.$ac_objext conftest$ac_exeext
38402if { (ac_try="$ac_link"
38403case "(($ac_try" in
38404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38405 *) ac_try_echo=$ac_try;;
38406esac
38407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38408$as_echo "$ac_try_echo") >&5
38409 (eval "$ac_link") 2>conftest.er1
38410 ac_status=$?
38411 grep -v '^ *+' conftest.er1 >conftest.err
38412 rm -f conftest.er1
38413 cat conftest.err >&5
38414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38415 (exit $ac_status); } && {
38416 test -z "$ac_c_werror_flag" ||
38417 test ! -s conftest.err
38418 } && test -s conftest$ac_exeext && {
38419 test "$cross_compiling" = yes ||
38420 $as_test_x conftest$ac_exeext
38421 }; then
38422 ac_cv_lib_gs_gsapi_new_instance=yes
38423else
38424 $as_echo "$as_me: failed program was:" >&5
38425sed 's/^/| /' conftest.$ac_ext >&5
38426
38427 ac_cv_lib_gs_gsapi_new_instance=no
38428fi
38429
38430rm -rf conftest.dSYM
38431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38432 conftest$ac_exeext conftest.$ac_ext
38433LIBS=$ac_check_lib_save_LIBS
38434fi
38435{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
38436$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
38437if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then
38438 passed=`expr $passed + 1`
38439else
38440 failed=`expr $failed + 1`
38441fi
38442
38443fi
38444
38445 { $as_echo "$as_me:$LINENO: checking if Ghostscript package is complete" >&5
38446$as_echo_n "checking if Ghostscript package is complete... " >&6; }
38447 if test $passed -gt 0; then
38448 if test $failed -gt 0; then
38449 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38450$as_echo "no -- some components failed test" >&6; }
38451 have_gslib='no (failed tests)'
38452 else
38453 if test $framework -gt 0; then
38454 GS_LIBS='-framework Ghostscript'
38455 { $as_echo "$as_me:$LINENO: result: yes, using framework." >&5
38456$as_echo "yes, using framework." >&6; }
38457 else
38458 { $as_echo "$as_me:$LINENO: result: yes, using library." >&5
38459$as_echo "yes, using library." >&6; }
38460 GS_LIBS='-lgs'
38461 fi
38462 LIBS="$GS_LIBS $LIBS"
38463
38464cat >>confdefs.h <<\_ACEOF
38465#define GS_DELEGATE 1
38466_ACEOF
38467
38468 have_gslib='yes'
38469 fi
38470 else
38471 { $as_echo "$as_me:$LINENO: result: no" >&5
38472$as_echo "no" >&6; }
38473 fi
38474fi
38475 if test "$have_gslib" = 'yes'; then
38476 GS_DELEGATE_TRUE=
38477 GS_DELEGATE_FALSE='#'
38478else
38479 GS_DELEGATE_TRUE='#'
38480 GS_DELEGATE_FALSE=
38481fi
38482
38483
38484
38485# Set default font search path
38486
38487# Check whether --with-fontpath was given.
38488if test "${with_fontpath+set}" = set; then
38489 withval=$with_fontpath; with_fontpath=$withval
38490else
38491 with_fontpath=''
38492fi
38493
38494
38495if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
38496 with_fontpath=''
38497else
38498
38499cat >>confdefs.h <<_ACEOF
38500#define MAGICK_FONT_PATH "$with_fontpath"
38501_ACEOF
38502
38503fi
38504if test "$with_fontpath=" != ''; then
38505 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
38506fi
38507
38508# Set Ghostscript font directory
38509
38510# Check whether --with-gs-font-dir was given.
38511if test "${with_gs_font_dir+set}" = set; then
38512 withval=$with_gs_font_dir; with_gs_font_dir=$withval
38513else
38514 with_gs_font_dir='default'
38515fi
38516
38517
38518if test "$with_gs_font_dir" != 'default'; then
38519 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
38520fi
38521
38522
38523#
38524# Check for GVC delegate library.
38525#
38526
38527# Check whether --with-gvc was given.
38528if test "${with_gvc+set}" = set; then
38529 withval=$with_gvc; with_gvc=$withval
38530else
38531 with_gvc='yes'
38532fi
38533
38534
38535if test "$with_gvc" != 'yes'; then
38536 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
38537fi
38538
38539GVC_PKG=""
38540if test "x$with_gvc" = "xyes"; then
38541 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38542$as_echo "-------------------------------------------------------------" >&6; }
38543
38544pkg_failed=no
38545{ $as_echo "$as_me:$LINENO: checking for GVC" >&5
38546$as_echo_n "checking for GVC... " >&6; }
38547
38548if test -n "$GVC_CFLAGS"; then
38549 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
38550 elif test -n "$PKG_CONFIG"; then
38551 if test -n "$PKG_CONFIG" && \
38552 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
38553 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
38554 ac_status=$?
38555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38556 (exit $ac_status); }; then
38557 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
38558else
38559 pkg_failed=yes
38560fi
38561 else
38562 pkg_failed=untried
38563fi
38564if test -n "$GVC_LIBS"; then
38565 pkg_cv_GVC_LIBS="$GVC_LIBS"
38566 elif test -n "$PKG_CONFIG"; then
38567 if test -n "$PKG_CONFIG" && \
38568 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
38569 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
38570 ac_status=$?
38571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38572 (exit $ac_status); }; then
38573 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
38574else
38575 pkg_failed=yes
38576fi
38577 else
38578 pkg_failed=untried
38579fi
38580
38581
38582
38583if test $pkg_failed = yes; then
38584
38585if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38586 _pkg_short_errors_supported=yes
38587else
38588 _pkg_short_errors_supported=no
38589fi
38590 if test $_pkg_short_errors_supported = yes; then
38591 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
38592 else
38593 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
38594 fi
38595 # Put the nasty error message in config.log where it belongs
38596 echo "$GVC_PKG_ERRORS" >&5
38597
38598 { $as_echo "$as_me:$LINENO: result: no" >&5
38599$as_echo "no" >&6; }
38600 have_gvc=no
38601elif test $pkg_failed = untried; then
38602 have_gvc=no
38603else
38604 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
38605 GVC_LIBS=$pkg_cv_GVC_LIBS
38606 { $as_echo "$as_me:$LINENO: result: yes" >&5
38607$as_echo "yes" >&6; }
38608 have_gvc=yes
38609fi
38610 { $as_echo "$as_me:$LINENO: result: " >&5
38611$as_echo "" >&6; }
38612fi
38613
38614if test "$have_gvc" = 'yes'; then
38615
38616cat >>confdefs.h <<\_ACEOF
38617#define GVC_DELEGATE 1
38618_ACEOF
38619
38620 if test "$with_modules" = 'no'; then
38621 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
38622 fi
38623fi
38624
38625 if test "$have_gvc" = 'yes'; then
38626 GVC_DELEGATE_TRUE=
38627 GVC_DELEGATE_FALSE='#'
38628else
38629 GVC_DELEGATE_TRUE='#'
38630 GVC_DELEGATE_FALSE=
38631fi
38632
38633
38634
38635
38636
38637#
38638# Check for JBIG delegate library.
38639#
38640
38641
38642# Check whether --with-jbig was given.
38643if test "${with_jbig+set}" = set; then
38644 withval=$with_jbig; with_jbig=$withval
38645else
38646 with_jbig='yes'
38647fi
38648
38649
38650have_jbig='no'
38651JBIG_LIBS=''
38652if test "$with_jbig" != 'no'; then
38653 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38654$as_echo "-------------------------------------------------------------" >&6; }
38655 { $as_echo "$as_me:$LINENO: checking for JBIG" >&5
38656$as_echo_n "checking for JBIG... " >&6; }
38657 { $as_echo "$as_me:$LINENO: result: " >&5
38658$as_echo "" >&6; }
38659 failed=0
38660 passed=0
38661 if test "${ac_cv_header_jbig_h+set}" = set; then
38662 { $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
38663$as_echo_n "checking for jbig.h... " >&6; }
38664if test "${ac_cv_header_jbig_h+set}" = set; then
38665 $as_echo_n "(cached) " >&6
38666fi
38667{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
38668$as_echo "$ac_cv_header_jbig_h" >&6; }
38669else
38670 # Is the header compilable?
38671{ $as_echo "$as_me:$LINENO: checking jbig.h usability" >&5
38672$as_echo_n "checking jbig.h usability... " >&6; }
38673cat >conftest.$ac_ext <<_ACEOF
38674/* confdefs.h. */
38675_ACEOF
38676cat confdefs.h >>conftest.$ac_ext
38677cat >>conftest.$ac_ext <<_ACEOF
38678/* end confdefs.h. */
38679$ac_includes_default
38680#include <jbig.h>
38681_ACEOF
38682rm -f conftest.$ac_objext
38683if { (ac_try="$ac_compile"
38684case "(($ac_try" in
38685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38686 *) ac_try_echo=$ac_try;;
38687esac
38688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38689$as_echo "$ac_try_echo") >&5
38690 (eval "$ac_compile") 2>conftest.er1
38691 ac_status=$?
38692 grep -v '^ *+' conftest.er1 >conftest.err
38693 rm -f conftest.er1
38694 cat conftest.err >&5
38695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38696 (exit $ac_status); } && {
38697 test -z "$ac_c_werror_flag" ||
38698 test ! -s conftest.err
38699 } && test -s conftest.$ac_objext; then
38700 ac_header_compiler=yes
38701else
38702 $as_echo "$as_me: failed program was:" >&5
38703sed 's/^/| /' conftest.$ac_ext >&5
38704
38705 ac_header_compiler=no
38706fi
38707
38708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38709{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38710$as_echo "$ac_header_compiler" >&6; }
38711
38712# Is the header present?
38713{ $as_echo "$as_me:$LINENO: checking jbig.h presence" >&5
38714$as_echo_n "checking jbig.h presence... " >&6; }
38715cat >conftest.$ac_ext <<_ACEOF
38716/* confdefs.h. */
38717_ACEOF
38718cat confdefs.h >>conftest.$ac_ext
38719cat >>conftest.$ac_ext <<_ACEOF
38720/* end confdefs.h. */
38721#include <jbig.h>
38722_ACEOF
38723if { (ac_try="$ac_cpp conftest.$ac_ext"
38724case "(($ac_try" in
38725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38726 *) ac_try_echo=$ac_try;;
38727esac
38728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38729$as_echo "$ac_try_echo") >&5
38730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38731 ac_status=$?
38732 grep -v '^ *+' conftest.er1 >conftest.err
38733 rm -f conftest.er1
38734 cat conftest.err >&5
38735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38736 (exit $ac_status); } >/dev/null && {
38737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38738 test ! -s conftest.err
38739 }; then
38740 ac_header_preproc=yes
38741else
38742 $as_echo "$as_me: failed program was:" >&5
38743sed 's/^/| /' conftest.$ac_ext >&5
38744
38745 ac_header_preproc=no
38746fi
38747
38748rm -f conftest.err conftest.$ac_ext
38749{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38750$as_echo "$ac_header_preproc" >&6; }
38751
38752# So? What about this header?
38753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38754 yes:no: )
38755 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&5
38756$as_echo "$as_me: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38757 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the compiler's result" >&5
38758$as_echo "$as_me: WARNING: jbig.h: proceeding with the compiler's result" >&2;}
38759 ac_header_preproc=yes
38760 ;;
38761 no:yes:* )
38762 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: present but cannot be compiled" >&5
38763$as_echo "$as_me: WARNING: jbig.h: present but cannot be compiled" >&2;}
38764 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: check for missing prerequisite headers?" >&5
38765$as_echo "$as_me: WARNING: jbig.h: check for missing prerequisite headers?" >&2;}
38766 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: see the Autoconf documentation" >&5
38767$as_echo "$as_me: WARNING: jbig.h: see the Autoconf documentation" >&2;}
38768 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&5
38769$as_echo "$as_me: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&2;}
38770 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the preprocessor's result" >&5
38771$as_echo "$as_me: WARNING: jbig.h: proceeding with the preprocessor's result" >&2;}
38772 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: in the future, the compiler will take precedence" >&5
38773$as_echo "$as_me: WARNING: jbig.h: in the future, the compiler will take precedence" >&2;}
38774 ( cat <<\_ASBOX
38775## ----------------------------------------- ##
38776## Report this to http://www.imagemagick.org ##
38777## ----------------------------------------- ##
38778_ASBOX
38779 ) | sed "s/^/$as_me: WARNING: /" >&2
38780 ;;
38781esac
38782{ $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
38783$as_echo_n "checking for jbig.h... " >&6; }
38784if test "${ac_cv_header_jbig_h+set}" = set; then
38785 $as_echo_n "(cached) " >&6
38786else
38787 ac_cv_header_jbig_h=$ac_header_preproc
38788fi
38789{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
38790$as_echo "$ac_cv_header_jbig_h" >&6; }
38791
38792fi
38793if test "x$ac_cv_header_jbig_h" = x""yes; then
38794 passed=`expr $passed + 1`
38795else
38796 failed=`expr $failed + 1`
38797fi
38798
38799
38800 { $as_echo "$as_me:$LINENO: checking for jbg_dec_init in -ljbig" >&5
38801$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
38802if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then
38803 $as_echo_n "(cached) " >&6
38804else
38805 ac_check_lib_save_LIBS=$LIBS
38806LIBS="-ljbig $LIBS"
38807cat >conftest.$ac_ext <<_ACEOF
38808/* confdefs.h. */
38809_ACEOF
38810cat confdefs.h >>conftest.$ac_ext
38811cat >>conftest.$ac_ext <<_ACEOF
38812/* end confdefs.h. */
38813
38814/* Override any GCC internal prototype to avoid an error.
38815 Use char because int might match the return type of a GCC
38816 builtin and then its argument prototype would still apply. */
38817#ifdef __cplusplus
38818extern "C"
38819#endif
38820char jbg_dec_init ();
38821int
38822main ()
38823{
38824return jbg_dec_init ();
38825 ;
38826 return 0;
38827}
38828_ACEOF
38829rm -f conftest.$ac_objext conftest$ac_exeext
38830if { (ac_try="$ac_link"
38831case "(($ac_try" in
38832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38833 *) ac_try_echo=$ac_try;;
38834esac
38835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38836$as_echo "$ac_try_echo") >&5
38837 (eval "$ac_link") 2>conftest.er1
38838 ac_status=$?
38839 grep -v '^ *+' conftest.er1 >conftest.err
38840 rm -f conftest.er1
38841 cat conftest.err >&5
38842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843 (exit $ac_status); } && {
38844 test -z "$ac_c_werror_flag" ||
38845 test ! -s conftest.err
38846 } && test -s conftest$ac_exeext && {
38847 test "$cross_compiling" = yes ||
38848 $as_test_x conftest$ac_exeext
38849 }; then
38850 ac_cv_lib_jbig_jbg_dec_init=yes
38851else
38852 $as_echo "$as_me: failed program was:" >&5
38853sed 's/^/| /' conftest.$ac_ext >&5
38854
38855 ac_cv_lib_jbig_jbg_dec_init=no
38856fi
38857
38858rm -rf conftest.dSYM
38859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38860 conftest$ac_exeext conftest.$ac_ext
38861LIBS=$ac_check_lib_save_LIBS
38862fi
38863{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
38864$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
38865if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then
38866 passed=`expr $passed + 1`
38867else
38868 failed=`expr $failed + 1`
38869fi
38870
38871 { $as_echo "$as_me:$LINENO: checking if JBIG package is complete" >&5
38872$as_echo_n "checking if JBIG package is complete... " >&6; }
38873 if test $passed -gt 0; then
38874 if test $failed -gt 0; then
38875 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38876$as_echo "no -- some components failed test" >&6; }
38877 have_jbig='no (failed tests)'
38878 else
38879 JBIG_LIBS='-ljbig'
38880 LIBS="$JBIG_LIBS $LIBS"
38881
38882cat >>confdefs.h <<\_ACEOF
38883#define JBIG_DELEGATE 1
38884_ACEOF
38885
38886 { $as_echo "$as_me:$LINENO: result: yes" >&5
38887$as_echo "yes" >&6; }
38888 have_jbig='yes'
38889 fi
38890 else
38891 { $as_echo "$as_me:$LINENO: result: no" >&5
38892$as_echo "no" >&6; }
38893 fi
38894fi
38895 if test "$have_jbig" = 'yes'; then
38896 JBIG_DELEGATE_TRUE=
38897 JBIG_DELEGATE_FALSE='#'
38898else
38899 JBIG_DELEGATE_TRUE='#'
38900 JBIG_DELEGATE_FALSE=
38901fi
38902
38903
38904
38905
38906#
38907# Check for JPEG delegate library.
38908#
38909
38910# Check whether --with-jpeg was given.
38911if test "${with_jpeg+set}" = set; then
38912 withval=$with_jpeg; with_jpeg=$withval
38913else
38914 with_jpeg='yes'
38915fi
38916
38917
38918if test "$with_jpeg" != 'yes'; then
38919 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
38920fi
38921
38922have_jpeg='no'
38923JPEG_LIBS=''
38924if test "$with_jpeg" != 'no'; then
38925 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38926$as_echo "-------------------------------------------------------------" >&6; }
38927 { $as_echo "$as_me:$LINENO: checking for JPEG" >&5
38928$as_echo_n "checking for JPEG... " >&6; }
38929 { $as_echo "$as_me:$LINENO: result: " >&5
38930$as_echo "" >&6; }
38931 failed=0
38932 passed=0
38933 if test "${ac_cv_header_jconfig_h+set}" = set; then
38934 { $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
38935$as_echo_n "checking for jconfig.h... " >&6; }
38936if test "${ac_cv_header_jconfig_h+set}" = set; then
38937 $as_echo_n "(cached) " >&6
38938fi
38939{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
38940$as_echo "$ac_cv_header_jconfig_h" >&6; }
38941else
38942 # Is the header compilable?
38943{ $as_echo "$as_me:$LINENO: checking jconfig.h usability" >&5
38944$as_echo_n "checking jconfig.h usability... " >&6; }
38945cat >conftest.$ac_ext <<_ACEOF
38946/* confdefs.h. */
38947_ACEOF
38948cat confdefs.h >>conftest.$ac_ext
38949cat >>conftest.$ac_ext <<_ACEOF
38950/* end confdefs.h. */
38951$ac_includes_default
38952#include <jconfig.h>
38953_ACEOF
38954rm -f conftest.$ac_objext
38955if { (ac_try="$ac_compile"
38956case "(($ac_try" in
38957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38958 *) ac_try_echo=$ac_try;;
38959esac
38960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38961$as_echo "$ac_try_echo") >&5
38962 (eval "$ac_compile") 2>conftest.er1
38963 ac_status=$?
38964 grep -v '^ *+' conftest.er1 >conftest.err
38965 rm -f conftest.er1
38966 cat conftest.err >&5
38967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38968 (exit $ac_status); } && {
38969 test -z "$ac_c_werror_flag" ||
38970 test ! -s conftest.err
38971 } && test -s conftest.$ac_objext; then
38972 ac_header_compiler=yes
38973else
38974 $as_echo "$as_me: failed program was:" >&5
38975sed 's/^/| /' conftest.$ac_ext >&5
38976
38977 ac_header_compiler=no
38978fi
38979
38980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38981{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38982$as_echo "$ac_header_compiler" >&6; }
38983
38984# Is the header present?
38985{ $as_echo "$as_me:$LINENO: checking jconfig.h presence" >&5
38986$as_echo_n "checking jconfig.h presence... " >&6; }
38987cat >conftest.$ac_ext <<_ACEOF
38988/* confdefs.h. */
38989_ACEOF
38990cat confdefs.h >>conftest.$ac_ext
38991cat >>conftest.$ac_ext <<_ACEOF
38992/* end confdefs.h. */
38993#include <jconfig.h>
38994_ACEOF
38995if { (ac_try="$ac_cpp conftest.$ac_ext"
38996case "(($ac_try" in
38997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38998 *) ac_try_echo=$ac_try;;
38999esac
39000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39001$as_echo "$ac_try_echo") >&5
39002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39003 ac_status=$?
39004 grep -v '^ *+' conftest.er1 >conftest.err
39005 rm -f conftest.er1
39006 cat conftest.err >&5
39007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008 (exit $ac_status); } >/dev/null && {
39009 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39010 test ! -s conftest.err
39011 }; then
39012 ac_header_preproc=yes
39013else
39014 $as_echo "$as_me: failed program was:" >&5
39015sed 's/^/| /' conftest.$ac_ext >&5
39016
39017 ac_header_preproc=no
39018fi
39019
39020rm -f conftest.err conftest.$ac_ext
39021{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39022$as_echo "$ac_header_preproc" >&6; }
39023
39024# So? What about this header?
39025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39026 yes:no: )
39027 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39028$as_echo "$as_me: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39029 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the compiler's result" >&5
39030$as_echo "$as_me: WARNING: jconfig.h: proceeding with the compiler's result" >&2;}
39031 ac_header_preproc=yes
39032 ;;
39033 no:yes:* )
39034 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: present but cannot be compiled" >&5
39035$as_echo "$as_me: WARNING: jconfig.h: present but cannot be compiled" >&2;}
39036 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: check for missing prerequisite headers?" >&5
39037$as_echo "$as_me: WARNING: jconfig.h: check for missing prerequisite headers?" >&2;}
39038 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: see the Autoconf documentation" >&5
39039$as_echo "$as_me: WARNING: jconfig.h: see the Autoconf documentation" >&2;}
39040 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&5
39041$as_echo "$as_me: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39042 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the preprocessor's result" >&5
39043$as_echo "$as_me: WARNING: jconfig.h: proceeding with the preprocessor's result" >&2;}
39044 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: in the future, the compiler will take precedence" >&5
39045$as_echo "$as_me: WARNING: jconfig.h: in the future, the compiler will take precedence" >&2;}
39046 ( cat <<\_ASBOX
39047## ----------------------------------------- ##
39048## Report this to http://www.imagemagick.org ##
39049## ----------------------------------------- ##
39050_ASBOX
39051 ) | sed "s/^/$as_me: WARNING: /" >&2
39052 ;;
39053esac
39054{ $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39055$as_echo_n "checking for jconfig.h... " >&6; }
39056if test "${ac_cv_header_jconfig_h+set}" = set; then
39057 $as_echo_n "(cached) " >&6
39058else
39059 ac_cv_header_jconfig_h=$ac_header_preproc
39060fi
39061{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39062$as_echo "$ac_cv_header_jconfig_h" >&6; }
39063
39064fi
39065if test "x$ac_cv_header_jconfig_h" = x""yes; then
39066 passed=`expr $passed + 1`
39067else
39068 failed=`expr $failed + 1`
39069fi
39070
39071
39072 if test "${ac_cv_header_jerror_h+set}" = set; then
39073 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
39074$as_echo_n "checking for jerror.h... " >&6; }
39075if test "${ac_cv_header_jerror_h+set}" = set; then
39076 $as_echo_n "(cached) " >&6
39077fi
39078{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
39079$as_echo "$ac_cv_header_jerror_h" >&6; }
39080else
39081 # Is the header compilable?
39082{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
39083$as_echo_n "checking jerror.h usability... " >&6; }
39084cat >conftest.$ac_ext <<_ACEOF
39085/* confdefs.h. */
39086_ACEOF
39087cat confdefs.h >>conftest.$ac_ext
39088cat >>conftest.$ac_ext <<_ACEOF
39089/* end confdefs.h. */
39090$ac_includes_default
39091#include <jerror.h>
39092_ACEOF
39093rm -f conftest.$ac_objext
39094if { (ac_try="$ac_compile"
39095case "(($ac_try" in
39096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39097 *) ac_try_echo=$ac_try;;
39098esac
39099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39100$as_echo "$ac_try_echo") >&5
39101 (eval "$ac_compile") 2>conftest.er1
39102 ac_status=$?
39103 grep -v '^ *+' conftest.er1 >conftest.err
39104 rm -f conftest.er1
39105 cat conftest.err >&5
39106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39107 (exit $ac_status); } && {
39108 test -z "$ac_c_werror_flag" ||
39109 test ! -s conftest.err
39110 } && test -s conftest.$ac_objext; then
39111 ac_header_compiler=yes
39112else
39113 $as_echo "$as_me: failed program was:" >&5
39114sed 's/^/| /' conftest.$ac_ext >&5
39115
39116 ac_header_compiler=no
39117fi
39118
39119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39120{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39121$as_echo "$ac_header_compiler" >&6; }
39122
39123# Is the header present?
39124{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
39125$as_echo_n "checking jerror.h presence... " >&6; }
39126cat >conftest.$ac_ext <<_ACEOF
39127/* confdefs.h. */
39128_ACEOF
39129cat confdefs.h >>conftest.$ac_ext
39130cat >>conftest.$ac_ext <<_ACEOF
39131/* end confdefs.h. */
39132#include <jerror.h>
39133_ACEOF
39134if { (ac_try="$ac_cpp conftest.$ac_ext"
39135case "(($ac_try" in
39136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39137 *) ac_try_echo=$ac_try;;
39138esac
39139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39140$as_echo "$ac_try_echo") >&5
39141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39142 ac_status=$?
39143 grep -v '^ *+' conftest.er1 >conftest.err
39144 rm -f conftest.er1
39145 cat conftest.err >&5
39146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39147 (exit $ac_status); } >/dev/null && {
39148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39149 test ! -s conftest.err
39150 }; then
39151 ac_header_preproc=yes
39152else
39153 $as_echo "$as_me: failed program was:" >&5
39154sed 's/^/| /' conftest.$ac_ext >&5
39155
39156 ac_header_preproc=no
39157fi
39158
39159rm -f conftest.err conftest.$ac_ext
39160{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39161$as_echo "$ac_header_preproc" >&6; }
39162
39163# So? What about this header?
39164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39165 yes:no: )
39166 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
39167$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39168 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
39169$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
39170 ac_header_preproc=yes
39171 ;;
39172 no:yes:* )
39173 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
39174$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
39175 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
39176$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
39177 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
39178$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
39179 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
39180$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
39181 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
39182$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
39183 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
39184$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
39185 ( cat <<\_ASBOX
39186## ----------------------------------------- ##
39187## Report this to http://www.imagemagick.org ##
39188## ----------------------------------------- ##
39189_ASBOX
39190 ) | sed "s/^/$as_me: WARNING: /" >&2
39191 ;;
39192esac
39193{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
39194$as_echo_n "checking for jerror.h... " >&6; }
39195if test "${ac_cv_header_jerror_h+set}" = set; then
39196 $as_echo_n "(cached) " >&6
39197else
39198 ac_cv_header_jerror_h=$ac_header_preproc
39199fi
39200{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
39201$as_echo "$ac_cv_header_jerror_h" >&6; }
39202
39203fi
39204if test "x$ac_cv_header_jerror_h" = x""yes; then
39205 passed=`expr $passed + 1`
39206else
39207 failed=`expr $failed + 1`
39208fi
39209
39210
39211 if test "${ac_cv_header_jmorecfg_h+set}" = set; then
39212 { $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
39213$as_echo_n "checking for jmorecfg.h... " >&6; }
39214if test "${ac_cv_header_jmorecfg_h+set}" = set; then
39215 $as_echo_n "(cached) " >&6
39216fi
39217{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
39218$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
39219else
39220 # Is the header compilable?
39221{ $as_echo "$as_me:$LINENO: checking jmorecfg.h usability" >&5
39222$as_echo_n "checking jmorecfg.h usability... " >&6; }
39223cat >conftest.$ac_ext <<_ACEOF
39224/* confdefs.h. */
39225_ACEOF
39226cat confdefs.h >>conftest.$ac_ext
39227cat >>conftest.$ac_ext <<_ACEOF
39228/* end confdefs.h. */
39229$ac_includes_default
39230#include <jmorecfg.h>
39231_ACEOF
39232rm -f conftest.$ac_objext
39233if { (ac_try="$ac_compile"
39234case "(($ac_try" in
39235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39236 *) ac_try_echo=$ac_try;;
39237esac
39238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39239$as_echo "$ac_try_echo") >&5
39240 (eval "$ac_compile") 2>conftest.er1
39241 ac_status=$?
39242 grep -v '^ *+' conftest.er1 >conftest.err
39243 rm -f conftest.er1
39244 cat conftest.err >&5
39245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39246 (exit $ac_status); } && {
39247 test -z "$ac_c_werror_flag" ||
39248 test ! -s conftest.err
39249 } && test -s conftest.$ac_objext; then
39250 ac_header_compiler=yes
39251else
39252 $as_echo "$as_me: failed program was:" >&5
39253sed 's/^/| /' conftest.$ac_ext >&5
39254
39255 ac_header_compiler=no
39256fi
39257
39258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39259{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39260$as_echo "$ac_header_compiler" >&6; }
39261
39262# Is the header present?
39263{ $as_echo "$as_me:$LINENO: checking jmorecfg.h presence" >&5
39264$as_echo_n "checking jmorecfg.h presence... " >&6; }
39265cat >conftest.$ac_ext <<_ACEOF
39266/* confdefs.h. */
39267_ACEOF
39268cat confdefs.h >>conftest.$ac_ext
39269cat >>conftest.$ac_ext <<_ACEOF
39270/* end confdefs.h. */
39271#include <jmorecfg.h>
39272_ACEOF
39273if { (ac_try="$ac_cpp conftest.$ac_ext"
39274case "(($ac_try" in
39275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39276 *) ac_try_echo=$ac_try;;
39277esac
39278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39279$as_echo "$ac_try_echo") >&5
39280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39281 ac_status=$?
39282 grep -v '^ *+' conftest.er1 >conftest.err
39283 rm -f conftest.er1
39284 cat conftest.err >&5
39285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39286 (exit $ac_status); } >/dev/null && {
39287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39288 test ! -s conftest.err
39289 }; then
39290 ac_header_preproc=yes
39291else
39292 $as_echo "$as_me: failed program was:" >&5
39293sed 's/^/| /' conftest.$ac_ext >&5
39294
39295 ac_header_preproc=no
39296fi
39297
39298rm -f conftest.err conftest.$ac_ext
39299{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39300$as_echo "$ac_header_preproc" >&6; }
39301
39302# So? What about this header?
39303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39304 yes:no: )
39305 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&5
39306$as_echo "$as_me: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39307 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the compiler's result" >&5
39308$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the compiler's result" >&2;}
39309 ac_header_preproc=yes
39310 ;;
39311 no:yes:* )
39312 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: present but cannot be compiled" >&5
39313$as_echo "$as_me: WARNING: jmorecfg.h: present but cannot be compiled" >&2;}
39314 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&5
39315$as_echo "$as_me: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&2;}
39316 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: see the Autoconf documentation" >&5
39317$as_echo "$as_me: WARNING: jmorecfg.h: see the Autoconf documentation" >&2;}
39318 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&5
39319$as_echo "$as_me: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&2;}
39320 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&5
39321$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&2;}
39322 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&5
39323$as_echo "$as_me: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&2;}
39324 ( cat <<\_ASBOX
39325## ----------------------------------------- ##
39326## Report this to http://www.imagemagick.org ##
39327## ----------------------------------------- ##
39328_ASBOX
39329 ) | sed "s/^/$as_me: WARNING: /" >&2
39330 ;;
39331esac
39332{ $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
39333$as_echo_n "checking for jmorecfg.h... " >&6; }
39334if test "${ac_cv_header_jmorecfg_h+set}" = set; then
39335 $as_echo_n "(cached) " >&6
39336else
39337 ac_cv_header_jmorecfg_h=$ac_header_preproc
39338fi
39339{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
39340$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
39341
39342fi
39343if test "x$ac_cv_header_jmorecfg_h" = x""yes; then
39344 passed=`expr $passed + 1`
39345else
39346 failed=`expr $failed + 1`
39347fi
39348
39349
39350 if test "${ac_cv_header_jpeglib_h+set}" = set; then
39351 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
39352$as_echo_n "checking for jpeglib.h... " >&6; }
39353if test "${ac_cv_header_jpeglib_h+set}" = set; then
39354 $as_echo_n "(cached) " >&6
39355fi
39356{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
39357$as_echo "$ac_cv_header_jpeglib_h" >&6; }
39358else
39359 # Is the header compilable?
39360{ $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
39361$as_echo_n "checking jpeglib.h usability... " >&6; }
39362cat >conftest.$ac_ext <<_ACEOF
39363/* confdefs.h. */
39364_ACEOF
39365cat confdefs.h >>conftest.$ac_ext
39366cat >>conftest.$ac_ext <<_ACEOF
39367/* end confdefs.h. */
39368$ac_includes_default
39369#include <jpeglib.h>
39370_ACEOF
39371rm -f conftest.$ac_objext
39372if { (ac_try="$ac_compile"
39373case "(($ac_try" in
39374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39375 *) ac_try_echo=$ac_try;;
39376esac
39377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39378$as_echo "$ac_try_echo") >&5
39379 (eval "$ac_compile") 2>conftest.er1
39380 ac_status=$?
39381 grep -v '^ *+' conftest.er1 >conftest.err
39382 rm -f conftest.er1
39383 cat conftest.err >&5
39384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39385 (exit $ac_status); } && {
39386 test -z "$ac_c_werror_flag" ||
39387 test ! -s conftest.err
39388 } && test -s conftest.$ac_objext; then
39389 ac_header_compiler=yes
39390else
39391 $as_echo "$as_me: failed program was:" >&5
39392sed 's/^/| /' conftest.$ac_ext >&5
39393
39394 ac_header_compiler=no
39395fi
39396
39397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39398{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39399$as_echo "$ac_header_compiler" >&6; }
39400
39401# Is the header present?
39402{ $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
39403$as_echo_n "checking jpeglib.h presence... " >&6; }
39404cat >conftest.$ac_ext <<_ACEOF
39405/* confdefs.h. */
39406_ACEOF
39407cat confdefs.h >>conftest.$ac_ext
39408cat >>conftest.$ac_ext <<_ACEOF
39409/* end confdefs.h. */
39410#include <jpeglib.h>
39411_ACEOF
39412if { (ac_try="$ac_cpp conftest.$ac_ext"
39413case "(($ac_try" in
39414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39415 *) ac_try_echo=$ac_try;;
39416esac
39417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39418$as_echo "$ac_try_echo") >&5
39419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39420 ac_status=$?
39421 grep -v '^ *+' conftest.er1 >conftest.err
39422 rm -f conftest.er1
39423 cat conftest.err >&5
39424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39425 (exit $ac_status); } >/dev/null && {
39426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39427 test ! -s conftest.err
39428 }; then
39429 ac_header_preproc=yes
39430else
39431 $as_echo "$as_me: failed program was:" >&5
39432sed 's/^/| /' conftest.$ac_ext >&5
39433
39434 ac_header_preproc=no
39435fi
39436
39437rm -f conftest.err conftest.$ac_ext
39438{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39439$as_echo "$ac_header_preproc" >&6; }
39440
39441# So? What about this header?
39442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39443 yes:no: )
39444 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39445$as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39446 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
39447$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
39448 ac_header_preproc=yes
39449 ;;
39450 no:yes:* )
39451 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
39452$as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
39453 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
39454$as_echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
39455 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
39456$as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
39457 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
39458$as_echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39459 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
39460$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
39461 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
39462$as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
39463 ( cat <<\_ASBOX
39464## ----------------------------------------- ##
39465## Report this to http://www.imagemagick.org ##
39466## ----------------------------------------- ##
39467_ASBOX
39468 ) | sed "s/^/$as_me: WARNING: /" >&2
39469 ;;
39470esac
39471{ $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
39472$as_echo_n "checking for jpeglib.h... " >&6; }
39473if test "${ac_cv_header_jpeglib_h+set}" = set; then
39474 $as_echo_n "(cached) " >&6
39475else
39476 ac_cv_header_jpeglib_h=$ac_header_preproc
39477fi
39478{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
39479$as_echo "$ac_cv_header_jpeglib_h" >&6; }
39480
39481fi
39482if test "x$ac_cv_header_jpeglib_h" = x""yes; then
39483 passed=`expr $passed + 1`
39484else
39485 failed=`expr $failed + 1`
39486fi
39487
39488
39489 { $as_echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
39490$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
39491if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
39492 $as_echo_n "(cached) " >&6
39493else
39494 ac_check_lib_save_LIBS=$LIBS
39495LIBS="-ljpeg $LIBS"
39496cat >conftest.$ac_ext <<_ACEOF
39497/* confdefs.h. */
39498_ACEOF
39499cat confdefs.h >>conftest.$ac_ext
39500cat >>conftest.$ac_ext <<_ACEOF
39501/* end confdefs.h. */
39502
39503/* Override any GCC internal prototype to avoid an error.
39504 Use char because int might match the return type of a GCC
39505 builtin and then its argument prototype would still apply. */
39506#ifdef __cplusplus
39507extern "C"
39508#endif
39509char jpeg_read_header ();
39510int
39511main ()
39512{
39513return jpeg_read_header ();
39514 ;
39515 return 0;
39516}
39517_ACEOF
39518rm -f conftest.$ac_objext conftest$ac_exeext
39519if { (ac_try="$ac_link"
39520case "(($ac_try" in
39521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39522 *) ac_try_echo=$ac_try;;
39523esac
39524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39525$as_echo "$ac_try_echo") >&5
39526 (eval "$ac_link") 2>conftest.er1
39527 ac_status=$?
39528 grep -v '^ *+' conftest.er1 >conftest.err
39529 rm -f conftest.er1
39530 cat conftest.err >&5
39531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39532 (exit $ac_status); } && {
39533 test -z "$ac_c_werror_flag" ||
39534 test ! -s conftest.err
39535 } && test -s conftest$ac_exeext && {
39536 test "$cross_compiling" = yes ||
39537 $as_test_x conftest$ac_exeext
39538 }; then
39539 ac_cv_lib_jpeg_jpeg_read_header=yes
39540else
39541 $as_echo "$as_me: failed program was:" >&5
39542sed 's/^/| /' conftest.$ac_ext >&5
39543
39544 ac_cv_lib_jpeg_jpeg_read_header=no
39545fi
39546
39547rm -rf conftest.dSYM
39548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39549 conftest$ac_exeext conftest.$ac_ext
39550LIBS=$ac_check_lib_save_LIBS
39551fi
39552{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
39553$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
39554if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then
39555 passed=`expr $passed + 1`
39556else
39557 failed=`expr $failed + 1`
39558fi
39559
39560
39561# Test for compatible JPEG library
39562if test "$ac_cv_jpeg_version_ok" != 'yes'; then
39563{ $as_echo "$as_me:$LINENO: checking for JPEG library is version 6b or later" >&5
39564$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
39565if test "${ac_cv_jpeg_version_ok+set}" = set; then
39566 $as_echo_n "(cached) " >&6
39567else
39568 cat >conftest.$ac_ext <<_ACEOF
39569/* confdefs.h. */
39570_ACEOF
39571cat confdefs.h >>conftest.$ac_ext
39572cat >>conftest.$ac_ext <<_ACEOF
39573/* end confdefs.h. */
39574#include <stdio.h>
39575#include <stdlib.h>
39576#include <jpeglib.h>
39577
39578int
39579main ()
39580{
39581
39582#if JPEG_LIB_VERSION < 62
39583#error IJG JPEG library must be version 6b or newer!
39584#endif
39585return 0;
39586
39587 ;
39588 return 0;
39589}
39590_ACEOF
39591rm -f conftest.$ac_objext
39592if { (ac_try="$ac_compile"
39593case "(($ac_try" in
39594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39595 *) ac_try_echo=$ac_try;;
39596esac
39597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39598$as_echo "$ac_try_echo") >&5
39599 (eval "$ac_compile") 2>conftest.er1
39600 ac_status=$?
39601 grep -v '^ *+' conftest.er1 >conftest.err
39602 rm -f conftest.er1
39603 cat conftest.err >&5
39604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39605 (exit $ac_status); } && {
39606 test -z "$ac_c_werror_flag" ||
39607 test ! -s conftest.err
39608 } && test -s conftest.$ac_objext; then
39609 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
39610else
39611 $as_echo "$as_me: failed program was:" >&5
39612sed 's/^/| /' conftest.$ac_ext >&5
39613
39614 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
39615fi
39616
39617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39618fi
39619{ $as_echo "$as_me:$LINENO: result: $ac_cv_jpeg_version_ok" >&5
39620$as_echo "$ac_cv_jpeg_version_ok" >&6; }
39621fi
39622 { $as_echo "$as_me:$LINENO: checking if JPEG package is complete" >&5
39623$as_echo_n "checking if JPEG package is complete... " >&6; }
39624 if test $passed -gt 0; then
39625 if test $failed -gt 0; then
39626 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39627$as_echo "no -- some components failed test" >&6; }
39628 have_jpeg='no (failed tests)'
39629 else
39630 JPEG_LIBS='-ljpeg'
39631 LIBS="$JPEG_LIBS $LIBS"
39632
39633cat >>confdefs.h <<\_ACEOF
39634#define JPEG_DELEGATE 1
39635_ACEOF
39636
39637 { $as_echo "$as_me:$LINENO: result: yes" >&5
39638$as_echo "yes" >&6; }
39639 have_jpeg='yes'
39640 fi
39641 else
39642 { $as_echo "$as_me:$LINENO: result: no" >&5
39643$as_echo "no" >&6; }
39644 fi
39645fi
39646 if test "$have_jpeg" = 'yes'; then
39647 JPEG_DELEGATE_TRUE=
39648 JPEG_DELEGATE_FALSE='#'
39649else
39650 JPEG_DELEGATE_TRUE='#'
39651 JPEG_DELEGATE_FALSE=
39652fi
39653
39654
39655
39656
39657#
39658# Check for JPEG Version 2 delegate library.
39659#
39660
39661# Check whether --with-jp2 was given.
39662if test "${with_jp2+set}" = set; then
39663 withval=$with_jp2; with_jp2=$withval
39664else
39665 with_jp2='yes'
39666fi
39667
39668
39669if test "$with_jp2" != 'yes'; then
39670 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
39671fi
39672
39673have_jp2='no'
39674JP2_LIBS=''
39675if test "$with_jp2" != 'no'; then
39676 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39677$as_echo "-------------------------------------------------------------" >&6; }
39678 { $as_echo "$as_me:$LINENO: checking for JPEG Version 2" >&5
39679$as_echo_n "checking for JPEG Version 2... " >&6; }
39680 { $as_echo "$as_me:$LINENO: result: " >&5
39681$as_echo "" >&6; }
39682 failed=0
39683 passed=0
39684 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
39685 { $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
39686$as_echo_n "checking for jasper/jasper.h... " >&6; }
39687if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
39688 $as_echo_n "(cached) " >&6
39689fi
39690{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
39691$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
39692else
39693 # Is the header compilable?
39694{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
39695$as_echo_n "checking jasper/jasper.h usability... " >&6; }
39696cat >conftest.$ac_ext <<_ACEOF
39697/* confdefs.h. */
39698_ACEOF
39699cat confdefs.h >>conftest.$ac_ext
39700cat >>conftest.$ac_ext <<_ACEOF
39701/* end confdefs.h. */
39702$ac_includes_default
39703#include <jasper/jasper.h>
39704_ACEOF
39705rm -f conftest.$ac_objext
39706if { (ac_try="$ac_compile"
39707case "(($ac_try" in
39708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39709 *) ac_try_echo=$ac_try;;
39710esac
39711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39712$as_echo "$ac_try_echo") >&5
39713 (eval "$ac_compile") 2>conftest.er1
39714 ac_status=$?
39715 grep -v '^ *+' conftest.er1 >conftest.err
39716 rm -f conftest.er1
39717 cat conftest.err >&5
39718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39719 (exit $ac_status); } && {
39720 test -z "$ac_c_werror_flag" ||
39721 test ! -s conftest.err
39722 } && test -s conftest.$ac_objext; then
39723 ac_header_compiler=yes
39724else
39725 $as_echo "$as_me: failed program was:" >&5
39726sed 's/^/| /' conftest.$ac_ext >&5
39727
39728 ac_header_compiler=no
39729fi
39730
39731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39732{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39733$as_echo "$ac_header_compiler" >&6; }
39734
39735# Is the header present?
39736{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
39737$as_echo_n "checking jasper/jasper.h presence... " >&6; }
39738cat >conftest.$ac_ext <<_ACEOF
39739/* confdefs.h. */
39740_ACEOF
39741cat confdefs.h >>conftest.$ac_ext
39742cat >>conftest.$ac_ext <<_ACEOF
39743/* end confdefs.h. */
39744#include <jasper/jasper.h>
39745_ACEOF
39746if { (ac_try="$ac_cpp conftest.$ac_ext"
39747case "(($ac_try" in
39748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39749 *) ac_try_echo=$ac_try;;
39750esac
39751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39752$as_echo "$ac_try_echo") >&5
39753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39754 ac_status=$?
39755 grep -v '^ *+' conftest.er1 >conftest.err
39756 rm -f conftest.er1
39757 cat conftest.err >&5
39758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39759 (exit $ac_status); } >/dev/null && {
39760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39761 test ! -s conftest.err
39762 }; then
39763 ac_header_preproc=yes
39764else
39765 $as_echo "$as_me: failed program was:" >&5
39766sed 's/^/| /' conftest.$ac_ext >&5
39767
39768 ac_header_preproc=no
39769fi
39770
39771rm -f conftest.err conftest.$ac_ext
39772{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39773$as_echo "$ac_header_preproc" >&6; }
39774
39775# So? What about this header?
39776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39777 yes:no: )
39778 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
39779$as_echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39780 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
39781$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
39782 ac_header_preproc=yes
39783 ;;
39784 no:yes:* )
39785 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
39786$as_echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
39787 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&5
39788$as_echo "$as_me: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&2;}
39789 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
39790$as_echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
39791 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&5
39792$as_echo "$as_me: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&2;}
39793 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
39794$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
39795 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
39796$as_echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
39797 ( cat <<\_ASBOX
39798## ----------------------------------------- ##
39799## Report this to http://www.imagemagick.org ##
39800## ----------------------------------------- ##
39801_ASBOX
39802 ) | sed "s/^/$as_me: WARNING: /" >&2
39803 ;;
39804esac
39805{ $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
39806$as_echo_n "checking for jasper/jasper.h... " >&6; }
39807if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
39808 $as_echo_n "(cached) " >&6
39809else
39810 ac_cv_header_jasper_jasper_h=$ac_header_preproc
39811fi
39812{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
39813$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
39814
39815fi
39816if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then
39817 passed=`expr $passed + 1`
39818else
39819 failed=`expr $failed + 1`
39820fi
39821
39822
39823 { $as_echo "$as_me:$LINENO: checking for jas_stream_fopen in -ljasper" >&5
39824$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
39825if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then
39826 $as_echo_n "(cached) " >&6
39827else
39828 ac_check_lib_save_LIBS=$LIBS
39829LIBS="-ljasper $LIBS"
39830cat >conftest.$ac_ext <<_ACEOF
39831/* confdefs.h. */
39832_ACEOF
39833cat confdefs.h >>conftest.$ac_ext
39834cat >>conftest.$ac_ext <<_ACEOF
39835/* end confdefs.h. */
39836
39837/* Override any GCC internal prototype to avoid an error.
39838 Use char because int might match the return type of a GCC
39839 builtin and then its argument prototype would still apply. */
39840#ifdef __cplusplus
39841extern "C"
39842#endif
39843char jas_stream_fopen ();
39844int
39845main ()
39846{
39847return jas_stream_fopen ();
39848 ;
39849 return 0;
39850}
39851_ACEOF
39852rm -f conftest.$ac_objext conftest$ac_exeext
39853if { (ac_try="$ac_link"
39854case "(($ac_try" in
39855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39856 *) ac_try_echo=$ac_try;;
39857esac
39858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39859$as_echo "$ac_try_echo") >&5
39860 (eval "$ac_link") 2>conftest.er1
39861 ac_status=$?
39862 grep -v '^ *+' conftest.er1 >conftest.err
39863 rm -f conftest.er1
39864 cat conftest.err >&5
39865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39866 (exit $ac_status); } && {
39867 test -z "$ac_c_werror_flag" ||
39868 test ! -s conftest.err
39869 } && test -s conftest$ac_exeext && {
39870 test "$cross_compiling" = yes ||
39871 $as_test_x conftest$ac_exeext
39872 }; then
39873 ac_cv_lib_jasper_jas_stream_fopen=yes
39874else
39875 $as_echo "$as_me: failed program was:" >&5
39876sed 's/^/| /' conftest.$ac_ext >&5
39877
39878 ac_cv_lib_jasper_jas_stream_fopen=no
39879fi
39880
39881rm -rf conftest.dSYM
39882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39883 conftest$ac_exeext conftest.$ac_ext
39884LIBS=$ac_check_lib_save_LIBS
39885fi
39886{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
39887$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
39888if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then
39889 passed=`expr $passed + 1`
39890else
39891 failed=`expr $failed + 1`
39892fi
39893
39894 { $as_echo "$as_me:$LINENO: checking if JPEG version 2 support package is complete" >&5
39895$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
39896 if test $passed -gt 0; then
39897 if test $failed -gt 0; then
39898 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39899$as_echo "no -- some components failed test" >&6; }
39900 have_jp2='no (failed tests)'
39901 else
39902 JP2_LIBS='-ljasper'
39903 LIBS="$JP2_LIBS $LIBS"
39904
39905cat >>confdefs.h <<\_ACEOF
39906#define JP2_DELEGATE 1
39907_ACEOF
39908
39909 { $as_echo "$as_me:$LINENO: result: yes" >&5
39910$as_echo "yes" >&6; }
39911 have_jp2='yes'
39912 fi
39913 else
39914 { $as_echo "$as_me:$LINENO: result: no" >&5
39915$as_echo "no" >&6; }
39916 fi
39917fi
39918 if test "$have_jp2" = 'yes'; then
39919 JP2_DELEGATE_TRUE=
39920 JP2_DELEGATE_FALSE='#'
39921else
39922 JP2_DELEGATE_TRUE='#'
39923 JP2_DELEGATE_FALSE=
39924fi
39925
39926
39927
39928
39929#
39930# Check for LCMS delegate library.
39931#
39932
39933# Check whether --with-lcms was given.
39934if test "${with_lcms+set}" = set; then
39935 withval=$with_lcms; with_lcms=$withval
39936else
39937 with_lcms='yes'
39938fi
39939
39940
39941if test "$with_lcms" != 'yes'; then
39942 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
39943fi
39944
39945have_lcms='no'
39946LCMS_LIBS=''
39947if test "$with_lcms" != 'no'; then
39948 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39949$as_echo "-------------------------------------------------------------" >&6; }
39950 { $as_echo "$as_me:$LINENO: checking for LCMS" >&5
39951$as_echo_n "checking for LCMS... " >&6; }
39952 { $as_echo "$as_me:$LINENO: result: " >&5
39953$as_echo "" >&6; }
39954 failed=0
39955 passed=0
39956 have_lcms_header='no'
39957 if test "${ac_cv_header_lcms_h+set}" = set; then
39958 { $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
39959$as_echo_n "checking for lcms.h... " >&6; }
39960if test "${ac_cv_header_lcms_h+set}" = set; then
39961 $as_echo_n "(cached) " >&6
39962fi
39963{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
39964$as_echo "$ac_cv_header_lcms_h" >&6; }
39965else
39966 # Is the header compilable?
39967{ $as_echo "$as_me:$LINENO: checking lcms.h usability" >&5
39968$as_echo_n "checking lcms.h usability... " >&6; }
39969cat >conftest.$ac_ext <<_ACEOF
39970/* confdefs.h. */
39971_ACEOF
39972cat confdefs.h >>conftest.$ac_ext
39973cat >>conftest.$ac_ext <<_ACEOF
39974/* end confdefs.h. */
39975$ac_includes_default
39976#include <lcms.h>
39977_ACEOF
39978rm -f conftest.$ac_objext
39979if { (ac_try="$ac_compile"
39980case "(($ac_try" in
39981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39982 *) ac_try_echo=$ac_try;;
39983esac
39984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39985$as_echo "$ac_try_echo") >&5
39986 (eval "$ac_compile") 2>conftest.er1
39987 ac_status=$?
39988 grep -v '^ *+' conftest.er1 >conftest.err
39989 rm -f conftest.er1
39990 cat conftest.err >&5
39991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39992 (exit $ac_status); } && {
39993 test -z "$ac_c_werror_flag" ||
39994 test ! -s conftest.err
39995 } && test -s conftest.$ac_objext; then
39996 ac_header_compiler=yes
39997else
39998 $as_echo "$as_me: failed program was:" >&5
39999sed 's/^/| /' conftest.$ac_ext >&5
40000
40001 ac_header_compiler=no
40002fi
40003
40004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40005{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40006$as_echo "$ac_header_compiler" >&6; }
40007
40008# Is the header present?
40009{ $as_echo "$as_me:$LINENO: checking lcms.h presence" >&5
40010$as_echo_n "checking lcms.h presence... " >&6; }
40011cat >conftest.$ac_ext <<_ACEOF
40012/* confdefs.h. */
40013_ACEOF
40014cat confdefs.h >>conftest.$ac_ext
40015cat >>conftest.$ac_ext <<_ACEOF
40016/* end confdefs.h. */
40017#include <lcms.h>
40018_ACEOF
40019if { (ac_try="$ac_cpp conftest.$ac_ext"
40020case "(($ac_try" in
40021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40022 *) ac_try_echo=$ac_try;;
40023esac
40024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40025$as_echo "$ac_try_echo") >&5
40026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40027 ac_status=$?
40028 grep -v '^ *+' conftest.er1 >conftest.err
40029 rm -f conftest.er1
40030 cat conftest.err >&5
40031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032 (exit $ac_status); } >/dev/null && {
40033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40034 test ! -s conftest.err
40035 }; then
40036 ac_header_preproc=yes
40037else
40038 $as_echo "$as_me: failed program was:" >&5
40039sed 's/^/| /' conftest.$ac_ext >&5
40040
40041 ac_header_preproc=no
40042fi
40043
40044rm -f conftest.err conftest.$ac_ext
40045{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40046$as_echo "$ac_header_preproc" >&6; }
40047
40048# So? What about this header?
40049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40050 yes:no: )
40051 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
40052$as_echo "$as_me: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40053 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the compiler's result" >&5
40054$as_echo "$as_me: WARNING: lcms.h: proceeding with the compiler's result" >&2;}
40055 ac_header_preproc=yes
40056 ;;
40057 no:yes:* )
40058 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: present but cannot be compiled" >&5
40059$as_echo "$as_me: WARNING: lcms.h: present but cannot be compiled" >&2;}
40060 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: check for missing prerequisite headers?" >&5
40061$as_echo "$as_me: WARNING: lcms.h: check for missing prerequisite headers?" >&2;}
40062 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: see the Autoconf documentation" >&5
40063$as_echo "$as_me: WARNING: lcms.h: see the Autoconf documentation" >&2;}
40064 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&5
40065$as_echo "$as_me: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
40066 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the preprocessor's result" >&5
40067$as_echo "$as_me: WARNING: lcms.h: proceeding with the preprocessor's result" >&2;}
40068 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: in the future, the compiler will take precedence" >&5
40069$as_echo "$as_me: WARNING: lcms.h: in the future, the compiler will take precedence" >&2;}
40070 ( cat <<\_ASBOX
40071## ----------------------------------------- ##
40072## Report this to http://www.imagemagick.org ##
40073## ----------------------------------------- ##
40074_ASBOX
40075 ) | sed "s/^/$as_me: WARNING: /" >&2
40076 ;;
40077esac
40078{ $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40079$as_echo_n "checking for lcms.h... " >&6; }
40080if test "${ac_cv_header_lcms_h+set}" = set; then
40081 $as_echo_n "(cached) " >&6
40082else
40083 ac_cv_header_lcms_h=$ac_header_preproc
40084fi
40085{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40086$as_echo "$ac_cv_header_lcms_h" >&6; }
40087
40088fi
40089if test "x$ac_cv_header_lcms_h" = x""yes; then
40090 have_lcms_header='yes'
40091fi
40092
40093
40094 if test "$have_lcms_header" = 'yes'; then
40095 passed=`expr $passed + 1`
40096
40097cat >>confdefs.h <<\_ACEOF
40098#define HAVE_LCMS_H 1
40099_ACEOF
40100
40101 else
40102 if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40103 { $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
40104$as_echo_n "checking for lcms/lcms.h... " >&6; }
40105if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40106 $as_echo_n "(cached) " >&6
40107fi
40108{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
40109$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
40110else
40111 # Is the header compilable?
40112{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h usability" >&5
40113$as_echo_n "checking lcms/lcms.h usability... " >&6; }
40114cat >conftest.$ac_ext <<_ACEOF
40115/* confdefs.h. */
40116_ACEOF
40117cat confdefs.h >>conftest.$ac_ext
40118cat >>conftest.$ac_ext <<_ACEOF
40119/* end confdefs.h. */
40120$ac_includes_default
40121#include <lcms/lcms.h>
40122_ACEOF
40123rm -f conftest.$ac_objext
40124if { (ac_try="$ac_compile"
40125case "(($ac_try" in
40126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40127 *) ac_try_echo=$ac_try;;
40128esac
40129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40130$as_echo "$ac_try_echo") >&5
40131 (eval "$ac_compile") 2>conftest.er1
40132 ac_status=$?
40133 grep -v '^ *+' conftest.er1 >conftest.err
40134 rm -f conftest.er1
40135 cat conftest.err >&5
40136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40137 (exit $ac_status); } && {
40138 test -z "$ac_c_werror_flag" ||
40139 test ! -s conftest.err
40140 } && test -s conftest.$ac_objext; then
40141 ac_header_compiler=yes
40142else
40143 $as_echo "$as_me: failed program was:" >&5
40144sed 's/^/| /' conftest.$ac_ext >&5
40145
40146 ac_header_compiler=no
40147fi
40148
40149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40150{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40151$as_echo "$ac_header_compiler" >&6; }
40152
40153# Is the header present?
40154{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h presence" >&5
40155$as_echo_n "checking lcms/lcms.h presence... " >&6; }
40156cat >conftest.$ac_ext <<_ACEOF
40157/* confdefs.h. */
40158_ACEOF
40159cat confdefs.h >>conftest.$ac_ext
40160cat >>conftest.$ac_ext <<_ACEOF
40161/* end confdefs.h. */
40162#include <lcms/lcms.h>
40163_ACEOF
40164if { (ac_try="$ac_cpp conftest.$ac_ext"
40165case "(($ac_try" in
40166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40167 *) ac_try_echo=$ac_try;;
40168esac
40169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40170$as_echo "$ac_try_echo") >&5
40171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40172 ac_status=$?
40173 grep -v '^ *+' conftest.er1 >conftest.err
40174 rm -f conftest.er1
40175 cat conftest.err >&5
40176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40177 (exit $ac_status); } >/dev/null && {
40178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40179 test ! -s conftest.err
40180 }; then
40181 ac_header_preproc=yes
40182else
40183 $as_echo "$as_me: failed program was:" >&5
40184sed 's/^/| /' conftest.$ac_ext >&5
40185
40186 ac_header_preproc=no
40187fi
40188
40189rm -f conftest.err conftest.$ac_ext
40190{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40191$as_echo "$ac_header_preproc" >&6; }
40192
40193# So? What about this header?
40194case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40195 yes:no: )
40196 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
40197$as_echo "$as_me: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40198 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&5
40199$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&2;}
40200 ac_header_preproc=yes
40201 ;;
40202 no:yes:* )
40203 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: present but cannot be compiled" >&5
40204$as_echo "$as_me: WARNING: lcms/lcms.h: present but cannot be compiled" >&2;}
40205 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&5
40206$as_echo "$as_me: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&2;}
40207 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: see the Autoconf documentation" >&5
40208$as_echo "$as_me: WARNING: lcms/lcms.h: see the Autoconf documentation" >&2;}
40209 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&5
40210$as_echo "$as_me: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
40211 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&5
40212$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&2;}
40213 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&5
40214$as_echo "$as_me: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&2;}
40215 ( cat <<\_ASBOX
40216## ----------------------------------------- ##
40217## Report this to http://www.imagemagick.org ##
40218## ----------------------------------------- ##
40219_ASBOX
40220 ) | sed "s/^/$as_me: WARNING: /" >&2
40221 ;;
40222esac
40223{ $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
40224$as_echo_n "checking for lcms/lcms.h... " >&6; }
40225if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40226 $as_echo_n "(cached) " >&6
40227else
40228 ac_cv_header_lcms_lcms_h=$ac_header_preproc
40229fi
40230{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
40231$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
40232
40233fi
40234if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then
40235 have_lcms_header='yes'
40236fi
40237
40238
40239 if test "$have_lcms_header" = 'yes'; then
40240 passed=`expr $passed + 1`
40241
40242cat >>confdefs.h <<\_ACEOF
40243#define HAVE_LCMS_LCMS_H 1
40244_ACEOF
40245
40246 else
40247 failed=`expr $failed + 1`
40248 fi
40249 fi
40250 { $as_echo "$as_me:$LINENO: checking for cmsOpenProfileFromMem in -llcms" >&5
40251$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
40252if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then
40253 $as_echo_n "(cached) " >&6
40254else
40255 ac_check_lib_save_LIBS=$LIBS
40256LIBS="-llcms $LIBS"
40257cat >conftest.$ac_ext <<_ACEOF
40258/* confdefs.h. */
40259_ACEOF
40260cat confdefs.h >>conftest.$ac_ext
40261cat >>conftest.$ac_ext <<_ACEOF
40262/* end confdefs.h. */
40263
40264/* Override any GCC internal prototype to avoid an error.
40265 Use char because int might match the return type of a GCC
40266 builtin and then its argument prototype would still apply. */
40267#ifdef __cplusplus
40268extern "C"
40269#endif
40270char cmsOpenProfileFromMem ();
40271int
40272main ()
40273{
40274return cmsOpenProfileFromMem ();
40275 ;
40276 return 0;
40277}
40278_ACEOF
40279rm -f conftest.$ac_objext conftest$ac_exeext
40280if { (ac_try="$ac_link"
40281case "(($ac_try" in
40282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40283 *) ac_try_echo=$ac_try;;
40284esac
40285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40286$as_echo "$ac_try_echo") >&5
40287 (eval "$ac_link") 2>conftest.er1
40288 ac_status=$?
40289 grep -v '^ *+' conftest.er1 >conftest.err
40290 rm -f conftest.er1
40291 cat conftest.err >&5
40292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40293 (exit $ac_status); } && {
40294 test -z "$ac_c_werror_flag" ||
40295 test ! -s conftest.err
40296 } && test -s conftest$ac_exeext && {
40297 test "$cross_compiling" = yes ||
40298 $as_test_x conftest$ac_exeext
40299 }; then
40300 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
40301else
40302 $as_echo "$as_me: failed program was:" >&5
40303sed 's/^/| /' conftest.$ac_ext >&5
40304
40305 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
40306fi
40307
40308rm -rf conftest.dSYM
40309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40310 conftest$ac_exeext conftest.$ac_ext
40311LIBS=$ac_check_lib_save_LIBS
40312fi
40313{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
40314$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
40315if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then
40316 passed=`expr $passed + 1`
40317else
40318 failed=`expr $failed + 1`
40319fi
40320
40321 { $as_echo "$as_me:$LINENO: checking if LCMS package is complete" >&5
40322$as_echo_n "checking if LCMS package is complete... " >&6; }
40323 if test $passed -gt 0; then
40324 if test $failed -gt 0; then
40325 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40326$as_echo "no -- some components failed test" >&6; }
40327 have_lcms='no (failed tests)'
40328 else
40329 LCMS_LIBS='-llcms'
40330 LIBS="$LCMS_LIBS $LIBS"
40331
40332cat >>confdefs.h <<\_ACEOF
40333#define LCMS_DELEGATE 1
40334_ACEOF
40335
40336 { $as_echo "$as_me:$LINENO: result: yes" >&5
40337$as_echo "yes" >&6; }
40338 have_lcms='yes'
40339 fi
40340 else
40341 { $as_echo "$as_me:$LINENO: result: no" >&5
40342$as_echo "no" >&6; }
40343 fi
40344fi
40345 if test "$have_lcms" = 'yes'; then
40346 LCMS_DELEGATE_TRUE=
40347 LCMS_DELEGATE_FALSE='#'
40348else
40349 LCMS_DELEGATE_TRUE='#'
40350 LCMS_DELEGATE_FALSE=
40351fi
40352
40353
40354
40355
40356#
40357# Check for the LQR (Liquid Rescale) delegate library.
40358#
40359
40360# Check whether --with-lqr was given.
40361if test "${with_lqr+set}" = set; then
40362 withval=$with_lqr; with_lqr=$withval
40363else
40364 with_lqr='yes'
40365fi
40366
40367
40368if test "$with_lqr" != 'yes'; then
40369 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
40370fi
40371
40372have_lqr='no'
40373LQR_CFLAGS=""
40374LQR_LIBS=""
40375LQR_PKG=""
40376if test "x$with_lqr" = "xyes"; then
40377 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40378$as_echo "-------------------------------------------------------------" >&6; }
40379
40380pkg_failed=no
40381{ $as_echo "$as_me:$LINENO: checking for LQR" >&5
40382$as_echo_n "checking for LQR... " >&6; }
40383
40384if test -n "$LQR_CFLAGS"; then
40385 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
40386 elif test -n "$PKG_CONFIG"; then
40387 if test -n "$PKG_CONFIG" && \
40388 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
40389 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
40390 ac_status=$?
40391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40392 (exit $ac_status); }; then
40393 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
40394else
40395 pkg_failed=yes
40396fi
40397 else
40398 pkg_failed=untried
40399fi
40400if test -n "$LQR_LIBS"; then
40401 pkg_cv_LQR_LIBS="$LQR_LIBS"
40402 elif test -n "$PKG_CONFIG"; then
40403 if test -n "$PKG_CONFIG" && \
40404 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
40405 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
40406 ac_status=$?
40407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40408 (exit $ac_status); }; then
40409 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
40410else
40411 pkg_failed=yes
40412fi
40413 else
40414 pkg_failed=untried
40415fi
40416
40417
40418
40419if test $pkg_failed = yes; then
40420
40421if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40422 _pkg_short_errors_supported=yes
40423else
40424 _pkg_short_errors_supported=no
40425fi
40426 if test $_pkg_short_errors_supported = yes; then
40427 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
40428 else
40429 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
40430 fi
40431 # Put the nasty error message in config.log where it belongs
40432 echo "$LQR_PKG_ERRORS" >&5
40433
40434 { $as_echo "$as_me:$LINENO: result: no" >&5
40435$as_echo "no" >&6; }
40436 have_lqr=no
40437elif test $pkg_failed = untried; then
40438 have_lqr=no
40439else
40440 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
40441 LQR_LIBS=$pkg_cv_LQR_LIBS
40442 { $as_echo "$as_me:$LINENO: result: yes" >&5
40443$as_echo "yes" >&6; }
40444 have_lqr=yes
40445fi
40446 { $as_echo "$as_me:$LINENO: result: " >&5
40447$as_echo "" >&6; }
40448fi
40449
40450if test "$have_lqr" = 'yes'; then
40451
40452cat >>confdefs.h <<\_ACEOF
40453#define LQR_DELEGATE 1
40454_ACEOF
40455
40456 CFLAGS="$LQR_CFLAGS $CFLAGS"
40457fi
40458
40459 if test "$have_lqr" = 'yes'; then
40460 LQR_DELEGATE_TRUE=
40461 LQR_DELEGATE_FALSE='#'
40462else
40463 LQR_DELEGATE_TRUE='#'
40464 LQR_DELEGATE_FALSE=
40465fi
40466
40467
40468
40469
40470
40471#
40472# Check for the OpenEXR delegate library.
40473#
40474
40475# Check whether --with-openexr was given.
40476if test "${with_openexr+set}" = set; then
40477 withval=$with_openexr; with_openexr=$withval
40478else
40479 with_openexr='yes'
40480fi
40481
40482
40483if test "$with_openexr" != 'yes'; then
40484 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
40485fi
40486
40487have_openexr='no'
40488OPENEXR_CFLAGS=""
40489OPENEXR_LIBS=""
40490OPENEXR_PKG=""
40491if test "x$with_openexr" = "xyes"; then
40492 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40493$as_echo "-------------------------------------------------------------" >&6; }
40494
40495pkg_failed=no
40496{ $as_echo "$as_me:$LINENO: checking for OPENEXR" >&5
40497$as_echo_n "checking for OPENEXR... " >&6; }
40498
40499if test -n "$OPENEXR_CFLAGS"; then
40500 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
40501 elif test -n "$PKG_CONFIG"; then
40502 if test -n "$PKG_CONFIG" && \
40503 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
40504 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
40505 ac_status=$?
40506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40507 (exit $ac_status); }; then
40508 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
40509else
40510 pkg_failed=yes
40511fi
40512 else
40513 pkg_failed=untried
40514fi
40515if test -n "$OPENEXR_LIBS"; then
40516 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
40517 elif test -n "$PKG_CONFIG"; then
40518 if test -n "$PKG_CONFIG" && \
40519 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
40520 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
40521 ac_status=$?
40522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40523 (exit $ac_status); }; then
40524 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
40525else
40526 pkg_failed=yes
40527fi
40528 else
40529 pkg_failed=untried
40530fi
40531
40532
40533
40534if test $pkg_failed = yes; then
40535
40536if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40537 _pkg_short_errors_supported=yes
40538else
40539 _pkg_short_errors_supported=no
40540fi
40541 if test $_pkg_short_errors_supported = yes; then
40542 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
40543 else
40544 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
40545 fi
40546 # Put the nasty error message in config.log where it belongs
40547 echo "$OPENEXR_PKG_ERRORS" >&5
40548
40549 { $as_echo "$as_me:$LINENO: result: no" >&5
40550$as_echo "no" >&6; }
40551 have_openexr=no
40552elif test $pkg_failed = untried; then
40553 have_openexr=no
40554else
40555 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
40556 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
40557 { $as_echo "$as_me:$LINENO: result: yes" >&5
40558$as_echo "yes" >&6; }
40559 have_openexr=yes
40560fi
40561 { $as_echo "$as_me:$LINENO: result: " >&5
40562$as_echo "" >&6; }
40563fi
40564
40565if test "$have_openexr" = 'yes'; then
40566
40567cat >>confdefs.h <<\_ACEOF
40568#define OPENEXR_DELEGATE 1
40569_ACEOF
40570
40571 if test "$with_modules" = 'no'; then
40572 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
40573 fi
40574fi
40575
40576 if test "$have_openexr" = 'yes'; then
40577 OPENEXR_DELEGATE_TRUE=
40578 OPENEXR_DELEGATE_FALSE='#'
40579else
40580 OPENEXR_DELEGATE_TRUE='#'
40581 OPENEXR_DELEGATE_FALSE=
40582fi
40583
40584
40585
40586
40587
40588#
40589# Check for PNG delegate library.
40590#
40591
40592# Check whether --with-png was given.
40593if test "${with_png+set}" = set; then
40594 withval=$with_png; with_png=$withval
40595else
40596 with_png='yes'
40597fi
40598
40599
40600if test "$with_png" != 'yes'; then
40601 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
40602fi
40603
40604have_png='no'
40605PNG_LIBS=''
40606if test "$with_png" != 'no'; then
40607 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40608$as_echo "-------------------------------------------------------------" >&6; }
40609 { $as_echo "$as_me:$LINENO: checking for PNG" >&5
40610$as_echo_n "checking for PNG... " >&6; }
40611 { $as_echo "$as_me:$LINENO: result: " >&5
40612$as_echo "" >&6; }
40613 failed=0
40614 passed=0
40615 if test "${ac_cv_header_png_h+set}" = set; then
40616 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
40617$as_echo_n "checking for png.h... " >&6; }
40618if test "${ac_cv_header_png_h+set}" = set; then
40619 $as_echo_n "(cached) " >&6
40620fi
40621{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
40622$as_echo "$ac_cv_header_png_h" >&6; }
40623else
40624 # Is the header compilable?
40625{ $as_echo "$as_me:$LINENO: checking png.h usability" >&5
40626$as_echo_n "checking png.h usability... " >&6; }
40627cat >conftest.$ac_ext <<_ACEOF
40628/* confdefs.h. */
40629_ACEOF
40630cat confdefs.h >>conftest.$ac_ext
40631cat >>conftest.$ac_ext <<_ACEOF
40632/* end confdefs.h. */
40633$ac_includes_default
40634#include <png.h>
40635_ACEOF
40636rm -f conftest.$ac_objext
40637if { (ac_try="$ac_compile"
40638case "(($ac_try" in
40639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40640 *) ac_try_echo=$ac_try;;
40641esac
40642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40643$as_echo "$ac_try_echo") >&5
40644 (eval "$ac_compile") 2>conftest.er1
40645 ac_status=$?
40646 grep -v '^ *+' conftest.er1 >conftest.err
40647 rm -f conftest.er1
40648 cat conftest.err >&5
40649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40650 (exit $ac_status); } && {
40651 test -z "$ac_c_werror_flag" ||
40652 test ! -s conftest.err
40653 } && test -s conftest.$ac_objext; then
40654 ac_header_compiler=yes
40655else
40656 $as_echo "$as_me: failed program was:" >&5
40657sed 's/^/| /' conftest.$ac_ext >&5
40658
40659 ac_header_compiler=no
40660fi
40661
40662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40663{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40664$as_echo "$ac_header_compiler" >&6; }
40665
40666# Is the header present?
40667{ $as_echo "$as_me:$LINENO: checking png.h presence" >&5
40668$as_echo_n "checking png.h presence... " >&6; }
40669cat >conftest.$ac_ext <<_ACEOF
40670/* confdefs.h. */
40671_ACEOF
40672cat confdefs.h >>conftest.$ac_ext
40673cat >>conftest.$ac_ext <<_ACEOF
40674/* end confdefs.h. */
40675#include <png.h>
40676_ACEOF
40677if { (ac_try="$ac_cpp conftest.$ac_ext"
40678case "(($ac_try" in
40679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40680 *) ac_try_echo=$ac_try;;
40681esac
40682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40683$as_echo "$ac_try_echo") >&5
40684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40685 ac_status=$?
40686 grep -v '^ *+' conftest.er1 >conftest.err
40687 rm -f conftest.er1
40688 cat conftest.err >&5
40689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40690 (exit $ac_status); } >/dev/null && {
40691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40692 test ! -s conftest.err
40693 }; then
40694 ac_header_preproc=yes
40695else
40696 $as_echo "$as_me: failed program was:" >&5
40697sed 's/^/| /' conftest.$ac_ext >&5
40698
40699 ac_header_preproc=no
40700fi
40701
40702rm -f conftest.err conftest.$ac_ext
40703{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40704$as_echo "$ac_header_preproc" >&6; }
40705
40706# So? What about this header?
40707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40708 yes:no: )
40709 { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
40710$as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40711 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
40712$as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
40713 ac_header_preproc=yes
40714 ;;
40715 no:yes:* )
40716 { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
40717$as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
40718 { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
40719$as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
40720 { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
40721$as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
40722 { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
40723$as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
40724 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
40725$as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
40726 { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
40727$as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
40728 ( cat <<\_ASBOX
40729## ----------------------------------------- ##
40730## Report this to http://www.imagemagick.org ##
40731## ----------------------------------------- ##
40732_ASBOX
40733 ) | sed "s/^/$as_me: WARNING: /" >&2
40734 ;;
40735esac
40736{ $as_echo "$as_me:$LINENO: checking for png.h" >&5
40737$as_echo_n "checking for png.h... " >&6; }
40738if test "${ac_cv_header_png_h+set}" = set; then
40739 $as_echo_n "(cached) " >&6
40740else
40741 ac_cv_header_png_h=$ac_header_preproc
40742fi
40743{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
40744$as_echo "$ac_cv_header_png_h" >&6; }
40745
40746fi
40747if test "x$ac_cv_header_png_h" = x""yes; then
40748 passed=`expr $passed + 1`
40749else
40750 failed=`expr $failed + 1`
40751fi
40752
40753
40754 { $as_echo "$as_me:$LINENO: checking for png_get_io_ptr in -lpng" >&5
40755$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
40756if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then
40757 $as_echo_n "(cached) " >&6
40758else
40759 ac_check_lib_save_LIBS=$LIBS
40760LIBS="-lpng $LIBS"
40761cat >conftest.$ac_ext <<_ACEOF
40762/* confdefs.h. */
40763_ACEOF
40764cat confdefs.h >>conftest.$ac_ext
40765cat >>conftest.$ac_ext <<_ACEOF
40766/* end confdefs.h. */
40767
40768/* Override any GCC internal prototype to avoid an error.
40769 Use char because int might match the return type of a GCC
40770 builtin and then its argument prototype would still apply. */
40771#ifdef __cplusplus
40772extern "C"
40773#endif
40774char png_get_io_ptr ();
40775int
40776main ()
40777{
40778return png_get_io_ptr ();
40779 ;
40780 return 0;
40781}
40782_ACEOF
40783rm -f conftest.$ac_objext conftest$ac_exeext
40784if { (ac_try="$ac_link"
40785case "(($ac_try" in
40786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40787 *) ac_try_echo=$ac_try;;
40788esac
40789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40790$as_echo "$ac_try_echo") >&5
40791 (eval "$ac_link") 2>conftest.er1
40792 ac_status=$?
40793 grep -v '^ *+' conftest.er1 >conftest.err
40794 rm -f conftest.er1
40795 cat conftest.err >&5
40796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40797 (exit $ac_status); } && {
40798 test -z "$ac_c_werror_flag" ||
40799 test ! -s conftest.err
40800 } && test -s conftest$ac_exeext && {
40801 test "$cross_compiling" = yes ||
40802 $as_test_x conftest$ac_exeext
40803 }; then
40804 ac_cv_lib_png_png_get_io_ptr=yes
40805else
40806 $as_echo "$as_me: failed program was:" >&5
40807sed 's/^/| /' conftest.$ac_ext >&5
40808
40809 ac_cv_lib_png_png_get_io_ptr=no
40810fi
40811
40812rm -rf conftest.dSYM
40813rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40814 conftest$ac_exeext conftest.$ac_ext
40815LIBS=$ac_check_lib_save_LIBS
40816fi
40817{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_io_ptr" >&5
40818$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
40819if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then
40820 passed=`expr $passed + 1`
40821else
40822 failed=`expr $failed + 1`
40823fi
40824
40825 { $as_echo "$as_me:$LINENO: checking if PNG package is complete" >&5
40826$as_echo_n "checking if PNG package is complete... " >&6; }
40827 if test $passed -gt 0; then
40828 if test $failed -gt 0; then
40829 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40830$as_echo "no -- some components failed test" >&6; }
40831 have_png='no (failed tests)'
40832 else
40833 PNG_LIBS='-lpng'
40834 LIBS="$PNG_LIBS $LIBS"
40835
40836cat >>confdefs.h <<\_ACEOF
40837#define PNG_DELEGATE 1
40838_ACEOF
40839
40840 { $as_echo "$as_me:$LINENO: result: yes" >&5
40841$as_echo "yes" >&6; }
40842 have_png='yes'
40843 fi
40844 else
40845 { $as_echo "$as_me:$LINENO: result: no" >&5
40846$as_echo "no" >&6; }
40847 fi
40848fi
40849 if test "$have_png" = 'yes'; then
40850 PNG_DELEGATE_TRUE=
40851 PNG_DELEGATE_FALSE='#'
40852else
40853 PNG_DELEGATE_TRUE='#'
40854 PNG_DELEGATE_FALSE=
40855fi
40856
40857
40858
40859
40860#
40861# Check for RSVG delegate library.
40862#
40863
40864# Check whether --with-rsvg was given.
40865if test "${with_rsvg+set}" = set; then
40866 withval=$with_rsvg; with_rsvg=$withval
40867else
40868 with_rsvg=$have_x
40869fi
40870
40871
40872if test "$with_rsvg" != 'yes'; then
40873 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
40874fi
40875
40876have_rsvg='no'
40877have_cairo='no'
40878RSVG_CFLAGS=""
40879RSVG_LIBS=""
40880RSVG_PKG=""
40881if test "x$with_rsvg" = "xyes"; then
40882 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40883$as_echo "-------------------------------------------------------------" >&6; }
40884
40885pkg_failed=no
40886{ $as_echo "$as_me:$LINENO: checking for RSVG" >&5
40887$as_echo_n "checking for RSVG... " >&6; }
40888
40889if test -n "$RSVG_CFLAGS"; then
40890 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
40891 elif test -n "$PKG_CONFIG"; then
40892 if test -n "$PKG_CONFIG" && \
40893 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
40894 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
40895 ac_status=$?
40896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40897 (exit $ac_status); }; then
40898 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
40899else
40900 pkg_failed=yes
40901fi
40902 else
40903 pkg_failed=untried
40904fi
40905if test -n "$RSVG_LIBS"; then
40906 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
40907 elif test -n "$PKG_CONFIG"; then
40908 if test -n "$PKG_CONFIG" && \
40909 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
40910 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
40911 ac_status=$?
40912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40913 (exit $ac_status); }; then
40914 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
40915else
40916 pkg_failed=yes
40917fi
40918 else
40919 pkg_failed=untried
40920fi
40921
40922
40923
40924if test $pkg_failed = yes; then
40925
40926if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40927 _pkg_short_errors_supported=yes
40928else
40929 _pkg_short_errors_supported=no
40930fi
40931 if test $_pkg_short_errors_supported = yes; then
40932 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
40933 else
40934 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
40935 fi
40936 # Put the nasty error message in config.log where it belongs
40937 echo "$RSVG_PKG_ERRORS" >&5
40938
40939 { $as_echo "$as_me:$LINENO: result: no" >&5
40940$as_echo "no" >&6; }
40941 have_rsvg=no
40942elif test $pkg_failed = untried; then
40943 have_rsvg=no
40944else
40945 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
40946 RSVG_LIBS=$pkg_cv_RSVG_LIBS
40947 { $as_echo "$as_me:$LINENO: result: yes" >&5
40948$as_echo "yes" >&6; }
40949 have_rsvg=yes
40950fi
40951 { $as_echo "$as_me:$LINENO: result: " >&5
40952$as_echo "" >&6; }
40953
40954pkg_failed=no
40955{ $as_echo "$as_me:$LINENO: checking for CAIRO_SVG" >&5
40956$as_echo_n "checking for CAIRO_SVG... " >&6; }
40957
40958if test -n "$CAIRO_SVG_CFLAGS"; then
40959 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
40960 elif test -n "$PKG_CONFIG"; then
40961 if test -n "$PKG_CONFIG" && \
40962 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
40963 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
40964 ac_status=$?
40965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40966 (exit $ac_status); }; then
40967 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
40968else
40969 pkg_failed=yes
40970fi
40971 else
40972 pkg_failed=untried
40973fi
40974if test -n "$CAIRO_SVG_LIBS"; then
40975 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
40976 elif test -n "$PKG_CONFIG"; then
40977 if test -n "$PKG_CONFIG" && \
40978 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
40979 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
40980 ac_status=$?
40981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40982 (exit $ac_status); }; then
40983 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
40984else
40985 pkg_failed=yes
40986fi
40987 else
40988 pkg_failed=untried
40989fi
40990
40991
40992
40993if test $pkg_failed = yes; then
40994
40995if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40996 _pkg_short_errors_supported=yes
40997else
40998 _pkg_short_errors_supported=no
40999fi
41000 if test $_pkg_short_errors_supported = yes; then
41001 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
41002 else
41003 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
41004 fi
41005 # Put the nasty error message in config.log where it belongs
41006 echo "$CAIRO_SVG_PKG_ERRORS" >&5
41007
41008 { $as_echo "$as_me:$LINENO: result: no" >&5
41009$as_echo "no" >&6; }
41010 have_cairo=no
41011elif test $pkg_failed = untried; then
41012 have_cairo=no
41013else
41014 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
41015 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
41016 { $as_echo "$as_me:$LINENO: result: yes" >&5
41017$as_echo "yes" >&6; }
41018 have_cairo=yes
41019fi
41020 { $as_echo "$as_me:$LINENO: result: " >&5
41021$as_echo "" >&6; }
41022fi
41023
41024if test "$have_rsvg" = 'yes'; then
41025
41026cat >>confdefs.h <<\_ACEOF
41027#define RSVG_DELEGATE 1
41028_ACEOF
41029
41030 if test "$with_modules" = 'no'; then
41031 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
41032 fi
41033fi
41034
41035if test "$have_cairo" = 'yes'; then
41036
41037cat >>confdefs.h <<\_ACEOF
41038#define CAIRO_DELEGATE 1
41039_ACEOF
41040
41041 if test "$with_modules" = 'no'; then
41042 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
41043 fi
41044fi
41045
41046 if test "$have_rsvg" = 'yes'; then
41047 RSVG_DELEGATE_TRUE=
41048 RSVG_DELEGATE_FALSE='#'
41049else
41050 RSVG_DELEGATE_TRUE='#'
41051 RSVG_DELEGATE_FALSE=
41052fi
41053
41054 if test "$have_cairo" = 'yes'; then
41055 CAIRO_DELEGATE_TRUE=
41056 CAIRO_DELEGATE_FALSE='#'
41057else
41058 CAIRO_DELEGATE_TRUE='#'
41059 CAIRO_DELEGATE_FALSE=
41060fi
41061
41062
41063
41064
41065
41066#
41067# Check for TIFF delegate library.
41068#
41069
41070# Check whether --with-tiff was given.
41071if test "${with_tiff+set}" = set; then
41072 withval=$with_tiff; with_tiff=$withval
41073else
41074 with_tiff='yes'
41075fi
41076
41077
41078if test "$with_tiff" != 'yes'; then
41079 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
41080fi
41081
41082have_tiff='no'
41083TIFF_LIBS=''
41084if test "$with_tiff" != 'no'; then
41085 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41086$as_echo "-------------------------------------------------------------" >&6; }
41087 { $as_echo "$as_me:$LINENO: checking for TIFF" >&5
41088$as_echo_n "checking for TIFF... " >&6; }
41089 { $as_echo "$as_me:$LINENO: result: " >&5
41090$as_echo "" >&6; }
41091 failed=0
41092 passed=0
41093 if test "${ac_cv_header_tiff_h+set}" = set; then
41094 { $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
41095$as_echo_n "checking for tiff.h... " >&6; }
41096if test "${ac_cv_header_tiff_h+set}" = set; then
41097 $as_echo_n "(cached) " >&6
41098fi
41099{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
41100$as_echo "$ac_cv_header_tiff_h" >&6; }
41101else
41102 # Is the header compilable?
41103{ $as_echo "$as_me:$LINENO: checking tiff.h usability" >&5
41104$as_echo_n "checking tiff.h usability... " >&6; }
41105cat >conftest.$ac_ext <<_ACEOF
41106/* confdefs.h. */
41107_ACEOF
41108cat confdefs.h >>conftest.$ac_ext
41109cat >>conftest.$ac_ext <<_ACEOF
41110/* end confdefs.h. */
41111$ac_includes_default
41112#include <tiff.h>
41113_ACEOF
41114rm -f conftest.$ac_objext
41115if { (ac_try="$ac_compile"
41116case "(($ac_try" in
41117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41118 *) ac_try_echo=$ac_try;;
41119esac
41120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41121$as_echo "$ac_try_echo") >&5
41122 (eval "$ac_compile") 2>conftest.er1
41123 ac_status=$?
41124 grep -v '^ *+' conftest.er1 >conftest.err
41125 rm -f conftest.er1
41126 cat conftest.err >&5
41127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41128 (exit $ac_status); } && {
41129 test -z "$ac_c_werror_flag" ||
41130 test ! -s conftest.err
41131 } && test -s conftest.$ac_objext; then
41132 ac_header_compiler=yes
41133else
41134 $as_echo "$as_me: failed program was:" >&5
41135sed 's/^/| /' conftest.$ac_ext >&5
41136
41137 ac_header_compiler=no
41138fi
41139
41140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41141{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41142$as_echo "$ac_header_compiler" >&6; }
41143
41144# Is the header present?
41145{ $as_echo "$as_me:$LINENO: checking tiff.h presence" >&5
41146$as_echo_n "checking tiff.h presence... " >&6; }
41147cat >conftest.$ac_ext <<_ACEOF
41148/* confdefs.h. */
41149_ACEOF
41150cat confdefs.h >>conftest.$ac_ext
41151cat >>conftest.$ac_ext <<_ACEOF
41152/* end confdefs.h. */
41153#include <tiff.h>
41154_ACEOF
41155if { (ac_try="$ac_cpp conftest.$ac_ext"
41156case "(($ac_try" in
41157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41158 *) ac_try_echo=$ac_try;;
41159esac
41160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41161$as_echo "$ac_try_echo") >&5
41162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41163 ac_status=$?
41164 grep -v '^ *+' conftest.er1 >conftest.err
41165 rm -f conftest.er1
41166 cat conftest.err >&5
41167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41168 (exit $ac_status); } >/dev/null && {
41169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41170 test ! -s conftest.err
41171 }; then
41172 ac_header_preproc=yes
41173else
41174 $as_echo "$as_me: failed program was:" >&5
41175sed 's/^/| /' conftest.$ac_ext >&5
41176
41177 ac_header_preproc=no
41178fi
41179
41180rm -f conftest.err conftest.$ac_ext
41181{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41182$as_echo "$ac_header_preproc" >&6; }
41183
41184# So? What about this header?
41185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41186 yes:no: )
41187 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5
41188$as_echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41189 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5
41190$as_echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;}
41191 ac_header_preproc=yes
41192 ;;
41193 no:yes:* )
41194 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5
41195$as_echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;}
41196 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: check for missing prerequisite headers?" >&5
41197$as_echo "$as_me: WARNING: tiff.h: check for missing prerequisite headers?" >&2;}
41198 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5
41199$as_echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;}
41200 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&5
41201$as_echo "$as_me: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&2;}
41202 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5
41203$as_echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;}
41204 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5
41205$as_echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;}
41206 ( cat <<\_ASBOX
41207## ----------------------------------------- ##
41208## Report this to http://www.imagemagick.org ##
41209## ----------------------------------------- ##
41210_ASBOX
41211 ) | sed "s/^/$as_me: WARNING: /" >&2
41212 ;;
41213esac
41214{ $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
41215$as_echo_n "checking for tiff.h... " >&6; }
41216if test "${ac_cv_header_tiff_h+set}" = set; then
41217 $as_echo_n "(cached) " >&6
41218else
41219 ac_cv_header_tiff_h=$ac_header_preproc
41220fi
41221{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
41222$as_echo "$ac_cv_header_tiff_h" >&6; }
41223
41224fi
41225if test "x$ac_cv_header_tiff_h" = x""yes; then
41226 passed=`expr $passed + 1`
41227else
41228 failed=`expr $failed + 1`
41229fi
41230
41231
41232 if test "${ac_cv_header_tiffio_h+set}" = set; then
41233 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
41234$as_echo_n "checking for tiffio.h... " >&6; }
41235if test "${ac_cv_header_tiffio_h+set}" = set; then
41236 $as_echo_n "(cached) " >&6
41237fi
41238{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
41239$as_echo "$ac_cv_header_tiffio_h" >&6; }
41240else
41241 # Is the header compilable?
41242{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
41243$as_echo_n "checking tiffio.h usability... " >&6; }
41244cat >conftest.$ac_ext <<_ACEOF
41245/* confdefs.h. */
41246_ACEOF
41247cat confdefs.h >>conftest.$ac_ext
41248cat >>conftest.$ac_ext <<_ACEOF
41249/* end confdefs.h. */
41250$ac_includes_default
41251#include <tiffio.h>
41252_ACEOF
41253rm -f conftest.$ac_objext
41254if { (ac_try="$ac_compile"
41255case "(($ac_try" in
41256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41257 *) ac_try_echo=$ac_try;;
41258esac
41259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41260$as_echo "$ac_try_echo") >&5
41261 (eval "$ac_compile") 2>conftest.er1
41262 ac_status=$?
41263 grep -v '^ *+' conftest.er1 >conftest.err
41264 rm -f conftest.er1
41265 cat conftest.err >&5
41266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41267 (exit $ac_status); } && {
41268 test -z "$ac_c_werror_flag" ||
41269 test ! -s conftest.err
41270 } && test -s conftest.$ac_objext; then
41271 ac_header_compiler=yes
41272else
41273 $as_echo "$as_me: failed program was:" >&5
41274sed 's/^/| /' conftest.$ac_ext >&5
41275
41276 ac_header_compiler=no
41277fi
41278
41279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41280{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41281$as_echo "$ac_header_compiler" >&6; }
41282
41283# Is the header present?
41284{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
41285$as_echo_n "checking tiffio.h presence... " >&6; }
41286cat >conftest.$ac_ext <<_ACEOF
41287/* confdefs.h. */
41288_ACEOF
41289cat confdefs.h >>conftest.$ac_ext
41290cat >>conftest.$ac_ext <<_ACEOF
41291/* end confdefs.h. */
41292#include <tiffio.h>
41293_ACEOF
41294if { (ac_try="$ac_cpp conftest.$ac_ext"
41295case "(($ac_try" in
41296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41297 *) ac_try_echo=$ac_try;;
41298esac
41299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41300$as_echo "$ac_try_echo") >&5
41301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41302 ac_status=$?
41303 grep -v '^ *+' conftest.er1 >conftest.err
41304 rm -f conftest.er1
41305 cat conftest.err >&5
41306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41307 (exit $ac_status); } >/dev/null && {
41308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41309 test ! -s conftest.err
41310 }; then
41311 ac_header_preproc=yes
41312else
41313 $as_echo "$as_me: failed program was:" >&5
41314sed 's/^/| /' conftest.$ac_ext >&5
41315
41316 ac_header_preproc=no
41317fi
41318
41319rm -f conftest.err conftest.$ac_ext
41320{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41321$as_echo "$ac_header_preproc" >&6; }
41322
41323# So? What about this header?
41324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41325 yes:no: )
41326 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
41327$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41328 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
41329$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
41330 ac_header_preproc=yes
41331 ;;
41332 no:yes:* )
41333 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
41334$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
41335 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
41336$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
41337 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
41338$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
41339 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
41340$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
41341 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
41342$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
41343 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
41344$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
41345 ( cat <<\_ASBOX
41346## ----------------------------------------- ##
41347## Report this to http://www.imagemagick.org ##
41348## ----------------------------------------- ##
41349_ASBOX
41350 ) | sed "s/^/$as_me: WARNING: /" >&2
41351 ;;
41352esac
41353{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
41354$as_echo_n "checking for tiffio.h... " >&6; }
41355if test "${ac_cv_header_tiffio_h+set}" = set; then
41356 $as_echo_n "(cached) " >&6
41357else
41358 ac_cv_header_tiffio_h=$ac_header_preproc
41359fi
41360{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
41361$as_echo "$ac_cv_header_tiffio_h" >&6; }
41362
41363fi
41364if test "x$ac_cv_header_tiffio_h" = x""yes; then
41365 passed=`expr $passed + 1`
41366else
41367 failed=`expr $failed + 1`
41368fi
41369
41370
41371 { $as_echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
41372$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
41373if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
41374 $as_echo_n "(cached) " >&6
41375else
41376 ac_check_lib_save_LIBS=$LIBS
41377LIBS="-ltiff $LIBS"
41378cat >conftest.$ac_ext <<_ACEOF
41379/* confdefs.h. */
41380_ACEOF
41381cat confdefs.h >>conftest.$ac_ext
41382cat >>conftest.$ac_ext <<_ACEOF
41383/* end confdefs.h. */
41384
41385/* Override any GCC internal prototype to avoid an error.
41386 Use char because int might match the return type of a GCC
41387 builtin and then its argument prototype would still apply. */
41388#ifdef __cplusplus
41389extern "C"
41390#endif
41391char TIFFOpen ();
41392int
41393main ()
41394{
41395return TIFFOpen ();
41396 ;
41397 return 0;
41398}
41399_ACEOF
41400rm -f conftest.$ac_objext conftest$ac_exeext
41401if { (ac_try="$ac_link"
41402case "(($ac_try" in
41403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41404 *) ac_try_echo=$ac_try;;
41405esac
41406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41407$as_echo "$ac_try_echo") >&5
41408 (eval "$ac_link") 2>conftest.er1
41409 ac_status=$?
41410 grep -v '^ *+' conftest.er1 >conftest.err
41411 rm -f conftest.er1
41412 cat conftest.err >&5
41413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41414 (exit $ac_status); } && {
41415 test -z "$ac_c_werror_flag" ||
41416 test ! -s conftest.err
41417 } && test -s conftest$ac_exeext && {
41418 test "$cross_compiling" = yes ||
41419 $as_test_x conftest$ac_exeext
41420 }; then
41421 ac_cv_lib_tiff_TIFFOpen=yes
41422else
41423 $as_echo "$as_me: failed program was:" >&5
41424sed 's/^/| /' conftest.$ac_ext >&5
41425
41426 ac_cv_lib_tiff_TIFFOpen=no
41427fi
41428
41429rm -rf conftest.dSYM
41430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41431 conftest$ac_exeext conftest.$ac_ext
41432LIBS=$ac_check_lib_save_LIBS
41433fi
41434{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
41435$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
41436if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then
41437 passed=`expr $passed + 1`
41438else
41439 failed=`expr $failed + 1`
41440fi
41441
41442 { $as_echo "$as_me:$LINENO: checking for TIFFClientOpen in -ltiff" >&5
41443$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
41444if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then
41445 $as_echo_n "(cached) " >&6
41446else
41447 ac_check_lib_save_LIBS=$LIBS
41448LIBS="-ltiff $LIBS"
41449cat >conftest.$ac_ext <<_ACEOF
41450/* confdefs.h. */
41451_ACEOF
41452cat confdefs.h >>conftest.$ac_ext
41453cat >>conftest.$ac_ext <<_ACEOF
41454/* end confdefs.h. */
41455
41456/* Override any GCC internal prototype to avoid an error.
41457 Use char because int might match the return type of a GCC
41458 builtin and then its argument prototype would still apply. */
41459#ifdef __cplusplus
41460extern "C"
41461#endif
41462char TIFFClientOpen ();
41463int
41464main ()
41465{
41466return TIFFClientOpen ();
41467 ;
41468 return 0;
41469}
41470_ACEOF
41471rm -f conftest.$ac_objext conftest$ac_exeext
41472if { (ac_try="$ac_link"
41473case "(($ac_try" in
41474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41475 *) ac_try_echo=$ac_try;;
41476esac
41477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41478$as_echo "$ac_try_echo") >&5
41479 (eval "$ac_link") 2>conftest.er1
41480 ac_status=$?
41481 grep -v '^ *+' conftest.er1 >conftest.err
41482 rm -f conftest.er1
41483 cat conftest.err >&5
41484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41485 (exit $ac_status); } && {
41486 test -z "$ac_c_werror_flag" ||
41487 test ! -s conftest.err
41488 } && test -s conftest$ac_exeext && {
41489 test "$cross_compiling" = yes ||
41490 $as_test_x conftest$ac_exeext
41491 }; then
41492 ac_cv_lib_tiff_TIFFClientOpen=yes
41493else
41494 $as_echo "$as_me: failed program was:" >&5
41495sed 's/^/| /' conftest.$ac_ext >&5
41496
41497 ac_cv_lib_tiff_TIFFClientOpen=no
41498fi
41499
41500rm -rf conftest.dSYM
41501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41502 conftest$ac_exeext conftest.$ac_ext
41503LIBS=$ac_check_lib_save_LIBS
41504fi
41505{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
41506$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
41507if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then
41508 passed=`expr $passed + 1`
41509else
41510 failed=`expr $failed + 1`
41511fi
41512
41513 { $as_echo "$as_me:$LINENO: checking for TIFFIsByteSwapped in -ltiff" >&5
41514$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
41515if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then
41516 $as_echo_n "(cached) " >&6
41517else
41518 ac_check_lib_save_LIBS=$LIBS
41519LIBS="-ltiff $LIBS"
41520cat >conftest.$ac_ext <<_ACEOF
41521/* confdefs.h. */
41522_ACEOF
41523cat confdefs.h >>conftest.$ac_ext
41524cat >>conftest.$ac_ext <<_ACEOF
41525/* end confdefs.h. */
41526
41527/* Override any GCC internal prototype to avoid an error.
41528 Use char because int might match the return type of a GCC
41529 builtin and then its argument prototype would still apply. */
41530#ifdef __cplusplus
41531extern "C"
41532#endif
41533char TIFFIsByteSwapped ();
41534int
41535main ()
41536{
41537return TIFFIsByteSwapped ();
41538 ;
41539 return 0;
41540}
41541_ACEOF
41542rm -f conftest.$ac_objext conftest$ac_exeext
41543if { (ac_try="$ac_link"
41544case "(($ac_try" in
41545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41546 *) ac_try_echo=$ac_try;;
41547esac
41548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41549$as_echo "$ac_try_echo") >&5
41550 (eval "$ac_link") 2>conftest.er1
41551 ac_status=$?
41552 grep -v '^ *+' conftest.er1 >conftest.err
41553 rm -f conftest.er1
41554 cat conftest.err >&5
41555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41556 (exit $ac_status); } && {
41557 test -z "$ac_c_werror_flag" ||
41558 test ! -s conftest.err
41559 } && test -s conftest$ac_exeext && {
41560 test "$cross_compiling" = yes ||
41561 $as_test_x conftest$ac_exeext
41562 }; then
41563 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
41564else
41565 $as_echo "$as_me: failed program was:" >&5
41566sed 's/^/| /' conftest.$ac_ext >&5
41567
41568 ac_cv_lib_tiff_TIFFIsByteSwapped=no
41569fi
41570
41571rm -rf conftest.dSYM
41572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41573 conftest$ac_exeext conftest.$ac_ext
41574LIBS=$ac_check_lib_save_LIBS
41575fi
41576{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
41577$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
41578if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then
41579 passed=`expr $passed + 1`
41580else
41581 failed=`expr $failed + 1`
41582fi
41583
41584 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBATile in -ltiff" >&5
41585$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
41586if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then
41587 $as_echo_n "(cached) " >&6
41588else
41589 ac_check_lib_save_LIBS=$LIBS
41590LIBS="-ltiff $LIBS"
41591cat >conftest.$ac_ext <<_ACEOF
41592/* confdefs.h. */
41593_ACEOF
41594cat confdefs.h >>conftest.$ac_ext
41595cat >>conftest.$ac_ext <<_ACEOF
41596/* end confdefs.h. */
41597
41598/* Override any GCC internal prototype to avoid an error.
41599 Use char because int might match the return type of a GCC
41600 builtin and then its argument prototype would still apply. */
41601#ifdef __cplusplus
41602extern "C"
41603#endif
41604char TIFFReadRGBATile ();
41605int
41606main ()
41607{
41608return TIFFReadRGBATile ();
41609 ;
41610 return 0;
41611}
41612_ACEOF
41613rm -f conftest.$ac_objext conftest$ac_exeext
41614if { (ac_try="$ac_link"
41615case "(($ac_try" in
41616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41617 *) ac_try_echo=$ac_try;;
41618esac
41619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41620$as_echo "$ac_try_echo") >&5
41621 (eval "$ac_link") 2>conftest.er1
41622 ac_status=$?
41623 grep -v '^ *+' conftest.er1 >conftest.err
41624 rm -f conftest.er1
41625 cat conftest.err >&5
41626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41627 (exit $ac_status); } && {
41628 test -z "$ac_c_werror_flag" ||
41629 test ! -s conftest.err
41630 } && test -s conftest$ac_exeext && {
41631 test "$cross_compiling" = yes ||
41632 $as_test_x conftest$ac_exeext
41633 }; then
41634 ac_cv_lib_tiff_TIFFReadRGBATile=yes
41635else
41636 $as_echo "$as_me: failed program was:" >&5
41637sed 's/^/| /' conftest.$ac_ext >&5
41638
41639 ac_cv_lib_tiff_TIFFReadRGBATile=no
41640fi
41641
41642rm -rf conftest.dSYM
41643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41644 conftest$ac_exeext conftest.$ac_ext
41645LIBS=$ac_check_lib_save_LIBS
41646fi
41647{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
41648$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
41649if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then
41650 passed=`expr $passed + 1`
41651else
41652 failed=`expr $failed + 1`
41653fi
41654
41655 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBAStrip in -ltiff" >&5
41656$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
41657if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then
41658 $as_echo_n "(cached) " >&6
41659else
41660 ac_check_lib_save_LIBS=$LIBS
41661LIBS="-ltiff $LIBS"
41662cat >conftest.$ac_ext <<_ACEOF
41663/* confdefs.h. */
41664_ACEOF
41665cat confdefs.h >>conftest.$ac_ext
41666cat >>conftest.$ac_ext <<_ACEOF
41667/* end confdefs.h. */
41668
41669/* Override any GCC internal prototype to avoid an error.
41670 Use char because int might match the return type of a GCC
41671 builtin and then its argument prototype would still apply. */
41672#ifdef __cplusplus
41673extern "C"
41674#endif
41675char TIFFReadRGBAStrip ();
41676int
41677main ()
41678{
41679return TIFFReadRGBAStrip ();
41680 ;
41681 return 0;
41682}
41683_ACEOF
41684rm -f conftest.$ac_objext conftest$ac_exeext
41685if { (ac_try="$ac_link"
41686case "(($ac_try" in
41687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41688 *) ac_try_echo=$ac_try;;
41689esac
41690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41691$as_echo "$ac_try_echo") >&5
41692 (eval "$ac_link") 2>conftest.er1
41693 ac_status=$?
41694 grep -v '^ *+' conftest.er1 >conftest.err
41695 rm -f conftest.er1
41696 cat conftest.err >&5
41697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41698 (exit $ac_status); } && {
41699 test -z "$ac_c_werror_flag" ||
41700 test ! -s conftest.err
41701 } && test -s conftest$ac_exeext && {
41702 test "$cross_compiling" = yes ||
41703 $as_test_x conftest$ac_exeext
41704 }; then
41705 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
41706else
41707 $as_echo "$as_me: failed program was:" >&5
41708sed 's/^/| /' conftest.$ac_ext >&5
41709
41710 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
41711fi
41712
41713rm -rf conftest.dSYM
41714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41715 conftest$ac_exeext conftest.$ac_ext
41716LIBS=$ac_check_lib_save_LIBS
41717fi
41718{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
41719$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
41720if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then
41721 passed=`expr $passed + 1`
41722else
41723 failed=`expr $failed + 1`
41724fi
41725
41726 { $as_echo "$as_me:$LINENO: checking if TIFF package is complete" >&5
41727$as_echo_n "checking if TIFF package is complete... " >&6; }
41728 if test $passed -gt 0; then
41729 if test $failed -gt 0; then
41730 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
41731$as_echo "no -- some components failed test" >&6; }
41732 have_tiff='no (failed tests)'
41733 else
41734 TIFF_LIBS='-ltiff'
41735 LIBS="$TIFF_LIBS $LIBS"
41736
41737cat >>confdefs.h <<\_ACEOF
41738#define TIFF_DELEGATE 1
41739_ACEOF
41740
41741 { $as_echo "$as_me:$LINENO: result: yes" >&5
41742$as_echo "yes" >&6; }
41743 have_tiff='yes'
41744
41745for ac_header in tiffconf.h
41746do
41747as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41749 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41750$as_echo_n "checking for $ac_header... " >&6; }
41751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41752 $as_echo_n "(cached) " >&6
41753fi
41754ac_res=`eval 'as_val=${'$as_ac_Header'}
41755 $as_echo "$as_val"'`
41756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41757$as_echo "$ac_res" >&6; }
41758else
41759 # Is the header compilable?
41760{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
41761$as_echo_n "checking $ac_header usability... " >&6; }
41762cat >conftest.$ac_ext <<_ACEOF
41763/* confdefs.h. */
41764_ACEOF
41765cat confdefs.h >>conftest.$ac_ext
41766cat >>conftest.$ac_ext <<_ACEOF
41767/* end confdefs.h. */
41768$ac_includes_default
41769#include <$ac_header>
41770_ACEOF
41771rm -f conftest.$ac_objext
41772if { (ac_try="$ac_compile"
41773case "(($ac_try" in
41774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41775 *) ac_try_echo=$ac_try;;
41776esac
41777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41778$as_echo "$ac_try_echo") >&5
41779 (eval "$ac_compile") 2>conftest.er1
41780 ac_status=$?
41781 grep -v '^ *+' conftest.er1 >conftest.err
41782 rm -f conftest.er1
41783 cat conftest.err >&5
41784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41785 (exit $ac_status); } && {
41786 test -z "$ac_c_werror_flag" ||
41787 test ! -s conftest.err
41788 } && test -s conftest.$ac_objext; then
41789 ac_header_compiler=yes
41790else
41791 $as_echo "$as_me: failed program was:" >&5
41792sed 's/^/| /' conftest.$ac_ext >&5
41793
41794 ac_header_compiler=no
41795fi
41796
41797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41798{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41799$as_echo "$ac_header_compiler" >&6; }
41800
41801# Is the header present?
41802{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
41803$as_echo_n "checking $ac_header presence... " >&6; }
41804cat >conftest.$ac_ext <<_ACEOF
41805/* confdefs.h. */
41806_ACEOF
41807cat confdefs.h >>conftest.$ac_ext
41808cat >>conftest.$ac_ext <<_ACEOF
41809/* end confdefs.h. */
41810#include <$ac_header>
41811_ACEOF
41812if { (ac_try="$ac_cpp conftest.$ac_ext"
41813case "(($ac_try" in
41814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41815 *) ac_try_echo=$ac_try;;
41816esac
41817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41818$as_echo "$ac_try_echo") >&5
41819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41820 ac_status=$?
41821 grep -v '^ *+' conftest.er1 >conftest.err
41822 rm -f conftest.er1
41823 cat conftest.err >&5
41824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41825 (exit $ac_status); } >/dev/null && {
41826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41827 test ! -s conftest.err
41828 }; then
41829 ac_header_preproc=yes
41830else
41831 $as_echo "$as_me: failed program was:" >&5
41832sed 's/^/| /' conftest.$ac_ext >&5
41833
41834 ac_header_preproc=no
41835fi
41836
41837rm -f conftest.err conftest.$ac_ext
41838{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41839$as_echo "$ac_header_preproc" >&6; }
41840
41841# So? What about this header?
41842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41843 yes:no: )
41844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41845$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41847$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41848 ac_header_preproc=yes
41849 ;;
41850 no:yes:* )
41851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41852$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41854$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41856$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41858$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41860$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41862$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41863 ( cat <<\_ASBOX
41864## ----------------------------------------- ##
41865## Report this to http://www.imagemagick.org ##
41866## ----------------------------------------- ##
41867_ASBOX
41868 ) | sed "s/^/$as_me: WARNING: /" >&2
41869 ;;
41870esac
41871{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41872$as_echo_n "checking for $ac_header... " >&6; }
41873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41874 $as_echo_n "(cached) " >&6
41875else
41876 eval "$as_ac_Header=\$ac_header_preproc"
41877fi
41878ac_res=`eval 'as_val=${'$as_ac_Header'}
41879 $as_echo "$as_val"'`
41880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41881$as_echo "$ac_res" >&6; }
41882
41883fi
41884as_val=`eval 'as_val=${'$as_ac_Header'}
41885 $as_echo "$as_val"'`
41886 if test "x$as_val" = x""yes; then
41887 cat >>confdefs.h <<_ACEOF
41888#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41889_ACEOF
41890
41891fi
41892
41893done
41894
41895
41896
41897
41898
41899
41900
41901
41902for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
41903 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
41904 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
41905do
41906as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41907{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41908$as_echo_n "checking for $ac_func... " >&6; }
41909if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41910 $as_echo_n "(cached) " >&6
41911else
41912 cat >conftest.$ac_ext <<_ACEOF
41913/* confdefs.h. */
41914_ACEOF
41915cat confdefs.h >>conftest.$ac_ext
41916cat >>conftest.$ac_ext <<_ACEOF
41917/* end confdefs.h. */
41918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41920#define $ac_func innocuous_$ac_func
41921
41922/* System header to define __stub macros and hopefully few prototypes,
41923 which can conflict with char $ac_func (); below.
41924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41925 <limits.h> exists even on freestanding compilers. */
41926
41927#ifdef __STDC__
41928# include <limits.h>
41929#else
41930# include <assert.h>
41931#endif
41932
41933#undef $ac_func
41934
41935/* Override any GCC internal prototype to avoid an error.
41936 Use char because int might match the return type of a GCC
41937 builtin and then its argument prototype would still apply. */
41938#ifdef __cplusplus
41939extern "C"
41940#endif
41941char $ac_func ();
41942/* The GNU C library defines this for functions which it implements
41943 to always fail with ENOSYS. Some functions are actually named
41944 something starting with __ and the normal name is an alias. */
41945#if defined __stub_$ac_func || defined __stub___$ac_func
41946choke me
41947#endif
41948
41949int
41950main ()
41951{
41952return $ac_func ();
41953 ;
41954 return 0;
41955}
41956_ACEOF
41957rm -f conftest.$ac_objext conftest$ac_exeext
41958if { (ac_try="$ac_link"
41959case "(($ac_try" in
41960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41961 *) ac_try_echo=$ac_try;;
41962esac
41963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41964$as_echo "$ac_try_echo") >&5
41965 (eval "$ac_link") 2>conftest.er1
41966 ac_status=$?
41967 grep -v '^ *+' conftest.er1 >conftest.err
41968 rm -f conftest.er1
41969 cat conftest.err >&5
41970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41971 (exit $ac_status); } && {
41972 test -z "$ac_c_werror_flag" ||
41973 test ! -s conftest.err
41974 } && test -s conftest$ac_exeext && {
41975 test "$cross_compiling" = yes ||
41976 $as_test_x conftest$ac_exeext
41977 }; then
41978 eval "$as_ac_var=yes"
41979else
41980 $as_echo "$as_me: failed program was:" >&5
41981sed 's/^/| /' conftest.$ac_ext >&5
41982
41983 eval "$as_ac_var=no"
41984fi
41985
41986rm -rf conftest.dSYM
41987rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41988 conftest$ac_exeext conftest.$ac_ext
41989fi
41990ac_res=`eval 'as_val=${'$as_ac_var'}
41991 $as_echo "$as_val"'`
41992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41993$as_echo "$ac_res" >&6; }
41994as_val=`eval 'as_val=${'$as_ac_var'}
41995 $as_echo "$as_val"'`
41996 if test "x$as_val" = x""yes; then
41997 cat >>confdefs.h <<_ACEOF
41998#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41999_ACEOF
42000
42001fi
42002done
42003
42004 fi
42005 else
42006 { $as_echo "$as_me:$LINENO: result: no" >&5
42007$as_echo "no" >&6; }
42008 fi
42009fi
42010 if test "$have_tiff" = 'yes'; then
42011 TIFF_DELEGATE_TRUE=
42012 TIFF_DELEGATE_FALSE='#'
42013else
42014 TIFF_DELEGATE_TRUE='#'
42015 TIFF_DELEGATE_FALSE=
42016fi
42017
42018
42019
42020
42021#
42022# Set Windows font directory.
42023#
42024
42025# Check whether --with-windows-font-dir was given.
42026if test "${with_windows_font_dir+set}" = set; then
42027 withval=$with_windows_font_dir; with_windows_font_dir=$withval
42028else
42029 with_windows_font_dir=''
42030fi
42031
42032if test "$with_windows_font_dir" != '' ; then
42033 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
42034fi
42035
42036
42037#
42038# Check for WMF delegate library.
42039#
42040
42041# Check whether --with-wmf was given.
42042if test "${with_wmf+set}" = set; then
42043 withval=$with_wmf; with_wmf=$withval
42044else
42045 with_wmf=$with_modules
42046fi
42047
42048
42049if test "$with_wmf" != 'yes'; then
42050 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
42051fi
42052
42053have_wmf='no'
42054WMF_LIBS=''
42055WMF_LIBS_DEPS=''
42056OLIBS="$LIBS"
42057if test "$with_wmf" != 'no'; then
42058 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
42059$as_echo "-------------------------------------------------------------" >&6; }
42060 { $as_echo "$as_me:$LINENO: checking for WMF" >&5
42061$as_echo_n "checking for WMF... " >&6; }
42062 { $as_echo "$as_me:$LINENO: result: " >&5
42063$as_echo "" >&6; }
42064 have_libwmf='no'
42065 have_libwmflite='no'
42066 have_libwmf_ipa_h='no'
42067
42068 { $as_echo "$as_me:$LINENO: checking for libwmf/ipa.h" >&5
42069$as_echo_n "checking for libwmf/ipa.h... " >&6; }
42070if test "${ac_cv_header_libwmf_ipa_h+set}" = set; then
42071 $as_echo_n "(cached) " >&6
42072else
42073 cat >conftest.$ac_ext <<_ACEOF
42074/* confdefs.h. */
42075_ACEOF
42076cat confdefs.h >>conftest.$ac_ext
42077cat >>conftest.$ac_ext <<_ACEOF
42078/* end confdefs.h. */
42079$FT2BUILD_H
42080
42081#include <libwmf/ipa.h>
42082_ACEOF
42083rm -f conftest.$ac_objext
42084if { (ac_try="$ac_compile"
42085case "(($ac_try" in
42086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42087 *) ac_try_echo=$ac_try;;
42088esac
42089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42090$as_echo "$ac_try_echo") >&5
42091 (eval "$ac_compile") 2>conftest.er1
42092 ac_status=$?
42093 grep -v '^ *+' conftest.er1 >conftest.err
42094 rm -f conftest.er1
42095 cat conftest.err >&5
42096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42097 (exit $ac_status); } && {
42098 test -z "$ac_c_werror_flag" ||
42099 test ! -s conftest.err
42100 } && test -s conftest.$ac_objext; then
42101 ac_cv_header_libwmf_ipa_h=yes
42102else
42103 $as_echo "$as_me: failed program was:" >&5
42104sed 's/^/| /' conftest.$ac_ext >&5
42105
42106 ac_cv_header_libwmf_ipa_h=no
42107fi
42108
42109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42110fi
42111{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libwmf_ipa_h" >&5
42112$as_echo "$ac_cv_header_libwmf_ipa_h" >&6; }
42113if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then
42114 have_libwmf_ipa_h='yes'
42115fi
42116
42117
42118 if test "$have_libwmf_ipa_h" = 'yes'; then
42119 { $as_echo "$as_me:$LINENO: checking for wmf_lite_create in -lwmflite" >&5
42120$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
42121if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then
42122 $as_echo_n "(cached) " >&6
42123else
42124 ac_check_lib_save_LIBS=$LIBS
42125LIBS="-lwmflite $LIBS"
42126cat >conftest.$ac_ext <<_ACEOF
42127/* confdefs.h. */
42128_ACEOF
42129cat confdefs.h >>conftest.$ac_ext
42130cat >>conftest.$ac_ext <<_ACEOF
42131/* end confdefs.h. */
42132
42133/* Override any GCC internal prototype to avoid an error.
42134 Use char because int might match the return type of a GCC
42135 builtin and then its argument prototype would still apply. */
42136#ifdef __cplusplus
42137extern "C"
42138#endif
42139char wmf_lite_create ();
42140int
42141main ()
42142{
42143return wmf_lite_create ();
42144 ;
42145 return 0;
42146}
42147_ACEOF
42148rm -f conftest.$ac_objext conftest$ac_exeext
42149if { (ac_try="$ac_link"
42150case "(($ac_try" in
42151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42152 *) ac_try_echo=$ac_try;;
42153esac
42154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42155$as_echo "$ac_try_echo") >&5
42156 (eval "$ac_link") 2>conftest.er1
42157 ac_status=$?
42158 grep -v '^ *+' conftest.er1 >conftest.err
42159 rm -f conftest.er1
42160 cat conftest.err >&5
42161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42162 (exit $ac_status); } && {
42163 test -z "$ac_c_werror_flag" ||
42164 test ! -s conftest.err
42165 } && test -s conftest$ac_exeext && {
42166 test "$cross_compiling" = yes ||
42167 $as_test_x conftest$ac_exeext
42168 }; then
42169 ac_cv_lib_wmflite_wmf_lite_create=yes
42170else
42171 $as_echo "$as_me: failed program was:" >&5
42172sed 's/^/| /' conftest.$ac_ext >&5
42173
42174 ac_cv_lib_wmflite_wmf_lite_create=no
42175fi
42176
42177rm -rf conftest.dSYM
42178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42179 conftest$ac_exeext conftest.$ac_ext
42180LIBS=$ac_check_lib_save_LIBS
42181fi
42182{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
42183$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
42184if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then
42185 have_libwmflite='yes'
42186fi
42187
42188 if test "$have_libwmflite" = 'yes'; then
42189
42190cat >>confdefs.h <<\_ACEOF
42191#define WMFLITE_DELEGATE 1
42192_ACEOF
42193
42194 WMF_LIBS='-lwmflite'
42195 LIBS="$WMF_LIBS $LIBS"
42196 have_wmf='yes'
42197 else
42198 WMF_LIBS_DEPS=''
42199 WMF_CONFIG_LIBS=`libwmf-config --libs`
42200 for lib in xml2 expat freetype jpeg png z; do
42201 testlib="-l${lib}"
42202 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
42203 done
42204 { $as_echo "$as_me:$LINENO: checking for wmf_api_create in -lwmf" >&5
42205$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
42206if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then
42207 $as_echo_n "(cached) " >&6
42208else
42209 ac_check_lib_save_LIBS=$LIBS
42210LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
42211cat >conftest.$ac_ext <<_ACEOF
42212/* confdefs.h. */
42213_ACEOF
42214cat confdefs.h >>conftest.$ac_ext
42215cat >>conftest.$ac_ext <<_ACEOF
42216/* end confdefs.h. */
42217
42218/* Override any GCC internal prototype to avoid an error.
42219 Use char because int might match the return type of a GCC
42220 builtin and then its argument prototype would still apply. */
42221#ifdef __cplusplus
42222extern "C"
42223#endif
42224char wmf_api_create ();
42225int
42226main ()
42227{
42228return wmf_api_create ();
42229 ;
42230 return 0;
42231}
42232_ACEOF
42233rm -f conftest.$ac_objext conftest$ac_exeext
42234if { (ac_try="$ac_link"
42235case "(($ac_try" in
42236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42237 *) ac_try_echo=$ac_try;;
42238esac
42239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42240$as_echo "$ac_try_echo") >&5
42241 (eval "$ac_link") 2>conftest.er1
42242 ac_status=$?
42243 grep -v '^ *+' conftest.er1 >conftest.err
42244 rm -f conftest.er1
42245 cat conftest.err >&5
42246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42247 (exit $ac_status); } && {
42248 test -z "$ac_c_werror_flag" ||
42249 test ! -s conftest.err
42250 } && test -s conftest$ac_exeext && {
42251 test "$cross_compiling" = yes ||
42252 $as_test_x conftest$ac_exeext
42253 }; then
42254 ac_cv_lib_wmf_wmf_api_create=yes
42255else
42256 $as_echo "$as_me: failed program was:" >&5
42257sed 's/^/| /' conftest.$ac_ext >&5
42258
42259 ac_cv_lib_wmf_wmf_api_create=no
42260fi
42261
42262rm -rf conftest.dSYM
42263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42264 conftest$ac_exeext conftest.$ac_ext
42265LIBS=$ac_check_lib_save_LIBS
42266fi
42267{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmf_wmf_api_create" >&5
42268$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
42269if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then
42270 have_libwmf='yes'
42271fi
42272
42273 if test "$have_libwmf" = 'yes'; then
42274
42275cat >>confdefs.h <<\_ACEOF
42276#define WMF_DELEGATE 1
42277_ACEOF
42278
42279 WMF_LIBS='-lwmf'
42280 LIBS="$WMF_LIBS $LIBS"
42281 have_wmf='yes'
42282 else
42283 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
42284$as_echo "no -- some components failed test" >&6; }
42285 have_wmf='no (failed tests)'
42286 have_wmflite='no (failed tests)'
42287 LIBS="$OLIBS"
42288 WMF_LIBS=''
42289 fi
42290 fi
42291 fi
42292 { $as_echo "$as_me:$LINENO: checking if WMF package is complete" >&5
42293$as_echo_n "checking if WMF package is complete... " >&6; }
42294 if test "$have_wmf" = 'yes'; then
42295 { $as_echo "$as_me:$LINENO: result: yes" >&5
42296$as_echo "yes" >&6; }
42297 else
42298 { $as_echo "$as_me:$LINENO: result: no" >&5
42299$as_echo "no" >&6; }
42300 fi
42301fi
42302 if test "$have_wmf" = 'yes'; then
42303 WMF_DELEGATE_TRUE=
42304 WMF_DELEGATE_FALSE='#'
42305else
42306 WMF_DELEGATE_TRUE='#'
42307 WMF_DELEGATE_FALSE=
42308fi
42309
42310
42311
42312
42313
42314#
42315# Check for XML delegate library.
42316#
42317
42318# Check whether --with-xml was given.
42319if test "${with_xml+set}" = set; then
42320 withval=$with_xml; with_xml=$withval
42321else
42322 with_xml=$have_x
42323fi
42324
42325
42326if test "$with_xml" != 'yes' ; then
42327 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
42328fi
42329
42330have_xml='no'
42331XML_LIBS=''
42332if test "$with_xml" != 'no'; then
42333 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
42334$as_echo "-------------------------------------------------------------" >&6; }
42335 { $as_echo "$as_me:$LINENO: checking for XML" >&5
42336$as_echo_n "checking for XML... " >&6; }
42337 { $as_echo "$as_me:$LINENO: result: " >&5
42338$as_echo "" >&6; }
42339 PERSIST_LDFLAGS=$LDFLAGS
42340 PERSIST_CPPFLAGS=$CPPFLAGS
42341 xml2_config=''
42342 for ac_prog in xml2-config
42343do
42344 # Extract the first word of "$ac_prog", so it can be a program name with args.
42345set dummy $ac_prog; ac_word=$2
42346{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42347$as_echo_n "checking for $ac_word... " >&6; }
42348if test "${ac_cv_prog_xml2_config+set}" = set; then
42349 $as_echo_n "(cached) " >&6
42350else
42351 if test -n "$xml2_config"; then
42352 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
42353else
42354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42355for as_dir in $PATH
42356do
42357 IFS=$as_save_IFS
42358 test -z "$as_dir" && as_dir=.
42359 for ac_exec_ext in '' $ac_executable_extensions; do
42360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42361 ac_cv_prog_xml2_config="$ac_prog"
42362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42363 break 2
42364 fi
42365done
42366done
42367IFS=$as_save_IFS
42368
42369fi
42370fi
42371xml2_config=$ac_cv_prog_xml2_config
42372if test -n "$xml2_config"; then
42373 { $as_echo "$as_me:$LINENO: result: $xml2_config" >&5
42374$as_echo "$xml2_config" >&6; }
42375else
42376 { $as_echo "$as_me:$LINENO: result: no" >&5
42377$as_echo "no" >&6; }
42378fi
42379
42380
42381 test -n "$xml2_config" && break
42382done
42383 if test -n "$xml2_config"; then
42384 # Debian installs libxml headers under /usr/include/libxml2/libxml with
42385 # the shared library installed under /usr/lib, whereas the package
42386 # installs itself under $prefix/libxml and $prefix/lib.
42387 xml2_prefix=`xml2-config --prefix`
42388 if test -d "${xml2_prefix}/include/libxml2"; then
42389 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
42390 fi
42391 if test "${xml2_prefix}" != '/usr'; then
42392 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
42393 fi
42394 fi
42395 failed=0
42396 passed=0
42397 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
42398 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
42399$as_echo_n "checking for libxml/parser.h... " >&6; }
42400if test "${ac_cv_header_libxml_parser_h+set}" = set; then
42401 $as_echo_n "(cached) " >&6
42402fi
42403{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
42404$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
42405else
42406 # Is the header compilable?
42407{ $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
42408$as_echo_n "checking libxml/parser.h usability... " >&6; }
42409cat >conftest.$ac_ext <<_ACEOF
42410/* confdefs.h. */
42411_ACEOF
42412cat confdefs.h >>conftest.$ac_ext
42413cat >>conftest.$ac_ext <<_ACEOF
42414/* end confdefs.h. */
42415$ac_includes_default
42416#include <libxml/parser.h>
42417_ACEOF
42418rm -f conftest.$ac_objext
42419if { (ac_try="$ac_compile"
42420case "(($ac_try" in
42421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42422 *) ac_try_echo=$ac_try;;
42423esac
42424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42425$as_echo "$ac_try_echo") >&5
42426 (eval "$ac_compile") 2>conftest.er1
42427 ac_status=$?
42428 grep -v '^ *+' conftest.er1 >conftest.err
42429 rm -f conftest.er1
42430 cat conftest.err >&5
42431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42432 (exit $ac_status); } && {
42433 test -z "$ac_c_werror_flag" ||
42434 test ! -s conftest.err
42435 } && test -s conftest.$ac_objext; then
42436 ac_header_compiler=yes
42437else
42438 $as_echo "$as_me: failed program was:" >&5
42439sed 's/^/| /' conftest.$ac_ext >&5
42440
42441 ac_header_compiler=no
42442fi
42443
42444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42445{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42446$as_echo "$ac_header_compiler" >&6; }
42447
42448# Is the header present?
42449{ $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
42450$as_echo_n "checking libxml/parser.h presence... " >&6; }
42451cat >conftest.$ac_ext <<_ACEOF
42452/* confdefs.h. */
42453_ACEOF
42454cat confdefs.h >>conftest.$ac_ext
42455cat >>conftest.$ac_ext <<_ACEOF
42456/* end confdefs.h. */
42457#include <libxml/parser.h>
42458_ACEOF
42459if { (ac_try="$ac_cpp conftest.$ac_ext"
42460case "(($ac_try" in
42461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42462 *) ac_try_echo=$ac_try;;
42463esac
42464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42465$as_echo "$ac_try_echo") >&5
42466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42467 ac_status=$?
42468 grep -v '^ *+' conftest.er1 >conftest.err
42469 rm -f conftest.er1
42470 cat conftest.err >&5
42471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42472 (exit $ac_status); } >/dev/null && {
42473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42474 test ! -s conftest.err
42475 }; then
42476 ac_header_preproc=yes
42477else
42478 $as_echo "$as_me: failed program was:" >&5
42479sed 's/^/| /' conftest.$ac_ext >&5
42480
42481 ac_header_preproc=no
42482fi
42483
42484rm -f conftest.err conftest.$ac_ext
42485{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42486$as_echo "$ac_header_preproc" >&6; }
42487
42488# So? What about this header?
42489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42490 yes:no: )
42491 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
42492$as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42493 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
42494$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
42495 ac_header_preproc=yes
42496 ;;
42497 no:yes:* )
42498 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
42499$as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
42500 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
42501$as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
42502 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
42503$as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
42504 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
42505$as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
42506 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
42507$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
42508 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
42509$as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
42510 ( cat <<\_ASBOX
42511## ----------------------------------------- ##
42512## Report this to http://www.imagemagick.org ##
42513## ----------------------------------------- ##
42514_ASBOX
42515 ) | sed "s/^/$as_me: WARNING: /" >&2
42516 ;;
42517esac
42518{ $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
42519$as_echo_n "checking for libxml/parser.h... " >&6; }
42520if test "${ac_cv_header_libxml_parser_h+set}" = set; then
42521 $as_echo_n "(cached) " >&6
42522else
42523 ac_cv_header_libxml_parser_h=$ac_header_preproc
42524fi
42525{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
42526$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
42527
42528fi
42529if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
42530 passed=`expr $passed + 1`
42531else
42532 failed=`expr $failed + 1`
42533fi
42534
42535
42536 { $as_echo "$as_me:$LINENO: checking for xmlParseExternalEntity in -lxml2" >&5
42537$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
42538if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then
42539 $as_echo_n "(cached) " >&6
42540else
42541 ac_check_lib_save_LIBS=$LIBS
42542LIBS="-lxml2 $LIBS"
42543cat >conftest.$ac_ext <<_ACEOF
42544/* confdefs.h. */
42545_ACEOF
42546cat confdefs.h >>conftest.$ac_ext
42547cat >>conftest.$ac_ext <<_ACEOF
42548/* end confdefs.h. */
42549
42550/* Override any GCC internal prototype to avoid an error.
42551 Use char because int might match the return type of a GCC
42552 builtin and then its argument prototype would still apply. */
42553#ifdef __cplusplus
42554extern "C"
42555#endif
42556char xmlParseExternalEntity ();
42557int
42558main ()
42559{
42560return xmlParseExternalEntity ();
42561 ;
42562 return 0;
42563}
42564_ACEOF
42565rm -f conftest.$ac_objext conftest$ac_exeext
42566if { (ac_try="$ac_link"
42567case "(($ac_try" in
42568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42569 *) ac_try_echo=$ac_try;;
42570esac
42571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42572$as_echo "$ac_try_echo") >&5
42573 (eval "$ac_link") 2>conftest.er1
42574 ac_status=$?
42575 grep -v '^ *+' conftest.er1 >conftest.err
42576 rm -f conftest.er1
42577 cat conftest.err >&5
42578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42579 (exit $ac_status); } && {
42580 test -z "$ac_c_werror_flag" ||
42581 test ! -s conftest.err
42582 } && test -s conftest$ac_exeext && {
42583 test "$cross_compiling" = yes ||
42584 $as_test_x conftest$ac_exeext
42585 }; then
42586 ac_cv_lib_xml2_xmlParseExternalEntity=yes
42587else
42588 $as_echo "$as_me: failed program was:" >&5
42589sed 's/^/| /' conftest.$ac_ext >&5
42590
42591 ac_cv_lib_xml2_xmlParseExternalEntity=no
42592fi
42593
42594rm -rf conftest.dSYM
42595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42596 conftest$ac_exeext conftest.$ac_ext
42597LIBS=$ac_check_lib_save_LIBS
42598fi
42599{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
42600$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
42601if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then
42602 passed=`expr $passed + 1`
42603else
42604 failed=`expr $failed + 1`
42605fi
42606
42607 { $as_echo "$as_me:$LINENO: checking if XML package is complete" >&5
42608$as_echo_n "checking if XML package is complete... " >&6; }
42609 if test $passed -gt 0; then
42610 if test $failed -gt 0; then
42611 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
42612$as_echo "no -- some components failed test" >&6; }
42613 have_xml='no (failed tests)'
42614 LDFLAGS="$PERSIST_LDFLAGS"
42615 CPPFLAGS="$PERSIST_CPPFLAGS"
42616 else
42617 XML_LIBS='-lxml2'
42618 LIBS="$XML_LIBS $LIBS"
42619
42620cat >>confdefs.h <<\_ACEOF
42621#define XML_DELEGATE 1
42622_ACEOF
42623
42624 { $as_echo "$as_me:$LINENO: result: yes" >&5
42625$as_echo "yes" >&6; }
42626 have_xml='yes'
42627 fi
42628 else
42629 { $as_echo "$as_me:$LINENO: result: no" >&5
42630$as_echo "no" >&6; }
42631 fi
42632fi
42633 if test "$have_xml" = 'yes'; then
42634 XML_DELEGATE_TRUE=
42635 XML_DELEGATE_FALSE='#'
42636else
42637 XML_DELEGATE_TRUE='#'
42638 XML_DELEGATE_FALSE=
42639fi
42640
42641
42642
42643
42644# Substitute compiler name to build/link PerlMagick
42645#
42646
42647
42648#
42649# Configure install Paths
42650#
42651
42652# Subdirectory under lib to place ImageMagick lib files
42653LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
42654
42655cat >>confdefs.h <<_ACEOF
42656#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
42657_ACEOF
42658
42659
42660# Path to ImageMagick bin directory
42661EXECUTABLE_PATH="${BIN_DIR}"
42662DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
42663case "${build_os}" in
42664 mingw* )
42665 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
42666 ;;
42667esac
42668
42669cat >>confdefs.h <<_ACEOF
42670#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
42671_ACEOF
42672
42673
42674
42675# Path to ImageMagick lib
42676LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
42677DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
42678case "${build_os}" in
42679 mingw* )
42680 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
42681 ;;
42682esac
42683
42684cat >>confdefs.h <<_ACEOF
42685#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
42686_ACEOF
42687
42688
42689
42690# Subdirectory under lib to place ImageMagick configuration files
42691CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
42692
42693cat >>confdefs.h <<_ACEOF
42694#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
42695_ACEOF
42696
42697CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
42698DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
42699case "${build_os}" in
42700 mingw* )
42701 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
42702 ;;
42703esac
42704
42705cat >>confdefs.h <<_ACEOF
42706#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
42707_ACEOF
42708
42709
42710
42711#
42712# Subdirectory under lib to place ImageMagick coder module files
42713CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
42714
42715cat >>confdefs.h <<_ACEOF
42716#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
42717_ACEOF
42718
42719CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
42720DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
42721case "${build_os}" in
42722 mingw* )
42723 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
42724 ;;
42725esac
42726
42727cat >>confdefs.h <<_ACEOF
42728#define CODER_PATH "$DEFINE_CODER_PATH"
42729_ACEOF
42730
42731
42732
42733#
42734# Subdirectory under lib to place ImageMagick filter module files
42735FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
42736
42737cat >>confdefs.h <<_ACEOF
42738#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
42739_ACEOF
42740
42741FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
42742DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
42743case "${build_os}" in
42744 mingw* )
42745 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
42746 ;;
42747esac
42748
42749cat >>confdefs.h <<_ACEOF
42750#define FILTER_PATH "$DEFINE_FILTER_PATH"
42751_ACEOF
42752
42753
42754
42755#
42756# Path to ImageMagick documentation files
42757DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
42758DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
42759DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
42760case "${build_os}" in
42761 mingw* )
42762 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
42763 ;;
42764esac
42765
42766cat >>confdefs.h <<_ACEOF
42767#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
42768_ACEOF
42769
42770
42771
42772#
42773# Path to ImageMagick share files
42774SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
42775SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
42776DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
42777case "${build_os}" in
42778 mingw* )
42779 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
42780 ;;
42781esac
42782
42783cat >>confdefs.h <<_ACEOF
42784#define SHARE_PATH "$DEFINE_SHARE_PATH"
42785_ACEOF
42786
42787
42788
42789# Subdirectory under share to place ImageMagick configuration files
42790SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
42791
42792cat >>confdefs.h <<_ACEOF
42793#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
42794_ACEOF
42795
42796SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
42797DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
42798case "${build_os}" in
42799 mingw* )
42800 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
42801 ;;
42802esac
42803
42804cat >>confdefs.h <<_ACEOF
42805#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
42806_ACEOF
42807
42808
42809
42810#
42811# program_transform_name is formed for use in a Makefile, so create a
42812# modified version for use in a shell script.
42813configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
42814
42815# Default delegate definitions
42816{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
42817$as_echo "-------------------------------------------------------------" >&6; }
42818{ $as_echo "$as_me:$LINENO: checking for ImageMagick delegate programs" >&5
42819$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
42820{ $as_echo "$as_me:$LINENO: result: " >&5
42821$as_echo "" >&6; }
42822AutotraceDecodeDelegateDefault='autotrace'
42823AVIDecodeDelegateDefault='mplayer'
42824BlenderDelegateDefault='blender'
42825BZIPDelegateDefault='bzip2'
42826BrowseDelegateDefault='xdg-open'
42827CGMDecodeDelegateDefault='ralcgm'
42828CatDelegateDefault='cat'
42829DNGDecodeDelegateDefault='ufraw-batch'
42830GVCDecodeDelegateDefault='dot'
42831DVIDecodeDelegateDefault='dvips'
42832EchoDelegateDefault='echo'
42833EditorDelegateDefault='xterm'
42834FIGDecodeDelegateDefault='fig2dev'
42835ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
42836DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
42837MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
42838GnuplotDecodeDelegateDefault='gnuplot'
42839HDRDecodeDelegateDefault='ra_pfm'
42840HPGLDecodeDelegateDefault='hp2xx'
42841HTMLDecodeDelegateDefault='html2ps'
42842ILBMDecodeDelegateDefault='ilbmtoppm'
42843ILBMEncodeDelegateDefault='ppmtoilbm'
42844LPDelegateDefault='lp'
42845LPRDelegateDefault='lpr'
42846LZWDecodeDelegateDefault='uncompress'
42847LZWEncodeDelegateDefault='compress'
42848LaunchDelegateDefault='gimp'
42849MANDelegateDefault='groff'
42850MPEGDecodeDelegateDefault='ffmpeg'
42851MPEGEncodeDelegateDefault='ffmpeg'
42852MVDelegateDefault='mv'
42853PCLDelegateDefault='pcl6'
42854PGPDecodeDelegateDefault='pgpv'
42855POVDelegateDefault='povray'
42856if test "$native_win32_build" = 'yes'; then
42857 PSDelegateDefault='gswin32c'
42858elif test $framework -gt 0; then
42859 PSDelegateDefault='gsc'
42860else
42861 PSDelegateDefault='gs'
42862fi
42863RLEEncodeDelegateDefault='rawtorle'
42864RMDelegateDefault='rm'
42865SCANDecodeDelegateDefault='scanimage'
42866TXTDelegateDefault='enscript'
42867WMFDecodeDelegateDefault='wmf2eps'
42868WWWDecodeDelegateDefault='curl'
42869XPSDelegateDefault='gxps'
42870ZipDelegateDefault='gzip'
42871
42872# Search for delegates
42873# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
42874set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
42875{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42876$as_echo_n "checking for $ac_word... " >&6; }
42877if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then
42878 $as_echo_n "(cached) " >&6
42879else
42880 case $AutotraceDecodeDelegate in
42881 [\\/]* | ?:[\\/]*)
42882 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
42883 ;;
42884 *)
42885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42886for as_dir in $PATH
42887do
42888 IFS=$as_save_IFS
42889 test -z "$as_dir" && as_dir=.
42890 for ac_exec_ext in '' $ac_executable_extensions; do
42891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42892 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
42893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42894 break 2
42895 fi
42896done
42897done
42898IFS=$as_save_IFS
42899
42900 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
42901 ;;
42902esac
42903fi
42904AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
42905if test -n "$AutotraceDecodeDelegate"; then
42906 { $as_echo "$as_me:$LINENO: result: $AutotraceDecodeDelegate" >&5
42907$as_echo "$AutotraceDecodeDelegate" >&6; }
42908else
42909 { $as_echo "$as_me:$LINENO: result: no" >&5
42910$as_echo "no" >&6; }
42911fi
42912
42913
42914# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
42915set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
42916{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42917$as_echo_n "checking for $ac_word... " >&6; }
42918if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then
42919 $as_echo_n "(cached) " >&6
42920else
42921 case $AVIDecodeDelegate in
42922 [\\/]* | ?:[\\/]*)
42923 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
42924 ;;
42925 *)
42926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42927for as_dir in $PATH
42928do
42929 IFS=$as_save_IFS
42930 test -z "$as_dir" && as_dir=.
42931 for ac_exec_ext in '' $ac_executable_extensions; do
42932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42933 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
42934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42935 break 2
42936 fi
42937done
42938done
42939IFS=$as_save_IFS
42940
42941 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
42942 ;;
42943esac
42944fi
42945AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
42946if test -n "$AVIDecodeDelegate"; then
42947 { $as_echo "$as_me:$LINENO: result: $AVIDecodeDelegate" >&5
42948$as_echo "$AVIDecodeDelegate" >&6; }
42949else
42950 { $as_echo "$as_me:$LINENO: result: no" >&5
42951$as_echo "no" >&6; }
42952fi
42953
42954
42955# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
42956set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
42957{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42958$as_echo_n "checking for $ac_word... " >&6; }
42959if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then
42960 $as_echo_n "(cached) " >&6
42961else
42962 case $BlenderDecodeDelegate in
42963 [\\/]* | ?:[\\/]*)
42964 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
42965 ;;
42966 *)
42967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42968for as_dir in $PATH
42969do
42970 IFS=$as_save_IFS
42971 test -z "$as_dir" && as_dir=.
42972 for ac_exec_ext in '' $ac_executable_extensions; do
42973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42974 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
42975 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42976 break 2
42977 fi
42978done
42979done
42980IFS=$as_save_IFS
42981
42982 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
42983 ;;
42984esac
42985fi
42986BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
42987if test -n "$BlenderDecodeDelegate"; then
42988 { $as_echo "$as_me:$LINENO: result: $BlenderDecodeDelegate" >&5
42989$as_echo "$BlenderDecodeDelegate" >&6; }
42990else
42991 { $as_echo "$as_me:$LINENO: result: no" >&5
42992$as_echo "no" >&6; }
42993fi
42994
42995
42996# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
42997set dummy "$BZIPDelegateDefault"; ac_word=$2
42998{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42999$as_echo_n "checking for $ac_word... " >&6; }
43000if test "${ac_cv_path_BZIPDelegate+set}" = set; then
43001 $as_echo_n "(cached) " >&6
43002else
43003 case $BZIPDelegate in
43004 [\\/]* | ?:[\\/]*)
43005 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
43006 ;;
43007 *)
43008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43009for as_dir in $PATH
43010do
43011 IFS=$as_save_IFS
43012 test -z "$as_dir" && as_dir=.
43013 for ac_exec_ext in '' $ac_executable_extensions; do
43014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43015 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
43016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43017 break 2
43018 fi
43019done
43020done
43021IFS=$as_save_IFS
43022
43023 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
43024 ;;
43025esac
43026fi
43027BZIPDelegate=$ac_cv_path_BZIPDelegate
43028if test -n "$BZIPDelegate"; then
43029 { $as_echo "$as_me:$LINENO: result: $BZIPDelegate" >&5
43030$as_echo "$BZIPDelegate" >&6; }
43031else
43032 { $as_echo "$as_me:$LINENO: result: no" >&5
43033$as_echo "no" >&6; }
43034fi
43035
43036
43037# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
43038set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
43039{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43040$as_echo_n "checking for $ac_word... " >&6; }
43041if test "${ac_cv_path_BrowseDelegate+set}" = set; then
43042 $as_echo_n "(cached) " >&6
43043else
43044 case $BrowseDelegate in
43045 [\\/]* | ?:[\\/]*)
43046 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
43047 ;;
43048 *)
43049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43050for as_dir in $PATH
43051do
43052 IFS=$as_save_IFS
43053 test -z "$as_dir" && as_dir=.
43054 for ac_exec_ext in '' $ac_executable_extensions; do
43055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43056 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
43057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43058 break 2
43059 fi
43060done
43061done
43062IFS=$as_save_IFS
43063
43064 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
43065 ;;
43066esac
43067fi
43068BrowseDelegate=$ac_cv_path_BrowseDelegate
43069if test -n "$BrowseDelegate"; then
43070 { $as_echo "$as_me:$LINENO: result: $BrowseDelegate" >&5
43071$as_echo "$BrowseDelegate" >&6; }
43072else
43073 { $as_echo "$as_me:$LINENO: result: no" >&5
43074$as_echo "no" >&6; }
43075fi
43076
43077
43078# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
43079set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
43080{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43081$as_echo_n "checking for $ac_word... " >&6; }
43082if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then
43083 $as_echo_n "(cached) " >&6
43084else
43085 case $CGMDecodeDelegate in
43086 [\\/]* | ?:[\\/]*)
43087 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
43088 ;;
43089 *)
43090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43091for as_dir in $PATH
43092do
43093 IFS=$as_save_IFS
43094 test -z "$as_dir" && as_dir=.
43095 for ac_exec_ext in '' $ac_executable_extensions; do
43096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43097 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43099 break 2
43100 fi
43101done
43102done
43103IFS=$as_save_IFS
43104
43105 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
43106 ;;
43107esac
43108fi
43109CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
43110if test -n "$CGMDecodeDelegate"; then
43111 { $as_echo "$as_me:$LINENO: result: $CGMDecodeDelegate" >&5
43112$as_echo "$CGMDecodeDelegate" >&6; }
43113else
43114 { $as_echo "$as_me:$LINENO: result: no" >&5
43115$as_echo "no" >&6; }
43116fi
43117
43118
43119# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
43120set dummy "$CatDelegateDefault"; ac_word=$2
43121{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43122$as_echo_n "checking for $ac_word... " >&6; }
43123if test "${ac_cv_path_CatDelegate+set}" = set; then
43124 $as_echo_n "(cached) " >&6
43125else
43126 case $CatDelegate in
43127 [\\/]* | ?:[\\/]*)
43128 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
43129 ;;
43130 *)
43131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43132for as_dir in $PATH
43133do
43134 IFS=$as_save_IFS
43135 test -z "$as_dir" && as_dir=.
43136 for ac_exec_ext in '' $ac_executable_extensions; do
43137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43138 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
43139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43140 break 2
43141 fi
43142done
43143done
43144IFS=$as_save_IFS
43145
43146 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
43147 ;;
43148esac
43149fi
43150CatDelegate=$ac_cv_path_CatDelegate
43151if test -n "$CatDelegate"; then
43152 { $as_echo "$as_me:$LINENO: result: $CatDelegate" >&5
43153$as_echo "$CatDelegate" >&6; }
43154else
43155 { $as_echo "$as_me:$LINENO: result: no" >&5
43156$as_echo "no" >&6; }
43157fi
43158
43159
43160# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
43161set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
43162{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43163$as_echo_n "checking for $ac_word... " >&6; }
43164if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then
43165 $as_echo_n "(cached) " >&6
43166else
43167 case $DNGDecodeDelegate in
43168 [\\/]* | ?:[\\/]*)
43169 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
43170 ;;
43171 *)
43172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43173for as_dir in $PATH
43174do
43175 IFS=$as_save_IFS
43176 test -z "$as_dir" && as_dir=.
43177 for ac_exec_ext in '' $ac_executable_extensions; do
43178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43179 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43181 break 2
43182 fi
43183done
43184done
43185IFS=$as_save_IFS
43186
43187 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
43188 ;;
43189esac
43190fi
43191DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
43192if test -n "$DNGDecodeDelegate"; then
43193 { $as_echo "$as_me:$LINENO: result: $DNGDecodeDelegate" >&5
43194$as_echo "$DNGDecodeDelegate" >&6; }
43195else
43196 { $as_echo "$as_me:$LINENO: result: no" >&5
43197$as_echo "no" >&6; }
43198fi
43199
43200
43201# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
43202set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
43203{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43204$as_echo_n "checking for $ac_word... " >&6; }
43205if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then
43206 $as_echo_n "(cached) " >&6
43207else
43208 case $GVCDecodeDelegate in
43209 [\\/]* | ?:[\\/]*)
43210 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
43211 ;;
43212 *)
43213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43214for as_dir in $PATH
43215do
43216 IFS=$as_save_IFS
43217 test -z "$as_dir" && as_dir=.
43218 for ac_exec_ext in '' $ac_executable_extensions; do
43219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43220 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43222 break 2
43223 fi
43224done
43225done
43226IFS=$as_save_IFS
43227
43228 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
43229 ;;
43230esac
43231fi
43232GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
43233if test -n "$GVCDecodeDelegate"; then
43234 { $as_echo "$as_me:$LINENO: result: $GVCDecodeDelegate" >&5
43235$as_echo "$GVCDecodeDelegate" >&6; }
43236else
43237 { $as_echo "$as_me:$LINENO: result: no" >&5
43238$as_echo "no" >&6; }
43239fi
43240
43241
43242# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
43243set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
43244{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43245$as_echo_n "checking for $ac_word... " >&6; }
43246if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then
43247 $as_echo_n "(cached) " >&6
43248else
43249 case $DVIDecodeDelegate in
43250 [\\/]* | ?:[\\/]*)
43251 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
43252 ;;
43253 *)
43254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43255for as_dir in $PATH
43256do
43257 IFS=$as_save_IFS
43258 test -z "$as_dir" && as_dir=.
43259 for ac_exec_ext in '' $ac_executable_extensions; do
43260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43261 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43263 break 2
43264 fi
43265done
43266done
43267IFS=$as_save_IFS
43268
43269 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
43270 ;;
43271esac
43272fi
43273DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
43274if test -n "$DVIDecodeDelegate"; then
43275 { $as_echo "$as_me:$LINENO: result: $DVIDecodeDelegate" >&5
43276$as_echo "$DVIDecodeDelegate" >&6; }
43277else
43278 { $as_echo "$as_me:$LINENO: result: no" >&5
43279$as_echo "no" >&6; }
43280fi
43281
43282
43283# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
43284set dummy "$EchoDelegateDefault"; ac_word=$2
43285{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43286$as_echo_n "checking for $ac_word... " >&6; }
43287if test "${ac_cv_path_EchoDelegate+set}" = set; then
43288 $as_echo_n "(cached) " >&6
43289else
43290 case $EchoDelegate in
43291 [\\/]* | ?:[\\/]*)
43292 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
43293 ;;
43294 *)
43295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43296for as_dir in $PATH
43297do
43298 IFS=$as_save_IFS
43299 test -z "$as_dir" && as_dir=.
43300 for ac_exec_ext in '' $ac_executable_extensions; do
43301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43302 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
43303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43304 break 2
43305 fi
43306done
43307done
43308IFS=$as_save_IFS
43309
43310 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
43311 ;;
43312esac
43313fi
43314EchoDelegate=$ac_cv_path_EchoDelegate
43315if test -n "$EchoDelegate"; then
43316 { $as_echo "$as_me:$LINENO: result: $EchoDelegate" >&5
43317$as_echo "$EchoDelegate" >&6; }
43318else
43319 { $as_echo "$as_me:$LINENO: result: no" >&5
43320$as_echo "no" >&6; }
43321fi
43322
43323
43324# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
43325set dummy "$EditorDelegateDefault"; ac_word=$2
43326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43327$as_echo_n "checking for $ac_word... " >&6; }
43328if test "${ac_cv_path_EditorDelegate+set}" = set; then
43329 $as_echo_n "(cached) " >&6
43330else
43331 case $EditorDelegate in
43332 [\\/]* | ?:[\\/]*)
43333 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
43334 ;;
43335 *)
43336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43337for as_dir in $PATH
43338do
43339 IFS=$as_save_IFS
43340 test -z "$as_dir" && as_dir=.
43341 for ac_exec_ext in '' $ac_executable_extensions; do
43342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43343 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
43344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43345 break 2
43346 fi
43347done
43348done
43349IFS=$as_save_IFS
43350
43351 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
43352 ;;
43353esac
43354fi
43355EditorDelegate=$ac_cv_path_EditorDelegate
43356if test -n "$EditorDelegate"; then
43357 { $as_echo "$as_me:$LINENO: result: $EditorDelegate" >&5
43358$as_echo "$EditorDelegate" >&6; }
43359else
43360 { $as_echo "$as_me:$LINENO: result: no" >&5
43361$as_echo "no" >&6; }
43362fi
43363
43364
43365# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
43366set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
43367{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43368$as_echo_n "checking for $ac_word... " >&6; }
43369if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then
43370 $as_echo_n "(cached) " >&6
43371else
43372 case $FIGDecodeDelegate in
43373 [\\/]* | ?:[\\/]*)
43374 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
43375 ;;
43376 *)
43377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43378for as_dir in $PATH
43379do
43380 IFS=$as_save_IFS
43381 test -z "$as_dir" && as_dir=.
43382 for ac_exec_ext in '' $ac_executable_extensions; do
43383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43384 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43386 break 2
43387 fi
43388done
43389done
43390IFS=$as_save_IFS
43391
43392 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
43393 ;;
43394esac
43395fi
43396FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
43397if test -n "$FIGDecodeDelegate"; then
43398 { $as_echo "$as_me:$LINENO: result: $FIGDecodeDelegate" >&5
43399$as_echo "$FIGDecodeDelegate" >&6; }
43400else
43401 { $as_echo "$as_me:$LINENO: result: no" >&5
43402$as_echo "no" >&6; }
43403fi
43404
43405
43406# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
43407set dummy "$ConvertDelegateDefault"; ac_word=$2
43408{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43409$as_echo_n "checking for $ac_word... " >&6; }
43410if test "${ac_cv_path_ConvertDelegate+set}" = set; then
43411 $as_echo_n "(cached) " >&6
43412else
43413 case $ConvertDelegate in
43414 [\\/]* | ?:[\\/]*)
43415 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
43416 ;;
43417 *)
43418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43419for as_dir in $PATH
43420do
43421 IFS=$as_save_IFS
43422 test -z "$as_dir" && as_dir=.
43423 for ac_exec_ext in '' $ac_executable_extensions; do
43424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43425 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
43426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43427 break 2
43428 fi
43429done
43430done
43431IFS=$as_save_IFS
43432
43433 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
43434 ;;
43435esac
43436fi
43437ConvertDelegate=$ac_cv_path_ConvertDelegate
43438if test -n "$ConvertDelegate"; then
43439 { $as_echo "$as_me:$LINENO: result: $ConvertDelegate" >&5
43440$as_echo "$ConvertDelegate" >&6; }
43441else
43442 { $as_echo "$as_me:$LINENO: result: no" >&5
43443$as_echo "no" >&6; }
43444fi
43445
43446
43447# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
43448set dummy "$DisplayDelegateDefault"; ac_word=$2
43449{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43450$as_echo_n "checking for $ac_word... " >&6; }
43451if test "${ac_cv_path_DisplayDelegate+set}" = set; then
43452 $as_echo_n "(cached) " >&6
43453else
43454 case $DisplayDelegate in
43455 [\\/]* | ?:[\\/]*)
43456 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
43457 ;;
43458 *)
43459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43460for as_dir in $PATH
43461do
43462 IFS=$as_save_IFS
43463 test -z "$as_dir" && as_dir=.
43464 for ac_exec_ext in '' $ac_executable_extensions; do
43465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43466 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
43467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43468 break 2
43469 fi
43470done
43471done
43472IFS=$as_save_IFS
43473
43474 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
43475 ;;
43476esac
43477fi
43478DisplayDelegate=$ac_cv_path_DisplayDelegate
43479if test -n "$DisplayDelegate"; then
43480 { $as_echo "$as_me:$LINENO: result: $DisplayDelegate" >&5
43481$as_echo "$DisplayDelegate" >&6; }
43482else
43483 { $as_echo "$as_me:$LINENO: result: no" >&5
43484$as_echo "no" >&6; }
43485fi
43486
43487
43488# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
43489set dummy "$MogrifyDelegateDefault"; ac_word=$2
43490{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43491$as_echo_n "checking for $ac_word... " >&6; }
43492if test "${ac_cv_path_MogrifyDelegate+set}" = set; then
43493 $as_echo_n "(cached) " >&6
43494else
43495 case $MogrifyDelegate in
43496 [\\/]* | ?:[\\/]*)
43497 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
43498 ;;
43499 *)
43500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43501for as_dir in $PATH
43502do
43503 IFS=$as_save_IFS
43504 test -z "$as_dir" && as_dir=.
43505 for ac_exec_ext in '' $ac_executable_extensions; do
43506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43507 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
43508 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43509 break 2
43510 fi
43511done
43512done
43513IFS=$as_save_IFS
43514
43515 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
43516 ;;
43517esac
43518fi
43519MogrifyDelegate=$ac_cv_path_MogrifyDelegate
43520if test -n "$MogrifyDelegate"; then
43521 { $as_echo "$as_me:$LINENO: result: $MogrifyDelegate" >&5
43522$as_echo "$MogrifyDelegate" >&6; }
43523else
43524 { $as_echo "$as_me:$LINENO: result: no" >&5
43525$as_echo "no" >&6; }
43526fi
43527
43528
43529# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
43530set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
43531{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43532$as_echo_n "checking for $ac_word... " >&6; }
43533if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then
43534 $as_echo_n "(cached) " >&6
43535else
43536 case $GnuplotDecodeDelegate in
43537 [\\/]* | ?:[\\/]*)
43538 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
43539 ;;
43540 *)
43541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43542for as_dir in $PATH
43543do
43544 IFS=$as_save_IFS
43545 test -z "$as_dir" && as_dir=.
43546 for ac_exec_ext in '' $ac_executable_extensions; do
43547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43548 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43549 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43550 break 2
43551 fi
43552done
43553done
43554IFS=$as_save_IFS
43555
43556 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
43557 ;;
43558esac
43559fi
43560GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
43561if test -n "$GnuplotDecodeDelegate"; then
43562 { $as_echo "$as_me:$LINENO: result: $GnuplotDecodeDelegate" >&5
43563$as_echo "$GnuplotDecodeDelegate" >&6; }
43564else
43565 { $as_echo "$as_me:$LINENO: result: no" >&5
43566$as_echo "no" >&6; }
43567fi
43568
43569
43570# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
43571set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
43572{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43573$as_echo_n "checking for $ac_word... " >&6; }
43574if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then
43575 $as_echo_n "(cached) " >&6
43576else
43577 case $HDRDecodeDelegate in
43578 [\\/]* | ?:[\\/]*)
43579 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
43580 ;;
43581 *)
43582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43583for as_dir in $PATH
43584do
43585 IFS=$as_save_IFS
43586 test -z "$as_dir" && as_dir=.
43587 for ac_exec_ext in '' $ac_executable_extensions; do
43588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43589 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43591 break 2
43592 fi
43593done
43594done
43595IFS=$as_save_IFS
43596
43597 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
43598 ;;
43599esac
43600fi
43601HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
43602if test -n "$HDRDecodeDelegate"; then
43603 { $as_echo "$as_me:$LINENO: result: $HDRDecodeDelegate" >&5
43604$as_echo "$HDRDecodeDelegate" >&6; }
43605else
43606 { $as_echo "$as_me:$LINENO: result: no" >&5
43607$as_echo "no" >&6; }
43608fi
43609
43610
43611# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
43612set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
43613{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43614$as_echo_n "checking for $ac_word... " >&6; }
43615if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then
43616 $as_echo_n "(cached) " >&6
43617else
43618 case $HPGLDecodeDelegate in
43619 [\\/]* | ?:[\\/]*)
43620 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
43621 ;;
43622 *)
43623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43624for as_dir in $PATH
43625do
43626 IFS=$as_save_IFS
43627 test -z "$as_dir" && as_dir=.
43628 for ac_exec_ext in '' $ac_executable_extensions; do
43629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43630 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43632 break 2
43633 fi
43634done
43635done
43636IFS=$as_save_IFS
43637
43638 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
43639 ;;
43640esac
43641fi
43642HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
43643if test -n "$HPGLDecodeDelegate"; then
43644 { $as_echo "$as_me:$LINENO: result: $HPGLDecodeDelegate" >&5
43645$as_echo "$HPGLDecodeDelegate" >&6; }
43646else
43647 { $as_echo "$as_me:$LINENO: result: no" >&5
43648$as_echo "no" >&6; }
43649fi
43650
43651
43652# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
43653set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
43654{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43655$as_echo_n "checking for $ac_word... " >&6; }
43656if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then
43657 $as_echo_n "(cached) " >&6
43658else
43659 case $HTMLDecodeDelegate in
43660 [\\/]* | ?:[\\/]*)
43661 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
43662 ;;
43663 *)
43664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43665for as_dir in $PATH
43666do
43667 IFS=$as_save_IFS
43668 test -z "$as_dir" && as_dir=.
43669 for ac_exec_ext in '' $ac_executable_extensions; do
43670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43671 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43673 break 2
43674 fi
43675done
43676done
43677IFS=$as_save_IFS
43678
43679 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
43680 ;;
43681esac
43682fi
43683HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
43684if test -n "$HTMLDecodeDelegate"; then
43685 { $as_echo "$as_me:$LINENO: result: $HTMLDecodeDelegate" >&5
43686$as_echo "$HTMLDecodeDelegate" >&6; }
43687else
43688 { $as_echo "$as_me:$LINENO: result: no" >&5
43689$as_echo "no" >&6; }
43690fi
43691
43692
43693# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
43694set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
43695{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43696$as_echo_n "checking for $ac_word... " >&6; }
43697if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then
43698 $as_echo_n "(cached) " >&6
43699else
43700 case $ILBMDecodeDelegate in
43701 [\\/]* | ?:[\\/]*)
43702 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
43703 ;;
43704 *)
43705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43706for as_dir in $PATH
43707do
43708 IFS=$as_save_IFS
43709 test -z "$as_dir" && as_dir=.
43710 for ac_exec_ext in '' $ac_executable_extensions; do
43711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43712 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43714 break 2
43715 fi
43716done
43717done
43718IFS=$as_save_IFS
43719
43720 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
43721 ;;
43722esac
43723fi
43724ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
43725if test -n "$ILBMDecodeDelegate"; then
43726 { $as_echo "$as_me:$LINENO: result: $ILBMDecodeDelegate" >&5
43727$as_echo "$ILBMDecodeDelegate" >&6; }
43728else
43729 { $as_echo "$as_me:$LINENO: result: no" >&5
43730$as_echo "no" >&6; }
43731fi
43732
43733
43734# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
43735set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
43736{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43737$as_echo_n "checking for $ac_word... " >&6; }
43738if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then
43739 $as_echo_n "(cached) " >&6
43740else
43741 case $ILBMEncodeDelegate in
43742 [\\/]* | ?:[\\/]*)
43743 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
43744 ;;
43745 *)
43746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43747for as_dir in $PATH
43748do
43749 IFS=$as_save_IFS
43750 test -z "$as_dir" && as_dir=.
43751 for ac_exec_ext in '' $ac_executable_extensions; do
43752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43753 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43755 break 2
43756 fi
43757done
43758done
43759IFS=$as_save_IFS
43760
43761 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
43762 ;;
43763esac
43764fi
43765ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
43766if test -n "$ILBMEncodeDelegate"; then
43767 { $as_echo "$as_me:$LINENO: result: $ILBMEncodeDelegate" >&5
43768$as_echo "$ILBMEncodeDelegate" >&6; }
43769else
43770 { $as_echo "$as_me:$LINENO: result: no" >&5
43771$as_echo "no" >&6; }
43772fi
43773
43774
43775# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
43776set dummy "$LPDelegateDefault"; ac_word=$2
43777{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43778$as_echo_n "checking for $ac_word... " >&6; }
43779if test "${ac_cv_path_LPDelegate+set}" = set; then
43780 $as_echo_n "(cached) " >&6
43781else
43782 case $LPDelegate in
43783 [\\/]* | ?:[\\/]*)
43784 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
43785 ;;
43786 *)
43787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43788for as_dir in $PATH
43789do
43790 IFS=$as_save_IFS
43791 test -z "$as_dir" && as_dir=.
43792 for ac_exec_ext in '' $ac_executable_extensions; do
43793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43794 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
43795 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43796 break 2
43797 fi
43798done
43799done
43800IFS=$as_save_IFS
43801
43802 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
43803 ;;
43804esac
43805fi
43806LPDelegate=$ac_cv_path_LPDelegate
43807if test -n "$LPDelegate"; then
43808 { $as_echo "$as_me:$LINENO: result: $LPDelegate" >&5
43809$as_echo "$LPDelegate" >&6; }
43810else
43811 { $as_echo "$as_me:$LINENO: result: no" >&5
43812$as_echo "no" >&6; }
43813fi
43814
43815
43816# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
43817set dummy "$LPRDelegateDefault"; ac_word=$2
43818{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43819$as_echo_n "checking for $ac_word... " >&6; }
43820if test "${ac_cv_path_LPRDelegate+set}" = set; then
43821 $as_echo_n "(cached) " >&6
43822else
43823 case $LPRDelegate in
43824 [\\/]* | ?:[\\/]*)
43825 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
43826 ;;
43827 *)
43828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43829for as_dir in $PATH
43830do
43831 IFS=$as_save_IFS
43832 test -z "$as_dir" && as_dir=.
43833 for ac_exec_ext in '' $ac_executable_extensions; do
43834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43835 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
43836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43837 break 2
43838 fi
43839done
43840done
43841IFS=$as_save_IFS
43842
43843 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
43844 ;;
43845esac
43846fi
43847LPRDelegate=$ac_cv_path_LPRDelegate
43848if test -n "$LPRDelegate"; then
43849 { $as_echo "$as_me:$LINENO: result: $LPRDelegate" >&5
43850$as_echo "$LPRDelegate" >&6; }
43851else
43852 { $as_echo "$as_me:$LINENO: result: no" >&5
43853$as_echo "no" >&6; }
43854fi
43855
43856
43857# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
43858set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
43859{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43860$as_echo_n "checking for $ac_word... " >&6; }
43861if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then
43862 $as_echo_n "(cached) " >&6
43863else
43864 case $LZWDecodeDelegate in
43865 [\\/]* | ?:[\\/]*)
43866 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
43867 ;;
43868 *)
43869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43870for as_dir in $PATH
43871do
43872 IFS=$as_save_IFS
43873 test -z "$as_dir" && as_dir=.
43874 for ac_exec_ext in '' $ac_executable_extensions; do
43875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43876 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43878 break 2
43879 fi
43880done
43881done
43882IFS=$as_save_IFS
43883
43884 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
43885 ;;
43886esac
43887fi
43888LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
43889if test -n "$LZWDecodeDelegate"; then
43890 { $as_echo "$as_me:$LINENO: result: $LZWDecodeDelegate" >&5
43891$as_echo "$LZWDecodeDelegate" >&6; }
43892else
43893 { $as_echo "$as_me:$LINENO: result: no" >&5
43894$as_echo "no" >&6; }
43895fi
43896
43897
43898# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
43899set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
43900{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43901$as_echo_n "checking for $ac_word... " >&6; }
43902if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then
43903 $as_echo_n "(cached) " >&6
43904else
43905 case $LZWEncodeDelegate in
43906 [\\/]* | ?:[\\/]*)
43907 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
43908 ;;
43909 *)
43910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43911for as_dir in $PATH
43912do
43913 IFS=$as_save_IFS
43914 test -z "$as_dir" && as_dir=.
43915 for ac_exec_ext in '' $ac_executable_extensions; do
43916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43917 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43919 break 2
43920 fi
43921done
43922done
43923IFS=$as_save_IFS
43924
43925 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
43926 ;;
43927esac
43928fi
43929LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
43930if test -n "$LZWEncodeDelegate"; then
43931 { $as_echo "$as_me:$LINENO: result: $LZWEncodeDelegate" >&5
43932$as_echo "$LZWEncodeDelegate" >&6; }
43933else
43934 { $as_echo "$as_me:$LINENO: result: no" >&5
43935$as_echo "no" >&6; }
43936fi
43937
43938
43939# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
43940set dummy "$LaunchDelegateDefault"; ac_word=$2
43941{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43942$as_echo_n "checking for $ac_word... " >&6; }
43943if test "${ac_cv_path_LaunchDelegate+set}" = set; then
43944 $as_echo_n "(cached) " >&6
43945else
43946 case $LaunchDelegate in
43947 [\\/]* | ?:[\\/]*)
43948 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
43949 ;;
43950 *)
43951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43952for as_dir in $PATH
43953do
43954 IFS=$as_save_IFS
43955 test -z "$as_dir" && as_dir=.
43956 for ac_exec_ext in '' $ac_executable_extensions; do
43957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43958 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
43959 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43960 break 2
43961 fi
43962done
43963done
43964IFS=$as_save_IFS
43965
43966 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
43967 ;;
43968esac
43969fi
43970LaunchDelegate=$ac_cv_path_LaunchDelegate
43971if test -n "$LaunchDelegate"; then
43972 { $as_echo "$as_me:$LINENO: result: $LaunchDelegate" >&5
43973$as_echo "$LaunchDelegate" >&6; }
43974else
43975 { $as_echo "$as_me:$LINENO: result: no" >&5
43976$as_echo "no" >&6; }
43977fi
43978
43979
43980# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
43981set dummy "$MANDelegateDefault"; ac_word=$2
43982{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43983$as_echo_n "checking for $ac_word... " >&6; }
43984if test "${ac_cv_path_MANDelegate+set}" = set; then
43985 $as_echo_n "(cached) " >&6
43986else
43987 case $MANDelegate in
43988 [\\/]* | ?:[\\/]*)
43989 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
43990 ;;
43991 *)
43992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43993for as_dir in $PATH
43994do
43995 IFS=$as_save_IFS
43996 test -z "$as_dir" && as_dir=.
43997 for ac_exec_ext in '' $ac_executable_extensions; do
43998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43999 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
44000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44001 break 2
44002 fi
44003done
44004done
44005IFS=$as_save_IFS
44006
44007 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
44008 ;;
44009esac
44010fi
44011MANDelegate=$ac_cv_path_MANDelegate
44012if test -n "$MANDelegate"; then
44013 { $as_echo "$as_me:$LINENO: result: $MANDelegate" >&5
44014$as_echo "$MANDelegate" >&6; }
44015else
44016 { $as_echo "$as_me:$LINENO: result: no" >&5
44017$as_echo "no" >&6; }
44018fi
44019
44020
44021# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
44022set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
44023{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44024$as_echo_n "checking for $ac_word... " >&6; }
44025if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then
44026 $as_echo_n "(cached) " >&6
44027else
44028 case $MPEGDecodeDelegate in
44029 [\\/]* | ?:[\\/]*)
44030 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
44031 ;;
44032 *)
44033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44034for as_dir in $PATH
44035do
44036 IFS=$as_save_IFS
44037 test -z "$as_dir" && as_dir=.
44038 for ac_exec_ext in '' $ac_executable_extensions; do
44039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44040 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44042 break 2
44043 fi
44044done
44045done
44046IFS=$as_save_IFS
44047
44048 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
44049 ;;
44050esac
44051fi
44052MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
44053if test -n "$MPEGDecodeDelegate"; then
44054 { $as_echo "$as_me:$LINENO: result: $MPEGDecodeDelegate" >&5
44055$as_echo "$MPEGDecodeDelegate" >&6; }
44056else
44057 { $as_echo "$as_me:$LINENO: result: no" >&5
44058$as_echo "no" >&6; }
44059fi
44060
44061
44062# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
44063set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
44064{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44065$as_echo_n "checking for $ac_word... " >&6; }
44066if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then
44067 $as_echo_n "(cached) " >&6
44068else
44069 case $MPEGEncodeDelegate in
44070 [\\/]* | ?:[\\/]*)
44071 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
44072 ;;
44073 *)
44074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44075for as_dir in $PATH
44076do
44077 IFS=$as_save_IFS
44078 test -z "$as_dir" && as_dir=.
44079 for ac_exec_ext in '' $ac_executable_extensions; do
44080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44081 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44082 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44083 break 2
44084 fi
44085done
44086done
44087IFS=$as_save_IFS
44088
44089 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
44090 ;;
44091esac
44092fi
44093MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
44094if test -n "$MPEGEncodeDelegate"; then
44095 { $as_echo "$as_me:$LINENO: result: $MPEGEncodeDelegate" >&5
44096$as_echo "$MPEGEncodeDelegate" >&6; }
44097else
44098 { $as_echo "$as_me:$LINENO: result: no" >&5
44099$as_echo "no" >&6; }
44100fi
44101
44102
44103# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
44104set dummy "$MVDelegateDefault"; ac_word=$2
44105{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44106$as_echo_n "checking for $ac_word... " >&6; }
44107if test "${ac_cv_path_MVDelegate+set}" = set; then
44108 $as_echo_n "(cached) " >&6
44109else
44110 case $MVDelegate in
44111 [\\/]* | ?:[\\/]*)
44112 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
44113 ;;
44114 *)
44115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44116for as_dir in $PATH
44117do
44118 IFS=$as_save_IFS
44119 test -z "$as_dir" && as_dir=.
44120 for ac_exec_ext in '' $ac_executable_extensions; do
44121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44122 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
44123 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44124 break 2
44125 fi
44126done
44127done
44128IFS=$as_save_IFS
44129
44130 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
44131 ;;
44132esac
44133fi
44134MVDelegate=$ac_cv_path_MVDelegate
44135if test -n "$MVDelegate"; then
44136 { $as_echo "$as_me:$LINENO: result: $MVDelegate" >&5
44137$as_echo "$MVDelegate" >&6; }
44138else
44139 { $as_echo "$as_me:$LINENO: result: no" >&5
44140$as_echo "no" >&6; }
44141fi
44142
44143
44144# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
44145set dummy "$PCLDelegateDefault"; ac_word=$2
44146{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44147$as_echo_n "checking for $ac_word... " >&6; }
44148if test "${ac_cv_path_PCLDelegate+set}" = set; then
44149 $as_echo_n "(cached) " >&6
44150else
44151 case $PCLDelegate in
44152 [\\/]* | ?:[\\/]*)
44153 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
44154 ;;
44155 *)
44156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44157for as_dir in $PATH
44158do
44159 IFS=$as_save_IFS
44160 test -z "$as_dir" && as_dir=.
44161 for ac_exec_ext in '' $ac_executable_extensions; do
44162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44163 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
44164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44165 break 2
44166 fi
44167done
44168done
44169IFS=$as_save_IFS
44170
44171 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
44172 ;;
44173esac
44174fi
44175PCLDelegate=$ac_cv_path_PCLDelegate
44176if test -n "$PCLDelegate"; then
44177 { $as_echo "$as_me:$LINENO: result: $PCLDelegate" >&5
44178$as_echo "$PCLDelegate" >&6; }
44179else
44180 { $as_echo "$as_me:$LINENO: result: no" >&5
44181$as_echo "no" >&6; }
44182fi
44183
44184
44185# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
44186set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
44187{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44188$as_echo_n "checking for $ac_word... " >&6; }
44189if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then
44190 $as_echo_n "(cached) " >&6
44191else
44192 case $PGPDecodeDelegate in
44193 [\\/]* | ?:[\\/]*)
44194 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
44195 ;;
44196 *)
44197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44198for as_dir in $PATH
44199do
44200 IFS=$as_save_IFS
44201 test -z "$as_dir" && as_dir=.
44202 for ac_exec_ext in '' $ac_executable_extensions; do
44203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44204 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44206 break 2
44207 fi
44208done
44209done
44210IFS=$as_save_IFS
44211
44212 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
44213 ;;
44214esac
44215fi
44216PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
44217if test -n "$PGPDecodeDelegate"; then
44218 { $as_echo "$as_me:$LINENO: result: $PGPDecodeDelegate" >&5
44219$as_echo "$PGPDecodeDelegate" >&6; }
44220else
44221 { $as_echo "$as_me:$LINENO: result: no" >&5
44222$as_echo "no" >&6; }
44223fi
44224
44225
44226# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
44227set dummy "$POVDelegateDefault"; ac_word=$2
44228{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44229$as_echo_n "checking for $ac_word... " >&6; }
44230if test "${ac_cv_path_POVDelegate+set}" = set; then
44231 $as_echo_n "(cached) " >&6
44232else
44233 case $POVDelegate in
44234 [\\/]* | ?:[\\/]*)
44235 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
44236 ;;
44237 *)
44238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44239for as_dir in $PATH
44240do
44241 IFS=$as_save_IFS
44242 test -z "$as_dir" && as_dir=.
44243 for ac_exec_ext in '' $ac_executable_extensions; do
44244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44245 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
44246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44247 break 2
44248 fi
44249done
44250done
44251IFS=$as_save_IFS
44252
44253 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
44254 ;;
44255esac
44256fi
44257POVDelegate=$ac_cv_path_POVDelegate
44258if test -n "$POVDelegate"; then
44259 { $as_echo "$as_me:$LINENO: result: $POVDelegate" >&5
44260$as_echo "$POVDelegate" >&6; }
44261else
44262 { $as_echo "$as_me:$LINENO: result: no" >&5
44263$as_echo "no" >&6; }
44264fi
44265
44266
44267for ac_prog in gsx gsc "$PSDelegateDefault"
44268do
44269 # Extract the first word of "$ac_prog", so it can be a program name with args.
44270set dummy $ac_prog; ac_word=$2
44271{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44272$as_echo_n "checking for $ac_word... " >&6; }
44273if test "${ac_cv_path_PSDelegate+set}" = set; then
44274 $as_echo_n "(cached) " >&6
44275else
44276 case $PSDelegate in
44277 [\\/]* | ?:[\\/]*)
44278 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
44279 ;;
44280 *)
44281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44282for as_dir in $PATH
44283do
44284 IFS=$as_save_IFS
44285 test -z "$as_dir" && as_dir=.
44286 for ac_exec_ext in '' $ac_executable_extensions; do
44287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44288 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
44289 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44290 break 2
44291 fi
44292done
44293done
44294IFS=$as_save_IFS
44295
44296 ;;
44297esac
44298fi
44299PSDelegate=$ac_cv_path_PSDelegate
44300if test -n "$PSDelegate"; then
44301 { $as_echo "$as_me:$LINENO: result: $PSDelegate" >&5
44302$as_echo "$PSDelegate" >&6; }
44303else
44304 { $as_echo "$as_me:$LINENO: result: no" >&5
44305$as_echo "no" >&6; }
44306fi
44307
44308
44309 test -n "$PSDelegate" && break
44310done
44311test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
44312
44313# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
44314set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
44315{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44316$as_echo_n "checking for $ac_word... " >&6; }
44317if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then
44318 $as_echo_n "(cached) " >&6
44319else
44320 case $RLEEncodeDelegate in
44321 [\\/]* | ?:[\\/]*)
44322 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
44323 ;;
44324 *)
44325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44326for as_dir in $PATH
44327do
44328 IFS=$as_save_IFS
44329 test -z "$as_dir" && as_dir=.
44330 for ac_exec_ext in '' $ac_executable_extensions; do
44331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44332 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44334 break 2
44335 fi
44336done
44337done
44338IFS=$as_save_IFS
44339
44340 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
44341 ;;
44342esac
44343fi
44344RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
44345if test -n "$RLEEncodeDelegate"; then
44346 { $as_echo "$as_me:$LINENO: result: $RLEEncodeDelegate" >&5
44347$as_echo "$RLEEncodeDelegate" >&6; }
44348else
44349 { $as_echo "$as_me:$LINENO: result: no" >&5
44350$as_echo "no" >&6; }
44351fi
44352
44353
44354# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
44355set dummy "$RMDelegateDefault"; ac_word=$2
44356{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44357$as_echo_n "checking for $ac_word... " >&6; }
44358if test "${ac_cv_path_RMDelegate+set}" = set; then
44359 $as_echo_n "(cached) " >&6
44360else
44361 case $RMDelegate in
44362 [\\/]* | ?:[\\/]*)
44363 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
44364 ;;
44365 *)
44366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44367for as_dir in $PATH
44368do
44369 IFS=$as_save_IFS
44370 test -z "$as_dir" && as_dir=.
44371 for ac_exec_ext in '' $ac_executable_extensions; do
44372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44373 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
44374 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44375 break 2
44376 fi
44377done
44378done
44379IFS=$as_save_IFS
44380
44381 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
44382 ;;
44383esac
44384fi
44385RMDelegate=$ac_cv_path_RMDelegate
44386if test -n "$RMDelegate"; then
44387 { $as_echo "$as_me:$LINENO: result: $RMDelegate" >&5
44388$as_echo "$RMDelegate" >&6; }
44389else
44390 { $as_echo "$as_me:$LINENO: result: no" >&5
44391$as_echo "no" >&6; }
44392fi
44393
44394
44395# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
44396set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
44397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44398$as_echo_n "checking for $ac_word... " >&6; }
44399if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then
44400 $as_echo_n "(cached) " >&6
44401else
44402 case $SCANDecodeDelegate in
44403 [\\/]* | ?:[\\/]*)
44404 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
44405 ;;
44406 *)
44407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44408for as_dir in $PATH
44409do
44410 IFS=$as_save_IFS
44411 test -z "$as_dir" && as_dir=.
44412 for ac_exec_ext in '' $ac_executable_extensions; do
44413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44414 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44416 break 2
44417 fi
44418done
44419done
44420IFS=$as_save_IFS
44421
44422 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
44423 ;;
44424esac
44425fi
44426SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
44427if test -n "$SCANDecodeDelegate"; then
44428 { $as_echo "$as_me:$LINENO: result: $SCANDecodeDelegate" >&5
44429$as_echo "$SCANDecodeDelegate" >&6; }
44430else
44431 { $as_echo "$as_me:$LINENO: result: no" >&5
44432$as_echo "no" >&6; }
44433fi
44434
44435
44436# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
44437set dummy "$TXTDelegateDefault"; ac_word=$2
44438{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44439$as_echo_n "checking for $ac_word... " >&6; }
44440if test "${ac_cv_path_TXTDelegate+set}" = set; then
44441 $as_echo_n "(cached) " >&6
44442else
44443 case $TXTDelegate in
44444 [\\/]* | ?:[\\/]*)
44445 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
44446 ;;
44447 *)
44448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44449for as_dir in $PATH
44450do
44451 IFS=$as_save_IFS
44452 test -z "$as_dir" && as_dir=.
44453 for ac_exec_ext in '' $ac_executable_extensions; do
44454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44455 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
44456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44457 break 2
44458 fi
44459done
44460done
44461IFS=$as_save_IFS
44462
44463 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
44464 ;;
44465esac
44466fi
44467TXTDelegate=$ac_cv_path_TXTDelegate
44468if test -n "$TXTDelegate"; then
44469 { $as_echo "$as_me:$LINENO: result: $TXTDelegate" >&5
44470$as_echo "$TXTDelegate" >&6; }
44471else
44472 { $as_echo "$as_me:$LINENO: result: no" >&5
44473$as_echo "no" >&6; }
44474fi
44475
44476
44477# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
44478set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
44479{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44480$as_echo_n "checking for $ac_word... " >&6; }
44481if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then
44482 $as_echo_n "(cached) " >&6
44483else
44484 case $WMFDecodeDelegate in
44485 [\\/]* | ?:[\\/]*)
44486 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
44487 ;;
44488 *)
44489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44490for as_dir in $PATH
44491do
44492 IFS=$as_save_IFS
44493 test -z "$as_dir" && as_dir=.
44494 for ac_exec_ext in '' $ac_executable_extensions; do
44495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44496 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44498 break 2
44499 fi
44500done
44501done
44502IFS=$as_save_IFS
44503
44504 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
44505 ;;
44506esac
44507fi
44508WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
44509if test -n "$WMFDecodeDelegate"; then
44510 { $as_echo "$as_me:$LINENO: result: $WMFDecodeDelegate" >&5
44511$as_echo "$WMFDecodeDelegate" >&6; }
44512else
44513 { $as_echo "$as_me:$LINENO: result: no" >&5
44514$as_echo "no" >&6; }
44515fi
44516
44517
44518# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
44519set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
44520{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44521$as_echo_n "checking for $ac_word... " >&6; }
44522if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then
44523 $as_echo_n "(cached) " >&6
44524else
44525 case $WWWDecodeDelegate in
44526 [\\/]* | ?:[\\/]*)
44527 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
44528 ;;
44529 *)
44530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44531for as_dir in $PATH
44532do
44533 IFS=$as_save_IFS
44534 test -z "$as_dir" && as_dir=.
44535 for ac_exec_ext in '' $ac_executable_extensions; do
44536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44537 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44539 break 2
44540 fi
44541done
44542done
44543IFS=$as_save_IFS
44544
44545 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
44546 ;;
44547esac
44548fi
44549WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
44550if test -n "$WWWDecodeDelegate"; then
44551 { $as_echo "$as_me:$LINENO: result: $WWWDecodeDelegate" >&5
44552$as_echo "$WWWDecodeDelegate" >&6; }
44553else
44554 { $as_echo "$as_me:$LINENO: result: no" >&5
44555$as_echo "no" >&6; }
44556fi
44557
44558
44559# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
44560set dummy "$XPSDelegateDefault"; ac_word=$2
44561{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44562$as_echo_n "checking for $ac_word... " >&6; }
44563if test "${ac_cv_path_XPSDelegate+set}" = set; then
44564 $as_echo_n "(cached) " >&6
44565else
44566 case $XPSDelegate in
44567 [\\/]* | ?:[\\/]*)
44568 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
44569 ;;
44570 *)
44571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44572for as_dir in $PATH
44573do
44574 IFS=$as_save_IFS
44575 test -z "$as_dir" && as_dir=.
44576 for ac_exec_ext in '' $ac_executable_extensions; do
44577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44578 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
44579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44580 break 2
44581 fi
44582done
44583done
44584IFS=$as_save_IFS
44585
44586 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
44587 ;;
44588esac
44589fi
44590XPSDelegate=$ac_cv_path_XPSDelegate
44591if test -n "$XPSDelegate"; then
44592 { $as_echo "$as_me:$LINENO: result: $XPSDelegate" >&5
44593$as_echo "$XPSDelegate" >&6; }
44594else
44595 { $as_echo "$as_me:$LINENO: result: no" >&5
44596$as_echo "no" >&6; }
44597fi
44598
44599
44600# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
44601set dummy "$ZipDelegateDefault"; ac_word=$2
44602{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44603$as_echo_n "checking for $ac_word... " >&6; }
44604if test "${ac_cv_path_ZipDelegate+set}" = set; then
44605 $as_echo_n "(cached) " >&6
44606else
44607 case $ZipDelegate in
44608 [\\/]* | ?:[\\/]*)
44609 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
44610 ;;
44611 *)
44612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44613for as_dir in $PATH
44614do
44615 IFS=$as_save_IFS
44616 test -z "$as_dir" && as_dir=.
44617 for ac_exec_ext in '' $ac_executable_extensions; do
44618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44619 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
44620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44621 break 2
44622 fi
44623done
44624done
44625IFS=$as_save_IFS
44626
44627 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
44628 ;;
44629esac
44630fi
44631ZipDelegate=$ac_cv_path_ZipDelegate
44632if test -n "$ZipDelegate"; then
44633 { $as_echo "$as_me:$LINENO: result: $ZipDelegate" >&5
44634$as_echo "$ZipDelegate" >&6; }
44635else
44636 { $as_echo "$as_me:$LINENO: result: no" >&5
44637$as_echo "no" >&6; }
44638fi
44639
44640
44641
44642# Prefer lpr to lp; lp needs options tacked on.
44643if test "$LPRDelegate" != no; then
44644 PrintDelegate="$LPRDelegate"
44645else
44646 PrintDelegate="$LPDelegate -c -s"
44647fi
44648
44649
44650# Installed ImageMagick utiltity paths
44651ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
44652DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
44653MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
44654
44655# Set delegate booleans
44656have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
44657have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
44658have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
44659have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
44660have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
44661have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
44662have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
44663have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
44664have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
44665have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
44666have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
44667
44668#
44669# Test for font directories
44670#
44671type_include_files=''
44672
44673# Windows
44674windows_font_dir=''
44675if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
44676 windows_font_dir="${with_windows_font_dir}/"
44677fi
44678if test -n "$windows_font_dir"; then
44679 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
44680 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
44681 fi
44682 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
44683 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
44684 fi
44685 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
44686 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
44687 fi
44688fi
44689if test -n "$windows_font_dir"; then
44690 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
44691fi
44692
44693
44694# Ghostscript
44695{ $as_echo "$as_me:$LINENO: checking for Ghostscript fonts directory" >&5
44696$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
44697ghostscript_font_dir=''
44698if test "${with_gs_font_dir}" != 'default'; then
44699 ghostscript_font_dir="${with_gs_font_dir}/"
44700else
44701 if test "${native_win32_build}" = 'yes'; then
44702 # Native Windows Build
44703 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
44704 if test -f "${font_dir}a010013l.pfb"; then
44705 ghostscript_font_dir="$font_dir"
44706 break 1
44707 fi
44708 done
44709 if test "${PSDelegate}" != 'gswin32c'; then
44710 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
44711 fi
44712 else
44713 # Linux / Mac OS X / Unix Build
44714 for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do
44715 if test -f "${font_dir}a010013l.pfb"; then
44716 ghostscript_font_dir="${font_dir}"
44717 break 1
44718 fi
44719 done
44720 if test "${ghostscript_font_dir}x" = 'x'; then
44721 if test "$PSDelegate" != 'gs'; then
44722 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
44723 fi
44724 fi
44725 fi
44726fi
44727if test "${ghostscript_font_dir}x" != 'x'; then
44728 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
44729 { $as_echo "$as_me:$LINENO: result: $ghostscript_font_dir" >&5
44730$as_echo "$ghostscript_font_dir" >&6; }
44731else
44732 { $as_echo "$as_me:$LINENO: result: not found!" >&5
44733$as_echo "not found!" >&6; };
44734fi
44735
44736case "${build_os}" in
44737 mingw* )
44738 PSDelegate=`$WinPathScript "$PSDelegate" 1`
44739 ;;
44740esac
44741
44742
44743
44744#
44745# Handle case where user doesn't want frozen paths
44746#
44747if test "$with_frozenpaths" != 'yes'; then
44748 # Re-set delegate definitions to default (no paths)
44749 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
44750 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
44751 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
44752 BZIPDelegate="$BZIPDelegateDefault"
44753 BrowseDelegate="$BrowseDelegateDefault"
44754 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
44755 CatDelegate="$CatDelegateDefault"
44756 ConvertDelegate="$ConvertDelegateDefault"
44757 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
44758 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
44759 EchoDelegate="$EchoDelegateDefault"
44760 EditorDelegate="$EditorDelegateDefault"
44761 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
44762 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
44763 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
44764 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
44765 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
44766 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
44767 LPDelegate="$LPDelegateDefault"
44768 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
44769 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
44770 LaunchDelegate="$LaunchDelegateDefault"
44771 MANDelegate="$MANDelegateDefault"
44772 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
44773 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
44774 MVDelegate="$MVDelegateDefault"
44775 MogrifyDelegate="$MogrifyDelegateDefault"
44776 PCLDelegate="$PCLDelegateDefault"
44777 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
44778 POVDelegate="$POVDelegateDefault"
44779 PSDelegate="$PSDelegateDefault"
44780 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
44781 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
44782 RMDelegate="$RMDelegateDefault"
44783 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
44784 ShowImageDelegate="$ShowImageDelegateDefault"
44785 TXTDelegate="$TXTDelegateDefault"
44786 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
44787 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
44788 XPSDelegate="$XPSDelegateDefault"
44789 ZipDelegate="$ZipDelegateDefault"
44790fi
44791
44792# Delegate substitutions
44793
44794
44795
44796
44797
44798
44799
44800
44801
44802
44803
44804
44805
44806
44807
44808
44809
44810
44811
44812
44813
44814
44815
44816
44817
44818
44819
44820
44821
44822
44823
44824
44825
44826
44827
44828
44829
44830
44831
44832
44833
44834
44835#
44836# RPM support.
44837#
44838RPM=''
44839for ac_prog in gnutar gtar tar
44840do
44841 # Extract the first word of "$ac_prog", so it can be a program name with args.
44842set dummy $ac_prog; ac_word=$2
44843{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44844$as_echo_n "checking for $ac_word... " >&6; }
44845if test "${ac_cv_prog_TAR+set}" = set; then
44846 $as_echo_n "(cached) " >&6
44847else
44848 if test -n "$TAR"; then
44849 ac_cv_prog_TAR="$TAR" # Let the user override the test.
44850else
44851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44852for as_dir in $PATH
44853do
44854 IFS=$as_save_IFS
44855 test -z "$as_dir" && as_dir=.
44856 for ac_exec_ext in '' $ac_executable_extensions; do
44857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44858 ac_cv_prog_TAR="$ac_prog"
44859 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44860 break 2
44861 fi
44862done
44863done
44864IFS=$as_save_IFS
44865
44866fi
44867fi
44868TAR=$ac_cv_prog_TAR
44869if test -n "$TAR"; then
44870 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
44871$as_echo "$TAR" >&6; }
44872else
44873 { $as_echo "$as_me:$LINENO: result: no" >&5
44874$as_echo "no" >&6; }
44875fi
44876
44877
44878 test -n "$TAR" && break
44879done
44880
44881for ac_prog in perl
44882do
44883 # Extract the first word of "$ac_prog", so it can be a program name with args.
44884set dummy $ac_prog; ac_word=$2
44885{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44886$as_echo_n "checking for $ac_word... " >&6; }
44887if test "${ac_cv_prog_PERL+set}" = set; then
44888 $as_echo_n "(cached) " >&6
44889else
44890 if test -n "$PERL"; then
44891 ac_cv_prog_PERL="$PERL" # Let the user override the test.
44892else
44893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44894for as_dir in $PATH
44895do
44896 IFS=$as_save_IFS
44897 test -z "$as_dir" && as_dir=.
44898 for ac_exec_ext in '' $ac_executable_extensions; do
44899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44900 ac_cv_prog_PERL="$ac_prog"
44901 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44902 break 2
44903 fi
44904done
44905done
44906IFS=$as_save_IFS
44907
44908fi
44909fi
44910PERL=$ac_cv_prog_PERL
44911if test -n "$PERL"; then
44912 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
44913$as_echo "$PERL" >&6; }
44914else
44915 { $as_echo "$as_me:$LINENO: result: no" >&5
44916$as_echo "no" >&6; }
44917fi
44918
44919
44920 test -n "$PERL" && break
44921done
44922
44923for ac_prog in rpmbuild rpm
44924do
44925 # Extract the first word of "$ac_prog", so it can be a program name with args.
44926set dummy $ac_prog; ac_word=$2
44927{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44928$as_echo_n "checking for $ac_word... " >&6; }
44929if test "${ac_cv_prog_RPM+set}" = set; then
44930 $as_echo_n "(cached) " >&6
44931else
44932 if test -n "$RPM"; then
44933 ac_cv_prog_RPM="$RPM" # Let the user override the test.
44934else
44935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44936for as_dir in $PATH
44937do
44938 IFS=$as_save_IFS
44939 test -z "$as_dir" && as_dir=.
44940 for ac_exec_ext in '' $ac_executable_extensions; do
44941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44942 ac_cv_prog_RPM="$ac_prog"
44943 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44944 break 2
44945 fi
44946done
44947done
44948IFS=$as_save_IFS
44949
44950fi
44951fi
44952RPM=$ac_cv_prog_RPM
44953if test -n "$RPM"; then
44954 { $as_echo "$as_me:$LINENO: result: $RPM" >&5
44955$as_echo "$RPM" >&6; }
44956else
44957 { $as_echo "$as_me:$LINENO: result: no" >&5
44958$as_echo "no" >&6; }
44959fi
44960
44961
44962 test -n "$RPM" && break
44963done
44964
44965
44966ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
44967
44968
44969AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
44970
44971
44972AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
44973
44974
44975AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
44976
44977
44978 if test "x$RPM" != "x" ; then
44979 RPM_DELEGATE_TRUE=
44980 RPM_DELEGATE_FALSE='#'
44981else
44982 RPM_DELEGATE_TRUE='#'
44983 RPM_DELEGATE_FALSE=
44984fi
44985
44986
44987#
44988# 7ZIP support (http://p7zip.sourceforge.net/)
44989#
44990P7ZIP=''
44991for ac_prog in 7za
44992do
44993 # Extract the first word of "$ac_prog", so it can be a program name with args.
44994set dummy $ac_prog; ac_word=$2
44995{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44996$as_echo_n "checking for $ac_word... " >&6; }
44997if test "${ac_cv_prog_P7ZIP+set}" = set; then
44998 $as_echo_n "(cached) " >&6
44999else
45000 if test -n "$P7ZIP"; then
45001 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
45002else
45003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45004for as_dir in $PATH
45005do
45006 IFS=$as_save_IFS
45007 test -z "$as_dir" && as_dir=.
45008 for ac_exec_ext in '' $ac_executable_extensions; do
45009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45010 ac_cv_prog_P7ZIP="$ac_prog"
45011 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45012 break 2
45013 fi
45014done
45015done
45016IFS=$as_save_IFS
45017
45018fi
45019fi
45020P7ZIP=$ac_cv_prog_P7ZIP
45021if test -n "$P7ZIP"; then
45022 { $as_echo "$as_me:$LINENO: result: $P7ZIP" >&5
45023$as_echo "$P7ZIP" >&6; }
45024else
45025 { $as_echo "$as_me:$LINENO: result: no" >&5
45026$as_echo "no" >&6; }
45027fi
45028
45029
45030 test -n "$P7ZIP" && break
45031done
45032
45033
45034 if test "x$P7ZIP" != "x" ; then
45035 P7ZIP_DELEGATE_TRUE=
45036 P7ZIP_DELEGATE_FALSE='#'
45037else
45038 P7ZIP_DELEGATE_TRUE='#'
45039 P7ZIP_DELEGATE_FALSE=
45040fi
45041
45042
45043#
45044# ZIP support (http://www.info-zip.org/Zip.html)
45045#
45046ZIP=''
45047for ac_prog in zip
45048do
45049 # Extract the first word of "$ac_prog", so it can be a program name with args.
45050set dummy $ac_prog; ac_word=$2
45051{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45052$as_echo_n "checking for $ac_word... " >&6; }
45053if test "${ac_cv_prog_ZIP+set}" = set; then
45054 $as_echo_n "(cached) " >&6
45055else
45056 if test -n "$ZIP"; then
45057 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
45058else
45059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45060for as_dir in $PATH
45061do
45062 IFS=$as_save_IFS
45063 test -z "$as_dir" && as_dir=.
45064 for ac_exec_ext in '' $ac_executable_extensions; do
45065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45066 ac_cv_prog_ZIP="$ac_prog"
45067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45068 break 2
45069 fi
45070done
45071done
45072IFS=$as_save_IFS
45073
45074fi
45075fi
45076ZIP=$ac_cv_prog_ZIP
45077if test -n "$ZIP"; then
45078 { $as_echo "$as_me:$LINENO: result: $ZIP" >&5
45079$as_echo "$ZIP" >&6; }
45080else
45081 { $as_echo "$as_me:$LINENO: result: no" >&5
45082$as_echo "no" >&6; }
45083fi
45084
45085
45086 test -n "$ZIP" && break
45087done
45088
45089
45090 if test "x$ZIP" != "x" ; then
45091 ZIP_DELEGATE_TRUE=
45092 ZIP_DELEGATE_FALSE='#'
45093else
45094 ZIP_DELEGATE_TRUE='#'
45095 ZIP_DELEGATE_FALSE=
45096fi
45097
45098
45099#
45100# GhostPCL related configuration.
45101#
45102PCLColorDevice=ppmraw
45103PCLCMYKDevice=bmpsep8
45104PCLMonoDevice=pbmraw
45105if test -z "$PCLVersion"; then
45106 PCLVersion='unknown'
45107fi
45108if test $have_pcl = 'yes'; then
45109 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45110$as_echo "-------------------------------------------------------------" >&6; }
45111 { $as_echo "$as_me:$LINENO: checking for PCL" >&5
45112$as_echo_n "checking for PCL... " >&6; }
45113 { $as_echo "$as_me:$LINENO: result: " >&5
45114$as_echo "" >&6; }
45115 # PCLColorDevice
45116 { $as_echo "$as_me:$LINENO: checking for pcl color device" >&5
45117$as_echo_n "checking for pcl color device... " >&6; }
45118 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45119 :
45120 else
45121 PCLColorDevice=ppmraw
45122 fi
45123 { $as_echo "$as_me:$LINENO: result: $PCLColorDevice" >&5
45124$as_echo "$PCLColorDevice" >&6; }
45125
45126 # PCLCMYKDevice
45127 { $as_echo "$as_me:$LINENO: checking for pcl CMYK device" >&5
45128$as_echo_n "checking for pcl CMYK device... " >&6; }
45129 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45130 :
45131 else
45132 PCLCMYKDevice=$PCLColorDevice
45133 fi
45134 { $as_echo "$as_me:$LINENO: result: $PCLCMYKDevice" >&5
45135$as_echo "$PCLCMYKDevice" >&6; }
45136
45137 # PCLMonoDevice
45138 { $as_echo "$as_me:$LINENO: checking for pcl mono device" >&5
45139$as_echo_n "checking for pcl mono device... " >&6; }
45140 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45141 :
45142 else
45143 PCLMonoDevice=$PCLColorDevice
45144 fi
45145 { $as_echo "$as_me:$LINENO: result: $PCLMonoDevice" >&5
45146$as_echo "$PCLMonoDevice" >&6; }
45147fi
45148
45149
45150
45151
45152
45153
45154#
45155# GhostXPS related configuration.
45156#
45157XPSColorDevice=ppmraw
45158XPSCMYKDevice=bmpsep8
45159XPSMonoDevice=pbmraw
45160if test -z "$XPSVersion"; then
45161 XPSVersion='unknown'
45162fi
45163if test $have_xps = 'yes'; then
45164 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45165$as_echo "-------------------------------------------------------------" >&6; }
45166 { $as_echo "$as_me:$LINENO: checking for XPS" >&5
45167$as_echo_n "checking for XPS... " >&6; }
45168 { $as_echo "$as_me:$LINENO: result: " >&5
45169$as_echo "" >&6; }
45170 # XPSColorDevice
45171 { $as_echo "$as_me:$LINENO: checking for xps color device" >&5
45172$as_echo_n "checking for xps color device... " >&6; }
45173 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45174 :
45175 else
45176 XPSColorDevice=ppmraw
45177 fi
45178 { $as_echo "$as_me:$LINENO: result: $XPSColorDevice" >&5
45179$as_echo "$XPSColorDevice" >&6; }
45180
45181 # XPSCMYKDevice
45182 { $as_echo "$as_me:$LINENO: checking for xps CMYK device" >&5
45183$as_echo_n "checking for xps CMYK device... " >&6; }
45184 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45185 :
45186 else
45187 XPSCMYKDevice=$XPSColorDevice
45188 fi
45189 { $as_echo "$as_me:$LINENO: result: $XPSCMYKDevice" >&5
45190$as_echo "$XPSCMYKDevice" >&6; }
45191
45192 # XPSMonoDevice
45193 { $as_echo "$as_me:$LINENO: checking for xps mono device" >&5
45194$as_echo_n "checking for xps mono device... " >&6; }
45195 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45196 :
45197 else
45198 XPSMonoDevice=$XPSColorDevice
45199 fi
45200 { $as_echo "$as_me:$LINENO: result: $XPSMonoDevice" >&5
45201$as_echo "$XPSMonoDevice" >&6; }
45202fi
45203
45204
45205
45206
45207
45208
45209#
45210# Ghostscript related configuration.
45211#
45212if test "$have_png" = 'yes'; then
45213 GSAlphaDevice=pngalpha
45214else
45215 GSAlphaDevice=pnmraw
45216fi
45217GSColorDevice=pnmraw
45218GSCMYKDevice=pam
45219GSMonoDevice=pbmraw
45220GSPDFDevice=pdfwrite
45221GSPSDevice=pswrite
45222GSEPSDevice=epswrite
45223GSVersion='unknown'
45224if test $have_gs = 'yes'; then
45225 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45226$as_echo "-------------------------------------------------------------" >&6; }
45227 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
45228$as_echo_n "checking for Ghostscript... " >&6; }
45229 { $as_echo "$as_me:$LINENO: result: " >&5
45230$as_echo "" >&6; }
45231 { $as_echo "$as_me:$LINENO: checking for Ghostscript version" >&5
45232$as_echo_n "checking for Ghostscript version... " >&6; }
45233 if GSVersion=`$PSDelegate --version`; then
45234 :
45235 else
45236 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
45237 fi
45238 { $as_echo "$as_me:$LINENO: result: $GSVersion" >&5
45239$as_echo "$GSVersion" >&6; }
45240
45241 # GSAlphaDevice
45242 { $as_echo "$as_me:$LINENO: checking for gs alpha device" >&5
45243$as_echo_n "checking for gs alpha device... " >&6; }
45244 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45245 :
45246 else
45247 GSAlphaDevice=pnmraw
45248 fi
45249 { $as_echo "$as_me:$LINENO: result: $GSAlphaDevice" >&5
45250$as_echo "$GSAlphaDevice" >&6; }
45251
45252 # GSColorDevice
45253 { $as_echo "$as_me:$LINENO: checking for gs color device" >&5
45254$as_echo_n "checking for gs color device... " >&6; }
45255 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45256 :
45257 else
45258 GSColorDevice=pnmraw
45259 fi
45260 { $as_echo "$as_me:$LINENO: result: $GSColorDevice" >&5
45261$as_echo "$GSColorDevice" >&6; }
45262
45263 # GSCMYKDevice
45264 { $as_echo "$as_me:$LINENO: checking for gs CMYK device" >&5
45265$as_echo_n "checking for gs CMYK device... " >&6; }
45266 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45267 :
45268 else
45269 GSCMYKDevice=bmpsep8
45270 fi
45271 { $as_echo "$as_me:$LINENO: result: $GSCMYKDevice" >&5
45272$as_echo "$GSCMYKDevice" >&6; }
45273
45274 # GSMonoDevice
45275 { $as_echo "$as_me:$LINENO: checking for gs mono device" >&5
45276$as_echo_n "checking for gs mono device... " >&6; }
45277 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45278 :
45279 else
45280 GSMonoDevice=$GSColorDevice
45281 fi
45282 { $as_echo "$as_me:$LINENO: result: $GSMonoDevice" >&5
45283$as_echo "$GSMonoDevice" >&6; }
45284
45285 # GSPDFDevice
45286 { $as_echo "$as_me:$LINENO: checking for gs PDF writing device" >&5
45287$as_echo_n "checking for gs PDF writing device... " >&6; }
45288 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45289 :
45290 else
45291 GSPDFDevice=nodevice
45292 fi
45293 { $as_echo "$as_me:$LINENO: result: $GSPDFDevice" >&5
45294$as_echo "$GSPDFDevice" >&6; }
45295
45296 # GSPSDevice
45297 { $as_echo "$as_me:$LINENO: checking for gs PS writing device" >&5
45298$as_echo_n "checking for gs PS writing device... " >&6; }
45299 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45300 :
45301 else
45302 GSPSDevice=nodevice
45303 fi
45304 { $as_echo "$as_me:$LINENO: result: $GSPSDevice" >&5
45305$as_echo "$GSPSDevice" >&6; }
45306
45307 # GSEPSDevice
45308 { $as_echo "$as_me:$LINENO: checking for gs EPS writing device" >&5
45309$as_echo_n "checking for gs EPS writing device... " >&6; }
45310 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45311 :
45312 else
45313 GSEPSDevice=nodevice
45314 fi
45315 { $as_echo "$as_me:$LINENO: result: $GSEPSDevice" >&5
45316$as_echo "$GSEPSDevice" >&6; }
45317fi
45318
45319
45320
45321
45322
45323
45324
45325
45326
45327
45328#
45329# PerlMagick-related configuration
45330#
45331
45332# Look for PERL if PerlMagick requested
45333# If name/path of desired PERL interpreter is specified, look for that one first
45334have_perl='no'
45335if test "$with_perl" != 'no'; then
45336 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45337$as_echo "-------------------------------------------------------------" >&6; }
45338 { $as_echo "$as_me:$LINENO: checking for Perl" >&5
45339$as_echo_n "checking for Perl... " >&6; }
45340 { $as_echo "$as_me:$LINENO: result: " >&5
45341$as_echo "" >&6; }
45342 if test "$with_perl" != 'yes'; then
45343 { $as_echo "$as_me:$LINENO: checking for perl" >&5
45344$as_echo_n "checking for perl... " >&6; }
45345if test "${ac_cv_path_PERL+set}" = set; then
45346 $as_echo_n "(cached) " >&6
45347else
45348 ac_cv_path_PERL="$with_perl"
45349fi
45350{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_PERL" >&5
45351$as_echo "$ac_cv_path_PERL" >&6; };
45352 PERL=$ac_cv_path_PERL
45353 have_perl="$ac_cv_path_PERL"
45354 else
45355 for ac_prog in perl perl5
45356do
45357 # Extract the first word of "$ac_prog", so it can be a program name with args.
45358set dummy $ac_prog; ac_word=$2
45359{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45360$as_echo_n "checking for $ac_word... " >&6; }
45361if test "${ac_cv_path_PERL+set}" = set; then
45362 $as_echo_n "(cached) " >&6
45363else
45364 case $PERL in
45365 [\\/]* | ?:[\\/]*)
45366 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
45367 ;;
45368 *)
45369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45370for as_dir in $PATH
45371do
45372 IFS=$as_save_IFS
45373 test -z "$as_dir" && as_dir=.
45374 for ac_exec_ext in '' $ac_executable_extensions; do
45375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45376 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
45377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45378 break 2
45379 fi
45380done
45381done
45382IFS=$as_save_IFS
45383
45384 ;;
45385esac
45386fi
45387PERL=$ac_cv_path_PERL
45388if test -n "$PERL"; then
45389 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
45390$as_echo "$PERL" >&6; }
45391else
45392 { $as_echo "$as_me:$LINENO: result: no" >&5
45393$as_echo "no" >&6; }
45394fi
45395
45396
45397 test -n "$PERL" && break
45398done
45399 if test "$ac_cv_path_PERL"; then
45400 have_perl="$ac_cv_path_PERL"
45401 fi
45402 fi
45403fi
45404
45405with_perl_static='no'
45406with_perl_dynamic='no'
45407if test "$have_perl" != 'no'; then
45408 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
45409 with_perl_static='yes'
45410 fi
45411 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
45412 with_perl_dynamic='yes'
45413 fi
45414 # Is PERL's MakeMaker new enough to support DESTDIR?
45415 # Make sure we have perl
45416if test -z "$PERL"; then
45417# Extract the first word of "perl", so it can be a program name with args.
45418set dummy perl; ac_word=$2
45419{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45420$as_echo_n "checking for $ac_word... " >&6; }
45421if test "${ac_cv_prog_PERL+set}" = set; then
45422 $as_echo_n "(cached) " >&6
45423else
45424 if test -n "$PERL"; then
45425 ac_cv_prog_PERL="$PERL" # Let the user override the test.
45426else
45427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45428for as_dir in $PATH
45429do
45430 IFS=$as_save_IFS
45431 test -z "$as_dir" && as_dir=.
45432 for ac_exec_ext in '' $ac_executable_extensions; do
45433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45434 ac_cv_prog_PERL="perl"
45435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45436 break 2
45437 fi
45438done
45439done
45440IFS=$as_save_IFS
45441
45442fi
45443fi
45444PERL=$ac_cv_prog_PERL
45445if test -n "$PERL"; then
45446 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
45447$as_echo "$PERL" >&6; }
45448else
45449 { $as_echo "$as_me:$LINENO: result: no" >&5
45450$as_echo "no" >&6; }
45451fi
45452
45453
45454fi
45455
45456# Check if version of Perl is sufficient
45457ac_perl_version="5.8.1"
45458
45459if test "x$PERL" != "x"; then
45460 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
45461$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
45462 # NB: It would be nice to log the error if there is one, but we cannot rely
45463 # on autoconf internals
45464 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
45465 if test $? -ne 0; then
45466 { $as_echo "$as_me:$LINENO: result: no" >&5
45467$as_echo "no" >&6; };
45468 PERL_SUPPORTS_DESTDIR='no'
45469 else
45470 { $as_echo "$as_me:$LINENO: result: ok" >&5
45471$as_echo "ok" >&6; };
45472 PERL_SUPPORTS_DESTDIR='yes'
45473 fi
45474else
45475 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
45476$as_echo "$as_me: WARNING: could not find perl" >&2;}
45477fi
45478
45479fi
45480 if test "$have_perl" != 'no'; then
45481 WITH_PERL_TRUE=
45482 WITH_PERL_FALSE='#'
45483else
45484 WITH_PERL_TRUE='#'
45485 WITH_PERL_FALSE=
45486fi
45487
45488 if test $with_perl_static = 'yes'; then
45489 WITH_PERL_STATIC_TRUE=
45490 WITH_PERL_STATIC_FALSE='#'
45491else
45492 WITH_PERL_STATIC_TRUE='#'
45493 WITH_PERL_STATIC_FALSE=
45494fi
45495
45496 if test $with_perl_dynamic = 'yes'; then
45497 WITH_PERL_DYNAMIC_TRUE=
45498 WITH_PERL_DYNAMIC_FALSE='#'
45499else
45500 WITH_PERL_DYNAMIC_TRUE='#'
45501 WITH_PERL_DYNAMIC_FALSE=
45502fi
45503
45504
45505
45506# Determine path to pick up MagickCore library from for use with building PerlMagick
45507MAGICKCORE_PATH="${LIB_DIR}"
45508if test $with_perl_static = 'yes'; then
45509 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
45510 libtool_objdir=$objdir
45511
45512 # Linker search path to library, followed by -lMagickCore
45513 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
45514fi
45515
45516
45517# Create a simple string containing format names for all delegate libraries
45518DELEGATES=''
45519if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
45520if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
45521if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
45522if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
45523if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
45524if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
45525if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
45526if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
45527if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
45528if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
45529if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
45530if test "$have_jpeg" = 'yes'; then
45531 DELEGATES="$DELEGATES jpeg";
45532 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
45533fi
45534if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
45535if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
45536if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
45537if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
45538if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
45539if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
45540if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
45541if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
45542if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
45543if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
45544if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
45545if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
45546
45547
45548
45549#
45550# Handle special compiler flags
45551#
45552
45553# Add '-p' if prof source profiling support enabled
45554if test "$enable_prof" = 'yes'; then
45555 CFLAGS="-p $CFLAGS"
45556 CXXFLAGS="-p $CXXFLAGS"
45557 LDFLAGS="-p $LDFLAGS"
45558fi
45559
45560# Add '-pg' if gprof source profiling support enabled
45561if test "$enable_gprof" = 'yes'; then
45562 CFLAGS="-pg $CFLAGS"
45563 CXXFLAGS="-pg $CXXFLAGS"
45564 LDFLAGS="-pg $LDFLAGS"
45565fi
45566
45567# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
45568# This is a gcc-specific feature
45569if test "$enable_gcov" = 'yes'; then
45570
45571{ $as_echo "$as_me:$LINENO: checking for _gcov_init in -lgcov" >&5
45572$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
45573if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then
45574 $as_echo_n "(cached) " >&6
45575else
45576 ac_check_lib_save_LIBS=$LIBS
45577LIBS="-lgcov $LIBS"
45578cat >conftest.$ac_ext <<_ACEOF
45579/* confdefs.h. */
45580_ACEOF
45581cat confdefs.h >>conftest.$ac_ext
45582cat >>conftest.$ac_ext <<_ACEOF
45583/* end confdefs.h. */
45584
45585/* Override any GCC internal prototype to avoid an error.
45586 Use char because int might match the return type of a GCC
45587 builtin and then its argument prototype would still apply. */
45588#ifdef __cplusplus
45589extern "C"
45590#endif
45591char _gcov_init ();
45592int
45593main ()
45594{
45595return _gcov_init ();
45596 ;
45597 return 0;
45598}
45599_ACEOF
45600rm -f conftest.$ac_objext conftest$ac_exeext
45601if { (ac_try="$ac_link"
45602case "(($ac_try" in
45603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45604 *) ac_try_echo=$ac_try;;
45605esac
45606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45607$as_echo "$ac_try_echo") >&5
45608 (eval "$ac_link") 2>conftest.er1
45609 ac_status=$?
45610 grep -v '^ *+' conftest.er1 >conftest.err
45611 rm -f conftest.er1
45612 cat conftest.err >&5
45613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45614 (exit $ac_status); } && {
45615 test -z "$ac_c_werror_flag" ||
45616 test ! -s conftest.err
45617 } && test -s conftest$ac_exeext && {
45618 test "$cross_compiling" = yes ||
45619 $as_test_x conftest$ac_exeext
45620 }; then
45621 ac_cv_lib_gcov__gcov_init=yes
45622else
45623 $as_echo "$as_me: failed program was:" >&5
45624sed 's/^/| /' conftest.$ac_ext >&5
45625
45626 ac_cv_lib_gcov__gcov_init=no
45627fi
45628
45629rm -rf conftest.dSYM
45630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45631 conftest$ac_exeext conftest.$ac_ext
45632LIBS=$ac_check_lib_save_LIBS
45633fi
45634{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov__gcov_init" >&5
45635$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
45636if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then
45637 cat >>confdefs.h <<_ACEOF
45638#define HAVE_LIBGCOV 1
45639_ACEOF
45640
45641 LIBS="-lgcov $LIBS"
45642
45643fi
45644
45645
45646{ $as_echo "$as_me:$LINENO: checking for __gcov_init in -lgcov" >&5
45647$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
45648if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then
45649 $as_echo_n "(cached) " >&6
45650else
45651 ac_check_lib_save_LIBS=$LIBS
45652LIBS="-lgcov $LIBS"
45653cat >conftest.$ac_ext <<_ACEOF
45654/* confdefs.h. */
45655_ACEOF
45656cat confdefs.h >>conftest.$ac_ext
45657cat >>conftest.$ac_ext <<_ACEOF
45658/* end confdefs.h. */
45659
45660/* Override any GCC internal prototype to avoid an error.
45661 Use char because int might match the return type of a GCC
45662 builtin and then its argument prototype would still apply. */
45663#ifdef __cplusplus
45664extern "C"
45665#endif
45666char __gcov_init ();
45667int
45668main ()
45669{
45670return __gcov_init ();
45671 ;
45672 return 0;
45673}
45674_ACEOF
45675rm -f conftest.$ac_objext conftest$ac_exeext
45676if { (ac_try="$ac_link"
45677case "(($ac_try" in
45678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45679 *) ac_try_echo=$ac_try;;
45680esac
45681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45682$as_echo "$ac_try_echo") >&5
45683 (eval "$ac_link") 2>conftest.er1
45684 ac_status=$?
45685 grep -v '^ *+' conftest.er1 >conftest.err
45686 rm -f conftest.er1
45687 cat conftest.err >&5
45688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45689 (exit $ac_status); } && {
45690 test -z "$ac_c_werror_flag" ||
45691 test ! -s conftest.err
45692 } && test -s conftest$ac_exeext && {
45693 test "$cross_compiling" = yes ||
45694 $as_test_x conftest$ac_exeext
45695 }; then
45696 ac_cv_lib_gcov___gcov_init=yes
45697else
45698 $as_echo "$as_me: failed program was:" >&5
45699sed 's/^/| /' conftest.$ac_ext >&5
45700
45701 ac_cv_lib_gcov___gcov_init=no
45702fi
45703
45704rm -rf conftest.dSYM
45705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45706 conftest$ac_exeext conftest.$ac_ext
45707LIBS=$ac_check_lib_save_LIBS
45708fi
45709{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov___gcov_init" >&5
45710$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
45711if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then
45712 cat >>confdefs.h <<_ACEOF
45713#define HAVE_LIBGCOV 1
45714_ACEOF
45715
45716 LIBS="-lgcov $LIBS"
45717
45718fi
45719
45720 case "$target_os" in
45721 darwin*)
45722 OSX_GCOV_LDFLAG="-Wl,-single_module"
45723 ;;
45724 *)
45725 OSX_GCOV_LDFLAG=""
45726 ;;
45727 esac
45728
45729 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
45730 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
45731 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
45732fi
45733
45734#
45735# Build library dependency list for libMagickCore
45736#
45737
45738MAGICK_LIBLTDL='' # Libltdl for build
45739MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
45740MAGICK_LTDLDEPS='' # extra libltdl dependencies
45741if test "$with_ltdl" != 'no'
45742then
45743 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
45744 MAGICK_API_LIBLTDL='-lltdl'
45745 fi
45746 MAGICK_LIBLTDL=${LIBLTDL}
45747 MAGICK_LTDLDEPS=${LTDLDEPS}
45748fi
45749
45750
45751
45752if test "$with_modules" != 'no'; then
45753 MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $THREAD_LIBS"
45754else
45755 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $THREAD_LIBS"
45756fi
45757
45758
45759#
45760# Remove extraneous spaces from output variables (asthetic)
45761#
45762X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
45763X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
45764X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
45765X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
45766
45767CC=`echo $CC | sed -e 's/ */ /g'`
45768CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
45769CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
45770CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
45771DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
45772DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
45773LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
45774TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
45775MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
45776#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
45777
45778# Pass only user-provided LIBS as "global" libraries
45779LIBS=$USER_LIBS
45780
45781#AC_SUBST(CPPFLAGS)
45782
45783#AC_SUBST(LDFLAGS)
45784#AC_SUBST(X_PRE_LIBS)
45785#AC_SUBST(X_LIBS)
45786#AC_SUBST(X_EXTRA_LIBS)
45787
45788MAGICK_CFLAGS=$CFLAGS
45789MAGICK_CXXFLAGS="$CXXFLAGS"
45790MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
45791MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
45792MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
45793MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
45794
45795
45796
45797
45798
45799
45800
45801
45802# Set configured scripts to executable.
45803ac_config_commands="$ac_config_commands default"
45804
45805ac_config_commands="$ac_config_commands MagickCore-config.in"
45806
45807ac_config_commands="$ac_config_commands Magick-config.in"
45808
45809ac_config_commands="$ac_config_commands MagickWand-config.in"
45810
45811ac_config_commands="$ac_config_commands Wand-config.in"
45812
45813ac_config_commands="$ac_config_commands Magick++-config.in"
45814
45815ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
45816
45817
45818{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45819$as_echo "-------------------------------------------------------------" >&6; }
45820{ $as_echo "$as_me:$LINENO: result: Update ImageMagick configuration" >&5
45821$as_echo "Update ImageMagick configuration" >&6; }
45822cat >confcache <<\_ACEOF
45823# This file is a shell script that caches the results of configure
45824# tests run on this system so they can be shared between configure
45825# scripts and configure runs, see configure's option --config-cache.
45826# It is not useful on other systems. If it contains results you don't
45827# want to keep, you may remove or edit it.
45828#
45829# config.status only pays attention to the cache file if you give it
45830# the --recheck option to rerun configure.
45831#
45832# `ac_cv_env_foo' variables (set or unset) will be overridden when
45833# loading this file, other *unset* `ac_cv_foo' will be assigned the
45834# following values.
45835
45836_ACEOF
45837
45838# The following way of writing the cache mishandles newlines in values,
45839# but we know of no workaround that is simple, portable, and efficient.
45840# So, we kill variables containing newlines.
45841# Ultrix sh set writes to stderr and can't be redirected directly,
45842# and sets the high bit in the cache file unless we assign to the vars.
45843(
45844 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45845 eval ac_val=\$$ac_var
45846 case $ac_val in #(
45847 *${as_nl}*)
45848 case $ac_var in #(
45849 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
45850$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45851 esac
45852 case $ac_var in #(
45853 _ | IFS | as_nl) ;; #(
45854 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45855 *) $as_unset $ac_var ;;
45856 esac ;;
45857 esac
45858 done
45859
45860 (set) 2>&1 |
45861 case $as_nl`(ac_space=' '; set) 2>&1` in #(
45862 *${as_nl}ac_space=\ *)
45863 # `set' does not quote correctly, so add quotes (double-quote
45864 # substitution turns \\\\ into \\, and sed turns \\ into \).
45865 sed -n \
45866 "s/'/'\\\\''/g;
45867 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45868 ;; #(
45869 *)
45870 # `set' quotes correctly as required by POSIX, so do not add quotes.
45871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45872 ;;
45873 esac |
45874 sort
45875) |
45876 sed '
45877 /^ac_cv_env_/b end
45878 t clear
45879 :clear
45880 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45881 t end
45882 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45883 :end' >>confcache
45884if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45885 if test -w "$cache_file"; then
45886 test "x$cache_file" != "x/dev/null" &&
45887 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
45888$as_echo "$as_me: updating cache $cache_file" >&6;}
45889 cat confcache >$cache_file
45890 else
45891 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
45892$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45893 fi
45894fi
45895rm -f confcache
45896
45897test "x$prefix" = xNONE && prefix=$ac_default_prefix
45898# Let make expand exec_prefix.
45899test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45900
45901DEFS=-DHAVE_CONFIG_H
45902
45903ac_libobjs=
45904ac_ltlibobjs=
45905for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45906 # 1. Remove the extension, and $U if already installed.
45907 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45908 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45909 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
45910 # will be set to the directory where LIBOBJS objects are built.
45911 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45912 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
45913done
45914LIBOBJS=$ac_libobjs
45915
45916LTLIBOBJS=$ac_ltlibobjs
45917
45918
45919 if test -n "$EXEEXT"; then
45920 am__EXEEXT_TRUE=
45921 am__EXEEXT_FALSE='#'
45922else
45923 am__EXEEXT_TRUE='#'
45924 am__EXEEXT_FALSE=
45925fi
45926
45927if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45928 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45929Usually this means the macro was only invoked conditionally." >&5
45930$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
45931Usually this means the macro was only invoked conditionally." >&2;}
45932 { (exit 1); exit 1; }; }
45933fi
45934if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45935 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45936Usually this means the macro was only invoked conditionally." >&5
45937$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45938Usually this means the macro was only invoked conditionally." >&2;}
45939 { (exit 1); exit 1; }; }
45940fi
45941if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
45942 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
45943Usually this means the macro was only invoked conditionally." >&5
45944$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
45945Usually this means the macro was only invoked conditionally." >&2;}
45946 { (exit 1); exit 1; }; }
45947fi
45948if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
45949 { { $as_echo "$as_me:$LINENO: error: conditional \"WINGDI32_DELEGATE\" was never defined.
45950Usually this means the macro was only invoked conditionally." >&5
45951$as_echo "$as_me: error: conditional \"WINGDI32_DELEGATE\" was never defined.
45952Usually this means the macro was only invoked conditionally." >&2;}
45953 { (exit 1); exit 1; }; }
45954fi
45955if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
45956 { { $as_echo "$as_me:$LINENO: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
45957Usually this means the macro was only invoked conditionally." >&5
45958$as_echo "$as_me: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
45959Usually this means the macro was only invoked conditionally." >&2;}
45960 { (exit 1); exit 1; }; }
45961fi
45962if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
45963 { { $as_echo "$as_me:$LINENO: error: conditional \"CYGWIN_BUILD\" was never defined.
45964Usually this means the macro was only invoked conditionally." >&5
45965$as_echo "$as_me: error: conditional \"CYGWIN_BUILD\" was never defined.
45966Usually this means the macro was only invoked conditionally." >&2;}
45967 { (exit 1); exit 1; }; }
45968fi
45969if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
45970 { { $as_echo "$as_me:$LINENO: error: conditional \"USING_CL\" was never defined.
45971Usually this means the macro was only invoked conditionally." >&5
45972$as_echo "$as_me: error: conditional \"USING_CL\" was never defined.
45973Usually this means the macro was only invoked conditionally." >&2;}
45974 { (exit 1); exit 1; }; }
45975fi
45976if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
45977 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
45978Usually this means the macro was only invoked conditionally." >&5
45979$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
45980Usually this means the macro was only invoked conditionally." >&2;}
45981 { (exit 1); exit 1; }; }
45982fi
45983if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
45984 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
45985Usually this means the macro was only invoked conditionally." >&5
45986$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
45987Usually this means the macro was only invoked conditionally." >&2;}
45988 { (exit 1); exit 1; }; }
45989fi
45990if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
45991 { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
45992Usually this means the macro was only invoked conditionally." >&5
45993$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
45994Usually this means the macro was only invoked conditionally." >&2;}
45995 { (exit 1); exit 1; }; }
45996fi
45997LT_CONFIG_H=config/config.h
45998
45999 _ltdl_libobjs=
46000 _ltdl_ltlibobjs=
46001 if test -n "$_LT_LIBOBJS"; then
46002 # Remove the extension.
46003 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
46004 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
46005 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
46006 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
46007 done
46008 fi
46009 ltdl_LIBOBJS=$_ltdl_libobjs
46010
46011 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
46012
46013
46014if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
46015 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MODULES\" was never defined.
46016Usually this means the macro was only invoked conditionally." >&5
46017$as_echo "$as_me: error: conditional \"WITH_MODULES\" was never defined.
46018Usually this means the macro was only invoked conditionally." >&2;}
46019 { (exit 1); exit 1; }; }
46020fi
46021if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
46022 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LTDL\" was never defined.
46023Usually this means the macro was only invoked conditionally." >&5
46024$as_echo "$as_me: error: conditional \"WITH_LTDL\" was never defined.
46025Usually this means the macro was only invoked conditionally." >&2;}
46026 { (exit 1); exit 1; }; }
46027fi
46028if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46029 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
46030Usually this means the macro was only invoked conditionally." >&5
46031$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
46032Usually this means the macro was only invoked conditionally." >&2;}
46033 { (exit 1); exit 1; }; }
46034fi
46035
46036if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46037 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46038Usually this means the macro was only invoked conditionally." >&5
46039$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46040Usually this means the macro was only invoked conditionally." >&2;}
46041 { (exit 1); exit 1; }; }
46042fi
46043if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
46044 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46045Usually this means the macro was only invoked conditionally." >&5
46046$as_echo "$as_me: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46047Usually this means the macro was only invoked conditionally." >&2;}
46048 { (exit 1); exit 1; }; }
46049fi
46050if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
46051 { { $as_echo "$as_me:$LINENO: error: conditional \"HasUMEM\" was never defined.
46052Usually this means the macro was only invoked conditionally." >&5
46053$as_echo "$as_me: error: conditional \"HasUMEM\" was never defined.
46054Usually this means the macro was only invoked conditionally." >&2;}
46055 { (exit 1); exit 1; }; }
46056fi
46057if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
46058 { { $as_echo "$as_me:$LINENO: error: conditional \"BZLIB_DELEGATE\" was never defined.
46059Usually this means the macro was only invoked conditionally." >&5
46060$as_echo "$as_me: error: conditional \"BZLIB_DELEGATE\" was never defined.
46061Usually this means the macro was only invoked conditionally." >&2;}
46062 { (exit 1); exit 1; }; }
46063fi
46064if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
46065 { { $as_echo "$as_me:$LINENO: error: conditional \"X11_DELEGATE\" was never defined.
46066Usually this means the macro was only invoked conditionally." >&5
46067$as_echo "$as_me: error: conditional \"X11_DELEGATE\" was never defined.
46068Usually this means the macro was only invoked conditionally." >&2;}
46069 { (exit 1); exit 1; }; }
46070fi
46071if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
46072 { { $as_echo "$as_me:$LINENO: error: conditional \"ZLIB_DELEGATE\" was never defined.
46073Usually this means the macro was only invoked conditionally." >&5
46074$as_echo "$as_me: error: conditional \"ZLIB_DELEGATE\" was never defined.
46075Usually this means the macro was only invoked conditionally." >&2;}
46076 { (exit 1); exit 1; }; }
46077fi
46078if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
46079 { { $as_echo "$as_me:$LINENO: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46080Usually this means the macro was only invoked conditionally." >&5
46081$as_echo "$as_me: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46082Usually this means the macro was only invoked conditionally." >&2;}
46083 { (exit 1); exit 1; }; }
46084fi
46085if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
46086 { { $as_echo "$as_me:$LINENO: error: conditional \"DPS_DELEGATE\" was never defined.
46087Usually this means the macro was only invoked conditionally." >&5
46088$as_echo "$as_me: error: conditional \"DPS_DELEGATE\" was never defined.
46089Usually this means the macro was only invoked conditionally." >&2;}
46090 { (exit 1); exit 1; }; }
46091fi
46092if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
46093 { { $as_echo "$as_me:$LINENO: error: conditional \"DJVU_DELEGATE\" was never defined.
46094Usually this means the macro was only invoked conditionally." >&5
46095$as_echo "$as_me: error: conditional \"DJVU_DELEGATE\" was never defined.
46096Usually this means the macro was only invoked conditionally." >&2;}
46097 { (exit 1); exit 1; }; }
46098fi
46099if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
46100 { { $as_echo "$as_me:$LINENO: error: conditional \"FFTW_DELEGATE\" was never defined.
46101Usually this means the macro was only invoked conditionally." >&5
46102$as_echo "$as_me: error: conditional \"FFTW_DELEGATE\" was never defined.
46103Usually this means the macro was only invoked conditionally." >&2;}
46104 { (exit 1); exit 1; }; }
46105fi
46106if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
46107 { { $as_echo "$as_me:$LINENO: error: conditional \"FPX_DELEGATE\" was never defined.
46108Usually this means the macro was only invoked conditionally." >&5
46109$as_echo "$as_me: error: conditional \"FPX_DELEGATE\" was never defined.
46110Usually this means the macro was only invoked conditionally." >&2;}
46111 { (exit 1); exit 1; }; }
46112fi
46113if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
46114 { { $as_echo "$as_me:$LINENO: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46115Usually this means the macro was only invoked conditionally." >&5
46116$as_echo "$as_me: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46117Usually this means the macro was only invoked conditionally." >&2;}
46118 { (exit 1); exit 1; }; }
46119fi
46120if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
46121 { { $as_echo "$as_me:$LINENO: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46122Usually this means the macro was only invoked conditionally." >&5
46123$as_echo "$as_me: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46124Usually this means the macro was only invoked conditionally." >&2;}
46125 { (exit 1); exit 1; }; }
46126fi
46127if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
46128 { { $as_echo "$as_me:$LINENO: error: conditional \"GS_DELEGATE\" was never defined.
46129Usually this means the macro was only invoked conditionally." >&5
46130$as_echo "$as_me: error: conditional \"GS_DELEGATE\" was never defined.
46131Usually this means the macro was only invoked conditionally." >&2;}
46132 { (exit 1); exit 1; }; }
46133fi
46134if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
46135 { { $as_echo "$as_me:$LINENO: error: conditional \"GVC_DELEGATE\" was never defined.
46136Usually this means the macro was only invoked conditionally." >&5
46137$as_echo "$as_me: error: conditional \"GVC_DELEGATE\" was never defined.
46138Usually this means the macro was only invoked conditionally." >&2;}
46139 { (exit 1); exit 1; }; }
46140fi
46141if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
46142 { { $as_echo "$as_me:$LINENO: error: conditional \"JBIG_DELEGATE\" was never defined.
46143Usually this means the macro was only invoked conditionally." >&5
46144$as_echo "$as_me: error: conditional \"JBIG_DELEGATE\" was never defined.
46145Usually this means the macro was only invoked conditionally." >&2;}
46146 { (exit 1); exit 1; }; }
46147fi
46148if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
46149 { { $as_echo "$as_me:$LINENO: error: conditional \"JPEG_DELEGATE\" was never defined.
46150Usually this means the macro was only invoked conditionally." >&5
46151$as_echo "$as_me: error: conditional \"JPEG_DELEGATE\" was never defined.
46152Usually this means the macro was only invoked conditionally." >&2;}
46153 { (exit 1); exit 1; }; }
46154fi
46155if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
46156 { { $as_echo "$as_me:$LINENO: error: conditional \"JP2_DELEGATE\" was never defined.
46157Usually this means the macro was only invoked conditionally." >&5
46158$as_echo "$as_me: error: conditional \"JP2_DELEGATE\" was never defined.
46159Usually this means the macro was only invoked conditionally." >&2;}
46160 { (exit 1); exit 1; }; }
46161fi
46162if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
46163 { { $as_echo "$as_me:$LINENO: error: conditional \"LCMS_DELEGATE\" was never defined.
46164Usually this means the macro was only invoked conditionally." >&5
46165$as_echo "$as_me: error: conditional \"LCMS_DELEGATE\" was never defined.
46166Usually this means the macro was only invoked conditionally." >&2;}
46167 { (exit 1); exit 1; }; }
46168fi
46169if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
46170 { { $as_echo "$as_me:$LINENO: error: conditional \"LQR_DELEGATE\" was never defined.
46171Usually this means the macro was only invoked conditionally." >&5
46172$as_echo "$as_me: error: conditional \"LQR_DELEGATE\" was never defined.
46173Usually this means the macro was only invoked conditionally." >&2;}
46174 { (exit 1); exit 1; }; }
46175fi
46176if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
46177 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENEXR_DELEGATE\" was never defined.
46178Usually this means the macro was only invoked conditionally." >&5
46179$as_echo "$as_me: error: conditional \"OPENEXR_DELEGATE\" was never defined.
46180Usually this means the macro was only invoked conditionally." >&2;}
46181 { (exit 1); exit 1; }; }
46182fi
46183if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
46184 { { $as_echo "$as_me:$LINENO: error: conditional \"PNG_DELEGATE\" was never defined.
46185Usually this means the macro was only invoked conditionally." >&5
46186$as_echo "$as_me: error: conditional \"PNG_DELEGATE\" was never defined.
46187Usually this means the macro was only invoked conditionally." >&2;}
46188 { (exit 1); exit 1; }; }
46189fi
46190if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
46191 { { $as_echo "$as_me:$LINENO: error: conditional \"RSVG_DELEGATE\" was never defined.
46192Usually this means the macro was only invoked conditionally." >&5
46193$as_echo "$as_me: error: conditional \"RSVG_DELEGATE\" was never defined.
46194Usually this means the macro was only invoked conditionally." >&2;}
46195 { (exit 1); exit 1; }; }
46196fi
46197if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
46198 { { $as_echo "$as_me:$LINENO: error: conditional \"CAIRO_DELEGATE\" was never defined.
46199Usually this means the macro was only invoked conditionally." >&5
46200$as_echo "$as_me: error: conditional \"CAIRO_DELEGATE\" was never defined.
46201Usually this means the macro was only invoked conditionally." >&2;}
46202 { (exit 1); exit 1; }; }
46203fi
46204if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
46205 { { $as_echo "$as_me:$LINENO: error: conditional \"TIFF_DELEGATE\" was never defined.
46206Usually this means the macro was only invoked conditionally." >&5
46207$as_echo "$as_me: error: conditional \"TIFF_DELEGATE\" was never defined.
46208Usually this means the macro was only invoked conditionally." >&2;}
46209 { (exit 1); exit 1; }; }
46210fi
46211if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
46212 { { $as_echo "$as_me:$LINENO: error: conditional \"WMF_DELEGATE\" was never defined.
46213Usually this means the macro was only invoked conditionally." >&5
46214$as_echo "$as_me: error: conditional \"WMF_DELEGATE\" was never defined.
46215Usually this means the macro was only invoked conditionally." >&2;}
46216 { (exit 1); exit 1; }; }
46217fi
46218if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
46219 { { $as_echo "$as_me:$LINENO: error: conditional \"XML_DELEGATE\" was never defined.
46220Usually this means the macro was only invoked conditionally." >&5
46221$as_echo "$as_me: error: conditional \"XML_DELEGATE\" was never defined.
46222Usually this means the macro was only invoked conditionally." >&2;}
46223 { (exit 1); exit 1; }; }
46224fi
46225if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
46226 { { $as_echo "$as_me:$LINENO: error: conditional \"RPM_DELEGATE\" was never defined.
46227Usually this means the macro was only invoked conditionally." >&5
46228$as_echo "$as_me: error: conditional \"RPM_DELEGATE\" was never defined.
46229Usually this means the macro was only invoked conditionally." >&2;}
46230 { (exit 1); exit 1; }; }
46231fi
46232if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
46233 { { $as_echo "$as_me:$LINENO: error: conditional \"P7ZIP_DELEGATE\" was never defined.
46234Usually this means the macro was only invoked conditionally." >&5
46235$as_echo "$as_me: error: conditional \"P7ZIP_DELEGATE\" was never defined.
46236Usually this means the macro was only invoked conditionally." >&2;}
46237 { (exit 1); exit 1; }; }
46238fi
46239if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
46240 { { $as_echo "$as_me:$LINENO: error: conditional \"ZIP_DELEGATE\" was never defined.
46241Usually this means the macro was only invoked conditionally." >&5
46242$as_echo "$as_me: error: conditional \"ZIP_DELEGATE\" was never defined.
46243Usually this means the macro was only invoked conditionally." >&2;}
46244 { (exit 1); exit 1; }; }
46245fi
46246if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
46247 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
46248Usually this means the macro was only invoked conditionally." >&5
46249$as_echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
46250Usually this means the macro was only invoked conditionally." >&2;}
46251 { (exit 1); exit 1; }; }
46252fi
46253if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
46254 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_STATIC\" was never defined.
46255Usually this means the macro was only invoked conditionally." >&5
46256$as_echo "$as_me: error: conditional \"WITH_PERL_STATIC\" was never defined.
46257Usually this means the macro was only invoked conditionally." >&2;}
46258 { (exit 1); exit 1; }; }
46259fi
46260if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
46261 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
46262Usually this means the macro was only invoked conditionally." >&5
46263$as_echo "$as_me: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
46264Usually this means the macro was only invoked conditionally." >&2;}
46265 { (exit 1); exit 1; }; }
46266fi
46267
46268: ${CONFIG_STATUS=./config.status}
46269ac_write_fail=0
46270ac_clean_files_save=$ac_clean_files
46271ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46272{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46273$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
46274cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46275#! $SHELL
46276# Generated by $as_me.
46277# Run this file to recreate the current configuration.
46278# Compiler output produced by configure, useful for debugging
46279# configure, is in config.log if it exists.
46280
46281debug=false
46282ac_cs_recheck=false
46283ac_cs_silent=false
46284SHELL=\${CONFIG_SHELL-$SHELL}
46285_ACEOF
46286
46287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46288## --------------------- ##
46289## M4sh Initialization. ##
46290## --------------------- ##
46291
46292# Be more Bourne compatible
46293DUALCASE=1; export DUALCASE # for MKS sh
46294if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46295 emulate sh
46296 NULLCMD=:
46297 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46298 # is contrary to our usage. Disable this feature.
46299 alias -g '${1+"$@"}'='"$@"'
46300 setopt NO_GLOB_SUBST
46301else
46302 case `(set -o) 2>/dev/null` in
46303 *posix*) set -o posix ;;
46304esac
46305
46306fi
46307
46308
46309
46310
46311# PATH needs CR
46312# Avoid depending upon Character Ranges.
46313as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46314as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46315as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46316as_cr_digits='0123456789'
46317as_cr_alnum=$as_cr_Letters$as_cr_digits
46318
46319as_nl='
46320'
46321export as_nl
46322# Printing a long string crashes Solaris 7 /usr/bin/printf.
46323as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46324as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46325as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46326if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
46327 as_echo='printf %s\n'
46328 as_echo_n='printf %s'
46329else
46330 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
46331 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
46332 as_echo_n='/usr/ucb/echo -n'
46333 else
46334 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
46335 as_echo_n_body='eval
46336 arg=$1;
46337 case $arg in
46338 *"$as_nl"*)
46339 expr "X$arg" : "X\\(.*\\)$as_nl";
46340 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
46341 esac;
46342 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
46343 '
46344 export as_echo_n_body
46345 as_echo_n='sh -c $as_echo_n_body as_echo'
46346 fi
46347 export as_echo_body
46348 as_echo='sh -c $as_echo_body as_echo'
46349fi
46350
46351# The user is always right.
46352if test "${PATH_SEPARATOR+set}" != set; then
46353 PATH_SEPARATOR=:
46354 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
46355 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
46356 PATH_SEPARATOR=';'
46357 }
46358fi
46359
46360# Support unset when possible.
46361if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46362 as_unset=unset
46363else
46364 as_unset=false
46365fi
46366
46367
46368# IFS
46369# We need space, tab and new line, in precisely that order. Quoting is
46370# there to prevent editors from complaining about space-tab.
46371# (If _AS_PATH_WALK were called with IFS unset, it would disable word
46372# splitting by setting IFS to empty value.)
46373IFS=" "" $as_nl"
46374
46375# Find who we are. Look in the path if we contain no directory separator.
46376case $0 in
46377 *[\\/]* ) as_myself=$0 ;;
46378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46379for as_dir in $PATH
46380do
46381 IFS=$as_save_IFS
46382 test -z "$as_dir" && as_dir=.
46383 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46384done
46385IFS=$as_save_IFS
46386
46387 ;;
46388esac
46389# We did not find ourselves, most probably we were run as `sh COMMAND'
46390# in which case we are not to be found in the path.
46391if test "x$as_myself" = x; then
46392 as_myself=$0
46393fi
46394if test ! -f "$as_myself"; then
46395 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46396 { (exit 1); exit 1; }
46397fi
46398
46399# Work around bugs in pre-3.0 UWIN ksh.
46400for as_var in ENV MAIL MAILPATH
46401do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
46402done
46403PS1='$ '
46404PS2='> '
46405PS4='+ '
46406
46407# NLS nuisances.
46408LC_ALL=C
46409export LC_ALL
46410LANGUAGE=C
46411export LANGUAGE
46412
46413# Required to use basename.
46414if expr a : '\(a\)' >/dev/null 2>&1 &&
46415 test "X`expr 00001 : '.*\(...\)'`" = X001; then
46416 as_expr=expr
46417else
46418 as_expr=false
46419fi
46420
46421if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46422 as_basename=basename
46423else
46424 as_basename=false
46425fi
46426
46427
46428# Name of the executable.
46429as_me=`$as_basename -- "$0" ||
46430$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46431 X"$0" : 'X\(//\)$' \| \
46432 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46433$as_echo X/"$0" |
46434 sed '/^.*\/\([^/][^/]*\)\/*$/{
46435 s//\1/
46436 q
46437 }
46438 /^X\/\(\/\/\)$/{
46439 s//\1/
46440 q
46441 }
46442 /^X\/\(\/\).*/{
46443 s//\1/
46444 q
46445 }
46446 s/.*/./; q'`
46447
46448# CDPATH.
46449$as_unset CDPATH
46450
46451
46452
46453 as_lineno_1=$LINENO
46454 as_lineno_2=$LINENO
46455 test "x$as_lineno_1" != "x$as_lineno_2" &&
46456 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
46457
46458 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46459 # uniformly replaced by the line number. The first 'sed' inserts a
46460 # line-number line after each line using $LINENO; the second 'sed'
46461 # does the real work. The second script uses 'N' to pair each
46462 # line-number line with the line containing $LINENO, and appends
46463 # trailing '-' during substitution so that $LINENO is not a special
46464 # case at line end.
46465 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46466 # scripts with optimization help from Paolo Bonzini. Blame Lee
46467 # E. McMahon (1931-1989) for sed's syntax. :-)
46468 sed -n '
46469 p
46470 /[$]LINENO/=
46471 ' <$as_myself |
46472 sed '
46473 s/[$]LINENO.*/&-/
46474 t lineno
46475 b
46476 :lineno
46477 N
46478 :loop
46479 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
46480 t loop
46481 s/-\n.*//
46482 ' >$as_me.lineno &&
46483 chmod +x "$as_me.lineno" ||
46484 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
46485 { (exit 1); exit 1; }; }
46486
46487 # Don't try to exec as it changes $[0], causing all sort of problems
46488 # (the dirname of $[0] is not the place where we might find the
46489 # original and so on. Autoconf is especially sensitive to this).
46490 . "./$as_me.lineno"
46491 # Exit status is that of the last command.
46492 exit
46493}
46494
46495
46496if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46497 as_dirname=dirname
46498else
46499 as_dirname=false
46500fi
46501
46502ECHO_C= ECHO_N= ECHO_T=
46503case `echo -n x` in
46504-n*)
46505 case `echo 'x\c'` in
46506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
46507 *) ECHO_C='\c';;
46508 esac;;
46509*)
46510 ECHO_N='-n';;
46511esac
46512if expr a : '\(a\)' >/dev/null 2>&1 &&
46513 test "X`expr 00001 : '.*\(...\)'`" = X001; then
46514 as_expr=expr
46515else
46516 as_expr=false
46517fi
46518
46519rm -f conf$$ conf$$.exe conf$$.file
46520if test -d conf$$.dir; then
46521 rm -f conf$$.dir/conf$$.file
46522else
46523 rm -f conf$$.dir
46524 mkdir conf$$.dir 2>/dev/null
46525fi
46526if (echo >conf$$.file) 2>/dev/null; then
46527 if ln -s conf$$.file conf$$ 2>/dev/null; then
46528 as_ln_s='ln -s'
46529 # ... but there are two gotchas:
46530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46532 # In both cases, we have to default to `cp -p'.
46533 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46534 as_ln_s='cp -p'
46535 elif ln conf$$.file conf$$ 2>/dev/null; then
46536 as_ln_s=ln
46537 else
46538 as_ln_s='cp -p'
46539 fi
46540else
46541 as_ln_s='cp -p'
46542fi
46543rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46544rmdir conf$$.dir 2>/dev/null
46545
46546if mkdir -p . 2>/dev/null; then
46547 as_mkdir_p=:
46548else
46549 test -d ./-p && rmdir ./-p
46550 as_mkdir_p=false
46551fi
46552
46553if test -x / >/dev/null 2>&1; then
46554 as_test_x='test -x'
46555else
46556 if ls -dL / >/dev/null 2>&1; then
46557 as_ls_L_option=L
46558 else
46559 as_ls_L_option=
46560 fi
46561 as_test_x='
46562 eval sh -c '\''
46563 if test -d "$1"; then
46564 test -d "$1/.";
46565 else
46566 case $1 in
46567 -*)set "./$1";;
46568 esac;
46569 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
46570 ???[sx]*):;;*)false;;esac;fi
46571 '\'' sh
46572 '
46573fi
46574as_executable_p=$as_test_x
46575
46576# Sed expression to map a string onto a valid CPP name.
46577as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46578
46579# Sed expression to map a string onto a valid variable name.
46580as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46581
46582
46583exec 6>&1
46584
46585# Save the log message, to keep $[0] and so on meaningful, and to
46586# report actual input values of CONFIG_FILES etc. instead of their
46587# values after options handling.
46588ac_log="
46589This file was extended by ImageMagick $as_me 6.5.5, which was
46590generated by GNU Autoconf 2.63. Invocation command line was
46591
46592 CONFIG_FILES = $CONFIG_FILES
46593 CONFIG_HEADERS = $CONFIG_HEADERS
46594 CONFIG_LINKS = $CONFIG_LINKS
46595 CONFIG_COMMANDS = $CONFIG_COMMANDS
46596 $ $0 $@
46597
46598on `(hostname || uname -n) 2>/dev/null | sed 1q`
46599"
46600
46601_ACEOF
46602
46603case $ac_config_files in *"
46604"*) set x $ac_config_files; shift; ac_config_files=$*;;
46605esac
46606
46607case $ac_config_headers in *"
46608"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46609esac
46610
46611
46612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46613# Files that config.status was made for.
46614config_files="$ac_config_files"
46615config_headers="$ac_config_headers"
46616config_commands="$ac_config_commands"
46617
46618_ACEOF
46619
46620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46621ac_cs_usage="\
46622\`$as_me' instantiates files from templates according to the
46623current configuration.
46624
46625Usage: $0 [OPTION]... [FILE]...
46626
46627 -h, --help print this help, then exit
46628 -V, --version print version number and configuration settings, then exit
46629 -q, --quiet, --silent
46630 do not print progress messages
46631 -d, --debug don't remove temporary files
46632 --recheck update $as_me by reconfiguring in the same conditions
46633 --file=FILE[:TEMPLATE]
46634 instantiate the configuration file FILE
46635 --header=FILE[:TEMPLATE]
46636 instantiate the configuration header FILE
46637
46638Configuration files:
46639$config_files
46640
46641Configuration headers:
46642$config_headers
46643
46644Configuration commands:
46645$config_commands
46646
46647Report bugs to <bug-autoconf@gnu.org>."
46648
46649_ACEOF
46650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46651ac_cs_version="\\
46652ImageMagick config.status 6.5.5
46653configured by $0, generated by GNU Autoconf 2.63,
46654 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
46655
46656Copyright (C) 2008 Free Software Foundation, Inc.
46657This config.status script is free software; the Free Software Foundation
46658gives unlimited permission to copy, distribute and modify it."
46659
46660ac_pwd='$ac_pwd'
46661srcdir='$srcdir'
46662INSTALL='$INSTALL'
46663MKDIR_P='$MKDIR_P'
46664AWK='$AWK'
46665test -n "\$AWK" || AWK=awk
46666_ACEOF
46667
46668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46669# The default lists apply if the user does not specify any file.
46670ac_need_defaults=:
46671while test $# != 0
46672do
46673 case $1 in
46674 --*=*)
46675 ac_option=`expr "X$1" : 'X\([^=]*\)='`
46676 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46677 ac_shift=:
46678 ;;
46679 *)
46680 ac_option=$1
46681 ac_optarg=$2
46682 ac_shift=shift
46683 ;;
46684 esac
46685
46686 case $ac_option in
46687 # Handling of the options.
46688 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46689 ac_cs_recheck=: ;;
46690 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46691 $as_echo "$ac_cs_version"; exit ;;
46692 --debug | --debu | --deb | --de | --d | -d )
46693 debug=: ;;
46694 --file | --fil | --fi | --f )
46695 $ac_shift
46696 case $ac_optarg in
46697 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46698 esac
46699 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
46700 ac_need_defaults=false;;
46701 --header | --heade | --head | --hea )
46702 $ac_shift
46703 case $ac_optarg in
46704 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46705 esac
46706 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
46707 ac_need_defaults=false;;
46708 --he | --h)
46709 # Conflict between --help and --header
46710 { $as_echo "$as_me: error: ambiguous option: $1
46711Try \`$0 --help' for more information." >&2
46712 { (exit 1); exit 1; }; };;
46713 --help | --hel | -h )
46714 $as_echo "$ac_cs_usage"; exit ;;
46715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46716 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46717 ac_cs_silent=: ;;
46718
46719 # This is an error.
46720 -*) { $as_echo "$as_me: error: unrecognized option: $1
46721Try \`$0 --help' for more information." >&2
46722 { (exit 1); exit 1; }; } ;;
46723
46724 *) ac_config_targets="$ac_config_targets $1"
46725 ac_need_defaults=false ;;
46726
46727 esac
46728 shift
46729done
46730
46731ac_configure_extra_args=
46732
46733if $ac_cs_silent; then
46734 exec 6>/dev/null
46735 ac_configure_extra_args="$ac_configure_extra_args --silent"
46736fi
46737
46738_ACEOF
46739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46740if \$ac_cs_recheck; then
46741 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46742 shift
46743 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
46744 CONFIG_SHELL='$SHELL'
46745 export CONFIG_SHELL
46746 exec "\$@"
46747fi
46748
46749_ACEOF
46750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46751exec 5>>config.log
46752{
46753 echo
46754 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46755## Running $as_me. ##
46756_ASBOX
46757 $as_echo "$ac_log"
46758} >&5
46759
46760_ACEOF
46761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46762#
46763# INIT-COMMANDS
46764#
46765PACKAGE="$PACKAGE"
46766AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
46767
46768
46769# The HP-UX ksh and POSIX shell print the target directory to stdout
46770# if CDPATH is set.
46771(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46772
46773sed_quote_subst='$sed_quote_subst'
46774double_quote_subst='$double_quote_subst'
46775delay_variable_subst='$delay_variable_subst'
46776SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
46777Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
46778GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
46779EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
46780FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
46781LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
46782macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
46783macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
46784AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
46785DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
46786OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
46787enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
46788enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
46789pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
46790enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
46791host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
46792host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
46793host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
46794build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
46795build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
46796build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
46797NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
46798LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
46799max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
46800ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
46801exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
46802lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
46803lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
46804lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
46805reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
46806reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46807deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
46808file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
46809AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
46810AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46811STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
46812RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
46813old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46814old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46815old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46816CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
46817CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46818compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
46819GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
46820lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
46821lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
46822lt_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"`'
46823lt_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"`'
46824objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
46825SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
46826ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
46827MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
46828lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
46829lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
46830lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
46831lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
46832lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
46833need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
46834DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
46835NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
46836LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
46837OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
46838OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
46839libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
46840shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46841extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46842archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
46843enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
46844export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46845whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46846compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
46847old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46848old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46849archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46850archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46851module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46852module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46853with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
46854allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46855no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46856hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46857hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
46858hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
46859hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
46860hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
46861hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
46862hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46863hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
46864inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
46865link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
46866fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
46867always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
46868export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46869exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46870include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46871prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46872file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
46873variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
46874need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
46875need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
46876version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
46877runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46878shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46879shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
46880libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46881library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
46882soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46883postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46884postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46885finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46886finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
46887hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
46888sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46889sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46890hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
46891enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
46892enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
46893enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
46894old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
46895striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
46896compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
46897predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46898postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46899predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
46900postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
46901compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
46902LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46903old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46904compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46905GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46906lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46907lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46908lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46909lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46910lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46911archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46912enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46913export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46914whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46915compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46916old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46917old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46918archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46919archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46920module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46921module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46922with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46923allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46924no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46925hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46926hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46927hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46928hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46929hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46930hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46931hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46932hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46933inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46934link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46935fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46936always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46937export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46938exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46939include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46940prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46941file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46942hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46943compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46944predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46945postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46946predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46947postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46948compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46949
46950LTCC='$LTCC'
46951LTCFLAGS='$LTCFLAGS'
46952compiler='$compiler_DEFAULT'
46953
46954# Quote evaled strings.
46955for var in SED \
46956GREP \
46957EGREP \
46958FGREP \
46959LD \
46960NM \
46961LN_S \
46962lt_SP2NL \
46963lt_NL2SP \
46964reload_flag \
46965deplibs_check_method \
46966file_magic_cmd \
46967AR \
46968AR_FLAGS \
46969STRIP \
46970RANLIB \
46971CC \
46972CFLAGS \
46973compiler \
46974lt_cv_sys_global_symbol_pipe \
46975lt_cv_sys_global_symbol_to_cdecl \
46976lt_cv_sys_global_symbol_to_c_name_address \
46977lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46978SHELL \
46979ECHO \
46980lt_prog_compiler_no_builtin_flag \
46981lt_prog_compiler_wl \
46982lt_prog_compiler_pic \
46983lt_prog_compiler_static \
46984lt_cv_prog_compiler_c_o \
46985need_locks \
46986DSYMUTIL \
46987NMEDIT \
46988LIPO \
46989OTOOL \
46990OTOOL64 \
46991shrext_cmds \
46992export_dynamic_flag_spec \
46993whole_archive_flag_spec \
46994compiler_needs_object \
46995with_gnu_ld \
46996allow_undefined_flag \
46997no_undefined_flag \
46998hardcode_libdir_flag_spec \
46999hardcode_libdir_flag_spec_ld \
47000hardcode_libdir_separator \
47001fix_srcfile_path \
47002exclude_expsyms \
47003include_expsyms \
47004file_list_spec \
47005variables_saved_for_relink \
47006libname_spec \
47007library_names_spec \
47008soname_spec \
47009finish_eval \
47010old_striplib \
47011striplib \
47012compiler_lib_search_dirs \
47013predep_objects \
47014postdep_objects \
47015predeps \
47016postdeps \
47017compiler_lib_search_path \
47018LD_CXX \
47019compiler_CXX \
47020lt_prog_compiler_no_builtin_flag_CXX \
47021lt_prog_compiler_wl_CXX \
47022lt_prog_compiler_pic_CXX \
47023lt_prog_compiler_static_CXX \
47024lt_cv_prog_compiler_c_o_CXX \
47025export_dynamic_flag_spec_CXX \
47026whole_archive_flag_spec_CXX \
47027compiler_needs_object_CXX \
47028with_gnu_ld_CXX \
47029allow_undefined_flag_CXX \
47030no_undefined_flag_CXX \
47031hardcode_libdir_flag_spec_CXX \
47032hardcode_libdir_flag_spec_ld_CXX \
47033hardcode_libdir_separator_CXX \
47034fix_srcfile_path_CXX \
47035exclude_expsyms_CXX \
47036include_expsyms_CXX \
47037file_list_spec_CXX \
47038compiler_lib_search_dirs_CXX \
47039predep_objects_CXX \
47040postdep_objects_CXX \
47041predeps_CXX \
47042postdeps_CXX \
47043compiler_lib_search_path_CXX; do
47044 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47045 *[\\\\\\\`\\"\\\$]*)
47046 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
47047 ;;
47048 *)
47049 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47050 ;;
47051 esac
47052done
47053
47054# Double-quote double-evaled strings.
47055for var in reload_cmds \
47056old_postinstall_cmds \
47057old_postuninstall_cmds \
47058old_archive_cmds \
47059extract_expsyms_cmds \
47060old_archive_from_new_cmds \
47061old_archive_from_expsyms_cmds \
47062archive_cmds \
47063archive_expsym_cmds \
47064module_cmds \
47065module_expsym_cmds \
47066export_symbols_cmds \
47067prelink_cmds \
47068postinstall_cmds \
47069postuninstall_cmds \
47070finish_cmds \
47071sys_lib_search_path_spec \
47072sys_lib_dlsearch_path_spec \
47073old_archive_cmds_CXX \
47074old_archive_from_new_cmds_CXX \
47075old_archive_from_expsyms_cmds_CXX \
47076archive_cmds_CXX \
47077archive_expsym_cmds_CXX \
47078module_cmds_CXX \
47079module_expsym_cmds_CXX \
47080export_symbols_cmds_CXX \
47081prelink_cmds_CXX; do
47082 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47083 *[\\\\\\\`\\"\\\$]*)
47084 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
47085 ;;
47086 *)
47087 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47088 ;;
47089 esac
47090done
47091
47092# Fix-up fallback echo if it was mangled by the above quoting rules.
47093case \$lt_ECHO in
47094*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
47095 ;;
47096esac
47097
47098ac_aux_dir='$ac_aux_dir'
47099xsi_shell='$xsi_shell'
47100lt_shell_append='$lt_shell_append'
47101
47102# See if we are running on zsh, and set the options which allow our
47103# commands through without removal of \ escapes INIT.
47104if test -n "\${ZSH_VERSION+set}" ; then
47105 setopt NO_GLOB_SUBST
47106fi
47107
47108
47109 PACKAGE='$PACKAGE'
47110 VERSION='$VERSION'
47111 TIMESTAMP='$TIMESTAMP'
47112 RM='$RM'
47113 ofile='$ofile'
47114
47115
47116
47117
47118
47119
47120_ACEOF
47121
47122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47123
47124# Handling of arguments.
47125for ac_config_target in $ac_config_targets
47126do
47127 case $ac_config_target in
47128 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
47129 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
47130 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
47131 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
47132 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
47133 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
47134 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
47135 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
47136 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
47137 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
47138 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
47139 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
47140 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
47141 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
47142 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
47143 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
47144 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
47145 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
47146 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
47147 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47148 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
47149 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
47150 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
47151 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
47152 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
47153 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
47154 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
47155 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
47156 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
47157 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
47158 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
47159 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
47160 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
47161 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
47162 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
47163 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
47164 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
47165 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
47166 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
47167 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
47168 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
47169 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
47170 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
47171 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
47172 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
47173 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
47174 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
47175 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
47176 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
47177
47178 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47179$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47180 { (exit 1); exit 1; }; };;
47181 esac
47182done
47183
47184
47185# If the user did not use the arguments to specify the items to instantiate,
47186# then the envvar interface is used. Set only those that are not.
47187# We use the long form for the default assignment because of an extremely
47188# bizarre bug on SunOS 4.1.3.
47189if $ac_need_defaults; then
47190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47192 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47193fi
47194
47195# Have a temporary directory for convenience. Make it in the build tree
47196# simply because there is no reason against having it here, and in addition,
47197# creating and moving files from /tmp can sometimes cause problems.
47198# Hook for its removal unless debugging.
47199# Note that there is a small window in which the directory will not be cleaned:
47200# after its creation but before its name has been assigned to `$tmp'.
47201$debug ||
47202{
47203 tmp=
47204 trap 'exit_status=$?
47205 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
47206' 0
47207 trap '{ (exit 1); exit 1; }' 1 2 13 15
47208}
47209# Create a (secure) tmp directory for tmp files.
47210
47211{
47212 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
47213 test -n "$tmp" && test -d "$tmp"
47214} ||
47215{
47216 tmp=./conf$$-$RANDOM
47217 (umask 077 && mkdir "$tmp")
47218} ||
47219{
47220 $as_echo "$as_me: cannot create a temporary directory in ." >&2
47221 { (exit 1); exit 1; }
47222}
47223
47224# Set up the scripts for CONFIG_FILES section.
47225# No need to generate them if there are no CONFIG_FILES.
47226# This happens for instance with `./config.status config.h'.
47227if test -n "$CONFIG_FILES"; then
47228
47229
47230ac_cr=' '
47231ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
47232if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
47233 ac_cs_awk_cr='\\r'
47234else
47235 ac_cs_awk_cr=$ac_cr
47236fi
47237
47238echo 'BEGIN {' >"$tmp/subs1.awk" &&
47239_ACEOF
47240
47241
47242{
47243 echo "cat >conf$$subs.awk <<_ACEOF" &&
47244 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47245 echo "_ACEOF"
47246} >conf$$subs.sh ||
47247 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47248$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47249 { (exit 1); exit 1; }; }
47250ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
47251ac_delim='%!_!# '
47252for ac_last_try in false false false false false :; do
47253 . ./conf$$subs.sh ||
47254 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47255$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47256 { (exit 1); exit 1; }; }
47257
47258 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47259 if test $ac_delim_n = $ac_delim_num; then
47260 break
47261 elif $ac_last_try; then
47262 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47263$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47264 { (exit 1); exit 1; }; }
47265 else
47266 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47267 fi
47268done
47269rm -f conf$$subs.sh
47270
47271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47272cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
47273_ACEOF
47274sed -n '
47275h
47276s/^/S["/; s/!.*/"]=/
47277p
47278g
47279s/^[^!]*!//
47280:repl
47281t repl
47282s/'"$ac_delim"'$//
47283t delim
47284:nl
47285h
47286s/\(.\{148\}\).*/\1/
47287t more1
47288s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47289p
47290n
47291b repl
47292:more1
47293s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47294p
47295g
47296s/.\{148\}//
47297t nl
47298:delim
47299h
47300s/\(.\{148\}\).*/\1/
47301t more2
47302s/["\\]/\\&/g; s/^/"/; s/$/"/
47303p
47304b
47305:more2
47306s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47307p
47308g
47309s/.\{148\}//
47310t delim
47311' <conf$$subs.awk | sed '
47312/^[^""]/{
47313 N
47314 s/\n//
47315}
47316' >>$CONFIG_STATUS || ac_write_fail=1
47317rm -f conf$$subs.awk
47318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47319_ACAWK
47320cat >>"\$tmp/subs1.awk" <<_ACAWK &&
47321 for (key in S) S_is_set[key] = 1
47322 FS = ""
47323
47324}
47325{
47326 line = $ 0
47327 nfields = split(line, field, "@")
47328 substed = 0
47329 len = length(field[1])
47330 for (i = 2; i < nfields; i++) {
47331 key = field[i]
47332 keylen = length(key)
47333 if (S_is_set[key]) {
47334 value = S[key]
47335 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47336 len += length(value) + length(field[++i])
47337 substed = 1
47338 } else
47339 len += 1 + keylen
47340 }
47341
47342 print line
47343}
47344
47345_ACAWK
47346_ACEOF
47347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47348if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47349 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47350else
47351 cat
47352fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
47353 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
47354$as_echo "$as_me: error: could not setup config files machinery" >&2;}
47355 { (exit 1); exit 1; }; }
47356_ACEOF
47357
47358# VPATH may cause trouble with some makes, so we remove $(srcdir),
47359# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
47360# trailing colons and then remove the whole line if VPATH becomes empty
47361# (actually we leave an empty line to preserve line numbers).
47362if test "x$srcdir" = x.; then
47363 ac_vpsub='/^[ ]*VPATH[ ]*=/{
47364s/:*\$(srcdir):*/:/
47365s/:*\${srcdir}:*/:/
47366s/:*@srcdir@:*/:/
47367s/^\([^=]*=[ ]*\):*/\1/
47368s/:*$//
47369s/^[^=]*=[ ]*$//
47370}'
47371fi
47372
47373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47374fi # test -n "$CONFIG_FILES"
47375
47376# Set up the scripts for CONFIG_HEADERS section.
47377# No need to generate them if there are no CONFIG_HEADERS.
47378# This happens for instance with `./config.status Makefile'.
47379if test -n "$CONFIG_HEADERS"; then
47380cat >"$tmp/defines.awk" <<\_ACAWK ||
47381BEGIN {
47382_ACEOF
47383
47384# Transform confdefs.h into an awk script `defines.awk', embedded as
47385# here-document in config.status, that substitutes the proper values into
47386# config.h.in to produce config.h.
47387
47388# Create a delimiter string that does not exist in confdefs.h, to ease
47389# handling of long lines.
47390ac_delim='%!_!# '
47391for ac_last_try in false false :; do
47392 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
47393 if test -z "$ac_t"; then
47394 break
47395 elif $ac_last_try; then
47396 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
47397$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
47398 { (exit 1); exit 1; }; }
47399 else
47400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47401 fi
47402done
47403
47404# For the awk script, D is an array of macro values keyed by name,
47405# likewise P contains macro parameters if any. Preserve backslash
47406# newline sequences.
47407
47408ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47409sed -n '
47410s/.\{148\}/&'"$ac_delim"'/g
47411t rset
47412:rset
47413s/^[ ]*#[ ]*define[ ][ ]*/ /
47414t def
47415d
47416:def
47417s/\\$//
47418t bsnl
47419s/["\\]/\\&/g
47420s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47421D["\1"]=" \3"/p
47422s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
47423d
47424:bsnl
47425s/["\\]/\\&/g
47426s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47427D["\1"]=" \3\\\\\\n"\\/p
47428t cont
47429s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47430t cont
47431d
47432:cont
47433n
47434s/.\{148\}/&'"$ac_delim"'/g
47435t clear
47436:clear
47437s/\\$//
47438t bsnlc
47439s/["\\]/\\&/g; s/^/"/; s/$/"/p
47440d
47441:bsnlc
47442s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47443b cont
47444' <confdefs.h | sed '
47445s/'"$ac_delim"'/"\\\
47446"/g' >>$CONFIG_STATUS || ac_write_fail=1
47447
47448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47449 for (key in D) D_is_set[key] = 1
47450 FS = ""
47451}
47452/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47453 line = \$ 0
47454 split(line, arg, " ")
47455 if (arg[1] == "#") {
47456 defundef = arg[2]
47457 mac1 = arg[3]
47458 } else {
47459 defundef = substr(arg[1], 2)
47460 mac1 = arg[2]
47461 }
47462 split(mac1, mac2, "(") #)
47463 macro = mac2[1]
47464 prefix = substr(line, 1, index(line, defundef) - 1)
47465 if (D_is_set[macro]) {
47466 # Preserve the white space surrounding the "#".
47467 print prefix "define", macro P[macro] D[macro]
47468 next
47469 } else {
47470 # Replace #undef with comments. This is necessary, for example,
47471 # in the case of _POSIX_SOURCE, which is predefined and required
47472 # on some systems where configure will not decide to define it.
47473 if (defundef == "undef") {
47474 print "/*", prefix defundef, macro, "*/"
47475 next
47476 }
47477 }
47478}
47479{ print }
47480_ACAWK
47481_ACEOF
47482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47483 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
47484$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
47485 { (exit 1); exit 1; }; }
47486fi # test -n "$CONFIG_HEADERS"
47487
47488
47489eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
47490shift
47491for ac_tag
47492do
47493 case $ac_tag in
47494 :[FHLC]) ac_mode=$ac_tag; continue;;
47495 esac
47496 case $ac_mode$ac_tag in
47497 :[FHL]*:*);;
47498 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
47499$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
47500 { (exit 1); exit 1; }; };;
47501 :[FH]-) ac_tag=-:-;;
47502 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47503 esac
47504 ac_save_IFS=$IFS
47505 IFS=:
47506 set x $ac_tag
47507 IFS=$ac_save_IFS
47508 shift
47509 ac_file=$1
47510 shift
47511
47512 case $ac_mode in
47513 :L) ac_source=$1;;
47514 :[FH])
47515 ac_file_inputs=
47516 for ac_f
47517 do
47518 case $ac_f in
47519 -) ac_f="$tmp/stdin";;
47520 *) # Look for the file first in the build tree, then in the source tree
47521 # (if the path is not absolute). The absolute path cannot be DOS-style,
47522 # because $ac_f cannot contain `:'.
47523 test -f "$ac_f" ||
47524 case $ac_f in
47525 [\\/$]*) false;;
47526 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47527 esac ||
47528 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
47529$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
47530 { (exit 1); exit 1; }; };;
47531 esac
47532 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47533 ac_file_inputs="$ac_file_inputs '$ac_f'"
47534 done
47535
47536 # Let's still pretend it is `configure' which instantiates (i.e., don't
47537 # use $as_me), people would be surprised to read:
47538 # /* config.h. Generated by config.status. */
47539 configure_input='Generated from '`
47540 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47541 `' by configure.'
47542 if test x"$ac_file" != x-; then
47543 configure_input="$ac_file. $configure_input"
47544 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
47545$as_echo "$as_me: creating $ac_file" >&6;}
47546 fi
47547 # Neutralize special characters interpreted by sed in replacement strings.
47548 case $configure_input in #(
47549 *\&* | *\|* | *\\* )
47550 ac_sed_conf_input=`$as_echo "$configure_input" |
47551 sed 's/[\\\\&|]/\\\\&/g'`;; #(
47552 *) ac_sed_conf_input=$configure_input;;
47553 esac
47554
47555 case $ac_tag in
47556 *:-:* | *:-) cat >"$tmp/stdin" \
47557 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47558$as_echo "$as_me: error: could not create $ac_file" >&2;}
47559 { (exit 1); exit 1; }; } ;;
47560 esac
47561 ;;
47562 esac
47563
47564 ac_dir=`$as_dirname -- "$ac_file" ||
47565$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47566 X"$ac_file" : 'X\(//\)[^/]' \| \
47567 X"$ac_file" : 'X\(//\)$' \| \
47568 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47569$as_echo X"$ac_file" |
47570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47571 s//\1/
47572 q
47573 }
47574 /^X\(\/\/\)[^/].*/{
47575 s//\1/
47576 q
47577 }
47578 /^X\(\/\/\)$/{
47579 s//\1/
47580 q
47581 }
47582 /^X\(\/\).*/{
47583 s//\1/
47584 q
47585 }
47586 s/.*/./; q'`
47587 { as_dir="$ac_dir"
47588 case $as_dir in #(
47589 -*) as_dir=./$as_dir;;
47590 esac
47591 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47592 as_dirs=
47593 while :; do
47594 case $as_dir in #(
47595 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47596 *) as_qdir=$as_dir;;
47597 esac
47598 as_dirs="'$as_qdir' $as_dirs"
47599 as_dir=`$as_dirname -- "$as_dir" ||
47600$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47601 X"$as_dir" : 'X\(//\)[^/]' \| \
47602 X"$as_dir" : 'X\(//\)$' \| \
47603 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47604$as_echo X"$as_dir" |
47605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47606 s//\1/
47607 q
47608 }
47609 /^X\(\/\/\)[^/].*/{
47610 s//\1/
47611 q
47612 }
47613 /^X\(\/\/\)$/{
47614 s//\1/
47615 q
47616 }
47617 /^X\(\/\).*/{
47618 s//\1/
47619 q
47620 }
47621 s/.*/./; q'`
47622 test -d "$as_dir" && break
47623 done
47624 test -z "$as_dirs" || eval "mkdir $as_dirs"
47625 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47626$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47627 { (exit 1); exit 1; }; }; }
47628 ac_builddir=.
47629
47630case "$ac_dir" in
47631.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47632*)
47633 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
47634 # A ".." for each directory in $ac_dir_suffix.
47635 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47636 case $ac_top_builddir_sub in
47637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47639 esac ;;
47640esac
47641ac_abs_top_builddir=$ac_pwd
47642ac_abs_builddir=$ac_pwd$ac_dir_suffix
47643# for backward compatibility:
47644ac_top_builddir=$ac_top_build_prefix
47645
47646case $srcdir in
47647 .) # We are building in place.
47648 ac_srcdir=.
47649 ac_top_srcdir=$ac_top_builddir_sub
47650 ac_abs_top_srcdir=$ac_pwd ;;
47651 [\\/]* | ?:[\\/]* ) # Absolute name.
47652 ac_srcdir=$srcdir$ac_dir_suffix;
47653 ac_top_srcdir=$srcdir
47654 ac_abs_top_srcdir=$srcdir ;;
47655 *) # Relative name.
47656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47657 ac_top_srcdir=$ac_top_build_prefix$srcdir
47658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47659esac
47660ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47661
47662
47663 case $ac_mode in
47664 :F)
47665 #
47666 # CONFIG_FILE
47667 #
47668
47669 case $INSTALL in
47670 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47671 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47672 esac
47673 ac_MKDIR_P=$MKDIR_P
47674 case $MKDIR_P in
47675 [\\/$]* | ?:[\\/]* ) ;;
47676 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
47677 esac
47678_ACEOF
47679
47680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47681# If the template does not know about datarootdir, expand it.
47682# FIXME: This hack should be removed a few years after 2.60.
47683ac_datarootdir_hack=; ac_datarootdir_seen=
47684
47685ac_sed_dataroot='
47686/datarootdir/ {
47687 p
47688 q
47689}
47690/@datadir@/p
47691/@docdir@/p
47692/@infodir@/p
47693/@localedir@/p
47694/@mandir@/p
47695'
47696case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47697*datarootdir*) ac_datarootdir_seen=yes;;
47698*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47699 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47700$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47701_ACEOF
47702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47703 ac_datarootdir_hack='
47704 s&@datadir@&$datadir&g
47705 s&@docdir@&$docdir&g
47706 s&@infodir@&$infodir&g
47707 s&@localedir@&$localedir&g
47708 s&@mandir@&$mandir&g
47709 s&\\\${datarootdir}&$datarootdir&g' ;;
47710esac
47711_ACEOF
47712
47713# Neutralize VPATH when `$srcdir' = `.'.
47714# Shell code in configure.ac might set extrasub.
47715# FIXME: do we really want to maintain this feature?
47716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47717ac_sed_extra="$ac_vpsub
47718$extrasub
47719_ACEOF
47720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47721:t
47722/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47723s|@configure_input@|$ac_sed_conf_input|;t t
47724s&@top_builddir@&$ac_top_builddir_sub&;t t
47725s&@top_build_prefix@&$ac_top_build_prefix&;t t
47726s&@srcdir@&$ac_srcdir&;t t
47727s&@abs_srcdir@&$ac_abs_srcdir&;t t
47728s&@top_srcdir@&$ac_top_srcdir&;t t
47729s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47730s&@builddir@&$ac_builddir&;t t
47731s&@abs_builddir@&$ac_abs_builddir&;t t
47732s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47733s&@INSTALL@&$ac_INSTALL&;t t
47734s&@MKDIR_P@&$ac_MKDIR_P&;t t
47735$ac_datarootdir_hack
47736"
47737eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
47738 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47739$as_echo "$as_me: error: could not create $ac_file" >&2;}
47740 { (exit 1); exit 1; }; }
47741
47742test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47743 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
47744 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
47745 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47746which seems to be undefined. Please make sure it is defined." >&5
47747$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47748which seems to be undefined. Please make sure it is defined." >&2;}
47749
47750 rm -f "$tmp/stdin"
47751 case $ac_file in
47752 -) cat "$tmp/out" && rm -f "$tmp/out";;
47753 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
47754 esac \
47755 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47756$as_echo "$as_me: error: could not create $ac_file" >&2;}
47757 { (exit 1); exit 1; }; }
47758 ;;
47759 :H)
47760 #
47761 # CONFIG_HEADER
47762 #
47763 if test x"$ac_file" != x-; then
47764 {
47765 $as_echo "/* $configure_input */" \
47766 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
47767 } >"$tmp/config.h" \
47768 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47769$as_echo "$as_me: error: could not create $ac_file" >&2;}
47770 { (exit 1); exit 1; }; }
47771 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
47772 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47773$as_echo "$as_me: $ac_file is unchanged" >&6;}
47774 else
47775 rm -f "$ac_file"
47776 mv "$tmp/config.h" "$ac_file" \
47777 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47778$as_echo "$as_me: error: could not create $ac_file" >&2;}
47779 { (exit 1); exit 1; }; }
47780 fi
47781 else
47782 $as_echo "/* $configure_input */" \
47783 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
47784 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
47785$as_echo "$as_me: error: could not create -" >&2;}
47786 { (exit 1); exit 1; }; }
47787 fi
47788# Compute "$ac_file"'s index in $config_headers.
47789_am_arg="$ac_file"
47790_am_stamp_count=1
47791for _am_header in $config_headers :; do
47792 case $_am_header in
47793 $_am_arg | $_am_arg:* )
47794 break ;;
47795 * )
47796 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47797 esac
47798done
47799echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47800$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47801 X"$_am_arg" : 'X\(//\)[^/]' \| \
47802 X"$_am_arg" : 'X\(//\)$' \| \
47803 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47804$as_echo X"$_am_arg" |
47805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47806 s//\1/
47807 q
47808 }
47809 /^X\(\/\/\)[^/].*/{
47810 s//\1/
47811 q
47812 }
47813 /^X\(\/\/\)$/{
47814 s//\1/
47815 q
47816 }
47817 /^X\(\/\).*/{
47818 s//\1/
47819 q
47820 }
47821 s/.*/./; q'`/stamp-h$_am_stamp_count
47822 ;;
47823
47824 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
47825$as_echo "$as_me: executing $ac_file commands" >&6;}
47826 ;;
47827 esac
47828
47829
47830 case $ac_file$ac_mode in
47831 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
47832ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
47833ac_prefix_conf_PKG=`echo MagickCore`
47834ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
47835ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
47836ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
47837if test ".$ac_prefix_conf_INP" = "."; then
47838 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
47839 case "$ac_file" in
47840 *.h) ac_prefix_conf_INP=$ac_file ;;
47841 *)
47842 esac
47843 test ".$ac_prefix_conf_INP" != "." && break
47844 done
47845fi
47846if test ".$ac_prefix_conf_INP" = "."; then
47847 case "$ac_prefix_conf_OUT" in
47848 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
47849 ;;
47850 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
47851 ;;
47852 *) ac_prefix_conf_INP=config.h
47853 ;;
47854 esac
47855fi
47856if test -z "$ac_prefix_conf_PKG" ; then
47857 { { $as_echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
47858$as_echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
47859 { (exit 1); exit 1; }; }
47860else
47861 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
47862 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
47863 fi fi
47864 { $as_echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
47865$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
47866 if test -f $ac_prefix_conf_INP ; then
47867 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
47868 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
47869 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
47870 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
47871 echo "#endif/" >>conftest.prefix
47872 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
47873 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
47874 echo "#endif/" >> conftest.prefix
47875 # now executing _script on _DEF input to create _OUT output file
47876 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
47877 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
47878 echo ' ' >>$tmp/pconfig.h
47879 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
47880
47881 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
47882 echo ' ' >>$tmp/pconfig.h
47883 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
47884 echo "#endif" >>$tmp/pconfig.h
47885 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
47886 { $as_echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
47887$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
47888 else
47889 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
47890$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47891 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
47892 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
47893 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
47894$as_echo X"$ac_prefix_conf_OUT" |
47895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47896 s//\1/
47897 q
47898 }
47899 /^X\(\/\/\)[^/].*/{
47900 s//\1/
47901 q
47902 }
47903 /^X\(\/\/\)$/{
47904 s//\1/
47905 q
47906 }
47907 /^X\(\/\).*/{
47908 s//\1/
47909 q
47910 }
47911 s/.*/./; q'`
47912 { as_dir="$ac_dir"
47913 case $as_dir in #(
47914 -*) as_dir=./$as_dir;;
47915 esac
47916 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47917 as_dirs=
47918 while :; do
47919 case $as_dir in #(
47920 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47921 *) as_qdir=$as_dir;;
47922 esac
47923 as_dirs="'$as_qdir' $as_dirs"
47924 as_dir=`$as_dirname -- "$as_dir" ||
47925$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47926 X"$as_dir" : 'X\(//\)[^/]' \| \
47927 X"$as_dir" : 'X\(//\)$' \| \
47928 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47929$as_echo X"$as_dir" |
47930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47931 s//\1/
47932 q
47933 }
47934 /^X\(\/\/\)[^/].*/{
47935 s//\1/
47936 q
47937 }
47938 /^X\(\/\/\)$/{
47939 s//\1/
47940 q
47941 }
47942 /^X\(\/\).*/{
47943 s//\1/
47944 q
47945 }
47946 s/.*/./; q'`
47947 test -d "$as_dir" && break
47948 done
47949 test -z "$as_dirs" || eval "mkdir $as_dirs"
47950 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47951$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47952 { (exit 1); exit 1; }; }; }
47953 rm -f "$ac_prefix_conf_OUT"
47954 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
47955 fi
47956 cp conftest.prefix _configs.sed
47957 else
47958 { { $as_echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
47959$as_echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
47960 { (exit 1); exit 1; }; }
47961 fi
47962 rm -f conftest.*
47963fi
47964 ;;
47965 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
47966 # Autoconf 2.62 quotes --file arguments for eval, but not when files
47967 # are listed without --file. Let's play safe and only enable the eval
47968 # if we detect the quoting.
47969 case $CONFIG_FILES in
47970 *\'*) eval set x "$CONFIG_FILES" ;;
47971 *) set x $CONFIG_FILES ;;
47972 esac
47973 shift
47974 for mf
47975 do
47976 # Strip MF so we end up with the name of the file.
47977 mf=`echo "$mf" | sed -e 's/:.*$//'`
47978 # Check whether this is an Automake generated Makefile or not.
47979 # We used to match only the files named `Makefile.in', but
47980 # some people rename them; so instead we look at the file content.
47981 # Grep'ing the first line is not enough: some people post-process
47982 # each Makefile.in and add a new line on top of each file to say so.
47983 # Grep'ing the whole file is not good either: AIX grep has a line
47984 # limit of 2048, but all sed's we know have understand at least 4000.
47985 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
47986 dirpart=`$as_dirname -- "$mf" ||
47987$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47988 X"$mf" : 'X\(//\)[^/]' \| \
47989 X"$mf" : 'X\(//\)$' \| \
47990 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
47991$as_echo X"$mf" |
47992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47993 s//\1/
47994 q
47995 }
47996 /^X\(\/\/\)[^/].*/{
47997 s//\1/
47998 q
47999 }
48000 /^X\(\/\/\)$/{
48001 s//\1/
48002 q
48003 }
48004 /^X\(\/\).*/{
48005 s//\1/
48006 q
48007 }
48008 s/.*/./; q'`
48009 else
48010 continue
48011 fi
48012 # Extract the definition of DEPDIR, am__include, and am__quote
48013 # from the Makefile without running `make'.
48014 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
48015 test -z "$DEPDIR" && continue
48016 am__include=`sed -n 's/^am__include = //p' < "$mf"`
48017 test -z "am__include" && continue
48018 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
48019 # When using ansi2knr, U may be empty or an underscore; expand it
48020 U=`sed -n 's/^U = //p' < "$mf"`
48021 # Find all dependency output files, they are included files with
48022 # $(DEPDIR) in their names. We invoke sed twice because it is the
48023 # simplest approach to changing $(DEPDIR) to its actual value in the
48024 # expansion.
48025 for file in `sed -n "
48026 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
48027 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
48028 # Make sure the directory exists.
48029 test -f "$dirpart/$file" && continue
48030 fdir=`$as_dirname -- "$file" ||
48031$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48032 X"$file" : 'X\(//\)[^/]' \| \
48033 X"$file" : 'X\(//\)$' \| \
48034 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
48035$as_echo X"$file" |
48036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48037 s//\1/
48038 q
48039 }
48040 /^X\(\/\/\)[^/].*/{
48041 s//\1/
48042 q
48043 }
48044 /^X\(\/\/\)$/{
48045 s//\1/
48046 q
48047 }
48048 /^X\(\/\).*/{
48049 s//\1/
48050 q
48051 }
48052 s/.*/./; q'`
48053 { as_dir=$dirpart/$fdir
48054 case $as_dir in #(
48055 -*) as_dir=./$as_dir;;
48056 esac
48057 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48058 as_dirs=
48059 while :; do
48060 case $as_dir in #(
48061 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48062 *) as_qdir=$as_dir;;
48063 esac
48064 as_dirs="'$as_qdir' $as_dirs"
48065 as_dir=`$as_dirname -- "$as_dir" ||
48066$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48067 X"$as_dir" : 'X\(//\)[^/]' \| \
48068 X"$as_dir" : 'X\(//\)$' \| \
48069 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48070$as_echo X"$as_dir" |
48071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48072 s//\1/
48073 q
48074 }
48075 /^X\(\/\/\)[^/].*/{
48076 s//\1/
48077 q
48078 }
48079 /^X\(\/\/\)$/{
48080 s//\1/
48081 q
48082 }
48083 /^X\(\/\).*/{
48084 s//\1/
48085 q
48086 }
48087 s/.*/./; q'`
48088 test -d "$as_dir" && break
48089 done
48090 test -z "$as_dirs" || eval "mkdir $as_dirs"
48091 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48092$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48093 { (exit 1); exit 1; }; }; }
48094 # echo "creating $dirpart/$file"
48095 echo '# dummy' > "$dirpart/$file"
48096 done
48097 done
48098}
48099 ;;
48100 "libtool":C)
48101
48102 # See if we are running on zsh, and set the options which allow our
48103 # commands through without removal of \ escapes.
48104 if test -n "${ZSH_VERSION+set}" ; then
48105 setopt NO_GLOB_SUBST
48106 fi
48107
48108 cfgfile="${ofile}T"
48109 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
48110 $RM "$cfgfile"
48111
48112 cat <<_LT_EOF >> "$cfgfile"
48113#! $SHELL
48114
48115# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
48116# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
48117# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
48118# NOTE: Changes made to this file will be lost: look at ltmain.sh.
48119#
48120# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
48121# 2006, 2007, 2008 Free Software Foundation, Inc.
48122# Written by Gordon Matzigkeit, 1996
48123#
48124# This file is part of GNU Libtool.
48125#
48126# GNU Libtool is free software; you can redistribute it and/or
48127# modify it under the terms of the GNU General Public License as
48128# published by the Free Software Foundation; either version 2 of
48129# the License, or (at your option) any later version.
48130#
48131# As a special exception to the GNU General Public License,
48132# if you distribute this file as part of a program or library that
48133# is built using GNU Libtool, you may include this file under the
48134# same distribution terms that you use for the rest of that program.
48135#
48136# GNU Libtool is distributed in the hope that it will be useful,
48137# but WITHOUT ANY WARRANTY; without even the implied warranty of
48138# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48139# GNU General Public License for more details.
48140#
48141# You should have received a copy of the GNU General Public License
48142# along with GNU Libtool; see the file COPYING. If not, a copy
48143# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
48144# obtained by writing to the Free Software Foundation, Inc.,
48145# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
48146
48147
48148# The names of the tagged configurations supported by this script.
48149available_tags="CXX "
48150
48151# ### BEGIN LIBTOOL CONFIG
48152
48153# A sed program that does not truncate output.
48154SED=$lt_SED
48155
48156# Sed that helps us avoid accidentally triggering echo(1) options like -n.
48157Xsed="\$SED -e 1s/^X//"
48158
48159# A grep program that handles long lines.
48160GREP=$lt_GREP
48161
48162# An ERE matcher.
48163EGREP=$lt_EGREP
48164
48165# A literal string matcher.
48166FGREP=$lt_FGREP
48167
48168# Which release of libtool.m4 was used?
48169macro_version=$macro_version
48170macro_revision=$macro_revision
48171
48172# Assembler program.
48173AS=$AS
48174
48175# DLL creation program.
48176DLLTOOL=$DLLTOOL
48177
48178# Object dumper program.
48179OBJDUMP=$OBJDUMP
48180
48181# Whether or not to build shared libraries.
48182build_libtool_libs=$enable_shared
48183
48184# Whether or not to build static libraries.
48185build_old_libs=$enable_static
48186
48187# What type of objects to build.
48188pic_mode=$pic_mode
48189
48190# Whether or not to optimize for fast installation.
48191fast_install=$enable_fast_install
48192
48193# The host system.
48194host_alias=$host_alias
48195host=$host
48196host_os=$host_os
48197
48198# The build system.
48199build_alias=$build_alias
48200build=$build
48201build_os=$build_os
48202
48203# A BSD- or MS-compatible name lister.
48204NM=$lt_NM
48205
48206# Whether we need soft or hard links.
48207LN_S=$lt_LN_S
48208
48209# What is the maximum length of a command?
48210max_cmd_len=$max_cmd_len
48211
48212# Object file suffix (normally "o").
48213objext=$ac_objext
48214
48215# Executable file suffix (normally "").
48216exeext=$exeext
48217
48218# whether the shell understands "unset".
48219lt_unset=$lt_unset
48220
48221# turn spaces into newlines.
48222SP2NL=$lt_lt_SP2NL
48223
48224# turn newlines into spaces.
48225NL2SP=$lt_lt_NL2SP
48226
48227# How to create reloadable object files.
48228reload_flag=$lt_reload_flag
48229reload_cmds=$lt_reload_cmds
48230
48231# Method to check whether dependent libraries are shared objects.
48232deplibs_check_method=$lt_deplibs_check_method
48233
48234# Command to use when deplibs_check_method == "file_magic".
48235file_magic_cmd=$lt_file_magic_cmd
48236
48237# The archiver.
48238AR=$lt_AR
48239AR_FLAGS=$lt_AR_FLAGS
48240
48241# A symbol stripping program.
48242STRIP=$lt_STRIP
48243
48244# Commands used to install an old-style archive.
48245RANLIB=$lt_RANLIB
48246old_postinstall_cmds=$lt_old_postinstall_cmds
48247old_postuninstall_cmds=$lt_old_postuninstall_cmds
48248
48249# A C compiler.
48250LTCC=$lt_CC
48251
48252# LTCC compiler flags.
48253LTCFLAGS=$lt_CFLAGS
48254
48255# Take the output of nm and produce a listing of raw symbols and C names.
48256global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
48257
48258# Transform the output of nm in a proper C declaration.
48259global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
48260
48261# Transform the output of nm in a C name address pair.
48262global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
48263
48264# Transform the output of nm in a C name address pair when lib prefix is needed.
48265global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
48266
48267# The name of the directory that contains temporary libtool files.
48268objdir=$objdir
48269
48270# Shell to use when invoking shell scripts.
48271SHELL=$lt_SHELL
48272
48273# An echo program that does not interpret backslashes.
48274ECHO=$lt_ECHO
48275
48276# Used to examine libraries when file_magic_cmd begins with "file".
48277MAGIC_CMD=$MAGIC_CMD
48278
48279# Must we lock files when doing compilation?
48280need_locks=$lt_need_locks
48281
48282# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
48283DSYMUTIL=$lt_DSYMUTIL
48284
48285# Tool to change global to local symbols on Mac OS X.
48286NMEDIT=$lt_NMEDIT
48287
48288# Tool to manipulate fat objects and archives on Mac OS X.
48289LIPO=$lt_LIPO
48290
48291# ldd/readelf like tool for Mach-O binaries on Mac OS X.
48292OTOOL=$lt_OTOOL
48293
48294# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
48295OTOOL64=$lt_OTOOL64
48296
48297# Old archive suffix (normally "a").
48298libext=$libext
48299
48300# Shared library suffix (normally ".so").
48301shrext_cmds=$lt_shrext_cmds
48302
48303# The commands to extract the exported symbol list from a shared archive.
48304extract_expsyms_cmds=$lt_extract_expsyms_cmds
48305
48306# Variables whose values should be saved in libtool wrapper scripts and
48307# restored at link time.
48308variables_saved_for_relink=$lt_variables_saved_for_relink
48309
48310# Do we need the "lib" prefix for modules?
48311need_lib_prefix=$need_lib_prefix
48312
48313# Do we need a version for libraries?
48314need_version=$need_version
48315
48316# Library versioning type.
48317version_type=$version_type
48318
48319# Shared library runtime path variable.
48320runpath_var=$runpath_var
48321
48322# Shared library path variable.
48323shlibpath_var=$shlibpath_var
48324
48325# Is shlibpath searched before the hard-coded library search path?
48326shlibpath_overrides_runpath=$shlibpath_overrides_runpath
48327
48328# Format of library name prefix.
48329libname_spec=$lt_libname_spec
48330
48331# List of archive names. First name is the real one, the rest are links.
48332# The last name is the one that the linker finds with -lNAME
48333library_names_spec=$lt_library_names_spec
48334
48335# The coded name of the library, if different from the real name.
48336soname_spec=$lt_soname_spec
48337
48338# Command to use after installation of a shared archive.
48339postinstall_cmds=$lt_postinstall_cmds
48340
48341# Command to use after uninstallation of a shared archive.
48342postuninstall_cmds=$lt_postuninstall_cmds
48343
48344# Commands used to finish a libtool library installation in a directory.
48345finish_cmds=$lt_finish_cmds
48346
48347# As "finish_cmds", except a single script fragment to be evaled but
48348# not shown.
48349finish_eval=$lt_finish_eval
48350
48351# Whether we should hardcode library paths into libraries.
48352hardcode_into_libs=$hardcode_into_libs
48353
48354# Compile-time system search path for libraries.
48355sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
48356
48357# Run-time system search path for libraries.
48358sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
48359
48360# Whether dlopen is supported.
48361dlopen_support=$enable_dlopen
48362
48363# Whether dlopen of programs is supported.
48364dlopen_self=$enable_dlopen_self
48365
48366# Whether dlopen of statically linked programs is supported.
48367dlopen_self_static=$enable_dlopen_self_static
48368
48369# Commands to strip libraries.
48370old_striplib=$lt_old_striplib
48371striplib=$lt_striplib
48372
48373
48374# The linker used to build libraries.
48375LD=$lt_LD
48376
48377# Commands used to build an old-style archive.
48378old_archive_cmds=$lt_old_archive_cmds
48379
48380# A language specific compiler.
48381CC=$lt_compiler
48382
48383# Is the compiler the GNU compiler?
48384with_gcc=$GCC
48385
48386# Compiler flag to turn off builtin functions.
48387no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
48388
48389# How to pass a linker flag through the compiler.
48390wl=$lt_lt_prog_compiler_wl
48391
48392# Additional compiler flags for building library objects.
48393pic_flag=$lt_lt_prog_compiler_pic
48394
48395# Compiler flag to prevent dynamic linking.
48396link_static_flag=$lt_lt_prog_compiler_static
48397
48398# Does compiler simultaneously support -c and -o options?
48399compiler_c_o=$lt_lt_cv_prog_compiler_c_o
48400
48401# Whether or not to add -lc for building shared libraries.
48402build_libtool_need_lc=$archive_cmds_need_lc
48403
48404# Whether or not to disallow shared libs when runtime libs are static.
48405allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
48406
48407# Compiler flag to allow reflexive dlopens.
48408export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
48409
48410# Compiler flag to generate shared objects directly from archives.
48411whole_archive_flag_spec=$lt_whole_archive_flag_spec
48412
48413# Whether the compiler copes with passing no objects directly.
48414compiler_needs_object=$lt_compiler_needs_object
48415
48416# Create an old-style archive from a shared archive.
48417old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
48418
48419# Create a temporary old-style archive to link instead of a shared archive.
48420old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
48421
48422# Commands used to build a shared archive.
48423archive_cmds=$lt_archive_cmds
48424archive_expsym_cmds=$lt_archive_expsym_cmds
48425
48426# Commands used to build a loadable module if different from building
48427# a shared archive.
48428module_cmds=$lt_module_cmds
48429module_expsym_cmds=$lt_module_expsym_cmds
48430
48431# Whether we are building with GNU ld or not.
48432with_gnu_ld=$lt_with_gnu_ld
48433
48434# Flag that allows shared libraries with undefined symbols to be built.
48435allow_undefined_flag=$lt_allow_undefined_flag
48436
48437# Flag that enforces no undefined symbols.
48438no_undefined_flag=$lt_no_undefined_flag
48439
48440# Flag to hardcode \$libdir into a binary during linking.
48441# This must work even if \$libdir does not exist
48442hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48443
48444# If ld is used when linking, flag to hardcode \$libdir into a binary
48445# during linking. This must work even if \$libdir does not exist.
48446hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
48447
48448# Whether we need a single "-rpath" flag with a separated argument.
48449hardcode_libdir_separator=$lt_hardcode_libdir_separator
48450
48451# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48452# DIR into the resulting binary.
48453hardcode_direct=$hardcode_direct
48454
48455# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48456# DIR into the resulting binary and the resulting library dependency is
48457# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48458# library is relocated.
48459hardcode_direct_absolute=$hardcode_direct_absolute
48460
48461# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48462# into the resulting binary.
48463hardcode_minus_L=$hardcode_minus_L
48464
48465# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48466# into the resulting binary.
48467hardcode_shlibpath_var=$hardcode_shlibpath_var
48468
48469# Set to "yes" if building a shared library automatically hardcodes DIR
48470# into the library and all subsequent libraries and executables linked
48471# against it.
48472hardcode_automatic=$hardcode_automatic
48473
48474# Set to yes if linker adds runtime paths of dependent libraries
48475# to runtime path list.
48476inherit_rpath=$inherit_rpath
48477
48478# Whether libtool must link a program against all its dependency libraries.
48479link_all_deplibs=$link_all_deplibs
48480
48481# Fix the shell variable \$srcfile for the compiler.
48482fix_srcfile_path=$lt_fix_srcfile_path
48483
48484# Set to "yes" if exported symbols are required.
48485always_export_symbols=$always_export_symbols
48486
48487# The commands to list exported symbols.
48488export_symbols_cmds=$lt_export_symbols_cmds
48489
48490# Symbols that should not be listed in the preloaded symbols.
48491exclude_expsyms=$lt_exclude_expsyms
48492
48493# Symbols that must always be exported.
48494include_expsyms=$lt_include_expsyms
48495
48496# Commands necessary for linking programs (against libraries) with templates.
48497prelink_cmds=$lt_prelink_cmds
48498
48499# Specify filename containing input files.
48500file_list_spec=$lt_file_list_spec
48501
48502# How to hardcode a shared library path into an executable.
48503hardcode_action=$hardcode_action
48504
48505# The directories searched by this compiler when creating a shared library.
48506compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
48507
48508# Dependencies to place before and after the objects being linked to
48509# create a shared library.
48510predep_objects=$lt_predep_objects
48511postdep_objects=$lt_postdep_objects
48512predeps=$lt_predeps
48513postdeps=$lt_postdeps
48514
48515# The library search path used internally by the compiler when linking
48516# a shared library.
48517compiler_lib_search_path=$lt_compiler_lib_search_path
48518
48519# ### END LIBTOOL CONFIG
48520
48521_LT_EOF
48522
48523 case $host_os in
48524 aix3*)
48525 cat <<\_LT_EOF >> "$cfgfile"
48526# AIX sometimes has problems with the GCC collect2 program. For some
48527# reason, if we set the COLLECT_NAMES environment variable, the problems
48528# vanish in a puff of smoke.
48529if test "X${COLLECT_NAMES+set}" != Xset; then
48530 COLLECT_NAMES=
48531 export COLLECT_NAMES
48532fi
48533_LT_EOF
48534 ;;
48535 esac
48536
48537
48538ltmain="$ac_aux_dir/ltmain.sh"
48539
48540
48541 # We use sed instead of cat because bash on DJGPP gets confused if
48542 # if finds mixed CR/LF and LF-only lines. Since sed operates in
48543 # text mode, it properly converts lines to CR/LF. This bash problem
48544 # is reportedly fixed, but why not run on old versions too?
48545 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
48546 || (rm -f "$cfgfile"; exit 1)
48547
48548 case $xsi_shell in
48549 yes)
48550 cat << \_LT_EOF >> "$cfgfile"
48551
48552# func_dirname file append nondir_replacement
48553# Compute the dirname of FILE. If nonempty, add APPEND to the result,
48554# otherwise set result to NONDIR_REPLACEMENT.
48555func_dirname ()
48556{
48557 case ${1} in
48558 */*) func_dirname_result="${1%/*}${2}" ;;
48559 * ) func_dirname_result="${3}" ;;
48560 esac
48561}
48562
48563# func_basename file
48564func_basename ()
48565{
48566 func_basename_result="${1##*/}"
48567}
48568
48569# func_dirname_and_basename file append nondir_replacement
48570# perform func_basename and func_dirname in a single function
48571# call:
48572# dirname: Compute the dirname of FILE. If nonempty,
48573# add APPEND to the result, otherwise set result
48574# to NONDIR_REPLACEMENT.
48575# value returned in "$func_dirname_result"
48576# basename: Compute filename of FILE.
48577# value retuned in "$func_basename_result"
48578# Implementation must be kept synchronized with func_dirname
48579# and func_basename. For efficiency, we do not delegate to
48580# those functions but instead duplicate the functionality here.
48581func_dirname_and_basename ()
48582{
48583 case ${1} in
48584 */*) func_dirname_result="${1%/*}${2}" ;;
48585 * ) func_dirname_result="${3}" ;;
48586 esac
48587 func_basename_result="${1##*/}"
48588}
48589
48590# func_stripname prefix suffix name
48591# strip PREFIX and SUFFIX off of NAME.
48592# PREFIX and SUFFIX must not contain globbing or regex special
48593# characters, hashes, percent signs, but SUFFIX may contain a leading
48594# dot (in which case that matches only a dot).
48595func_stripname ()
48596{
48597 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
48598 # positional parameters, so assign one to ordinary parameter first.
48599 func_stripname_result=${3}
48600 func_stripname_result=${func_stripname_result#"${1}"}
48601 func_stripname_result=${func_stripname_result%"${2}"}
48602}
48603
48604# func_opt_split
48605func_opt_split ()
48606{
48607 func_opt_split_opt=${1%%=*}
48608 func_opt_split_arg=${1#*=}
48609}
48610
48611# func_lo2o object
48612func_lo2o ()
48613{
48614 case ${1} in
48615 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
48616 *) func_lo2o_result=${1} ;;
48617 esac
48618}
48619
48620# func_xform libobj-or-source
48621func_xform ()
48622{
48623 func_xform_result=${1%.*}.lo
48624}
48625
48626# func_arith arithmetic-term...
48627func_arith ()
48628{
48629 func_arith_result=$(( $* ))
48630}
48631
48632# func_len string
48633# STRING may not start with a hyphen.
48634func_len ()
48635{
48636 func_len_result=${#1}
48637}
48638
48639_LT_EOF
48640 ;;
48641 *) # Bourne compatible functions.
48642 cat << \_LT_EOF >> "$cfgfile"
48643
48644# func_dirname file append nondir_replacement
48645# Compute the dirname of FILE. If nonempty, add APPEND to the result,
48646# otherwise set result to NONDIR_REPLACEMENT.
48647func_dirname ()
48648{
48649 # Extract subdirectory from the argument.
48650 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
48651 if test "X$func_dirname_result" = "X${1}"; then
48652 func_dirname_result="${3}"
48653 else
48654 func_dirname_result="$func_dirname_result${2}"
48655 fi
48656}
48657
48658# func_basename file
48659func_basename ()
48660{
48661 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
48662}
48663
48664
48665# func_stripname prefix suffix name
48666# strip PREFIX and SUFFIX off of NAME.
48667# PREFIX and SUFFIX must not contain globbing or regex special
48668# characters, hashes, percent signs, but SUFFIX may contain a leading
48669# dot (in which case that matches only a dot).
48670# func_strip_suffix prefix name
48671func_stripname ()
48672{
48673 case ${2} in
48674 .*) func_stripname_result=`$ECHO "X${3}" \
48675 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
48676 *) func_stripname_result=`$ECHO "X${3}" \
48677 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
48678 esac
48679}
48680
48681# sed scripts:
48682my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
48683my_sed_long_arg='1s/^-[^=]*=//'
48684
48685# func_opt_split
48686func_opt_split ()
48687{
48688 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
48689 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
48690}
48691
48692# func_lo2o object
48693func_lo2o ()
48694{
48695 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
48696}
48697
48698# func_xform libobj-or-source
48699func_xform ()
48700{
48701 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
48702}
48703
48704# func_arith arithmetic-term...
48705func_arith ()
48706{
48707 func_arith_result=`expr "$@"`
48708}
48709
48710# func_len string
48711# STRING may not start with a hyphen.
48712func_len ()
48713{
48714 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
48715}
48716
48717_LT_EOF
48718esac
48719
48720case $lt_shell_append in
48721 yes)
48722 cat << \_LT_EOF >> "$cfgfile"
48723
48724# func_append var value
48725# Append VALUE to the end of shell variable VAR.
48726func_append ()
48727{
48728 eval "$1+=\$2"
48729}
48730_LT_EOF
48731 ;;
48732 *)
48733 cat << \_LT_EOF >> "$cfgfile"
48734
48735# func_append var value
48736# Append VALUE to the end of shell variable VAR.
48737func_append ()
48738{
48739 eval "$1=\$$1\$2"
48740}
48741
48742_LT_EOF
48743 ;;
48744 esac
48745
48746
48747 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
48748 || (rm -f "$cfgfile"; exit 1)
48749
48750 mv -f "$cfgfile" "$ofile" ||
48751 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48752 chmod +x "$ofile"
48753
48754
48755 cat <<_LT_EOF >> "$ofile"
48756
48757# ### BEGIN LIBTOOL TAG CONFIG: CXX
48758
48759# The linker used to build libraries.
48760LD=$lt_LD_CXX
48761
48762# Commands used to build an old-style archive.
48763old_archive_cmds=$lt_old_archive_cmds_CXX
48764
48765# A language specific compiler.
48766CC=$lt_compiler_CXX
48767
48768# Is the compiler the GNU compiler?
48769with_gcc=$GCC_CXX
48770
48771# Compiler flag to turn off builtin functions.
48772no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
48773
48774# How to pass a linker flag through the compiler.
48775wl=$lt_lt_prog_compiler_wl_CXX
48776
48777# Additional compiler flags for building library objects.
48778pic_flag=$lt_lt_prog_compiler_pic_CXX
48779
48780# Compiler flag to prevent dynamic linking.
48781link_static_flag=$lt_lt_prog_compiler_static_CXX
48782
48783# Does compiler simultaneously support -c and -o options?
48784compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
48785
48786# Whether or not to add -lc for building shared libraries.
48787build_libtool_need_lc=$archive_cmds_need_lc_CXX
48788
48789# Whether or not to disallow shared libs when runtime libs are static.
48790allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
48791
48792# Compiler flag to allow reflexive dlopens.
48793export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
48794
48795# Compiler flag to generate shared objects directly from archives.
48796whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
48797
48798# Whether the compiler copes with passing no objects directly.
48799compiler_needs_object=$lt_compiler_needs_object_CXX
48800
48801# Create an old-style archive from a shared archive.
48802old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
48803
48804# Create a temporary old-style archive to link instead of a shared archive.
48805old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
48806
48807# Commands used to build a shared archive.
48808archive_cmds=$lt_archive_cmds_CXX
48809archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
48810
48811# Commands used to build a loadable module if different from building
48812# a shared archive.
48813module_cmds=$lt_module_cmds_CXX
48814module_expsym_cmds=$lt_module_expsym_cmds_CXX
48815
48816# Whether we are building with GNU ld or not.
48817with_gnu_ld=$lt_with_gnu_ld_CXX
48818
48819# Flag that allows shared libraries with undefined symbols to be built.
48820allow_undefined_flag=$lt_allow_undefined_flag_CXX
48821
48822# Flag that enforces no undefined symbols.
48823no_undefined_flag=$lt_no_undefined_flag_CXX
48824
48825# Flag to hardcode \$libdir into a binary during linking.
48826# This must work even if \$libdir does not exist
48827hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
48828
48829# If ld is used when linking, flag to hardcode \$libdir into a binary
48830# during linking. This must work even if \$libdir does not exist.
48831hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
48832
48833# Whether we need a single "-rpath" flag with a separated argument.
48834hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
48835
48836# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48837# DIR into the resulting binary.
48838hardcode_direct=$hardcode_direct_CXX
48839
48840# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48841# DIR into the resulting binary and the resulting library dependency is
48842# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48843# library is relocated.
48844hardcode_direct_absolute=$hardcode_direct_absolute_CXX
48845
48846# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48847# into the resulting binary.
48848hardcode_minus_L=$hardcode_minus_L_CXX
48849
48850# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48851# into the resulting binary.
48852hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
48853
48854# Set to "yes" if building a shared library automatically hardcodes DIR
48855# into the library and all subsequent libraries and executables linked
48856# against it.
48857hardcode_automatic=$hardcode_automatic_CXX
48858
48859# Set to yes if linker adds runtime paths of dependent libraries
48860# to runtime path list.
48861inherit_rpath=$inherit_rpath_CXX
48862
48863# Whether libtool must link a program against all its dependency libraries.
48864link_all_deplibs=$link_all_deplibs_CXX
48865
48866# Fix the shell variable \$srcfile for the compiler.
48867fix_srcfile_path=$lt_fix_srcfile_path_CXX
48868
48869# Set to "yes" if exported symbols are required.
48870always_export_symbols=$always_export_symbols_CXX
48871
48872# The commands to list exported symbols.
48873export_symbols_cmds=$lt_export_symbols_cmds_CXX
48874
48875# Symbols that should not be listed in the preloaded symbols.
48876exclude_expsyms=$lt_exclude_expsyms_CXX
48877
48878# Symbols that must always be exported.
48879include_expsyms=$lt_include_expsyms_CXX
48880
48881# Commands necessary for linking programs (against libraries) with templates.
48882prelink_cmds=$lt_prelink_cmds_CXX
48883
48884# Specify filename containing input files.
48885file_list_spec=$lt_file_list_spec_CXX
48886
48887# How to hardcode a shared library path into an executable.
48888hardcode_action=$hardcode_action_CXX
48889
48890# The directories searched by this compiler when creating a shared library.
48891compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
48892
48893# Dependencies to place before and after the objects being linked to
48894# create a shared library.
48895predep_objects=$lt_predep_objects_CXX
48896postdep_objects=$lt_postdep_objects_CXX
48897predeps=$lt_predeps_CXX
48898postdeps=$lt_postdeps_CXX
48899
48900# The library search path used internally by the compiler when linking
48901# a shared library.
48902compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
48903
48904# ### END LIBTOOL TAG CONFIG: CXX
48905_LT_EOF
48906
48907 ;;
48908 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
48909 "Magick-config.in":C) chmod +x magick/Magick-config ;;
48910 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
48911 "Wand-config.in":C) chmod +x wand/Wand-config ;;
48912 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
48913 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
48914
48915 esac
48916done # for ac_tag
48917
48918
48919{ (exit 0); exit 0; }
48920_ACEOF
48921chmod +x $CONFIG_STATUS
48922ac_clean_files=$ac_clean_files_save
48923
48924test $ac_write_fail = 0 ||
48925 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
48926$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
48927 { (exit 1); exit 1; }; }
48928
48929
48930# configure is writing to config.log, and then calls config.status.
48931# config.status does its own redirection, appending to config.log.
48932# Unfortunately, on DOS this fails, as config.log is still kept open
48933# by configure, so config.status won't be able to write to it; its
48934# output is simply discarded. So we exec the FD to /dev/null,
48935# effectively closing config.log, so it can be properly (re)opened and
48936# appended to by config.status. When coming back to configure, we
48937# need to make the FD available again.
48938if test "$no_create" != yes; then
48939 ac_cs_success=:
48940 ac_config_status_args=
48941 test "$silent" = yes &&
48942 ac_config_status_args="$ac_config_status_args --quiet"
48943 exec 5>/dev/null
48944 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48945 exec 5>>config.log
48946 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48947 # would make configure fail if this is the last instruction.
48948 $ac_cs_success || { (exit 1); exit 1; }
48949fi
48950if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48951 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48952$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48953fi
48954
48955
48956rm -f magick-version
48957
48958result_ghostscript_font_dir='none'
48959if test "${ghostscript_font_dir}x" != 'x'; then
48960 result_ghostscript_font_dir=$ghostscript_font_dir
48961fi
48962
48963result_windows_font_dir='none'
48964if test "${windows_font_dir}x" != 'x'; then
48965 result_windows_font_dir=${windows_font_dir}
48966fi
48967
48968{ $as_echo "$as_me:$LINENO: result:
48969ImageMagick is configured as follows. Please verify that this configuration
48970matches your expectations.
48971
48972Host system type: $host
48973Build system type: $build
48974
48975 Option Value
48976-------------------------------------------------------------------------------
48977Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
48978Static libraries --enable-static=$enable_static $libtool_build_static_libs
48979Module support --with-modules=$with_modules $with_modules
48980GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
48981Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
48982High Dynamic Range Imagery
48983 --enable-hdri=$enable_hdri $enable_hdri
48984
48985Delegate Configuration:
48986BZLIB --with-bzlib=$with_bzlib $have_bzlib
48987Autotrace --with-autotrace=$with_autotrace $have_autotrace
48988DJVU --with-djvu=$with_djvu $have_djvu
48989DPS --with-dps=$with_dps $have_dps
48990FFTW --with-fftw=$with_fftw $have_fftw
48991FlashPIX --with-fpx=$with_fpx $have_fpx
48992FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
48993FreeType --with-freetype=$with_freetype $have_freetype
48994GhostPCL None $PCLDelegate ($PCLVersion)
48995GhostXPS None $XPSDelegate ($XPSVersion)
48996Ghostscript None $PSDelegate ($GSVersion)
48997Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
48998Ghostscript lib --with-gslib=$with_gslib $have_gslib
48999Graphviz --with-gvc=$with_gvc $have_gvc
49000JBIG --with-jbig=$with_jbig $have_jbig
49001JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49002JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49003LCMS --with-lcms=$with_lcms $have_lcms
49004LQR --with-lqr=$with_lqr $have_lqr
49005Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49006OpenEXR --with-openexr=$with_openexr $have_openexr
49007PERL --with-perl=$with_perl $have_perl
49008PNG --with-png=$with_png $have_png
49009RSVG --with-rsvg=$with_rsvg $have_rsvg
49010TIFF --with-tiff=$with_tiff $have_tiff
49011Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49012WMF --with-wmf=$with_wmf $have_wmf
49013X11 --with-x=$with_x $have_x
49014XML --with-xml=$with_xml $have_xml
49015ZLIB --with-zlib=$with_zlib $have_zlib
49016
49017X11 Configuration:
49018 X_CFLAGS = $X_CFLAGS
49019 X_PRE_LIBS = $X_PRE_LIBS
49020 X_LIBS = $X_LIBS
49021 X_EXTRA_LIBS = $X_EXTRA_LIBS
49022
49023Options used to compile and link:
49024 PREFIX = $PREFIX_DIR
49025 EXEC-PREFIX = $EXEC_PREFIX_DIR
49026 VERSION = $PACKAGE_VERSION
49027 CC = $CC
49028 CFLAGS = $CFLAGS
49029 MAGICK_CFLAGS = $MAGICK_CFLAGS
49030 CPPFLAGS = $MAGICK_CPPFLAGS
49031 PCFLAGS = $MAGICK_PCFLAGS
49032 DEFS = $DEFS
49033 LDFLAGS = $LDFLAGS
49034 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49035 LIBS = $MAGICK_LIBS
49036 CXX = $CXX
49037 CXXFLAGS = $CXXFLAGS
49038" >&5
49039$as_echo "
49040ImageMagick is configured as follows. Please verify that this configuration
49041matches your expectations.
49042
49043Host system type: $host
49044Build system type: $build
49045
49046 Option Value
49047-------------------------------------------------------------------------------
49048Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49049Static libraries --enable-static=$enable_static $libtool_build_static_libs
49050Module support --with-modules=$with_modules $with_modules
49051GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49052Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49053High Dynamic Range Imagery
49054 --enable-hdri=$enable_hdri $enable_hdri
49055
49056Delegate Configuration:
49057BZLIB --with-bzlib=$with_bzlib $have_bzlib
49058Autotrace --with-autotrace=$with_autotrace $have_autotrace
49059DJVU --with-djvu=$with_djvu $have_djvu
49060DPS --with-dps=$with_dps $have_dps
49061FFTW --with-fftw=$with_fftw $have_fftw
49062FlashPIX --with-fpx=$with_fpx $have_fpx
49063FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49064FreeType --with-freetype=$with_freetype $have_freetype
49065GhostPCL None $PCLDelegate ($PCLVersion)
49066GhostXPS None $XPSDelegate ($XPSVersion)
49067Ghostscript None $PSDelegate ($GSVersion)
49068Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49069Ghostscript lib --with-gslib=$with_gslib $have_gslib
49070Graphviz --with-gvc=$with_gvc $have_gvc
49071JBIG --with-jbig=$with_jbig $have_jbig
49072JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49073JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49074LCMS --with-lcms=$with_lcms $have_lcms
49075LQR --with-lqr=$with_lqr $have_lqr
49076Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49077OpenEXR --with-openexr=$with_openexr $have_openexr
49078PERL --with-perl=$with_perl $have_perl
49079PNG --with-png=$with_png $have_png
49080RSVG --with-rsvg=$with_rsvg $have_rsvg
49081TIFF --with-tiff=$with_tiff $have_tiff
49082Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49083WMF --with-wmf=$with_wmf $have_wmf
49084X11 --with-x=$with_x $have_x
49085XML --with-xml=$with_xml $have_xml
49086ZLIB --with-zlib=$with_zlib $have_zlib
49087
49088X11 Configuration:
49089 X_CFLAGS = $X_CFLAGS
49090 X_PRE_LIBS = $X_PRE_LIBS
49091 X_LIBS = $X_LIBS
49092 X_EXTRA_LIBS = $X_EXTRA_LIBS
49093
49094Options used to compile and link:
49095 PREFIX = $PREFIX_DIR
49096 EXEC-PREFIX = $EXEC_PREFIX_DIR
49097 VERSION = $PACKAGE_VERSION
49098 CC = $CC
49099 CFLAGS = $CFLAGS
49100 MAGICK_CFLAGS = $MAGICK_CFLAGS
49101 CPPFLAGS = $MAGICK_CPPFLAGS
49102 PCFLAGS = $MAGICK_PCFLAGS
49103 DEFS = $DEFS
49104 LDFLAGS = $LDFLAGS
49105 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49106 LIBS = $MAGICK_LIBS
49107 CXX = $CXX
49108 CXXFLAGS = $CXXFLAGS
49109" >&6; }